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.17.181.181
{"version":3,"sources":["pages/qpupload/index.js","../node_modules/semantic-ui-react/dist/es/elements/Divider/Divider.js"],"names":["_regeneratorRuntime","e","t","r","Object","prototype","n","hasOwnProperty","o","defineProperty","value","i","Symbol","a","iterator","c","asyncIterator","u","toStringTag","define","enumerable","configurable","writable","wrap","Generator","create","Context","makeInvokeMethod","tryCatch","type","arg","call","h","l","f","s","y","GeneratorFunction","GeneratorFunctionPrototype","p","this","d","getPrototypeOf","v","values","g","defineIteratorMethods","forEach","_invoke","AsyncIterator","invoke","resolve","__await","then","callInvokeWithMethodAndArg","Error","done","method","delegate","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","return","TypeError","resultName","next","nextLoc","pushTryEntry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","isNaN","length","displayName","isGeneratorFunction","constructor","name","mark","setPrototypeOf","__proto__","awrap","async","Promise","keys","reverse","pop","prev","charAt","slice","stop","rval","handle","complete","finish","catch","delegateYield","QpUpload","_React$Component","_getPrototypeOf2","_this","_classCallCheck","_len","arguments","args","Array","_key","_possibleConstructorReturn","_getPrototypeOf","apply","concat","state","year","examtype","examdate","changeYear","data","setState","changeExamType","changeDate","getUploadParams","_ref","file","body","meta","FormData","append","JSON","stringify","props","user","_this$state","url","API","fcuruniv","handleChangeStatus","_ref2","status","remove","handleSubmit","_ref3","_asyncToGenerator","_callee","files","allFiles","_context","_x","_x2","validatefile","_ref4","split_name","split","renderHeader","React","createElement","Card","Header","style","display","className","Link","to","Button","basic","color","content","icon","_inherits","_createClass","key","_this$state2","wheight","window","innerHeight","fluid","Content","Description","Form","Group","Field","margin","Input","placeholder","width","onChange","Divider","height","overflowY","Dropzone","onChangeStatus","validate","accept","maxFiles","styles","dropzone","minHeight","maxHeight","Component","connect","getQpUpload","showError","_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__","__webpack_require__","_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default","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__","children","clearing","fitted","hidden","horizontal","inverted","section","vertical","classes","rest","ElementType","isNil","handledProps","propTypes","__webpack_exports__"],"mappings":"oSACAA,EAAA,kBAAAC,GAAA,IAAAC,EAAAD,EAAA,GAAAE,EAAAC,OAAAC,UAAAC,EAAAH,EAAAI,eAAAC,EAAAJ,OAAAK,gBAAA,SAAAP,EAAAD,EAAAE,GAAAD,EAAAD,GAAAE,EAAAO,OAAAC,EAAA,mBAAAC,cAAA,GAAAC,EAAAF,EAAAG,UAAA,aAAAC,EAAAJ,EAAAK,eAAA,kBAAAC,EAAAN,EAAAO,aAAA,yBAAAC,EAAAjB,EAAAD,EAAAE,GAAA,OAAAC,OAAAK,eAAAP,EAAAD,EAAA,CAAAS,MAAAP,EAAAiB,YAAA,EAAAC,cAAA,EAAAC,UAAA,IAAApB,EAAAD,GAAA,IAAAkB,EAAA,aAAAjB,GAAAiB,EAAA,SAAAjB,EAAAD,EAAAE,GAAA,OAAAD,EAAAD,GAAAE,GAAA,SAAAoB,EAAArB,EAAAD,EAAAE,EAAAG,GAAA,IAAAK,EAAAV,KAAAI,qBAAAmB,EAAAvB,EAAAuB,EAAAX,EAAAT,OAAAqB,OAAAd,EAAAN,WAAAU,EAAA,IAAAW,EAAApB,GAAA,WAAAE,EAAAK,EAAA,WAAAH,MAAAiB,EAAAzB,EAAAC,EAAAY,KAAAF,EAAA,SAAAe,EAAA1B,EAAAD,EAAAE,GAAA,WAAA0B,KAAA,SAAA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AC,EAAAzF,EAAAyF,QACAC,EAAA1F,EAAA0F,SACAC,EAAgBf,IAAE,KAAOhN,OAAAmN,EAAA,EAAAnN,CAAUwN,EAAA,YAAwBxN,OAAAmN,EAAA,EAAAnN,CAAUyN,EAAA,UAAoBzN,OAAAmN,EAAA,EAAAnN,CAAU0N,EAAA,UAAoB1N,OAAAmN,EAAA,EAAAnN,CAAU2N,EAAA,cAA4B3N,OAAAmN,EAAA,EAAAnN,CAAU4N,EAAA,YAAwB5N,OAAAmN,EAAA,EAAAnN,CAAU6N,EAAA,WAAsB7N,OAAAmN,EAAA,EAAAnN,CAAU8N,EAAA,sBAAA5D,GACzO8D,EAAahO,OAAAoN,EAAA,EAAApN,CAAiB4L,EAAAxD,GAC9B6F,EAAoBjO,OAAAqN,EAAA,EAAArN,CAAc4L,EAAAxD,GAClC,OAAS8E,EAAAzM,EAAKoJ,cAAAoE,EAA4BnB,IAAQ,GAAGkB,EAAA,CACrD9D,UAAA6D,IACMT,EAAA,EAAaY,MAAAX,GAAA/C,EAAA+C,GAEnB3B,EAAAuC,aAAA,kHACAvC,EAAAwC,UAuBC,GACcC,EAAA","file":"static/js/267.c9bc2758.chunk.js","sourcesContent":["import React, { Component } from \"react\";\r\nimport { Link } from \"react-router-dom\";\r\nimport { showError } from \"../../actions\";\r\nimport { SPAPI, ReportAPI, API } from \"../../apis/consts\";\r\nimport Dropzone from \"react-dropzone-uploader\";\r\nimport \"react-dropzone-uploader/dist/styles.css\";\r\n\r\nimport {\r\n Card,\r\n Button,\r\n Form,\r\n Table,\r\n Dropdown,\r\n Divider,\r\n} from \"semantic-ui-react\";\r\nimport { connect } from \"react-redux\";\r\nclass QpUpload extends React.Component {\r\n state = {\r\n year: \"\",\r\n examtype: \"\",\r\n examdate: \"\",\r\n };\r\n\r\n changeYear = (e, data) => {\r\n this.setState({\r\n year: data.value,\r\n });\r\n };\r\n\r\n changeExamType = (e, data) => {\r\n this.setState({\r\n examtype: data.value,\r\n });\r\n };\r\n\r\n changeDate = (e, data) => {\r\n this.setState({\r\n examdate: data.value,\r\n });\r\n };\r\n\r\n getUploadParams = ({ file, meta }) => {\r\n const body = new FormData();\r\n body.append(\"filefield\", file);\r\n body.append(\"body\", JSON.stringify(this.props.user));\r\n const { year, examtype, examdate } = this.state;\r\n return {\r\n url:\r\n API +\r\n \"/upload_qp.php?year=\" +\r\n year +\r\n \"&examtype=\" +\r\n examtype +\r\n \"&examdate=\" +\r\n examdate +\r\n \"&univcode=\" +\r\n this.props.user.fcuruniv,\r\n };\r\n };\r\n\r\n handleChangeStatus = ({ meta, remove }, status) => {};\r\n\r\n handleSubmit = async (files, allFiles) => {\r\n allFiles.forEach((f) => f.remove());\r\n };\r\n\r\n validatefile = ({ file, meta }) => {\r\n const name = meta.name;\r\n const split_name = name.split(\"_\");\r\n const fqpcode = split_name[3].split(\".\");\r\n if (\r\n split_name[0] !== this.props.user.fcuruniv ||\r\n split_name[1].length !== 4 ||\r\n split_name[2].length != 1\r\n ) {\r\n return \"INVALID FILE NAMING FORMAT (eg:041_2022_2_10101.pdf)\";\r\n }\r\n // this.props.uploadQuestionPaper(this.state);\r\n return false;\r\n };\r\n\r\n renderHeader = () => {\r\n return (\r\n <Card.Header style={{ display: \"flex\" }}>\r\n <h4>Upload Question Paper</h4>\r\n <div className=\"ml-auto\">\r\n <Link to=\"/dashboard\">\r\n <Button basic color=\"red\" content=\"Exit\" icon=\"home\" />\r\n </Link>\r\n </div>\r\n </Card.Header>\r\n );\r\n };\r\n\r\n render() {\r\n const { year, examtype, examdate } = this.state;\r\n var wheight = (window.innerHeight * 70) / 100;\r\n\r\n return (\r\n <div>\r\n <Card fluid>\r\n <Card.Content>\r\n {this.renderHeader()}\r\n <Card.Description>\r\n <h4>\r\n <b>File Format: UNIVCODE_YEAR_EXAMTYPE_QPCODE.pdf</b>\r\n </h4>\r\n <Form.Group style={{ display: \"flex\" }}>\r\n <Form.Field style={{ margin: \"15px\" }}>\r\n <label>Year</label>\r\n\r\n <Form.Input\r\n placeholder=\"Year\"\r\n value={year}\r\n width={4}\r\n name=\"year\"\r\n onChange={this.changeYear}\r\n />\r\n </Form.Field>\r\n <Form.Field style={{ margin: \"15px\" }}>\r\n <label>Exam Type</label>\r\n\r\n <Form.Input\r\n placeholder=\"Exam Type\"\r\n value={examtype}\r\n width={4}\r\n name=\"examtype\"\r\n onChange={this.changeExamType}\r\n />\r\n </Form.Field>\r\n <Form.Field style={{ margin: \"15px\" }}>\r\n <label>Exam Date</label>\r\n\r\n <Form.Input\r\n placeholder=\"Date\"\r\n value={examdate}\r\n width={4}\r\n name=\"examdate\"\r\n onChange={this.changeDate}\r\n />\r\n </Form.Field>\r\n </Form.Group>\r\n <Divider />\r\n <Card.Description\r\n style={{ height: `${wheight}px`, overflowY: \"auto\" }}\r\n >\r\n <Dropzone\r\n getUploadParams={this.getUploadParams}\r\n onChangeStatus={this.handleChangeStatus}\r\n validate={this.validatefile}\r\n accept=\"application/pdf\"\r\n maxFiles={50}\r\n styles={{\r\n dropzone: { minHeight: 200, maxHeight: wheight - 10 },\r\n }}\r\n />\r\n </Card.Description>\r\n </Card.Description>\r\n </Card.Content>\r\n </Card>\r\n </div>\r\n );\r\n }\r\n}\r\nconst mapStateToProps = (state) => {\r\n return {\r\n user: state.user,\r\n QpUpload: state.getQpUpload,\r\n };\r\n};\r\n\r\nexport default connect(mapStateToProps, {\r\n showError,\r\n})(QpUpload);\r\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}\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 /** Primary content. */\n children: PropTypes.node,\n /** Additional classes. */\n className: PropTypes.string,\n /** Divider can clear the content above it. */\n clearing: PropTypes.bool,\n /** Shorthand for primary content. */\n content: customPropTypes.contentShorthand,\n /** Divider can be fitted without any space above or below it. */\n fitted: PropTypes.bool,\n /** Divider can divide content without creating a dividing line. */\n hidden: PropTypes.bool,\n /** Divider can segment content horizontally. */\n horizontal: PropTypes.bool,\n /** Divider can have its colours inverted. */\n inverted: PropTypes.bool,\n /** Divider can provide greater margins to divide sections of content. */\n section: PropTypes.bool,\n /** Divider can segment content vertically. */\n vertical: PropTypes.bool\n} : {};\nexport default Divider;"],"sourceRoot":""}
|