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.15.92.58
{"version":3,"sources":["pages/utils/grv/searchgrv.js","../node_modules/semantic-ui-react/dist/es/elements/Divider/Divider.js"],"names":["connect","state","console","log","user","univ","props","_useState","useState","_useState2","Object","_Users_prashanth_univadmin_react_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__","list","setlist","_useState3","_useState4","table","settable","_useState5","_useState6","grvid","setgrvid","_useState7","_useState8","regno","setregno","useEffect","_initfn","_Users_prashanth_univadmin_react_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__","_Users_prashanth_univadmin_react_node_modules_babel_preset_react_app_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default","a","mark","_callee","wrap","_context","prev","next","stop","apply","this","arguments","initfn","searchgrvid","_ref","_callee2","el","data","response","error","_error","_context2","univadmin","get","params","univcode","funivcode","sent","header","content","showError","abrupt","error_code","msg","_x","_x2","react__WEBPACK_IMPORTED_MODULE_3___default","createElement","Fragment","className","semantic_ui_react__WEBPACK_IMPORTED_MODULE_6__","fluid","style","minHeight","Content","Header","display","semantic_ui_react__WEBPACK_IMPORTED_MODULE_7__","basic","color","icon","onClick","react_router_dom__WEBPACK_IMPORTED_MODULE_4__","to","semantic_ui_react__WEBPACK_IMPORTED_MODULE_8__","semantic_ui_react__WEBPACK_IMPORTED_MODULE_9__","Field","alignItems","height","fontSize","Input","type","value","maxLength","placeholder","name","marginTop","onChange","e","padding","paddingTop","paddingBottom","marginBottom","marginLeft","semantic_ui_react__WEBPACK_IMPORTED_MODULE_10__","celled","padded","selectable","structured","size","Row","HeaderCell","width","singleLine","textAlign","Body","map","i","Cell","fgrvid","fregno","fgrvfrom","fgrvsub","pathname","concat","query","_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__"],"mappings":"8PA6ReA,sBARS,SAACC,GAEvB,OADAC,QAAQC,IAAIF,GACL,CACLG,KAAMH,EAAMG,KACZC,KAAMJ,EAAMI,OAIwB,GAAzBL,CA7Qf,SAAmBM,GAAO,IAAAC,EACAC,mBAAS,IADTC,EAAAC,OAAAC,EAAA,EAAAD,CAAAH,EAAA,GACjBK,EADiBH,EAAA,GACXI,EADWJ,EAAA,GAAAK,EAEEN,oBAAS,GAFXO,EAAAL,OAAAC,EAAA,EAAAD,CAAAI,EAAA,GAEjBE,EAFiBD,EAAA,GAEVE,EAFUF,EAAA,GAAAG,EAGEV,mBAAS,IAHXW,EAAAT,OAAAC,EAAA,EAAAD,CAAAQ,EAAA,GAGjBE,EAHiBD,EAAA,GAGVE,EAHUF,EAAA,GAAAG,EAIEd,mBAAS,IAJXe,EAAAb,OAAAC,EAAA,EAAAD,CAAAY,EAAA,GAIjBE,EAJiBD,EAAA,GAIVE,EAJUF,EAAA,GAMxBG,oBAAU,WAAM,SAAAC,IAAA,OAAAA,EAAAjB,OAAAkB,EAAA,EAAAlB,CAAAmB,EAAAC,EAAAC,KACd,SAAAC,IAAA,OAAAH,EAAAC,EAAAG,KAAA,SAAAC,GAAA,cAAAA,EAAAC,KAAAD,EAAAE,MAAA,wBAAAF,EAAAG,SAAAL,OADcM,MAAAC,KAAAC,YAAA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"react\";\nimport { Link } from \"react-router-dom\";\nimport { connect } from \"react-redux\";\nimport {\n Card,\n Divider,\n Button,\n Form,\n Dropdown,\n Table,\n} from \"semantic-ui-react\";\nimport { ReportAPI } from \"../../../apis/consts\";\nimport { wHeight } from \"../../parms\";\nimport univadmin from \"../../../apis/univadmin\";\nimport { showError } from \"../../../actions\";\n\nfunction SearchGRV(props) {\n const [list, setlist] = useState([]);\n const [table, settable] = useState(false);\n const [grvid, setgrvid] = useState(\"\");\n const [regno, setregno] = useState(\"\");\n\n useEffect(() => {\n async function initfn() {}\n initfn();\n }, []);\n\n // console.log(list);\n const searchgrvid = async (el, data) => {\n console.log(grvid);\n const response = await univadmin.get(\"/app.php\", {\n params: {\n a: \"getsearchgrv\",\n univcode: props.univ.funivcode,\n grvid: grvid,\n regno: regno,\n },\n });\n if (typeof response.data !== \"object\") {\n const error = {\n header: \"Error\",\n content: \"Something went wrong\",\n };\n showError(error);\n return;\n } else if (response.data.error_code === 0) {\n setlist(response.data.data);\n settable(true);\n return;\n } else {\n const error = {\n header: \"Error\",\n content: response.data.data.msg,\n };\n showError(error);\n return;\n }\n };\n\n const handlecancel = () => {\n setgrvid(\"\");\n setregno(\"\");\n settable(false);\n };\n\n return (\n <>\n <div className=\"animated fadeIn\">\n <Card fluid style={{ minHeight: \"82vh\" }}>\n <Card.Content>\n <Card.Header style={{ display: \"flex\" }}>\n <h4>Search Grievance</h4>\n <div className=\"ml-auto\">\n <Button\n basic\n color=\"black\"\n content=\"cancel\"\n icon=\"cancel\"\n onClick={() => {\n handlecancel();\n }}\n />\n\n <Link to=\"/dashboard\">\n <Button basic color=\"red\" content=\"Exit\" icon=\"home\" />\n </Link>\n </div>\n </Card.Header>\n <Divider />\n <div className=\"col-md-12\">\n <Form>\n <Form.Field\n style={{\n display: \"flex\",\n alignItems: \"center\",\n height: \"3em\",\n }}\n >\n <label style={{ fontSize: \"0.9em\" }}>GRV ID</label>\n <Form.Input\n type=\"text\"\n value={grvid}\n maxLength={8}\n placeholder=\"GRV ID\"\n name=\"grvid\"\n className=\"col-md-2\"\n style={{ marginTop: \"0.6em\", height: \"2em\" }}\n onChange={(e, data) => setgrvid(data.value)}\n />\n <Form>\n <Button\n color=\"blue\"\n style={{\n padding: \"1em\",\n paddingTop: \"0.5em\",\n paddingBottom: \"0.5em\",\n marginBottom: \"0.5em\",\n }}\n onClick={(el, data) => {\n searchgrvid(el, data);\n }}\n >\n Search\n </Button>\n </Form>\n <label style={{ fontSize: \"0.9em\", marginLeft: \"2em\" }}>\n Reg No.\n </label>\n <Form.Input\n type=\"text\"\n value={regno}\n maxLength={8}\n placeholder=\"Regno\"\n className=\"col-md-2\"\n name=\"regno\"\n style={{ marginTop: \"0.6em\", height: \"2em\" }}\n onChange={(e, data) => setregno(data.value)}\n />\n <Form>\n <Button\n color=\"blue\"\n style={{\n padding: \"1em\",\n paddingTop: \"0.5em\",\n paddingBottom: \"0.5em\",\n marginBottom: \"0.5em\",\n }}\n onClick={(el, data) => {\n searchgrvid(el, data);\n }}\n >\n Search\n </Button>\n </Form>\n </Form.Field>\n </Form>\n </div>\n {table == true ? (\n <div className=\"ui mini form\">\n <Table\n celled\n padded\n selectable\n structured\n size=\"small\"\n color=\"olive\"\n style={{ marginTop: \"25px\" }}\n >\n <Table.Header style={{ fontSize: \"1.2em\" }}>\n <Table.Row>\n <Table.HeaderCell\n style={{ width: \"5%\" }}\n singleLine\n textAlign=\"center\"\n >\n <label>Sl. No.</label>\n </Table.HeaderCell>\n <Table.HeaderCell\n style={{ width: \"7%\" }}\n textAlign=\"center\"\n >\n <label>GRV ID</label>\n </Table.HeaderCell>\n <Table.HeaderCell\n style={{ width: \"7%\" }}\n textAlign=\"center\"\n >\n <label>Reg No.</label>\n </Table.HeaderCell>\n <Table.HeaderCell\n style={{ width: \"7%\" }}\n textAlign=\"center\"\n >\n <label>Student Name</label>\n </Table.HeaderCell>\n <Table.HeaderCell\n style={{ width: \"20%\" }}\n textAlign=\"center\"\n >\n <label>Subject</label>\n </Table.HeaderCell>\n <Table.HeaderCell\n style={{ width: \"7%\" }}\n textAlign=\"center\"\n >\n <label>Action</label>\n </Table.HeaderCell>\n </Table.Row>\n </Table.Header>\n <Table.Body>\n {list.map((el, i) => {\n return (\n <Table.Row>\n <Table.Cell\n textAlign=\"center\"\n style={{ fontSize: \"1.2em\" }}\n >\n {i + 1}\n </Table.Cell>\n <Table.Cell\n textAlign=\"center\"\n style={{ fontSize: \"1.2em\" }}\n >\n {el.fgrvid}\n </Table.Cell>\n <Table.Cell\n textAlign=\"center\"\n style={{ fontSize: \"1.2em\" }}\n >\n {el.fregno}\n </Table.Cell>\n <Table.Cell\n textAlign=\"left\"\n style={{ fontSize: \"1.2em\" }}\n >\n {el.fgrvfrom}\n </Table.Cell>\n <Table.Cell\n textAlign=\"left\"\n style={{ fontSize: \"1.2em\" }}\n >\n {el.fgrvsub}\n </Table.Cell>\n <Table.Cell\n textAlign=\"center\"\n style={{ fontSize: \"1.2em\", padding: \"0.4em\" }}\n >\n <Link\n to={{\n pathname: `/utils/grv/${el.fgrvid}`,\n query: {\n grvid: el.fgrvid,\n },\n }}\n >\n <Button\n color=\"green\"\n style={{ padding: \"0.5em 1.5em\" }}\n >\n View\n </Button>\n </Link>\n </Table.Cell>\n </Table.Row>\n );\n })}\n </Table.Body>\n </Table>\n </div>\n ) : null}\n </Card.Content>\n </Card>\n </div>\n </>\n );\n}\n\nconst mapStateToProps = (state) => {\n console.log(state);\n return {\n user: state.user,\n univ: state.univ,\n };\n};\n\nexport default connect(mapStateToProps, {})(SearchGRV);\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;"],"sourceRoot":""}
|