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


Current Path : /var/www/qpms/assets/
Upload File :
Current File : /var/www/qpms/assets/Degree-D6vOu3Wx.js

import{v as d,E as r}from"./index-BGN0ZMlx.js";const p=a=>async t=>{try{t({type:"SET_LOADER"});let e=localStorage.getItem("dbname"),o=await d.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)}},g=()=>async a=>{try{a({type:"SET_LOADER"});let t=localStorage.getItem("dbname"),e=await d.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)}},l=(a,t)=>async e=>{try{e({type:"SET_LOADER"});let o=localStorage.getItem("dbname"),E=await d.get("app.php?a=deleteDegree&db="+o+"&deg="+a+"&sem="+t);e({type:"UNSET_LOADER"}),E.data.error_code==0?(r("info",E.data.data.msg),e(g())):(e({type:"CLEAR_DEGREE",payload:[]}),r("info",E.data.data.msg))}catch(o){r("error",o.message)}},y=(a,t)=>async e=>{try{e({type:"SET_LOADER"});let o=localStorage.getItem("dbname"),E=await d.get("app.php?a=updateDegree&db="+o+"&deg="+a+"&sem="+t);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)}},n=()=>async a=>{try{a({type:"SET_LOADER"});let t=localStorage.getItem("dbname"),e=await d.get("app.php?a=getdeggrpfordeg&db="+t);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{n as a,l as b,g,p as s,y as u};