0xV3NOMx
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.133.109.141


Current Path : /proc/thread-self/root/var/www/college/static/js/
Upload File :
Current File : //proc/thread-self/root/var/www/college/static/js/84.ebb6d117.chunk.js.map

{"version":3,"file":"static/js/84.ebb6d117.chunk.js","mappings":"qNAGO,MAAMA,EAAwBC,IAAS,CAC5CC,eAAgBC,IAAA,IAAC,gBACfC,EAAe,aACfC,EAAY,QACZC,EAAO,aACPC,EAAY,MACZC,GACDL,EAAA,OACCM,EAAAA,EAAAA,MAAA,OACEC,MAAO,CACLC,QAAS,GAEXC,UAAYC,GAAMA,EAAEC,kBAAkBC,SAAA,EAEtCC,EAAAA,EAAAA,KAACC,EAAAA,EAAK,CACJC,WAAS,EACTC,YAAW,UAAAC,OAAYnB,GACvBoB,MAAOhB,EACPiB,SAAWT,GACTT,EAAgBS,EAAEU,OAAOF,MAAQ,CAACR,EAAEU,OAAOF,OAAS,IAEtDG,aAAcA,KACZlB,GAAS,EAEXI,MAAO,CACLe,aAAc,EACdC,QAAS,YAGbjB,EAAAA,EAAAA,MAACkB,EAAAA,EAAK,CAAAZ,SAAA,EACJC,EAAAA,EAAAA,KAACY,EAAAA,GAAM,CACLC,KAAK,UACLC,QAASA,IAAMxB,IACfyB,MAAMf,EAAAA,EAAAA,KAACgB,EAAAA,EAAc,IACrBC,KAAK,QACLvB,MAAO,CACLwB,MAAO,IACPnB,SACH,YAGDC,EAAAA,EAAAA,KAACY,EAAAA,GAAM,CACLE,QAASA,KACPvB,IACAD,GAAS,EAEX2B,KAAK,QACLvB,MAAO,CACLwB,MAAO,IACPnB,SACH,eAIC,EAERoB,WAAaC,IACXpB,EAAAA,EAAAA,KAACgB,EAAAA,EAAc,CACbtB,MAAO,CACL2B,MAAOD,EAAW,UAAY,UAIpCE,SAAUA,CAACjB,EAAOkB,IAChBA,EAAOtC,GAAWuC,WAAWC,cAAcC,S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AGC,IAAK,EAAE9I,UACjDC,EAAAA,EAAAA,KAACY,EAAAA,GAAM,CAACuH,UAAU,OAAOrH,QAASA,IAAMiE,IAAiBhF,SAAC,cAM9DC,EAAAA,EAAAA,KAACmJ,EAAAA,EAAK,CACJC,OAAQ,CAAEC,EAAG,KACbC,UAAQ,EACR3C,QAASA,EACT4C,QAAStG,EAAMsG,QACfC,WAAYvD,EACZhF,KAAK,WAGPjB,EAAAA,EAAAA,KAACyJ,EAAAA,EAAK,CACJjG,QAASA,EACToD,MAAM,gBACN8C,OAAQ,EACN1J,EAAAA,EAAAA,KAACY,EAAAA,GAAM,CAELE,QAASA,KACP2C,GAAW,EAAM,EACjB1D,SACH,UAJK,SAONC,EAAAA,EAAAA,KAACY,EAAAA,GAAM,CAELC,KAAK,UAELC,QAASA,KAxKA,IAAI6I,QAyKG,EACd5J,SACH,UANK,WAUR6J,SAAUA,KACRnG,GAAW,EAAM,EACjB1D,UAEFC,EAAAA,EAAAA,KAAA,OAAK6J,IAAI,UAAUnK,MAAO,CAAEwB,MAAO,QAAU4I,IAAKpG,QAE/C,G","sources":["Components/datatable.js","Pages/Masters/UploadStudentPhoto/UploadStudentPhoto.js","Actions/masters/UploadStudentPhoto/UploadStudentPhoto.js"],"sourcesContent":["import { Input, Button, Space } from \"antd\";\nimport { SearchOutlined } from \"@ant-design/icons\";\n\nexport const getColumnSearchProps = (dataIndex) => ({\n  filterDropdown: ({\n    setSelectedKeys,\n    selectedKeys,\n    confirm,\n    clearFilters,\n    close,\n  }) => (\n    <div\n      style={{\n        padding: 8,\n      }}\n      onKeyDown={(e) => e.stopPropagation()}\n    >\n      <Input\n        autoFocus\n        placeholder={`Search ${dataIndex}`}\n        value={selectedKeys}\n        onChange={(e) =>\n          setSelectedKeys(e.target.value ? [e.target.value] : [])\n        }\n        onPressEnter={() => {\n          confirm();\n        }}\n        style={{\n          marginBottom: 8,\n          display: \"block\",\n        }}\n      />\n      <Space>\n        <Button\n          type=\"primary\"\n          onClick={() => confirm()}\n          icon={<SearchOutlined />}\n          size=\"small\"\n          style={{\n            width: 90,\n          }}\n        >\n          Search\n        </Button>\n        <Button\n          onClick={() => {\n            clearFilters();\n            confirm();\n          }}\n          size=\"small\"\n          style={{\n            width: 90,\n          }}\n        >\n          Reset\n        </Button>\n      </Space>\n    </div>\n  ),\n  filterIcon: (filtered) => (\n    <SearchOutlined\n      style={{\n        color: filtered ? \"#CFFF8D\" : \"#fff\",\n      }}\n    />\n  ),\n  onFilter: (value, record) =>\n    record[dataIndex].toString().toLowerCase().includes(value.toLowerCase()),\n});\n\nexport const filterOption = (input, option) =>\n  option.value.toString().toLowerCase().indexOf(input.toLowerCase()) >= 0 ||\n  option.label.toString().toLowerCase().indexOf(input.toLowerCase()) >= 0;\n\nexport const sortWithAlphabets = (a, b, index) =>\n  a[index].localeCompare(b[index]);\n","import React, { useEffect, useState } from \"react\";\nimport { connect, useDispatch } from \"react-redux\";\nimport { Link } from \"react-router-dom\";\nimport {\n  Card,\n  Space,\n  Button,\n  Row,\n  Col,\n  Select,\n  Input,\n  Table,\n  Upload,\n  Modal,\n} from \"antd\";\nimport { filterOption } from \"../../../Components/datatable\";\nimport {\n  getDegree,\n  viewStudentUpdDet,\n} from \"../../../Actions/masters/UploadStudentPhoto/UploadStudentPhoto\";\nimport {\n  getColumnSearchProps,\n  sortWithAlphabets,\n} from \"../../../Components/datatable\";\nimport { UploadOutlined, PlusOutlined } from \"@ant-design/icons\";\n\nconst typeOptions = [\n  { key: \"all\", label: \"All\", value: \"all\" },\n  { key: \"pending\", label: \"Pending\", value: \"pending\" },\n  { key: \"uploaded\", label: \"Uploaded\", value: \"uploaded\" },\n];\n\nconst UploadStudentPhoto = (props) => {\n  const dispatch = useDispatch();\n  const [state, setState] = useState({\n    degree: [],\n    regfrom: \"0\",\n    regto: \"Z\",\n    type: \"all\",\n  });\n  const [visible, setVisible] = useState(false);\n  const [previewImage, setPreviewImage] = useState(\"\");\n  const [fileList, setFileList] = useState([]);\n  const [record, setRecord] = useState({});\n\n  useEffect(() => {\n    getDegree(dispatch, props.user.fcollcode);\n  }, []);\n\n  const changeHandler = async (name, e) => {\n    await setState((values) => ({ ...values, [name]: e }));\n  };\n\n  const viewStudentDet = async () => {\n    await viewStudentUpdDet(dispatch, props.user.fcollcode, state);\n  };\n\n  // const handleChange = async ({ fileList }) => {\n  //   console.log(fileList);\n  //   if (fileList.length > 0) {\n  //     fileList = [fileList[fileList.length - 1]];\n  //     let file = await getBase64(fileList[fileList.length - 1].originFileObj);\n  //     setPreviewImage(file);\n  //     setVisible(true);\n  //     setFileList(fileList);\n  //   } else {\n  //     setPreviewImage([]);\n  //     setVisible(false);\n  //     setFileList([]);\n  //   }\n  // };\n\n  const handlePreview = async (file) => {\n    if (!file.url && !file.preview) {\n      file.preview = await getBase64(file.originFileObj);\n    }\n    setPreviewImage(file.url || file.preview);\n    setVisible(true);\n  };\n\n  const handleChange = async (info, record) => {\n    console.log(record);\n    if (info.fileList.length > 0) {\n      const updatedFileList = {\n        ...fileList,\n        [record.key]: [info.fileList[info.fileList.length - 1]],\n      };\n\n      let file = await getBase64(\n        info.fileList[info.fileList.length - 1].originFileObj\n      );\n      setPreviewImage(file);\n      setVisible(true);\n      setFileList(updatedFileList);\n      setRecord(record);\n    } else {\n      deletePhoto(record.key);\n      setRecord({});\n    }\n  };\n\n  const deletePhoto = (key) => {\n    const updatedFileList = {\n      ...fileList,\n      [key]: [],\n    };\n    setPreviewImage([]);\n    setVisible(false);\n    setFileList(updatedFileList);\n  };\n\n  const getBase64 = (file) => {\n    return new Promise((resolve, reject) => {\n      const reader = new FileReader();\n      reader.readAsDataURL(file);\n      reader.onload = () => resolve(reader.result);\n      reader.onerror = (error) => reject(error);\n    });\n  };\n\n  const handleUpload = () => {\n    const formdata = new FormData();\n  };\n\n  const tabledata = props.studPhDet.map((el, i) => ({\n    key: i,\n    slno: i + 1,\n    regno: el.fregno,\n    degree: el.fdegree,\n    name: el.fname,\n    select: \"\",\n  }));\n\n  const columns = [\n    {\n      title: \"Sl. No\",\n      dataIndex: \"slno\",\n      align: \"center\",\n      width: \"5%\",\n    },\n    {\n      title: \"Reg. No.\",\n      dataIndex: \"regno\",\n      ...getColumnSearchProps(\"regno\"),\n      sorter: (a, b) => sortWithAlphabets(a, b, \"regno\"),\n      sortDirections: [\"descend\", \"ascend\"],\n      align: \"center\",\n      width: \"15%\",\n    },\n    {\n      title: \"Name\",\n      dataIndex: \"name\",\n      ...getColumnSearchProps(\"name\"),\n      sorter: (a, b) => sortWithAlphabets(a, b, \"name\"),\n      sortDirections: [\"descend\", \"ascend\"],\n      width: \"55%\",\n    },\n    {\n      title: \"Degree\",\n      dataIndex: \"degree\",\n      ...getColumnSearchProps(\"degree\"),\n      sorter: (a, b) => sortWithAlphabets(a, b, \"degree\"),\n      sortDirections: [\"descend\", \"ascend\"],\n      align: \"center\",\n      width: \"10%\",\n    },\n    {\n      title: \"Action\",\n      key: \"upload\",\n      render: (text, record) => (\n        <Upload\n          fileList={fileList[record.key] || []}\n          onPreview={(file) => handlePreview(file)}\n          onChange={(info) => handleChange(info, record)}\n          beforeUpload={() => false}\n        >\n          <div>\n            <Button icon={<UploadOutlined />}>Click to Upload</Button>\n          </div>\n        </Upload>\n      ),\n      align: \"center\",\n      width: \"15%\",\n    },\n  ];\n\n  return (\n    <Card\n      hoverable\n      title=\"Upload Student Photo\"\n      style={{ width: \"100%\" }}\n      extra={\n        <Space direction=\"horizontal\">\n          <Button className=\"clear\">Clear</Button>\n          <Link to=\"/\">\n            <Button className=\"exit\">Exit</Button>\n          </Link>\n        </Space>\n      }\n    >\n      <Row style={{ marginBottom: \"10px\" }}>\n        <Col xs={24} sm={24} md={12} lg={12} xl={8} xxl={6}>\n          <label> Degree</label>\n          <Select\n            showSearch\n            style={{ width: \"100%\" }}\n            value={state.degree}\n            mode=\"multiple\"\n            name=\"degree\"\n            size=\"large\"\n            filterOption={filterOption}\n            options={props.degreeReducer}\n            onChange={(e) => changeHandler(\"degree\", e)}\n          />\n        </Col>\n      </Row>\n      <Row style={{ marginBottom: \"10px\" }}>\n        <Col xs={24} sm={24} md={12} lg={12} xl={8} xxl={6}>\n          <label> Reg. No. Range</label>\n          <Row gutter={16}>\n            <Col xs={12} sm={12} md={12} lg={12} xl={12} xxl={12}>\n              <Input\n                placeholder=\"Reg.No.(from)\"\n                value={state.regfrom}\n                name=\"regfrom\"\n                size=\"large\"\n                onChange={(e) => changeHandler(\"regfrom\", e.target.value)}\n              />\n            </Col>\n            <Col xs={12} sm={12} md={12} lg={12} xl={12} xxl={12}>\n              <Input\n                placeholder=\"Reg.No.(to)\"\n                name=\"regto\"\n                size=\"large\"\n                value={state.regto}\n                onChange={(e) => changeHandler(\"regto\", e.target.value)}\n              />\n            </Col>\n          </Row>\n        </Col>\n      </Row>\n      <Row style={{ marginBottom: \"10px\" }}>\n        <Col xs={24} sm={24} md={12} lg={12} xl={8} xxl={6}>\n          <label>Type</label>\n          <Select\n            showSearch\n            style={{ width: \"100%\" }}\n            name=\"type\"\n            size=\"large\"\n            value={state.type}\n            filterOption={filterOption}\n            options={typeOptions}\n            onChange={(e) => changeHandler(\"type\", e)}\n          />\n        </Col>\n      </Row>\n      <Row>\n        <Col xs={24} sm={24} md={12} lg={12} xl={8} xxl={6}>\n          <Button className=\"view\" onClick={() => viewStudentDet()}>\n            View\n          </Button>\n        </Col>\n      </Row>\n\n      <Table\n        scroll={{ y: 400 }}\n        bordered\n        columns={columns}\n        loading={props.loading}\n        dataSource={tabledata}\n        size=\"small\"\n      />\n\n      <Modal\n        visible={visible}\n        title=\"Image Preview\"\n        footer={[\n          <Button\n            key=\"back\"\n            onClick={() => {\n              setVisible(false);\n            }}\n          >\n            Cancel\n          </Button>,\n          <Button\n            key=\"submit\"\n            type=\"primary\"\n            // loading={uploading}\n            onClick={() => {\n              handleUpload();\n            }}\n          >\n            Upload\n          </Button>,\n        ]}\n        onCancel={() => {\n          setVisible(false);\n        }}\n      >\n        <img alt=\"preview\" style={{ width: \"100%\" }} src={previewImage} />\n      </Modal>\n    </Card>\n  );\n};\n\nconst mapStateToProps = (state) => {\n  return {\n    user: state.AuthReducer.userData,\n    degreeReducer: state.degree.degreeData,\n    studPhDet: state.studPhotoDet.studPhotoDet,\n  };\n};\n\nexport default connect(mapStateToProps)(UploadStudentPhoto);\n","import axios from \"axios\";\nimport { base_url } from \"../../../Components/consts/api\";\n\nexport const getDegree = async (dispatch, collcode) => {\n  dispatch({ type: \"SET_LOADER\" });\n  await axios\n    .get(base_url + \"getDegree\" + \"&collcode=\" + collcode)\n    .then((res) => {\n      if (res.data.error_code === 0) {\n        dispatch({\n          type: \"DEGREE_LIST\",\n          payload: res.data.data,\n        });\n      } else {\n        dispatch({\n          type: \"DEGREE_LIST\",\n          payload: [],\n        });\n      }\n      dispatch({ type: \"UNSET_LOADER\" });\n    });\n};\n\nexport const viewStudentUpdDet = async (dispatch, collcode, state) => {\n  dispatch({ type: \"SET_LOADER\" });\n  await axios\n    .get(\n      base_url +\n        \"viewStudentUpdDet\" +\n        \"&collcode=\" +\n        collcode +\n        \"&data=\" +\n        JSON.stringify(state)\n    )\n    .then((res) => {\n      dispatch({ type: \"UNSET_LOADER\" });\n      if (res.data.error_code === 0) {\n        dispatch({ type: \"STUDENT_PHOTO_DET\", payload: res.data.data });\n      } else {\n        dispatch({ type: \"STUDENT_PHOTO_DET\", payload: [] });\n      }\n    });\n};\n"],"names":["getColumnSearchProps","dataIndex","filterDropdown","_ref","setSelectedKeys","selectedKeys","confirm","clearFilters","close","_jsxs","style","padding","onKeyDown","e","stopPropagation","children","_jsx","Input","autoFocus","placeholder","concat","value","onChange","target","onPressEnter","marginBottom","display","Space","Button","type","onClick","icon","SearchOutlined","size","width","filterIcon","filtered","color","onFilter","record","toString","toLowerCase","includes","filterOption","input","option","indexOf","label","sortWithAlphabets","a","b","index","localeCompare","typeOptions","key","connect","state","user","AuthReducer","userData","degreeReducer","degree","degreeData","studPhDet","studPhotoDet","props","dispatch","useDispatch","setState","useState","regfrom","regto","visible","setVisible","previewImage","setPreviewImage","fileList","setFileList","setRecord","useEffect","async","collcode","axios","get","base_url","then","res","data","error_code","payload","getDegree","fcollcode","changeHandler","name","values","viewStudentDet","JSON","stringify","viewStudentUpdDet","deletePhoto","updatedFileList","getBase64","file","Promise","resolve","reject","reader","FileReader","readAsDataURL","onload","result","onerror","error","tabledata","map","el","i","slno","regno","fregno","fdegree","fname","select","columns","title","align","sorter","sortDirections","render","text","Upload","onPreview","url","preview","originFileObj","handlePreview","info","console","log","length","handleChange","beforeUpload","UploadOutlined","Card","hoverable","extra","direction","className","Link","to","Row","Col","xs","sm","md","lg","xl","xxl","Select","showSearch","mode","options","gutter","Table","scroll","y","bordered","loading","dataSource","Modal","footer","FormData","onCancel","alt","src"],"sourceRoot":""}