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.145.89.181


Current Path : /proc/thread-self/root/var/www/qpms/assets/
Upload File :
Current File : //proc/thread-self/root/var/www/qpms/assets/Degree-DCKlo7-9.js

import{v as g,E as r}from"./index-C5nTC1sr.js";const s=a=>async t=>{try{t({type:"SET_LOADER"});let e=localStorage.getItem("dbname"),o=await g.post("app.php?a=saveDegreeInfo&db="+e,a);t({type:"UNSET_LOADER"}),o.data.error_code==0?r(o.data.data.msg):r("info",o.data.data.msg)}catch(e){r("error",e.message)}},d=()=>async a=>{try{a({type:"SET_LOADER"});let t=localStorage.getItem("dbname"),e=await g.get("app.php?a=getDegreeDetails&db="+t);a({type:"UNSET_LOADER"}),e.data.error_code==0?a({type:"GET_DEGREE",payload:e.data.data}):(a({type:"CLEAR_DEGREE",payload:[]}),r("info",e.data.data.msg))}catch(t){r("error",t.message)}},p=(a,t)=>async e=>{try{e({type:"SET_LOADER"});let o=localStorage.getItem("dbname"),E=await g.get("app.php?a=deleteDegree&db="+o+"&deg="+a+"&sem="+t);console.log(E),e({type:"UNSET_LOADER"}),E.data.error_code==0?(r("info",E.data.data.msg),e(d())):(e({type:"CLEAR_DEGREE",payload:[]}),r("info",E.data.data.msg))}catch(o){r("error",o.message)}},n=(a,t)=>async e=>{try{e({type:"SET_LOADER"});let o=localStorage.getItem("dbname"),E=await g.get("app.php?a=updateDegree&db="+o+"&deg="+a+"&sem="+t);console.log(E),e({type:"UNSET_LOADER"}),E.data.error_code==0?e({type:"UPDATE_DEGREE",payload:E.data.data}):(e({type:"CLEAR_DEGREE",payload:[]}),r("info",E.data.data.msg))}catch(o){r("error",o.message)}},y=()=>async a=>{try{a({type:"SET_LOADER"});let t=localStorage.getItem("dbname"),e=await g.get("app.php?a=getdeggrpfordeg&db="+t);console.log(e),a({type:"UNSET_LOADER"}),e.data.error_code==0?a({type:"GET_DEGGRP_DEGREE",payload:e.data.data}):(a({type:"CLEAR_DEGREE",payload:[]}),r("info",e.data.data.msg))}catch(t){r("error",t.message)}};export{y as a,p as b,d as g,s,n as u};