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.189.194.225
{"version":3,"sources":["pages/masters/boardMaster/index.js","actions/masters/boardMaster.js","../node_modules/semantic-ui-react/dist/es/elements/Divider/Divider.js","actions/masters/subEntryScrn.js","actions/masters/reasonMaster.js"],"names":["BoardMaster","state","codeDis","changeCell","data","el","i","newdata","type","value","checked","Object","objectSpread","defineProperty","name","_this","props","changeDet","handleSave","showErr","_callee","error","regenerator_default","a","wrap","_context","prev","next","boardList","filter","fboardname","length","header","content","showError","abrupt","saveBoardMaster","getBoardLists","stop","add","_callee2","_context2","fboardcode","addRow","this","_this2","boardDet","wheight","wHeight","react_default","createElement","Fragment","Card","fluid","Content","Header","style","display","className","Button","basic","size","onClick","color","icon","Link","to","Divider","Description","height","concat","overflowY","Table","celled","compact","padding","Row","textAlign","HeaderCell","width","Body","map","Cell","Form","Input","placeholder","maxLength","readOnly","undefined","fedit","onChange","e","fchairman","fboename","fboemobileno","fboeemail","Checkbox","fdeleted","onKeyDown","preventDefault","keyCode","Component","connect","console","log","board","fetchBoards","_ref","asyncToGenerator","mark","dispatch","getState","response","_error","univadmin","get","params","univcode","univ","funivcode","sent","error_code","msg","payload","_x","_x2","apply","arguments","_ref2","_error2","success","post","_x3","_x4","_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__","getSubDet","_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","fdeggrp","user","fdegree","subjectData","mainlvl","fexamno","changeSubDet","changeSublvl","getSubjectDet","fsubcode","cancelDet","saveSubDet","_ref3","_callee3","subDet","_error3","_context3","_x5","_x6","getOldSubDet","_ref4","_callee4","_error4","_context4","_x7","_x8","deleteSub","degree","examno","subcode","_ref5","_callee5","_error5","_context5","_x9","_x10","getreasoncd","id","reasonID","savereasonMaster","getReasonsIDs"],"mappings":"0TAYMA,6MACJC,MAAQ,CAAEC,SAAS,KAMnBC,WAAa,SAACC,EAAMC,EAAIC,GAEtB,IAAIC,EAAU,GACRC,EAAO,kBACb,GAAiB,YAAbJ,EAAKI,KAAoB,CAC3B,IAAMC,EAAQL,EAAKM,QAAU,IAAM,IACnCH,EAAOI,OAAAC,EAAA,EAAAD,CAAA,GAAQN,EAARM,OAAAE,EAAA,EAAAF,CAAA,GAAaP,EAAKU,KAAOL,IAChCM,EAAKC,MAAMC,UAAUV,EAASD,EAAGE,QAEjCD,EAAOI,OAAAC,EAAA,EAAAD,CAAA,GAAQN,EAARM,OAAAE,EAAA,EAAAF,CAAA,GAAaP,EAAKU,KAAOV,EAAKK,QACrCM,EAAKC,MAAMC,UAAUV,EAASD,EAAGE,MAIrCU,WAAa,kBAAMH,EAAKI,aAExBA,6BAAU,SAAAC,IAAA,IAAAC,EAAA,OAAAC,EAAAC,EAAAC,KAAA,SAAAC,GAAA,cAAAA,EAAAC,KAAAD,EAAAE,MAAA,YACWZ,EAAKC,MAAMY,UAAUC,OACtC,SAACxB,EAAIC,GAAL,MAA4B,IAAjBD,EAAGyB,aAEDC,OAAS,GAJhB,CAAAN,EAAAE,KAAA,eAKAN,EAAQ,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import { Card, Form, Button, Divider, Table, Grid } from \"semantic-ui-react\";\nimport { changeDet } from \"../../../actions/masters/reasonMaster\";\nimport { connect } from \"react-redux\";\nimport { Link } from \"react-router-dom\";\nimport { showError, fetchBoards } from \"../../../actions\";\nimport {\n getBoardLists,\n saveBoardMaster\n} from \"../../../actions/masters/boardMaster\";\nimport { addRow } from \"../../../actions/masters/subEntryScrn\";\nimport { wHeight } from \"../../parms\";\nclass BoardMaster extends Component {\n state = { codeDis: true };\n\n async componentDidMount() {\n await this.props.getBoardLists();\n }\n\n changeCell = (data, el, i) => {\n // console.log(\"CELLL\", data, el);\n let newdata = {};\n const type = \"CHANGE_BOARDDET\";\n if (data.type == \"checkbox\") {\n const value = data.checked ? \"T\" : \"F\";\n newdata = { ...el, [data.name]: value };\n this.props.changeDet(newdata, i, type);\n } else {\n newdata = { ...el, [data.name]: data.value };\n this.props.changeDet(newdata, i, type);\n }\n };\n\n handleSave = () => this.showErr();\n\n showErr = async () => {\n const emptyCount = this.props.boardList.filter(\n (el, i) => el.fboardname == \"\"\n );\n if (emptyCount.length > 2) {\n const error = {\n header: \"Error\",\n content: \"Fill Details Before saving. \"\n };\n this.props.showError(error);\n return;\n } else {\n await this.props.saveBoardMaster();\n this.props.getBoardLists();\n }\n // return;\n };\n\n add = async () => {\n let i = this.props.boardList.length;\n const el = this.props.boardList[i - 1];\n\n if (el.fboardcode === \"\" || el.fboardname === \"\") {\n const error = {\n header: \"Error\",\n content: \"Fill Details to Add next Row. \"\n };\n this.props.showError(error);\n return;\n }\n const type = \"ADD_BOARDS\";\n await this.props.addRow(type);\n // this.setState({ codeDis: false });\n };\n\n render() {\n const boardDet = this.props.boardList;\n const wheight = wHeight();\n return (\n <>\n <Card fluid>\n <Card.Content>\n <Card.Header style={{ display: \"flex\" }}>\n <h3>Board Master</h3>\n <div className=\"ml-auto\">\n <Button\n basic\n size=\"small\"\n onClick={this.add}\n color=\"blue\"\n icon=\"plus\"\n content=\"Add\"\n />\n <Button\n basic\n color=\"green\"\n content=\"Save\"\n onClick={this.handleSave}\n icon=\"save\"\n />\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\n style={{ height: `${wheight}px`, overflowY: \"auto\" }}\n > \n <Table celled compact style={{ padding: \"0%\" }}>\n <Table.Header>\n <Table.Row textAlign=\"center\">\n <Table.HeaderCell width=\"1\">Sl. No.</Table.HeaderCell>\n <Table.HeaderCell width=\"2\">Code</Table.HeaderCell>\n <Table.HeaderCell width=\"4\">\n Description\n </Table.HeaderCell>\n <Table.HeaderCell width=\"2\">Chairman Code</Table.HeaderCell>\n <Table.HeaderCell width=\"4\">\n Chairman Name\n </Table.HeaderCell>\n <Table.HeaderCell width=\"5\">Mobile No.</Table.HeaderCell>\n <Table.HeaderCell width=\"4\">Email</Table.HeaderCell>\n <Table.HeaderCell width=\"1\">Del</Table.HeaderCell>\n </Table.Row>\n </Table.Header>\n <Table.Body>\n {boardDet.map((el, i) => {\n return (\n <Table.Row>\n <Table.Cell textAlign=\"center\">\n {i + 1}\n </Table.Cell>\n <Table.Cell style={{ padding: \"0px 0px\" }}>\n <Form.Input\n placeholder=\"Code\"\n className=\"center\"\n value={el.fboardcode}\n style={{ width: \"65px\", textAlign: \"center\" }}\n name=\"fboardcode\"\n textAlign=\"center\"\n maxLength={4}\n readOnly={\n el.fedit == undefined ? true : false\n }\n onChange={(e, data) =>\n this.changeCell(data, el, i)\n }\n />\n </Table.Cell>\n <Table.Cell style={{ padding: \"0px 0px\" }}>\n <Form.Input\n placeholder=\"Board Name\"\n value={el.fboardname}\n style={{ width: \"100%\" }}\n name=\"fboardname\"\n onChange={(e, data) =>\n this.changeCell(data, el, i)\n }\n />\n </Table.Cell> \n <Table.Cell style={{ padding: \"0px 0px\" }}>\n <Form.Input\n placeholder=\"Chairman Code\"\n value={el.fchairman}\n style={{ width: \"100%\" }}\n name=\"fchairman\"\n onChange={(e, data) =>\n this.changeCell(data, el, i)\n }\n />\n </Table.Cell>\n <Table.Cell style={{ padding: \"0px 0px\" }}>\n <Form.Input\n placeholder=\"Chairman Name\"\n value={el.fboename}\n style={{ width: \"100%\" }}\n name=\"fboename\"\n onChange={(e, data) =>\n this.changeCell(data, el, i)\n }\n />\n </Table.Cell>\n <Table.Cell style={{ padding: \"0px 0px\" }}>\n <Form.Input\n placeholder=\"Mobile number\"\n value={el.fboemobileno}\n style={{ width: \"100%\" }}\n name=\"fboemobileno\"\n onChange={(e, data) =>\n this.changeCell(data, el, i)\n }\n />\n </Table.Cell>\n <Table.Cell style={{ padding: \"0px 0px\" }}>\n <Form.Input\n placeholder=\"Email ID\"\n value={el.fboeemail}\n style={{ width: \"100%\" }}\n name=\"fboeemail\"\n onChange={(e, data) =>\n this.changeCell(data, el, i)\n }\n />\n </Table.Cell>\n <Table.Cell\n style={{ padding: \"0px 0px\" }}\n textAlign=\"center\"\n >\n {boardDet.length == i + 1 ? (\n <Form.Checkbox\n value={el.fdeleted}\n name=\"fdeleted\"\n checked={el.fdeleted == \"T\"}\n onChange={(e, data) =>\n this.changeCell(data, el, i)\n }\n onKeyDown={e => {\n e.preventDefault();\n if (e.keyCode === 9) this.add();\n }}\n />\n ) : (\n <Form.Checkbox\n value={el.fdeleted}\n name=\"fdeleted\"\n checked={el.fdeleted == \"T\"}\n onChange={(e, data) =>\n this.changeCell(data, el, i)\n }\n />\n )}\n </Table.Cell>\n </Table.Row>\n );\n })}\n </Table.Body>\n </Table> \n </Card.Description>\n </Card.Content>\n </Card>\n </>\n );\n }\n}\n\nconst mapStatetoProps = state => {\n console.log(state);\n return {\n board: state.board,\n boardList: state.boardList\n };\n};\nexport default connect(\n mapStatetoProps,\n {\n fetchBoards,\n getBoardLists,\n changeDet,\n saveBoardMaster,\n showError,\n addRow\n }\n)(BoardMaster);\n","import univadmin from \"../../apis/univadmin\";\nimport { showError } from \"../index\";\n\nexport const getBoardLists = () => {\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: \"getBoardLists\",\n univcode: state.univ.funivcode\n }\n });\n\n dispatch({\n type: \"UNSET_LOADER\"\n });\n console.log(response);\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_BOARD_LIST\",\n payload: response.data\n });\n }\n };\n};\n\nexport const saveBoardMaster = () => {\n return async (dispatch, getState) => {\n const state = getState();\n const response = await univadmin.post(\n \"app.php?a=saveBoardMaster&univcode=\" + state.univ.funivcode,\n { data: state.boardList }\n );\n console.log(\"REs\", response);\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 const success = { header: \"Success\", content: response.data.data.msg };\n dispatch(showError(success));\n }\n };\n};\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 getSubDet = () => {\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: \"getSubDet\",\n univcode: state.univ.funivcode,\n fdeggrp: state.user.fdeggrp,\n fdegree: state.subjectData.mainlvl.fdegree,\n fexamno: state.subjectData.mainlvl.fexamno\n }\n });\n\n // dispatch({\n // type: \"UNSET_LOADER\"\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_SUBJECTS\",\n payload: response.data\n });\n }\n };\n};\n\nexport const changeSubDet = (name, value) => {\n return {\n type: \"CHANGE_SUB_DATA\",\n payload: { name, value }\n };\n};\n\nexport const changeSublvl = (el, i) => {\n return {\n type: \"CHANGE_SUB_LVL\",\n payload: { el, i }\n };\n};\n\nexport const getSubjectDet = () => {\n return async (dispatch, getState) => {\n const state = getState();\n dispatch({\n type: \"SET_LOADER\"\n });\n const response = await univadmin.get(\"/app.php\", {\n params: {\n a: \"getSubjectData\",\n univcode: state.univ.funivcode,\n fdegree: state.subjectData.mainlvl.fdegree,\n fexamno: state.subjectData.mainlvl.fexamno,\n fsubcode: state.subjectData.mainlvl.fsubcode\n }\n });\n dispatch({\n type: \"UNSET_LOADER\"\n });\n console.log(\"Response\", response);\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_SUBJECT_DATA\",\n payload: response.data\n });\n }\n };\n};\n\nexport const cancelDet = () => {\n return {\n type: \"CANCEL_DET\"\n };\n};\n\nexport const addRow = type => {\n return {\n type: type\n // payload: { newRow }\n };\n};\n\nexport const saveSubDet = () => {\n return async (dispatch, getState) => {\n const state = getState();\n const subDet = state.subjectData;\n\n dispatch({\n type: \"SET_LOADER\"\n });\n\n const response = await univadmin.post(\n \"app.php?a=saveSubDet&univcode=\" + state.univ.funivcode,\n { data: subDet }\n );\n\n dispatch({\n type: \"UNSET_LOADER\"\n });\n // console.log(\"Response\", response);\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 const success = { header: \"Success\", content: response.data.data.msg };\n dispatch(showError(success));\n dispatch({\n type: \"SUCC_SUBJECT\"\n });\n }\n };\n};\n\nexport const getOldSubDet = (fdegree, fsubcode) => {\n return async (dispatch, getState) => {\n const state = getState();\n dispatch({\n type: \"SET_LOADER\"\n });\n const response = await univadmin.get(\"/app.php\", {\n params: {\n a: \"getSubjectData\",\n univcode: state.univ.funivcode,\n fdegree: fdegree,\n fsubcode: fsubcode,\n fexamno: state.subjectData.mainlvl.fexamno\n }\n });\n dispatch({\n type: \"UNSET_LOADER\"\n });\n console.log(\"Response\", response);\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_OLD_SUBJECT_DATA\",\n payload: response.data\n });\n }\n };\n};\n\nexport const deleteSub = (degree, examno, subcode) => {\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: \"deleteSub\",\n univcode: state.univ.funivcode,\n fdegree: degree,\n fexamno: examno,\n fsubcode: subcode\n }\n });\n\n dispatch({\n type: \"UNSET_LOADER\"\n });\n // console.log(\"Response\", response);\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 const success = { header: \"Success\", content: response.data.data.msg };\n dispatch(showError(success));\n dispatch({\n type: \"SUCC_SUBJECT\"\n });\n }\n };\n};\n","import univadmin from \"../../apis/univadmin\";\nimport { showError } from \"../index\";\n\nexport const getreasoncd = id => {\n return async (dispatch, getState) => {\n const state = getState();\n const response = await univadmin.get(\"/app.php\", {\n params: {\n a: \"getreasoncd\",\n univcode: state.univ.funivcode,\n reasonID: id\n }\n });\n\n console.log(response);\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_REASONSID\",\n payload: response.data\n });\n }\n };\n};\n\nexport const changeDet = (el, i, type) => {\n return {\n type: type,\n payload: { el, i }\n };\n};\n\nexport const savereasonMaster = () => {\n return async (dispatch, getState) => {\n const state = getState();\n const response = await univadmin.post(\n \"app.php?a=saveReasonMaster&univcode=\" + state.univ.funivcode,\n { data: state.getReasonsIDs }\n );\n console.log(\"REs\", response);\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 const success = { header: \"Success\", content: response.data.data.msg };\n dispatch(showError(success));\n }\n };\n};\n"],"sourceRoot":""}
|