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


Current Path : /var/www/qpms/assets/
Upload File :
Current File : /var/www/qpms/assets/ModQpDetails-Coymj29i.js

import{v as l,E as p}from"./index-C4_RfpBA.js";const y=()=>async(a,o)=>{try{let e=localStorage.getItem("dbname");const r=o();a({type:"SET_LOADER"});const t=await l.get("app.php?a=getModQPOnline&db="+e+"&teachcode="+r.loginfo.userData.fregno);if(a({type:"UNSET_LOADER"}),t.data.error_code===0){const s=t.data.data.map((d,n)=>({...d,key:n,fslno:n+1}));a({type:"MOD_QP_ONLINE",payload:s})}else a({type:"MOD_QP_ONLINE",payload:[]})}catch(e){p("error",e.message)}},m=()=>async(a,o)=>{try{let e=localStorage.getItem("dbname");const r=o();a({type:"SET_LOADER"});const t=await l.get("app.php?a=getModQpDetails&db="+e+"&teachcode="+r.loginfo.userData.fregno);if(a({type:"UNSET_LOADER"}),t.data.error_code===0){const s=t.data.data.map((d,n)=>({...d,key:n,fslno:n+1}));a({type:"MOD_QP_OFFLINE",payload:s})}else a({type:"MOD_QP_OFFLINE",payload:[]})}catch(e){p("error",e.message)}},D=a=>async(o,e)=>{try{let r=localStorage.getItem("dbname");const t=e();o({type:"SET_LOADER"});const s=await l.get("app.php?a=getModUpdData&db="+r+"&userid="+t.loginfo.userData.fregno+"&univcode="+t.loginfo.userData.funivcode+"&data="+JSON.stringify(a));if(o({type:"UNSET_LOADER"}),s.data.error_code===0){const d=s.data.data.map((n,c)=>({...n,key:c,fslno:c+1}));o({type:"MOD_QP_DATA",payload:d})}else o({type:"MOD_QP_DATA",payload:[]})}catch(r){p("error",r.message)}},f=(a,o,e)=>async(r,t)=>{try{let s=localStorage.getItem("dbname");const d=t();r({type:"SET_LOADER"});const n=await l.post("app.php?a=uploadModQpData&db="+s,a);r({type:"UNSET_LOADER"}),console.log(n),n.data.error_code===0?(p("success",n.data.data.msg),o(e)):p("info",n.data.data.msg)}catch(s){p("error",s.message)}},_=(a,o)=>async(e,r)=>{try{const t=r();e({type:"SET_LOADER"});let s=localStorage.getItem("dbname");const d=await l.post("/app.php?a=saveModConfirm&db="+s+"&univcode="+t.loginfo.userData.funivcode,a);e({type:"UNSET_LOADER"}),typeof d.data!="object"?p("error","something went wrong try later"):d.data.error_code===0?(p("success",d.data.data.msg),o()):p("info",d.data.data.msg)}catch(t){p("error",t.message)}};export{D as a,m as b,y as g,_ as s,f as u};