-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintcache
1 lines (1 loc) · 21.1 KB
/
.eslintcache
1
[{"/home/skull/lab-report-management-system/src/index.js":"1","/home/skull/lab-report-management-system/src/pages/App.js":"2","/home/skull/lab-report-management-system/src/pages/Login.js":"3","/home/skull/lab-report-management-system/src/pages/Dashboard.js":"4","/home/skull/lab-report-management-system/src/constants.js":"5","/home/skull/lab-report-management-system/src/pages/ResetPassword.js":"6","/home/skull/lab-report-management-system/src/contexts/AuthContext.js":"7","/home/skull/lab-report-management-system/src/pages/UpdatePassword.js":"8","/home/skull/lab-report-management-system/src/pages/CreateReport.js":"9","/home/skull/lab-report-management-system/src/pages/Reports.js":"10","/home/skull/lab-report-management-system/src/firebase.config.js":"11","/home/skull/lab-report-management-system/src/services/firebase.service.js":"12","/home/skull/lab-report-management-system/src/components/Form/ReactiveFields/ExpiryDateField.js":"13","/home/skull/lab-report-management-system/src/components/Form/ReactiveFields/Pregnancy.js":"14","/home/skull/lab-report-management-system/src/components/Form/ReactiveFields/DisplayPhoto.js":"15","/home/skull/lab-report-management-system/src/components/Form/TextArea.js":"16","/home/skull/lab-report-management-system/src/components/Form/FileUpload.js":"17","/home/skull/lab-report-management-system/src/utils/data.helper.js":"18","/home/skull/lab-report-management-system/src/utils/date.helper.js":"19","/home/skull/lab-report-management-system/src/components/Form/TextField.js":"20","/home/skull/lab-report-management-system/src/components/Form/SelectField.js":"21","/home/skull/lab-report-management-system/src/components/Form/DateField.js":"22","/home/skull/lab-report-management-system/src/components/Form/TextFieldWithUnit.js":"23","/home/skull/lab-report-management-system/src/components/Layouts/Col.js":"24","/home/skull/lab-report-management-system/src/components/NavigationBar.js":"25","/home/skull/lab-report-management-system/src/components/Heading.js":"26","/home/skull/lab-report-management-system/src/components/QuickAccessButtons.js":"27","/home/skull/lab-report-management-system/src/components/PrivateRoute.js":"28","/home/skull/lab-report-management-system/src/components/UpdateReferenceModal.js":"29","/home/skull/lab-report-management-system/src/components/TableView.js":"30","/home/skull/lab-report-management-system/src/components/index.js":"31","/home/skull/lab-report-management-system/src/components/Layouts/AppLayout.js":"32","/home/skull/lab-report-management-system/src/pages/Signup.js":"33","/home/skull/lab-report-management-system/src/components/Form/index.js":"34","/home/skull/lab-report-management-system/src/components/Form/ReactiveFields/index.js":"35","/home/skull/lab-report-management-system/src/components/Report/index.js":"36","/home/skull/lab-report-management-system/src/components/Report/CandidateInfoFields.js":"37","/home/skull/lab-report-management-system/src/components/Report/MedicalExaminationFields.js":"38","/home/skull/lab-report-management-system/src/components/Report/LabInvestigationFields.js":"39","/home/skull/lab-report-management-system/src/components/Report/Remarks.js":"40","/home/skull/lab-report-management-system/src/components/Report/SerialNoFields.js":"41","/home/skull/lab-report-management-system/src/utils/pdf.helper.js":"42","/home/skull/lab-report-management-system/src/utils/cache.helper.js":"43"},{"size":199,"mtime":1627051683940,"results":"44","hashOfConfig":"45"},{"size":1638,"mtime":1628182655902,"results":"46","hashOfConfig":"45"},{"size":2692,"mtime":1628148602771,"results":"47","hashOfConfig":"45"},{"size":842,"mtime":1628055412522,"results":"48","hashOfConfig":"45"},{"size":2580,"mtime":1628685113910,"results":"49","hashOfConfig":"45"},{"size":2038,"mtime":1628148574639,"results":"50","hashOfConfig":"45"},{"size":1313,"mtime":1627051683940,"results":"51","hashOfConfig":"45"},{"size":2062,"mtime":1628056684289,"results":"52","hashOfConfig":"45"},{"size":4912,"mtime":1628182068788,"results":"53","hashOfConfig":"45"},{"size":4421,"mtime":1628685171970,"results":"54","hashOfConfig":"45"},{"size":688,"mtime":1627207194960,"results":"55","hashOfConfig":"45"},{"size":4319,"mtime":1628685292843,"results":"56","hashOfConfig":"45"},{"size":1068,"mtime":1627883395924,"results":"57","hashOfConfig":"45"},{"size":662,"mtime":1627994966702,"results":"58","hashOfConfig":"45"},{"size":467,"mtime":1627051683940,"results":"59","hashOfConfig":"45"},{"size":586,"mtime":1627051683940,"results":"60","hashOfConfig":"45"},{"size":1901,"mtime":1627995392133,"results":"61","hashOfConfig":"45"},{"size":1851,"mtime":1627062149760,"results":"62","hashOfConfig":"45"},{"size":521,"mtime":1627054257936,"results":"63","hashOfConfig":"45"},{"size":575,"mtime":1627997780166,"results":"64","hashOfConfig":"45"},{"size":622,"mtime":1627051683940,"results":"65","hashOfConfig":"45"},{"size":626,"mtime":1627051683940,"results":"66","hashOfConfig":"45"},{"size":763,"mtime":1627051683940,"results":"67","hashOfConfig":"45"},{"size":423,"mtime":1627051683940,"results":"68","hashOfConfig":"45"},{"size":3089,"mtime":1628160428908,"results":"69","hashOfConfig":"45"},{"size":255,"mtime":1628054955624,"results":"70","hashOfConfig":"45"},{"size":788,"mtime":1628054956945,"results":"71","hashOfConfig":"45"},{"size":407,"mtime":1628054956635,"results":"72","hashOfConfig":"45"},{"size":1588,"mtime":1628055735966,"results":"73","hashOfConfig":"45"},{"size":5143,"mtime":1628182079369,"results":"74","hashOfConfig":"45"},{"size":460,"mtime":1628055160384,"results":"75","hashOfConfig":"45"},{"size":221,"mtime":1628055314881,"results":"76","hashOfConfig":"45"},{"size":2380,"mtime":1628148380009,"results":"77","hashOfConfig":"45"},{"size":372,"mtime":1628153745496,"results":"78","hashOfConfig":"45"},{"size":252,"mtime":1628154010286,"results":"79","hashOfConfig":"45"},{"size":477,"mtime":1628161081403,"results":"80","hashOfConfig":"45"},{"size":2636,"mtime":1628156392906,"results":"81","hashOfConfig":"45"},{"size":2614,"mtime":1628156639427,"results":"82","hashOfConfig":"45"},{"size":4245,"mtime":1628160316564,"results":"83","hashOfConfig":"45"},{"size":1121,"mtime":1628161278475,"results":"84","hashOfConfig":"45"},{"size":463,"mtime":1628161089676,"results":"85","hashOfConfig":"45"},{"size":2001,"mtime":1628182049676,"results":"86","hashOfConfig":"45"},{"size":1169,"mtime":1628182780500,"results":"87","hashOfConfig":"45"},{"filePath":"88","messages":"89","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},"1g1ret8",{"filePath":"91","messages":"92","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"93","messages":"94","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"95","messages":"96","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"97","messages":"98","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"99","messages":"100","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"101","messages":"102","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"103","messages":"104","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"105","messages":"106","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"107","usedDeprecatedRules":"90"},{"filePath":"108","messages":"109","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"110","messages":"111","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"112","messages":"113","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"114","messages":"115","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"116","messages":"117","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"118","messages":"119","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"120","messages":"121","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"122","messages":"123","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"124","messages":"125","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"126","messages":"127","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"128","messages":"129","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"130","messages":"131","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"132","messages":"133","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"134","messages":"135","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"136","messages":"137","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"138","messages":"139","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"140","messages":"141","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"142","messages":"143","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"144","messages":"145","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"146","messages":"147","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"148","messages":"149","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"150","messages":"151","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"152","messages":"153","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"154","messages":"155","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"156","messages":"157","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"158","messages":"159","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"160","messages":"161","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"162","messages":"163","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"164","messages":"165","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"166","messages":"167","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"168","messages":"169","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"170","messages":"171","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"172","messages":"173","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},{"filePath":"174","messages":"175","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"90"},"/home/skull/lab-report-management-system/src/index.js",[],["176","177"],"/home/skull/lab-report-management-system/src/pages/App.js",[],"/home/skull/lab-report-management-system/src/pages/Login.js",[],"/home/skull/lab-report-management-system/src/pages/Dashboard.js",[],"/home/skull/lab-report-management-system/src/constants.js",[],"/home/skull/lab-report-management-system/src/pages/ResetPassword.js",[],"/home/skull/lab-report-management-system/src/contexts/AuthContext.js",[],"/home/skull/lab-report-management-system/src/pages/UpdatePassword.js",[],"/home/skull/lab-report-management-system/src/pages/CreateReport.js",["178"],"import React, { useState, useEffect } from \"react\";\nimport {\n Container,\n Row,\n Button,\n} from \"react-bootstrap\";\nimport { useLocation, useHistory } from \"react-router-dom\";\nimport { Formik, Form } from 'formik';\nimport toast from 'react-hot-toast';\n\n// Report Components\nimport {\n SerialNoFields,\n CandidateInfoFields,\n MedicalExaminationFields,\n LabInvestigationFields,\n Remarks,\n} from '@Components/Report';\n\n// Firebase Service\nimport ReportsApi from '@Services/firebase.service'\n\n// Helpers\nimport GeneratePDF from \"@Helpers/pdf.helper\";\nimport { formatSavingData } from '@Helpers/data.helper';\n\n// Constants\nimport { REPORT_FIELDS } from '../constants'\n\nfunction CreateReport() {\n // States related to Modal\n const [data, setData] = useState({\n report: {...REPORT_FIELDS},\n edit: false,\n });\n\n const [loading, setLoading] = useState(false);\n const [saving, setSaving] = useState(false);\n const [error, setError] = useState(\"\");\n\n const location = useLocation();\n const history = useHistory();\n\n async function saveAndGenerateReport(formData) {\n setSaving(true);\n const id = toast.loading('Saving report ...');\n\n const formattedFormData = formatSavingData(formData);\n try {\n await GeneratePDF(formattedFormData, formData.reportCompleted);\n\n if (data.edit) {\n await ReportsApi.update(formattedFormData);\n } else {\n await ReportsApi.save(formattedFormData);\n }\n\n toast.success('Report saved successfully', { id });\n setError(\"\");\n history.push(\"/dashboard/reports\");\n } catch (err) {\n toast.error('An error occurred while saving report, please try again', { id });\n console.log(err);\n setError(`${err}`);\n }\n\n setSaving(false);\n }\n\n useEffect(() => {\n async function fetchData() {\n setLoading(true);\n \n const queryParams = new URLSearchParams(location.search);\n const labSrNo = queryParams.get(\"edit\");\n const editReport = (labSrNo ? true : false);\n \n const toastId = (editReport ?\n toast.loading('loading report data ...') :\n toast.loading('creating an empty report ...'));\n\n\n const data = ( \n editReport ? \n await ReportsApi.getById(labSrNo) : \n await ReportsApi.getCurrent() \n );\n \n if (data) {\n const reportData = (\n editReport ? \n data : {\n id: data.id,\n lab: data.lab,\n refrence: data.refrence,\n labSrNo: `MT_${data.lab + 1}`,\n refrenceNo: `MT_${data.refrence + 1}`,\n ...REPORT_FIELDS\n }\n )\n if (editReport)\n toast.success('Now you can edit the report', { id: toastId });\n else\n toast.success('Go Ahead ! report is ready.', { id: toastId });\n \n setData({\n report: reportData,\n edit: editReport,\n });\n } else {\n toast.error('No report found with this serial no.', { id: toastId });\n history.push(\"/dashboard/reports\");\n }\n\n setLoading(false);\n }\n fetchData();\n },[]);\n\n return (\n <>\n {loading ? (\n <Container className=\"pt-4 text-center\">\n <img src=\"/assets/images/loader.gif\" alt=\"loader\"/>\n </Container>\n ) : (\n <Container\n style={{\n marginBottom: '5rem'\n }}\n className=\"pt-4\"\n >\n <Row className=\"fill-report-icon text-center justify-content-center\">\n <img\n src=\"/assets/images/fill-report.png\"\n alt=\"fill-report-icon\"\n style={{ width: \"5rem\" }}\n />\n </Row>\n\n <Formik\n initialValues={ \n data.report\n }\n onSubmit={ async (values) => {\n await saveAndGenerateReport(values);\n }}\n >\n <Form>\n <br />\n <SerialNoFields />\n <br />\n <CandidateInfoFields />\n <br />\n <MedicalExaminationFields />\n <br />\n <LabInvestigationFields />\n <br />\n <Remarks\n error={error}\n />\n <br />\n <Button\n disabled={saving}\n type=\"submit\"\n className=\"px-4 py-2\"\n style={{\n fontSize: \"1.2rem\",\n letterSpacing: \"2px\",\n fontFamily: 'Ubuntu, sans-serif',\n marginTop: '2rem' \n }}\n >\n GENERATE REPORT\n </Button>\n </Form>\n </Formik>\n </Container>\n )}\n </>\n );\n}\n\nexport default CreateReport;\n","/home/skull/lab-report-management-system/src/pages/Reports.js",[],"/home/skull/lab-report-management-system/src/firebase.config.js",[],"/home/skull/lab-report-management-system/src/services/firebase.service.js",[],"/home/skull/lab-report-management-system/src/components/Form/ReactiveFields/ExpiryDateField.js",[],"/home/skull/lab-report-management-system/src/components/Form/ReactiveFields/Pregnancy.js",[],"/home/skull/lab-report-management-system/src/components/Form/ReactiveFields/DisplayPhoto.js",[],"/home/skull/lab-report-management-system/src/components/Form/TextArea.js",[],"/home/skull/lab-report-management-system/src/components/Form/FileUpload.js",[],"/home/skull/lab-report-management-system/src/utils/data.helper.js",[],"/home/skull/lab-report-management-system/src/utils/date.helper.js",[],"/home/skull/lab-report-management-system/src/components/Form/TextField.js",[],"/home/skull/lab-report-management-system/src/components/Form/SelectField.js",[],"/home/skull/lab-report-management-system/src/components/Form/DateField.js",[],"/home/skull/lab-report-management-system/src/components/Form/TextFieldWithUnit.js",[],"/home/skull/lab-report-management-system/src/components/Layouts/Col.js",[],"/home/skull/lab-report-management-system/src/components/NavigationBar.js",[],"/home/skull/lab-report-management-system/src/components/Heading.js",[],"/home/skull/lab-report-management-system/src/components/QuickAccessButtons.js",[],"/home/skull/lab-report-management-system/src/components/PrivateRoute.js",[],"/home/skull/lab-report-management-system/src/components/UpdateReferenceModal.js",[],"/home/skull/lab-report-management-system/src/components/TableView.js",[],"/home/skull/lab-report-management-system/src/components/index.js",[],"/home/skull/lab-report-management-system/src/components/Layouts/AppLayout.js",[],"/home/skull/lab-report-management-system/src/pages/Signup.js",[],"/home/skull/lab-report-management-system/src/components/Form/index.js",[],"/home/skull/lab-report-management-system/src/components/Form/ReactiveFields/index.js",[],"/home/skull/lab-report-management-system/src/components/Report/index.js",[],"/home/skull/lab-report-management-system/src/components/Report/CandidateInfoFields.js",[],"/home/skull/lab-report-management-system/src/components/Report/MedicalExaminationFields.js",[],"/home/skull/lab-report-management-system/src/components/Report/LabInvestigationFields.js",[],"/home/skull/lab-report-management-system/src/components/Report/Remarks.js",[],"/home/skull/lab-report-management-system/src/components/Report/SerialNoFields.js",[],"/home/skull/lab-report-management-system/src/utils/pdf.helper.js",[],"/home/skull/lab-report-management-system/src/utils/cache.helper.js",[],{"ruleId":"179","replacedBy":"180"},{"ruleId":"181","replacedBy":"182"},{"ruleId":"183","severity":1,"message":"184","line":118,"column":5,"nodeType":"185","endLine":118,"endColumn":7,"suggestions":"186"},"no-native-reassign",["187"],"no-negated-in-lhs",["188"],"react-hooks/exhaustive-deps","React Hook useEffect has missing dependencies: 'history' and 'location.search'. Either include them or remove the dependency array.","ArrayExpression",["189"],"no-global-assign","no-unsafe-negation",{"desc":"190","fix":"191"},"Update the dependencies array to be: [history, location.search]",{"range":"192","text":"193"},[3202,3204],"[history, location.search]"]