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 : 3.144.227.73
{"version":3,"sources":["pages/uplcorrdoc/viewcorrdoc.js","../node_modules/semantic-ui-react/dist/es/elements/Divider/Divider.js","actions/uploadCorrDoc/index.js"],"names":["viewCorrectionDoc","state","viewType","handleChangeViewType","e","data","_this","setState","value","handleSubmitViewDoc","_callee","error","_Users_prashanth_univadmin_react_node_modules_babel_preset_react_app_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default","a","wrap","_context","prev","next","header","content","props","showError","abrupt","viewuplcorrdoc","stop","this","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","Fragment","semantic_ui_react__WEBPACK_IMPORTED_MODULE_8__","fluid","Content","Header","style","display","className","react_router_dom__WEBPACK_IMPORTED_MODULE_14__","to","pathname","semantic_ui_react__WEBPACK_IMPORTED_MODULE_9__","basic","color","icon","semantic_ui_react__WEBPACK_IMPORTED_MODULE_10__","Description","overflowY","semantic_ui_react__WEBPACK_IMPORTED_MODULE_11__","height","Field","width","semantic_ui_react__WEBPACK_IMPORTED_MODULE_12__","search","selection","id","name","options","key","text","onChange","placeholder","onClick","Object","keys","viewuploaddoccorr","length","semantic_ui_react__WEBPACK_IMPORTED_MODULE_13__","celled","padded","Row","HeaderCell","singleLine","textAlign","Body","map","el","i","Cell","fid","ftype","fremarks","href","fdocpath","target","fdate","Component","connect","console","log","_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__","__webpack_require__","_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default","n","classnames__WEBPACK_IMPORTED_MODULE_1__","classnames__WEBPACK_IMPORTED_MODULE_1___default","react__WEBPACK_IMPORTED_MODULE_2__","react__WEBPACK_IMPORTED_MODULE_2___default","_lib__WEBPACK_IMPORTED_MODULE_3__","_lib__WEBPACK_IMPORTED_MODULE_4__","_lib__WEBPACK_IMPORTED_MODULE_5__","_lib__WEBPACK_IMPORTED_MODULE_6__","Divider","children","clearing","fitted","hidden","horizontal","inverted","section","vertical","classes","rest","ElementType","isNil","handledProps","propTypes","__webpack_exports__","saveuplcorrdoc","_ref","_Users_prashanth_univadmin_react_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__","mark","dispatch","getState","response","_error","type","univadmin","get","params","univcode","user","fcuruniv","remarks","sent","error_code","msg","payload","_x","_x2","apply","arguments","uploadCorr","file","_ref2","_callee2","formData","_context2","FormData","set","post","headers","Content-type","_x3","_x4","uploadDocData","doc","_ref3","_callee3","_error2","_error3","_context3","gfilename","upload","fqpfilenm","univ","funivcode","uploaddoccorr","_x5","_x6","_ref4","_callee4","_error4","_context4","_x7","_x8"],"mappings":"2RAgBMA,qNACJC,MAAQ,CACNC,SAAU,MAGZC,qBAAuB,SAACC,EAAGC,GACzBC,EAAKC,SAAS,CACZL,SAAUG,EAAKG,WAInBC,yCAAsB,SAAAC,IAAA,IAAAC,EAAA,OAAAC,EAAAC,EAAAC,KAAA,SAAAC,GAAA,cAAAA,EAAAC,KAAAD,EAAAE,MAAA,UACQ,KAAxBX,EAAKL,MAAMC,SADK,CAAAa,EAAAE,KAAA,eAEZN,EAAQ,CAAEO,OAAQ,QAASC,QAAS,eAC1Cb,EAAKc,MAAMC,UAAUV,GAHHI,EAAAO,OAAA,wBAAAP,EAAAE,KAAA,EAOdX,EAAKc,MAAMG,eAAejB,EAAKL,OAPjB,wBAAAc,EAAAS,SAAAd,8EAUb,IACCR,EAAauB,KAAKxB,MAAlBC,SAkBR,OACEwB,EAAAb,EAAAc,cAAAD,EAAAb,EAAAe,SAAA,KACEF,EAAAb,EAAAc,cAACE,EAAA,EAAD,CAAMC,OAAK,GACTJ,EAAAb,EAAAc,cAACE,EAAA,EAAKE,QAAN,KACEL,EAAAb,EAAAc,cAACE,EAAA,EAAKG,OAAN,CAAaC,MAAO,CAAEC,QAAS,SAC7BR,E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UV,MAEbA,EAAQ,CAAEO,OAAQ,QAASC,QAASuG,EAASrH,KAAKA,KAAKiI,KAC7Dd,EAASnG,YAAUV,KAhChB,wBAAAoJ,EAAAvI,SAAAoI,MAAP,gBAAAU,EAAAC,GAAA,OAAAZ,EAAAjB,MAAAjH,KAAAkH,YAAA,IAqCWpH,EAAiB,SAACqG,GAC7B,sBAAA4C,EAAA3G,OAAAyD,EAAA,EAAAzD,CAAAjD,EAAAC,EAAA0G,KAAO,SAAAkD,EAAgBjD,EAAUC,GAA1B,IAAAxH,EAAAyH,EAAA/G,EAAA+J,EAAA,OAAA9J,EAAAC,EAAAC,KAAA,SAAA6J,GAAA,cAAAA,EAAA3J,KAAA2J,EAAA1J,MAAA,cACChB,EAAQwH,IACdD,EAAS,CACPI,KAAM,eAERJ,EAAS,CACPI,KAAM,mBAERJ,EAAS,CACPI,KAAM,qBATH+C,EAAA1J,KAAA,EAYkB4G,IAAUC,IAAI,WAAY,CAC/CC,OAAQ,CACNlH,EAAG,iBACH+G,KAAMA,EAAK1H,SACX8H,SAAU/H,EAAMgI,KAAKC,YAhBpB,OAYCR,EAZDiD,EAAAvC,KAmBLZ,EAAS,CACPI,KAAM,iBAGqB,kBAAlBF,EAASrH,MACZM,EAAQ,CACZO,OAAQ,QACRC,QAAS,wBAEXqG,EAASnG,YAAUV,MACoB,IAA9B+G,EAASrH,KAAKgI,YACjB1H,EAAQ,CAAEO,OAAQ,QAASC,QAASuG,EAASrH,KAAKA,KAAKiI,KAC7Dd,EAASnG,YAAUV,KAEnB6G,EAAS,CACPI,KAAM,sBACNW,QAASb,EAASrH,OAnCjB,wBAAAsK,EAAAnJ,SAAAiJ,MAAP,gBAAAG,EAAAC,GAAA,OAAAL,EAAA9B,MAAAjH,KAAAkH,YAAA","file":"static/js/47.92738221.chunk.js","sourcesContent":["import React, { Component } from \"react\";\nimport {\n Card,\n Button,\n Dropdown,\n Divider,\n Form,\n Table,\n} from \"semantic-ui-react\";\nimport { Link } from \"react-router-dom\";\nimport { connect } from \"react-redux\";\nimport { showError } from \"../../actions\";\nimport { viewuplcorrdoc } from \"../../actions/uploadCorrDoc\";\n\nimport \"react-checkbox-tree/lib/react-checkbox-tree.css\";\n\nclass viewCorrectionDoc extends Component {\n state = {\n viewType: \"\",\n };\n\n handleChangeViewType = (e, data) => {\n this.setState({\n viewType: data.value,\n });\n };\n\n handleSubmitViewDoc = async () => {\n if (this.state.viewType === \"\") {\n const error = { header: \"Error\", content: \"Select Type\" };\n this.props.showError(error);\n return;\n }\n\n await this.props.viewuplcorrdoc(this.state);\n };\n\n render() {\n const { viewType } = this.state;\n const type_options = [\n {\n key: 1,\n value: \"MM\",\n text: \"Marks Modification\",\n },\n {\n key: 2,\n value: \"Withheld Result\",\n text: \"Withheld Result\",\n },\n {\n key: 3,\n value: \"Other\",\n text: \"Other\",\n },\n ];\n return (\n <>\n <Card fluid>\n <Card.Content>\n <Card.Header style={{ display: \"flex\" }}>\n <h3>View Correction Document</h3>\n <div className=\"ml-auto\">\n <Link\n to={{\n pathname: \"/uplcorrdoc\",\n }}\n >\n <Button basic color=\"blue\" content=\"Back\" icon=\"arrow left\" />\n </Link>\n <Link to=\"/viewcorrectondoc\">\n <Button basic color=\"blue\" content=\"View\" icon=\"eye\" />\n </Link>\n <Link to=\"/dashboard\">\n <Button basic color=\"red\" content=\"Exit\" icon=\"home\" />\n </Link>\n </div>\n </Card.Header>\n <Divider />\n <Card.Description style={{ overflowY: \"auto\" }}>\n <Form style={{ height: \"180px\" }}>\n <Form.Field width={8}>\n <label>Type</label>\n <Dropdown\n search\n selection\n id=\"ftype\"\n name=\"ftype\"\n options={type_options}\n onChange={this.handleChangeViewType}\n value={viewType}\n placeholder=\"Type\"\n />\n </Form.Field>\n\n <Form.Field>\n <Button\n content=\"Submit\"\n color=\"blue\"\n onClick={this.handleSubmitViewDoc}\n />\n </Form.Field>\n </Form>\n\n {Object.keys(this.props.viewuploaddoccorr).length > 0 ? (\n <Table celled padded>\n <Table.Header>\n <Table.Row>\n <Table.HeaderCell\n singleLine\n style={{ textAlign: \"center\" }}\n >\n ID\n </Table.HeaderCell>\n <Table.HeaderCell style={{ textAlign: \"center\" }}>\n Type\n </Table.HeaderCell>\n <Table.HeaderCell style={{ textAlign: \"center\" }}>\n Remarks\n </Table.HeaderCell>\n <Table.HeaderCell style={{ textAlign: \"center\" }}>\n Document\n </Table.HeaderCell>\n <Table.HeaderCell style={{ textAlign: \"center\" }}>\n Date\n </Table.HeaderCell>\n </Table.Row>\n </Table.Header>\n\n <Table.Body>\n {this.props.viewuploaddoccorr.map((el, i) => {\n return (\n <Table.Row>\n <Table.Cell style={{ textAlign: \"center\" }}>\n {el.fid}\n </Table.Cell>\n <Table.Cell>{el.ftype}</Table.Cell>\n <Table.Cell>{el.fremarks}</Table.Cell>\n <Table.Cell style={{ textAlign: \"center\" }}>\n <a\n href={\n \"https://correction-document.s3.ap-south-1.amazonaws.com/\" +\n el.fdocpath\n }\n target=\"_blank\"\n >\n View\n </a>\n </Table.Cell>\n <Table.Cell style={{ textAlign: \"center\" }}>\n {el.fdate}\n </Table.Cell>\n </Table.Row>\n );\n })}\n </Table.Body>\n </Table>\n ) : null}\n </Card.Description>\n </Card.Content>\n </Card>\n </>\n );\n }\n}\n\nconst mapStateToProps = (state) => {\n console.log(state.viewuploaddoccorr);\n return {\n viewuploaddoccorr: state.viewuploaddoccorr,\n };\n};\n\nexport default connect(mapStateToProps, {\n showError,\n viewuplcorrdoc,\n})(viewCorrectionDoc);\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { childrenUtils, customPropTypes, getElementType, getUnhandledProps, useKeyOnly } from '../../lib';\n/**\n * A divider visually segments content into groups.\n */\n\nfunction Divider(props) {\n var children = props.children,\n className = props.className,\n clearing = props.clearing,\n content = props.content,\n fitted = props.fitted,\n hidden = props.hidden,\n horizontal = props.horizontal,\n inverted = props.inverted,\n section = props.section,\n vertical = props.vertical;\n var classes = cx('ui', useKeyOnly(clearing, 'clearing'), useKeyOnly(fitted, 'fitted'), useKeyOnly(hidden, 'hidden'), useKeyOnly(horizontal, 'horizontal'), useKeyOnly(inverted, 'inverted'), useKeyOnly(section, 'section'), useKeyOnly(vertical, 'vertical'), 'divider', className);\n var rest = getUnhandledProps(Divider, props);\n var ElementType = getElementType(Divider, props);\n return React.createElement(ElementType, _extends({}, rest, {\n className: classes\n }), childrenUtils.isNil(children) ? content : children);\n}\n\nDivider.handledProps = [\"as\", \"children\", \"className\", \"clearing\", \"content\", \"fitted\", \"hidden\", \"horizontal\", \"inverted\", \"section\", \"vertical\"];\nDivider.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /** An element type to render as (string or function). */\n as: customPropTypes.as,\n\n /** Primary content. */\n children: PropTypes.node,\n\n /** Additional classes. */\n className: PropTypes.string,\n\n /** Divider can clear the content above it. */\n clearing: PropTypes.bool,\n\n /** Shorthand for primary content. */\n content: customPropTypes.contentShorthand,\n\n /** Divider can be fitted without any space above or below it. */\n fitted: PropTypes.bool,\n\n /** Divider can divide content without creating a dividing line. */\n hidden: PropTypes.bool,\n\n /** Divider can segment content horizontally. */\n horizontal: PropTypes.bool,\n\n /** Divider can have its colours inverted. */\n inverted: PropTypes.bool,\n\n /** Divider can provide greater margins to divide sections of content. */\n section: PropTypes.bool,\n\n /** Divider can segment content vertically. */\n vertical: PropTypes.bool\n} : {};\nexport default Divider;","import univadmin from \"../../apis/univadmin\";\nimport { showError } from \"../index\";\n\nexport const saveuplcorrdoc = (data) => {\n return async function (dispatch, getState) {\n const state = getState();\n dispatch({\n type: \"SET_LOADER\",\n });\n dispatch({\n type: \"DELETE_QPSTATS\",\n });\n dispatch({\n type: \"CLEAR_TEACHER_ID\",\n });\n\n const response = await univadmin.get(\"/app.php\", {\n params: {\n a: \"saveuplcorrdoc\",\n type: data.type,\n univcode: state.user.fcuruniv,\n remarks: data.remarks,\n },\n });\n dispatch({\n type: \"UNSET_LOADER\",\n });\n\n if (typeof response.data !== \"object\") {\n const error = {\n header: \"Error\",\n content: \"Something went wrong\",\n };\n dispatch(showError(error));\n } else if (response.data.error_code === -1) {\n const error = { header: \"Error\", content: response.data.data.msg };\n dispatch(showError(error));\n } else {\n dispatch({\n type: \"UPLOAD_CORR_DOC\",\n payload: response.data,\n });\n }\n };\n};\n\nexport const uploadCorr = (file) => {\n return async function (dispatch, getState) {\n const state = getState();\n dispatch({\n type: \"SET_LOADER\",\n });\n\n const formData = new FormData();\n formData.set(\"file\", file, file.name);\n const response = await univadmin.post(\"upload_file.php\", formData, {\n headers: {\n \"Content-type\": \"multipart/form-data\",\n },\n });\n\n dispatch({\n type: \"UNSET_LOADER\",\n });\n dispatch({\n type: \"SET_QPNAME\",\n payload: response.data,\n });\n };\n};\n\nexport const uploadDocData = (doc) => {\n return async (dispatch, getState) => {\n const state = getState();\n dispatch({\n type: \"SET_LOADER\",\n });\n\n const response = await univadmin.get(\"/app.php\", {\n params: {\n a: \"uploadcorrdoc\",\n gfilename: state.upload.fqpfilenm,\n univcode: state.univ.funivcode,\n remarks: doc.remarks,\n type: doc.type,\n fid: state.uploaddoccorr.fid,\n },\n });\n dispatch({\n type: \"UNSET_LOADER\",\n });\n // console.log(\"response\",response);\n if (typeof response.data !== \"object\") {\n const error = {\n header: \"Error\",\n content: \"Something went wrong\",\n };\n dispatch(showError(error));\n } else if (response.data.error_code === 0) {\n console.log(response);\n const error = { header: \"Success\", content: response.data.data.msg };\n dispatch(showError(error));\n } else {\n const error = { header: \"Error\", content: response.data.data.msg };\n dispatch(showError(error));\n }\n };\n};\n\nexport const viewuplcorrdoc = (type) => {\n return async function (dispatch, getState) {\n const state = getState();\n dispatch({\n type: \"SET_LOADER\",\n });\n dispatch({\n type: \"DELETE_QPSTATS\",\n });\n dispatch({\n type: \"CLEAR_TEACHER_ID\",\n });\n\n const response = await univadmin.get(\"/app.php\", {\n params: {\n a: \"viewuplcorrdoc\",\n type: type.viewType,\n univcode: state.user.fcuruniv,\n },\n });\n dispatch({\n type: \"UNSET_LOADER\",\n });\n\n if (typeof response.data !== \"object\") {\n const error = {\n header: \"Error\",\n content: \"Something went wrong\",\n };\n dispatch(showError(error));\n } else if (response.data.error_code === -1) {\n const error = { header: \"Error\", content: response.data.data.msg };\n dispatch(showError(error));\n } else {\n dispatch({\n type: \"VIEW_CORRECTION_DOC\",\n payload: response.data,\n });\n }\n };\n};\n"],"sourceRoot":""}
|