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


Current Path : /var/www/qpms/assets/
Upload File :
Current File : /var/www/qpms/assets/DegreeGroup-ChieoT53.js

import{v as s,E as r}from"./index-OBlfExy4.js";const D=t=>async(e,g)=>{try{const a=new FormData;a.append("data",JSON.stringify(t));let o=localStorage.getItem("dbname");e({type:"SET_LOADER"});const d=await s.post("app.php?a=saveDeggrp&db="+o,a);e({type:"UNSET_LOADER"}),d.data.error_code===0?r("success",d.data.data.msg):r("info",d.data.data.msg)}catch(a){r("error",a.message)}},p=()=>async(t,e)=>{try{let g=localStorage.getItem("dbname");t({type:"SET_LOADER"});let a=await s.get("app.php?a=getdeggrpdata&db="+g);t({type:"UNSET_LOADER"}),console.log(a),a.data.error_code==0?t({type:"DEGGRP_DATA",payload:a.data.data}):(t({type:"CLEAR_DEGGRP_DATA",payload:[]}),r("info",a.data.data.msg))}catch(g){r("error",g.message)}},l=t=>async(e,g)=>{try{let a=localStorage.getItem("dbname");e({type:"SET_LOADER"});let o=await s.get("app.php?a=toDeleteDeggrpData&db="+a+"&deggrp="+t);e({type:"UNSET_LOADER"}),o.data.error_code==0?(r("info",o.data.data.msg),e(p())):r("info",o.data.data.msg)}catch(a){r("error",a.message)}},m=t=>async(e,g)=>{try{let a=localStorage.getItem("dbname");e({type:"SET_LOADER"});let o=await s.get("app.php?a=toEditDeggrpData&db="+a+"&deggrp="+t);e({type:"UNSET_LOADER"}),o.data.error_code==0?e({type:"EDIT_DEGGRP_DATA",payload:o.data.data}):r("info",o.data.data.msg)}catch(a){r("error",a.message)}};export{m as a,p as g,D as s,l as t};