Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 52.14.125.137
Current Path : /var/www/tdvsapp/static/js/ |
| Current File : /var/www/tdvsapp/static/js/main.b013322d.chunk.js.map |
{"version":3,"sources":["polyfill.js","App.js","AppProvider.js","index.js","context/appContext.js"],"names":["window","CustomEvent","event","params","bubbles","cancelable","detail","undefined","evt","document","createEvent","initCustomEvent","prototype","Event","DefaultLayout","React","lazy","Promise","all","__webpack_require__","e","then","bind","Login","AdminLogin","DashBoard","TwoFactorAuth","Register","Page404","Page500","ForgotPasswd","BarcodeScan","BarcodeDropZone","MarksClassContext","ViewEvaluation","VerticalEvaluation","App","_useContext","useContext","AppContext","load","err_msg","_useContext2","confirm_err_msg","confirmload","_load","Object","slicedToArray","loader","_err_msg","error","dispatch_err","_confirm_err_msg","confirm_error","dispatch_confirm_err","react_default","a","createElement","Dimmer","active","page","Loader","size","Modal","open","dimmer","Header","style","backgroundColor","color","header","Content","dangerouslySetInnerHTML","__html","message","Actions","Button","positive","onClick","type","basic","content","react_router_dom","Suspense","fallback","className","react_router","exact","path","name","render","props","from","to","AppProvider","appContext","src_App","ReactDOM","getElementById","createContext","messgeBoxReducer","state","action","payload","toLowerCase","confirmMessgeBoxReducer","confirm","__webpack_exports__","_ref","children","_useReducer","useReducer","_useReducer2","_Users_shivu_Documents_work_tdvs_react_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__","_useReducer3","_useReducer4","_useState","useState","_useState2","setLoader","_useState3","_useState4","token","setToken","_useState5","_useState6","fteachcode","setFteachcode","_useState7","_useState8","fqpcode","setFqpcode","_useState9","_useState10","isreviewer","setIsreviewer","_useState11","_useState12","fvalno","setFvalno","_useState13","_useState14","univcode","setUnivcode","useEffect","sessionStorage","getItem","appStore","auth_token","teachcode","qpcode","rev","val","react__WEBPACK_IMPORTED_MODULE_1___default","Provider","value"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vB,mBAAS,MAAKwB,EAAA/F,OAAAmE,EAAA,EAAAnE,CAAA8F,EAAA,GAAvCE,EAAQD,EAAA,GAAEE,EAAWF,EAAA,GAE5BG,oBAAU,WACmC,UAAvCC,eAAeC,QAAQ,YACzBH,EAAY,OACoC,SAAvCE,eAAeC,QAAQ,YAChCH,EAAY,OACoC,SAAvCE,eAAeC,QAAQ,YAChCH,EAAY,OACoC,UAAvCE,eAAeC,QAAQ,YAChCH,EAAY,OACoC,SAAvCE,eAAeC,QAAQ,YAChCH,EAAY,OACoC,UAAvCE,eAAeC,QAAQ,YAChCH,EAAY,OACoC,SAAvCE,eAAeC,QAAQ,YAChCH,EAAY,OACoC,UAAvCE,eAAeC,QAAQ,YAChCH,EAAY,OACoC,aAAvCE,eAAeC,QAAQ,YAChCH,EAAY,OACoC,YAAvCE,eAAeC,QAAQ,YAChCH,EAAY,OACmC,SAAvCE,eAAeC,QAAQ,YAC/BH,EAAY,QACmC,WAAvCE,eAAeC,QAAQ,YAC/BH,EAAY,OACmC,YAAvCE,eAAeC,QAAQ,YAC/BH,EAAY,OAGZA,EAAYE,eAAeC,QAAQ,cAEpC,IAEH,IAAMC,EAAW,CACf1G,QAAS,CAACS,EAAOC,GACjBR,gBAAiB,CAACU,EAAeC,GACjCd,KAAM,CAACQ,EAAQuE,GACf6B,WAAY,CAAC1B,EAAOC,GACpB0B,UAAW,CAACvB,EAAYC,GACxBuB,OAAQ,CAACpB,EAASC,GAClBoB,IAAK,CAACjB,EAAYC,GAClBiB,IAAK,CAACd,EAAQC,GACdG,SAAUA,GAEZ,OAAOW,EAAAjG,EAAAC,cAAClB,EAAWmH,SAAQ,CAACC,MAAOR,GAAWtC","file":"static/js/main.b013322d.chunk.js","sourcesContent":["/*\n* required polyfills\n*/\nimport \"core-js\";\nimport 'core-js/features/set/map';\n\n/** IE9, IE10 and IE11 requires all of the following polyfills. **/\n// import 'core-js/es6/symbol'\n// import 'core-js/es6/object'\n// import 'core-js/es6/function'\n// import 'core-js/es6/parse-int'\n// import 'core-js/es6/parse-float'\n// import 'core-js/es6/number'\n// import 'core-js/es6/math'\n// import 'core-js/es6/string'\n// import 'core-js/es6/date'\n// import 'core-js/es6/array'\n// import 'core-js/es6/regexp'\n// import 'core-js/es6/map'\n// import 'core-js/es6/weak-map'\n// import 'core-js/es6/set'\n// import 'core-js/es7/object'\n\n/** IE10 and IE11 requires the following for the Reflect API. */\n// import 'core-js/es6/reflect'\n\n/** Evergreen browsers require these. **/\n// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.\n// import 'core-js/es7/reflect'\n\n// CustomEvent() constructor functionality in IE9, IE10, IE11\n(function () {\n\n if ( typeof window.CustomEvent === \"function\" ) return false\n\n function CustomEvent ( event, params ) {\n params = params || { bubbles: false, cancelable: false, detail: undefined }\n var evt = document.createEvent( 'CustomEvent' )\n evt.initCustomEvent( event, params.bubbles, params.cancelable, params.detail )\n return evt\n }\n\n CustomEvent.prototype = window.Event.prototype\n\n window.CustomEvent = CustomEvent\n})()\n","import React, { useContext } from \"react\";\nimport {\n HashRouter,\n BrowserRouter as Router,\n Route,\n Switch,\n Redirect,\n} from \"react-router-dom\";\nimport { AppContext } from \"./context/appContext\";\n// import { renderRoutes } from 'react-router-config';\n// import \"./App.scss\";\n\nimport { Dimmer, Loader, Modal, Button } from \"semantic-ui-react\";\nconst loading = () => (\n <div className=\"animated fadeIn pt-3 text-center\">Loading...</div>\n);\n\n// Containers\nconst DefaultLayout = React.lazy(() => import(\"./containers/DefaultLayout\"));\n\n// Pages\nconst Login = React.lazy(() => import(\"./views/Login\"));\nconst AdminLogin = React.lazy(() => import(\"./admin/views/Login/Login\"));\nconst DashBoard = React.lazy(() => import(\"./admin/views/DashBoard/DashBoard\"));\nconst TwoFactorAuth = React.lazy(() => import(\"./views/2FAOTP/TwoFactorAuth\"));\n\nconst Register = React.lazy(() => import(\"./views/Register/index\"));\nconst Page404 = React.lazy(() => import(\"./views/Page404\"));\nconst Page500 = React.lazy(() => import(\"./views/Page500\"));\nconst ForgotPasswd = React.lazy(() =>\n import(\"./views/ForgotPasswd/ForgotPasswd\")\n);\n\nconst BarcodeScan = React.lazy(() => import(\"./views/barcode/index\"));\nconst BarcodeDropZone = React.lazy(() => import(\"./views/barcode/dropZone\"));\nconst MarksClassContext = React.lazy(() => import(\"./views/Evaluation\"));\nconst ViewEvaluation = React.lazy(() => import(\"./views/ViewEval\"));\nconst VerticalEvaluation = React.lazy(() =>\n import(\"./views/Evaluation/VerticalEvaluation/VerticalEvaluation\")\n);\n\nconst App = () => {\n const { load, err_msg } = useContext(AppContext);\n const { confirmload, confirm_err_msg } = useContext(AppContext);\n const [loader, setLoader] = load;\n const [error, dispatch_err] = err_msg;\n const [confirm_error, dispatch_confirm_err] = confirm_err_msg;\n // setLoader(true);\n\n return (\n <div>\n <Dimmer active={loader} page>\n <Loader size=\"massive\">Loading</Loader>\n </Dimmer>\n <Modal size={\"mini\"} open={error.open} dimmer=\"inverted\">\n <Modal.Header style={{ backgroundColor: error.color, color: \"#fff\" }}>\n {error.header}\n </Modal.Header>\n <Modal.Content>\n <div dangerouslySetInnerHTML={{ __html: error.message }} />\n\n {/* <p>{error.message}</p> */}\n </Modal.Content>\n <Modal.Actions>\n <Button\n style={{ backgroundColor: error.color }}\n positive\n onClick={() => dispatch_err({ type: \"CLOSE_MSG_BOX\" })}\n >\n OK\n </Button>\n </Modal.Actions>\n </Modal>\n\n <Modal size={\"mini\"} open={confirm_error.open} dimmer=\"inverted\">\n <Modal.Header\n style={{ backgroundColor: confirm_error.color, color: \"#fff\" }}\n >\n {confirm_error.header}\n </Modal.Header>\n <Modal.Content>\n <div dangerouslySetInnerHTML={{ __html: confirm_error.message }} />\n\n {/* <p>{confirm_error.message}</p> */}\n </Modal.Content>\n <Modal.Actions>\n <Button\n basic\n color=\"red\"\n content=\"Red\"\n onClick={() =>\n dispatch_confirm_err({ type: \"CLOSE_CONFIRM_MSG_BOX\" })\n }\n >\n CANCEL\n </Button>\n <Button\n basic\n color=\"blue\"\n content=\"Blue\"\n onClick={() => dispatch_confirm_err({ type: \"OK_CONFIRM_MSG_BOX\" })}\n >\n OK\n </Button>\n </Modal.Actions>\n </Modal>\n\n <HashRouter>\n <React.Suspense fallback={loading()}>\n <Switch>\n <Route\n exact\n path={[\n \"/bcu\",\n \"/rcub\",\n \"/dud\",\n \"/sdu\",\n \"/demo\",\n \"/gcg\",\n \"/srun\",\n \"/acu\",\n \"/dypatil\",\n \"/reva\",\n \"/msruas\",\n \"/kus\",\n \"/vskub\",\n \"/surana\",\n \"/acm\",\n \"/epcet\",\n \"/jssun\",\n ]}\n //path=\"/\"\n name=\"Login Page\"\n render={(props) => <Login {...props} />}\n />\n <Route\n exact\n path={[\n \"/bcu/admin\",\n \"/rcub/admin\",\n \"/sdu/admin\",\n \"/dud/admin\",\n \"/demo/admin\",\n \"/gcg/admin\",\n \"/srun/admin\",\n \"/acu/admin\",\n \"/dypatil/admin\",\n \"/reva/admin\",\n \"/msruas/admin\",\n \"/kus/admin\",\n \"/vskub/admin\",\n \"/surana/admin\",\n \"/acm/admin\",\n \"/epcet/admin\",\n \"/jssun/admin\",\n ]}\n name=\"Admin Login Page\"\n render={(props) => <AdminLogin {...props} />}\n />\n\n <Route\n path=\"/admin\"\n name=\"Admin Login Page\"\n render={(props) => <DashBoard {...props} />}\n />\n\n <Route\n exact\n path=\"/twofa\"\n name=\"Two Factor Auth\"\n render={(props) => <TwoFactorAuth {...props} />}\n />\n\n <Route\n exact\n path=\"/register\"\n name=\"Register Page\"\n render={(props) => <Register {...props} />}\n />\n\n <Route\n exact\n path=\"/forgot-passwd\"\n name=\"Forgot Password\"\n render={(props) => <ForgotPasswd {...props} />}\n />\n\n <Route\n exact\n path=\"/404\"\n name=\"Page 404\"\n render={(props) => <Page404 {...props} />}\n />\n\n <Route\n exact\n path=\"/500\"\n name=\"Page 500\"\n render={(props) => <Page500 {...props} />}\n />\n <Route\n exact\n path=\"/barcode\"\n name=\"Barcode\"\n render={(props) => <BarcodeScan {...props} />}\n />\n <Route\n exact\n path=\"/barcode-drop\"\n name=\"Barcode Dropzone\"\n render={(props) => <BarcodeDropZone {...props} />}\n />\n <Route\n exact\n path=\"/evaluate/:ifqpcode/:ifregcode/:ifvalno\"\n name=\"Evaluation\"\n render={(props) => <MarksClassContext {...props} />}\n />\n\n <Route\n exact\n path=\"/viewEval/:ifqpcode/:ifregcode/:ifvalno\"\n name=\"View Evaluation\"\n render={(props) => <ViewEvaluation {...props} />}\n />\n\n <Route\n path=\"/dashboard\"\n name=\"Home\"\n render={(props) => <DefaultLayout {...props} />}\n />\n <Route\n exact\n path=\"/verticalEvaluate/:qpcode/:regcode/:valno\"\n name=\"Evaluation\"\n render={(props) => <VerticalEvaluation {...props} />}\n />\n <Redirect from=\"/\" to=\"/404\" />\n </Switch>\n </React.Suspense>\n </HashRouter>\n </div>\n );\n};\n\nexport default App;\n","import React from \"react\";\nimport AppProvider from \"./context/appContext\";\nimport App from \"./App\";\n\nexport default () => {\n return (\n <AppProvider>\n <App />\n </AppProvider>\n );\n};\n","// import \"react-app-polyfill/ie9\"; // For IE 9-11 support\n// import \"react-app-polyfill/stable\";\n// import 'react-app-polyfill/ie11'; // For IE 11 support\nimport \"./polyfill\";\nimport React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport \"semantic-ui-css/semantic.min.css\";\nimport \"./index.css\";\n\nimport App from \"./AppProvider\";\n// import * as serviceWorker from './serviceWorker';\n\nReactDOM.render(<App />, document.getElementById(\"root\"));\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: http://bit.ly/CRA-PWA\n// serviceWorker.unregister();\n","import React, { useState, useReducer, useEffect } from \"react\";\nexport const AppContext = React.createContext(null);\n\nfunction messgeBoxReducer(state, action) {\n switch (action.type) {\n case \"CLOSE_MSG_BOX\":\n return { open: false, header: \"\", message: \"\", color: \"\" };\n case \"OPEN_MSG_BOX\":\n \t\n let color = '#1c8bc3';\n if(action.payload.header.toLowerCase() == \"error\")\n color = '#e53935';\n else if(action.payload.header.toLowerCase() == \"success\")\n color = '#388e3c';\n\n return {\n open: true,\n header: action.payload.header,\n message: action.payload.message,\n color: color,\n };\n default:\n return state;\n }\n}\nfunction confirmMessgeBoxReducer(state, action) {\n switch (action.type) {\n case \"CLOSE_CONFIRM_MSG_BOX\":\n return { open: false, header: \"\", message: \"\", color: \"\" };\n case \"OPEN_CONFIRM_MSG_BOX\":\n let color = \"#3d6a7f\";\n return {\n open: true,\n header: action.payload.header,\n message: action.payload.message,\n color: color,\n };\n case \"CANCEL_CONFIRM_MSG_BOX\":\n return { open: false, header: \"\", message: \"\", color: \"\", confirm: \"\" };\n case \"OK_CONFIRM_MSG_BOX\":\n return { open: false, header: \"\", message: \"\", color: \"\", confirm: \"ok\" };\n default:\n return state;\n }\n}\n\nexport default ({ children }) => {\n // const [app_data, dispatch_app] = useReducer(appReducer, appInit);\n\n const initMgsState = { open: false, header: \"\", message: \"\", color: \"\" };\n const initMgsStateConfirm = {\n open: false,\n header: \"\",\n message: \"\",\n color: \"\",\n confirm: \"ok\",\n };\n\n const [error, dispatch_err] = useReducer(messgeBoxReducer, initMgsState);\n\n const [confirm_error, dispatch_confirm_err] = useReducer(\n confirmMessgeBoxReducer,\n initMgsStateConfirm\n );\n\n const [loader, setLoader] = useState(false);\n\n const [token, setToken] = useState(\"\");\n\n const [fteachcode, setFteachcode] = useState(\"\");\n const [fqpcode, setFqpcode] = useState(\"\");\n const [isreviewer, setIsreviewer] = useState(false);\n const [fvalno, setFvalno] = useState(\"\");\n const [univcode, setUnivcode] = useState(null);\n\n useEffect(() => {\n if (sessionStorage.getItem(\"rootPath\") === \"/srun\") {\n setUnivcode(\"050\");\n } else if (sessionStorage.getItem(\"rootPath\") === \"/gcg\") {\n setUnivcode(\"033\");\n } else if (sessionStorage.getItem(\"rootPath\") === \"/bcu\") {\n setUnivcode(\"041\");\n } else if (sessionStorage.getItem(\"rootPath\") === \"/rcub\") {\n setUnivcode(\"027\");\n } else if (sessionStorage.getItem(\"rootPath\") === \"/sdu\") {\n setUnivcode(\"020\");\n } else if (sessionStorage.getItem(\"rootPath\") === \"/demo\") {\n setUnivcode(\"098\");\n } else if (sessionStorage.getItem(\"rootPath\") === \"/acu\") {\n setUnivcode(\"040\");\n } else if (sessionStorage.getItem(\"rootPath\") === \"/reva\") {\n setUnivcode(\"030\");\n } else if (sessionStorage.getItem(\"rootPath\") === \"/dypatil\") {\n setUnivcode(\"051\");\n } else if (sessionStorage.getItem(\"rootPath\") === \"/msruas\") {\n setUnivcode(\"053\");\n }else if (sessionStorage.getItem(\"rootPath\") === \"/kus\") {\n setUnivcode(\"003D\");\n }else if (sessionStorage.getItem(\"rootPath\") === \"/vskub\") {\n setUnivcode(\"026\");\n }else if (sessionStorage.getItem(\"rootPath\") === \"/surana\") {\n setUnivcode(\"060\");\n } \n else {\n setUnivcode(sessionStorage.getItem(\"univcode\"));\n }\n }, []);\n\n const appStore = {\n err_msg: [error, dispatch_err],\n confirm_err_msg: [confirm_error, dispatch_confirm_err],\n load: [loader, setLoader],\n auth_token: [token, setToken],\n teachcode: [fteachcode, setFteachcode],\n qpcode: [fqpcode, setFqpcode],\n rev: [isreviewer, setIsreviewer],\n val: [fvalno, setFvalno],\n univcode: univcode,\n };\n return <AppContext.Provider value={appStore}>{children}</AppContext.Provider>;\n};\n"],"sourceRoot":""}
|