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.83.68
{"version":3,"sources":["pages/inword_update/index.js","actions/inword_update/index.js","../node_modules/semantic-ui-react/dist/es/elements/Divider/Divider.js"],"names":["InwordUpdate","state","status","inwordtab","_this","props","getinwordstatus","handleChange","e","data","setState","value","handleStatusChange","handleCancel","_callee","regenerator_default","a","wrap","_context","prev","next","frmsubmit","stop","handleSubmit","_callee2","error","_context2","header","content","showError","abrupt","inwordstatus","handleRemarks","console","log","newarr1","map","el","i","fremarks","newarr","fstatus","handleSave","_callee3","_context3","saveinword","this","_this2","_this$state","react_default","createElement","Card","fluid","Content","Header","style","display","className","Button","basic","color","onClick","icon","Link","to","Divider","Description","overflowY","height","Form","Group","Field","width","Dropdown","placeholder","search","selection","name","options","key","text","onChange","primary","Object","keys","length","Table","celled","Row","HeaderCell","singleLine","textAlign","Body","Cell","fltfrom","fsubject","Input","Component","connect","univcode","univ","funivcode","user","save","_ref2","asyncToGenerator","mark","dispatch","getState","response","_error2","_error3","type","univadmin","post","verifiedarr","updby","fuserid","fname","sent","error_code","msg","_x3","_x4","apply","arguments","_ref","_error","get","params","payload","_x","_x2","_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":"4RAmBMA,4NACJC,MAAQ,CACN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,EAAA,UAAoBjE,OAAA0D,EAAA,EAAA1D,CAAUkE,EAAA,cAA4BlE,OAAA0D,EAAA,EAAA1D,CAAUmE,EAAA,YAAwBnE,OAAA0D,EAAA,EAAA1D,CAAUoE,EAAA,WAAsBpE,OAAA0D,EAAA,EAAA1D,CAAUqE,EAAA,sBAAA/F,GACzOiG,EAAavE,OAAA2D,EAAA,EAAA3D,CAAiBlB,EAAA5D,GAC9BsJ,EAAoBxE,OAAA4D,EAAA,EAAA5D,CAAclB,EAAA5D,GAClC,OAASuI,EAAA5H,EAAKkC,cAAAyG,EAA4BpB,IAAQ,GAAGmB,EAAA,CACrDjG,UAAAgG,IACMT,EAAA,EAAaY,MAAAX,GAAArH,EAAAqH,GAGnBhF,EAAA4F,aAAA,kHACA5F,EAAA6F,UAiCC,GACcC,EAAA","file":"static/js/161.93fb350f.chunk.js","sourcesContent":["import React, { Component } from \"react\";\nimport { Link } from \"react-router-dom\";\nimport {\n Card,\n Button,\n Form,\n Table,\n Dropdown,\n Divider,\n Checkbox,\n Input,\n} from \"semantic-ui-react\";\nimport { inwordstatus, saveinword } from \"./../../actions/inword_update\";\n\nimport { connect } from \"react-redux\";\nimport { ReportAPI } from \"../../apis/consts\";\nimport { showError } from \"../../actions\";\nimport { wHeight } from \"../parms\";\n\nclass InwordUpdate extends Component {\n state = {\n status: \"pending\",\n inwordtab: this.props.getinwordstatus,\n };\n\n componentDidMount() {\n this.handleSubmit();\n }\n\n handleChange = (e, data) => {\n this.setState({ status: data.value });\n };\n handleStatusChange = (e, data) => {\n this.setState({ status: data.value });\n };\n\n handleCancel = async () => {\n // await this.props.clearteachid();\n this.setState({\n status: \"\",\n });\n this.setState({ frmsubmit: false });\n };\n\n handleSubmit = async () => {\n if (this.state.status === \"\") {\n const error = { header: \"Error\", content: \"Select Teacher ID\" };\n this.props.showError(error);\n return;\n }\n await this.props.inwordstatus(this.state.status);\n this.setState({ inwordtab: this.props.getinwordstatus });\n };\n handleRemarks = (e, data) => {\n console.log(e, data);\n const newarr1 = this.state.inwordtab.map((el, i) => {\n if (i === data) {\n el.fremarks = e;\n }\n return el;\n });\n\n this.setState({ inwordtab: newarr1 });\n };\n\n handleStatusChange = (e, data) => {\n const newarr = this.state.inwordtab.map((el, i) => {\n if (i === data) {\n el.fstatus = e;\n }\n return el;\n });\n this.setState({ inwordtab: newarr });\n };\n\n handleSave = async () => {\n await this.props.saveinword(this.state.inwordtab);\n this.handleSubmit();\n };\n render() {\n const { status, inwordtab } = this.state;\n\n const status_options = [\n {\n key: 1,\n value: \"all\",\n text: \"All\",\n },\n {\n key: 2,\n value: \"pending\",\n text: \"Pending\",\n },\n {\n key: 3,\n value: \"verified\",\n text: \"Verified\",\n },\n ];\n console.log(\"hii\");\n\n return (\n <Card fluid>\n <Card.Content>\n <Card.Header style={{ display: \"flex\" }}>\n <h4>Inword Update</h4>\n <div className=\"ml-auto\">\n <Button\n basic\n color=\"green\"\n content=\"Save\"\n onClick={this.handleSave}\n icon=\"save\"\n />\n <Button\n basic\n color=\"black\"\n icon=\"ban\"\n onClick={this.handleCancel}\n content=\"Cancel\"\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 style={{ overflowY: \"auto\", height: \"70vh\" }}>\n <div className=\"col-md-7\">\n <Form>\n <div>\n <Form.Group>\n <Form.Field width={8}>\n <label>Status</label>\n <Dropdown\n placeholder=\"Select Later From\"\n search\n selection\n name=\"status\"\n value={status}\n options={status_options}\n onChange={this.handleChange}\n />\n </Form.Field>\n </Form.Group>\n <Button primary onClick={this.handleSubmit}>\n Submit\n </Button>\n </div>\n </Form>\n </div>\n\n {Object.keys(this.state.inwordtab).length > 0 ? (\n <Table celled>\n <Table.Header>\n <Table.Row>\n <Table.HeaderCell\n style={{ width: \"5%\" }}\n singleLine\n textAlign=\"center\"\n >\n Sl. No.\n </Table.HeaderCell>\n <Table.HeaderCell\n style={{ width: \"5%\" }}\n textAlign=\"center\"\n >\n Letter From\n </Table.HeaderCell>\n <Table.HeaderCell\n style={{ width: \"25%\" }}\n textAlign=\"center\"\n >\n Subject\n </Table.HeaderCell>\n <Table.HeaderCell\n textAlign=\"center\"\n style={{ width: \"20%\" }}\n >\n Remarks\n </Table.HeaderCell>\n <Table.HeaderCell\n style={{ width: \"10%\" }}\n textAlign=\"center\"\n >\n Status\n </Table.HeaderCell>\n </Table.Row>\n </Table.Header>\n <Table.Body>\n {this.state.inwordtab.map((el, i) => {\n const table_status_options = [\n {\n key: 1,\n value: \"pending\",\n text: \"Pending\",\n },\n {\n key: 2,\n value: \"verified\",\n text: \"Verified\",\n },\n ];\n return (\n <Table.Row>\n <Table.Cell textAlign=\"center\">{i + 1}</Table.Cell>\n <Table.Cell textAlign=\"center\">\n <b>{el.fltfrom}</b>\n </Table.Cell>\n <Table.Cell>\n <b>{el.fsubject}</b>\n </Table.Cell>\n <Table.Cell textAlign=\"center\">\n <b>\n <Form.Input\n placeholder=\"Remarks\"\n name=\"fremarks\"\n onChange={(e, data) =>\n this.handleRemarks(data.value, i)\n }\n value={el.fremarks}\n />\n </b>\n </Table.Cell>\n <Table.Cell textAlign=\"center\">\n <b>\n <Dropdown\n placeholder=\"Select Later From\"\n search\n selection\n name=\"status\"\n value={el.fstatus}\n options={table_status_options}\n onChange={(e, data) =>\n this.handleStatusChange(data.value, i)\n }\n />\n </b>\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\nconst mapStateToProps = (state) => {\n console.log(state);\n return {\n univcode: state.univ.funivcode,\n getinwordstatus: state.getinwordstatus,\n user: state.user,\n };\n};\n\nexport default connect(mapStateToProps, {\n showError,\n saveinword,\n inwordstatus,\n})(InwordUpdate);\n","import univadmin from \"../../apis/univadmin\";\nimport { showError } from \"../index\";\n\nexport const inwordstatus = (status) => {\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: \"getinwordstatus\",\n univcode: state.univ.funivcode,\n status: status,\n },\n });\n\n dispatch({\n type: \"UNSET_LOADER\",\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: \"INWORD_STATUS\",\n payload: response.data,\n });\n }\n };\n};\n\nexport const saveinword = (save) => {\n return async (dispatch, getState) => {\n const state = getState();\n dispatch({\n type: \"SET_LOADER\",\n });\n\n const response = await univadmin.post(\n \"/app.php?a=saveinwordstatus&univcode=\" + state.univ.funivcode,\n {\n verifiedarr: save,\n updby: state.user.fuserid + \"-\" + state.user.fname,\n }\n );\n\n dispatch({\n type: \"UNSET_LOADER\",\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 const error = { header: \"Success\", content: response.data.data.msg };\n dispatch(showError(error));\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;"],"sourceRoot":""}
|