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 : 18.221.161.43
{"version":3,"sources":["actions/admissions/admStats.js","pages/admission/statistics/DegwiseAdmStats.js","pages/admission/statistics/CollwiseAdmstats.js","pages/admission/statistics/index.js","../node_modules/semantic-ui-react/dist/es/elements/Divider/Divider.js"],"names":["getAdmStats","rtype","_ref","Object","asyncToGenerator","regenerator_default","a","mark","_callee","dispatch","getState","state","fcollcode","response","error","_error","wrap","_context","prev","next","type","user","fcurtype","univadmin","get","params","univcode","univ","funivcode","fdeggrp","frtype","sent","console","log","data","error_code","header","content","showError","msg","payload","stop","_x","_x2","apply","this","arguments","DegwiseAdmStats","admStats","props","collAdmStats","react_default","createElement","Fragment","Table","celled","padded","selectable","Header","Row","textAlign","HeaderCell","Body","map","el","i","key","Cell","fdegree","fdescpn","fcount","ffinsubdone","fadmpend","fackdone","fackpend","fapprdone","fapprpend","Component","connect","admCollStats","CollwiseAdmStats","expandedRows","curCollcode","handleRowClick","rowId","currentExpandedRows","_this","setState","item","index","_this2","itemRows","onClick","fcollname","fmobile","fphone","collDegDet","length","push","filter","colSpan","_this3","collDet","allItemRows","perItemRows","renderItem","concat","style","overflowX","className","AdmStats","shwTbl","handleChange","e","defineProperty","name","value","handleSubmit","wheight","wHeight","Card","fluid","Content","display","Link","to","Button","basic","color","icon","Divider","Description","height","overflowY","Form","Field","width","Dropdown","placeholder","search","selection","id","options","text","onChange","size","CollwiseAdmstats","statistics_DegwiseAdmStats","_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__","children","clearing","fitted","hidden","horizontal","inverted","section","vertical","classes","rest","ElementType","isNil","handledProps","propTypes","__webpack_exports__"],"mappings":"gRAGaA,EAAc,SAAAC,GACzB,sBAAAC,EAAAC,OAAAC,EAAA,EAAAD,CAAAE,EAAAC,EAAAC,KAAO,SAAAC,EAAOC,EAAUC,GAAjB,IAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAA,OAAAV,EAAAC,EAAAU,KAAA,SAAAC,GAAA,cAAAA,EAAAC,KAAAD,EAAAE,MAAA,cACCR,EAAQD,IACdD,EAAS,CACPW,KAAM,eAEJR,EACqB,IAAvBD,EAAMU,KAAKC,UAAkBX,EAAMU,KAAKC,UAAY,IAChDX,EAAMU,KAAKT,UACX,GARDK,EAAAE,KAAA,EAWkBI,IAAUC,IAAI,WAAY,CAC/CC,OAAQ,CACNnB,EAAG,WACHoB,SAAUf,EAAMgB,KAAKC,UACrBC,QAASlB,EAAMU,KAAKQ,QACpBjB,UAAWA,EACXkB,OAAQ7B,KAjBP,OAWCY,EAXDI,EAAAc,KAqBLtB,EAAS,CACPW,KAAM,iBAERY,QAAQC,IAAI,2BAA4BpB,EAASqB,KAAKC,YACzB,kBAAlBtB,EAASqB,MACZpB,EAAQ,CAAEsB,OAAQ,QAASC,QAAS,wBAC1C5B,EAAS6B,YAAUxB,MACmB,GAA7BD,EAASqB,KAAKC,YACvBH,QAAQC,IAAIpB,EAASqB,KAAKA,KAAKK,KACzBzB,EAAQ,CAAEsB,OAAQ,QAASC,QAASxB,EAASqB,KAAKA,KAAKK,KAC7D9B,EAAS6B,YAAUxB,KAEnBL,EAAS,CACPW,KAAM,gBACNoB,QAAS3B,EAASqB,OAnCjB,wBAAAjB,EAAAwB,SAAAjC,MAAP,gBAAAkC,EAAAC,GAAA,OAAAzC,EAAA0C,MAAAC,KAAAC,YAAA,uBCAIC,6MACJpC,MA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,GAGnB9B,EAAA0C,aAAA,kHACA1C,EAAA2C,UAiCC,GACcC,EAAA","file":"static/js/152.40333b1b.chunk.js","sourcesContent":["import univadmin from \"../../apis/univadmin\";\nimport { showError } from \"../index\";\n\nexport const getAdmStats = rtype => {\n return async (dispatch, getState) => {\n const state = getState();\n dispatch({\n type: \"SET_LOADER\"\n });\n var fcollcode =\n state.user.fcurtype != \"\" && state.user.fcurtype >= 500\n ? state.user.fcollcode\n : \"\";\n // state.user.fcollcode\n\n const response = await univadmin.get(\"/app.php\", {\n params: {\n a: \"admStats\",\n univcode: state.univ.funivcode,\n fdeggrp: state.user.fdeggrp,\n fcollcode: fcollcode,\n frtype: rtype\n }\n });\n\n dispatch({\n type: \"UNSET_LOADER\"\n });\n console.log(\"response.data.error_code\", response.data.error_code);\n if (typeof response.data !== \"object\") {\n const error = { header: \"Error\", content: \"Something went wrong\" };\n dispatch(showError(error));\n } else if (response.data.error_code == -1) {\n console.log(response.data.data.msg);\n const error = { header: \"Error\", content: response.data.data.msg };\n dispatch(showError(error));\n } else {\n dispatch({\n type: \"GET_ADM_STATS\",\n payload: response.data\n });\n }\n };\n};\n\nexport const getSpecificCollDet = fcollcode => {\n return async (dispatch, getState) => {\n const state = getState();\n // dispatch({\n // type: \"SET_LOADER\"\n // });\n // var fcollcode =\n // state.user.fcurtype != \"\" && state.user.fcurtype >= 500\n // ? state.user.fcollcode\n // : \"\";\n // state.user.fcollcode\n\n const response = await univadmin.get(\"/app.php\", {\n params: {\n a: \"getSpecificCollDet\",\n univcode: state.univ.funivcode,\n fdeggrp: state.user.fdeggrp,\n fcollcode: fcollcode\n }\n });\n\n if (typeof response.data !== \"object\") {\n const error = { header: \"Error\", content: \"Something went wrong\" };\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: \"GET_PCOLL_DET\",\n payload: response.data\n });\n }\n };\n};\n","import React, { Component } from \"react\";\nimport { showError } from \"../../../actions\";\nimport { connect } from \"react-redux\";\nimport { Table } from \"semantic-ui-react\";\nclass DegwiseAdmStats extends Component {\n state = {};\n render() {\n var admStats = this.props.collAdmStats;\n console.log(\"Degree Render\", admStats);\n\n return (\n <>\n <Table celled padded selectable>\n <Table.Header>\n <Table.Row textAlign=\"center\">\n <Table.HeaderCell>SL. No.</Table.HeaderCell>\n <Table.HeaderCell>Degree Code</Table.HeaderCell>\n <Table.HeaderCell>Degree Name</Table.HeaderCell>\n <Table.HeaderCell>Upd. by Coll.</Table.HeaderCell>\n {/* <Table.HeaderCell>Registerd Count</Table.HeaderCell> */}\n <Table.HeaderCell>App. filled</Table.HeaderCell>\n <Table.HeaderCell>Pending Count</Table.HeaderCell>\n <Table.HeaderCell>Ack Done</Table.HeaderCell>\n <Table.HeaderCell>Ack Pending</Table.HeaderCell>\n <Table.HeaderCell>Approval Done</Table.HeaderCell>\n <Table.HeaderCell>Approval Pending</Table.HeaderCell>\n </Table.Row>\n </Table.Header>\n <Table.Body>\n {admStats.map((el, i) => {\n return (\n <Table.Row key={i + 1}>\n <Table.Cell textAlign=\"center\">{i + 1}</Table.Cell>\n <Table.Cell textAlign=\"center\">{el.fdegree}</Table.Cell>\n <Table.Cell>{el.fdescpn}</Table.Cell>\n <Table.Cell textAlign=\"center\">{el.fcount}</Table.Cell>\n {/* <Table.Cell textAlign=\"center\">{el.factive}</Table.Cell> */}\n <Table.Cell textAlign=\"center\">{el.ffinsubdone}</Table.Cell>\n <Table.Cell textAlign=\"center\">{el.fadmpend}</Table.Cell>\n <Table.Cell textAlign=\"center\">{el.fackdone}</Table.Cell>\n <Table.Cell textAlign=\"center\">{el.fackpend}</Table.Cell>\n <Table.Cell textAlign=\"center\">{el.fapprdone}</Table.Cell>\n <Table.Cell textAlign=\"center\">{el.fapprpend}</Table.Cell>\n </Table.Row>\n );\n })}\n </Table.Body>\n </Table>\n </>\n );\n }\n}\n\nconst mapStateToProps = state => {\n return {\n collAdmStats: state.admCollStats\n };\n};\nexport default connect(\n mapStateToProps,\n {\n showError\n }\n)(DegwiseAdmStats);\n","import React, { Component } from \"react\";\nimport { showError } from \"../../../actions\";\nimport { connect } from \"react-redux\";\nimport { Table } from \"semantic-ui-react\";\nimport { getAdmStats } from \"../../../actions/admissions/admStats\";\n\nclass CollwiseAdmStats extends Component {\n state = { expandedRows: null, curCollcode: \"\" };\n\n handleRowClick = async (rowId, fcollcode) => {\n const currentExpandedRows = this.state.expandedRows;\n this.setState({\n expandedRows: rowId === currentExpandedRows ? null : rowId,\n curCollcode: fcollcode\n });\n\n // const isRowCurrentlyExpanded = currentExpandedRows.includes(rowId);\n\n // const newExpandedRows = isRowCurrentlyExpanded\n // ? currentExpandedRows.filter(id => id !== rowId)\n // : currentExpandedRows.concat(rowId);\n\n // this.setState({ expandedRows: newExpandedRows });\n };\n\n //=== Render Table Rows ===//\n renderItem(item, index) {\n const clickCallback = () => this.handleRowClick(index, item.fcollcode);\n\n const itemRows = [\n <Table.Row key={\"row-data-\" + index} onClick={clickCallback}>\n <Table.Cell textAlign=\"center\">{index + 1}</Table.Cell>\n <Table.Cell textAlign=\"center\">{item.fcollcode}</Table.Cell>\n <Table.Cell>{item.fcollname}</Table.Cell>\n <Table.Cell>\n {item.fmobile}/ {item.fphone}\n </Table.Cell>\n <Table.Cell textAlign=\"center\">{item.fcount}</Table.Cell>\n {/* <Table.Cell textAlign=\"center\">{item.factive}</Table.Cell> */}\n <Table.Cell textAlign=\"center\">{item.ffinsubdone}</Table.Cell>\n <Table.Cell textAlign=\"center\">{item.fadmpend}</Table.Cell>\n <Table.Cell textAlign=\"center\">{item.fackdone}</Table.Cell>\n <Table.Cell textAlign=\"center\">{item.fackpend}</Table.Cell>\n <Table.Cell textAlign=\"center\">{item.fapprdone}</Table.Cell>\n <Table.Cell textAlign=\"center\">{item.fapprpend}</Table.Cell>\n </Table.Row>\n ];\n\n //=== If College row is clicked ===//\n if (this.state.expandedRows == index) {\n var collDegDet = this.props.collAdmStats.collDegDet;\n\n if (collDegDet.length > 0) {\n itemRows.push(\n <>\n {collDegDet\n .filter(el => el[\"fcollcode\"] == this.state.curCollcode)\n .map((el, i) => {\n return (\n <Table.Row key={i + 1}>\n {/* <Table.Cell>{i + 1}</Table.Cell> */}\n <Table.Cell colSpan=\"4\">\n {el[\"fdegree\"]} - {el[\"fdescpn\"]}\n </Table.Cell>\n <Table.Cell textAlign=\"center\">{el[\"fcount\"]}</Table.Cell>\n {/* <Table.Cell textAlign=\"center\">{el[\"factive\"]}</Table.Cell> */}\n <Table.Cell textAlign=\"center\">\n {el[\"ffinsubdone\"]}\n </Table.Cell>\n <Table.Cell textAlign=\"center\">{el[\"fadmpend\"]}</Table.Cell>\n <Table.Cell textAlign=\"center\">{el[\"fackdone\"]}</Table.Cell>\n <Table.Cell textAlign=\"center\">{el[\"fackpend\"]}</Table.Cell>\n <Table.Cell textAlign=\"center\">\n {el[\"fapprdone\"]}\n </Table.Cell>\n <Table.Cell textAlign=\"center\">\n {el[\"fapprpend\"]}\n </Table.Cell>\n </Table.Row>\n );\n })}\n </>\n );\n }\n }\n return itemRows;\n }\n\n render() {\n var admStats = this.props.collAdmStats.collDet;\n let allItemRows = [];\n admStats.map((item, index) => {\n const perItemRows = this.renderItem(item, index);\n allItemRows = allItemRows.concat(perItemRows);\n });\n\n return (\n <div style={{ overflowX: \"scroll\" }}>\n <Table celled selectable className=\"animated fadeIn\" padded>\n <Table.Header>\n <Table.Row textAlign=\"center\">\n <Table.HeaderCell>SL. No.</Table.HeaderCell>\n <Table.HeaderCell>College Code</Table.HeaderCell>\n <Table.HeaderCell>College Name</Table.HeaderCell>\n <Table.HeaderCell>Contact</Table.HeaderCell>\n <Table.HeaderCell>Upd. by Coll.</Table.HeaderCell>\n {/* <Table.HeaderCell>Registerd Count</Table.HeaderCell> */}\n <Table.HeaderCell>App. filled</Table.HeaderCell>\n <Table.HeaderCell>Pending Count</Table.HeaderCell>\n <Table.HeaderCell>Ack Done</Table.HeaderCell>\n <Table.HeaderCell>Ack Pending</Table.HeaderCell>\n <Table.HeaderCell>Approval Done</Table.HeaderCell>\n <Table.HeaderCell>Approval Pending</Table.HeaderCell>\n </Table.Row>\n </Table.Header>\n <Table.Body>{allItemRows}</Table.Body>\n </Table>\n </div>\n );\n }\n}\n\nconst mapStateToProps = state => {\n return {\n collAdmStats: state.admCollStats\n };\n};\nexport default connect(\n mapStateToProps,\n {\n showError,\n getAdmStats\n }\n)(CollwiseAdmStats);\n","import React, { Component } from \"react\";\nimport {\n Card,\n Button,\n Divider,\n Table,\n Dropdown,\n Form\n} from \"semantic-ui-react\";\nimport { Link } from \"react-router-dom\";\nimport { getAdmStats } from \"../../../actions/admissions/admStats\";\nimport { showError } from \"../../../actions\";\nimport { connect } from \"react-redux\";\nimport DegwiseAdmStats from \"./DegwiseAdmStats\";\nimport CollwiseAdmStats from \"./CollwiseAdmstats\";\nimport { wHeight } from \"../../parms\";\nclass AdmStats extends Component {\n state = { rtype: \"\", shwTbl: false };\n\n handleChange = (e, data) => {\n switch (data.type) {\n case \"text\":\n this.setState({ [data.name]: data.value });\n default:\n this.setState({ [data.name]: data.value });\n }\n this.setState({ shwTbl: false });\n };\n\n handleSubmit = async () => {\n var { rtype } = this.state;\n await this.props.getAdmStats(rtype);\n this.setState({ shwTbl: true });\n };\n\n render() {\n var rtypeOpt = [\n { key: \"c\", value: \"collwise\", text: \"College Wise\" },\n { key: \"d\", value: \"degwise\", text: \"Degree Wise\" }\n ];\n const wheight = wHeight();\n return (\n <>\n <Card fluid className=\"animated fadeIn\">\n <Card.Content>\n <Card.Header style={{ display: \"flex\" }}>\n <h4>Admission Statistics</h4>\n <div className=\"ml-auto\">\n {/* <Button\n basic\n color=\"green\"\n content=\"Detailed View\"\n onClick={this.handleView}\n icon=\"eye\"\n /> */}\n <Link to=\"/dashboard\">\n <Button basic color=\"red\" content=\"Exit\" icon=\"home\" />\n </Link>\n </div>\n </Card.Header>\n\n <Divider />\n <Card.Description\n style={{ height: `${wheight}px`, overflowY: \"auto\" }}\n >\n <Form>\n <Form.Field width={6}>\n <label>Select</label>\n <Dropdown\n placeholder=\"Select here\"\n search\n selection\n id=\"rtype\"\n name=\"rtype\"\n options={rtypeOpt}\n onChange={this.handleChange}\n />\n </Form.Field>\n </Form>\n <Button\n basic\n size=\"small\"\n color=\"green\"\n content=\"Submit\"\n onClick={this.handleSubmit}\n className=\"mt-2 mb-3\"\n />\n {this.state.rtype == \"collwise\" && this.state.shwTbl && (\n <CollwiseAdmStats />\n )}\n {this.state.rtype == \"degwise\" && this.state.shwTbl && (\n <DegwiseAdmStats />\n )}\n </Card.Description>\n </Card.Content>\n </Card>\n </>\n );\n }\n}\n\nconst mapStateToProps = state => {\n return {\n collAdmStats: state.admCollStats\n };\n};\nexport default connect(\n mapStateToProps,\n {\n getAdmStats,\n showError\n }\n)(AdmStats);\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":""}
|