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 : 18.119.19.251
(window.webpackJsonp=window.webpackJsonp||[]).push([[100],{1157:function(e,t,a){"use strict";a.r(t);var n=a(41),r=a.n(n),o=a(68),c=a(1),i=a.n(c),l=a(1139),s=a(1106),u=a(272),d=a(104),p=a(266),f=a(486),m=a(379),h=a.n(m),v=(a(380),a(858)),E=a(271),b=a(269);t.default=Object(d.b)(function(e){return{user:e.user}},{showError:p.w,MulFileUpload:function(e){return function(){var t=Object(o.a)(r.a.mark(function t(a,n){var o,c;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n(),a({type:"SET_LOADER"}),(o=new FormData).set("file",e,e.name),t.next=6,b.a.post("uploadMultipleFiles.php",o,{headers:{"Content-type":"multipart/form-data"}});case 6:c=t.sent,a({type:"UNSET_LOADER"}),console.log("Filessss",c);case 9:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()},saveUploadedPhotocopy:f.a})(function(e){var t=function(){var e=Object(o.a)(r.a.mark(function e(t,a){return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:console.log("SUBMIT",t.map(function(e){return e.meta})),a.forEach(function(e){return e.remove()});case 2:case"end":return e.stop()}},e)}));return function(t,a){return e.apply(this,arguments)}}(),a=70*window.innerHeight/100;return i.a.createElement(i.a.Fragment,null,i.a.createElement(l.a,{fluid:!0},i.a.createElement(l.a.Content,null,i.a.createElement(l.a.Header,{style:{display:"flex"}},i.a.createElement("h4",null,"Upload Leadger"),i.a.createElement("div",{className:"ml-auto"},i.a.createElement(v.a,{to:"/dashboard"},i.a.createElement(s.a,{basic:!0,color:"red",content:"Exit",icon:"home"})))),i.a.createElement(u.a,null),i.a.createElement("h3",null,"File Format : Univcode_Year_Examtype_Degree_Examno_Collcode_Examdate"),i.a.createElement(l.a.Description,{style:{height:"".concat(a,"px"),overflowY:"auto"}},i.a.createElement(h.a,{getUploadParams:function(t){var a=t.file,n=(t.meta,new FormData);return n.append("filefield",a),n.append("body",JSON.stringify(e.user)),{url:E.a+"/src/uploadMultipleFiles.php",body:n}},onChangeStatus:function(e,t){var a=e.meta;e.remove,console.log("STATUS",t,a)},onSubmit:t,validate:function(t){t.file;var a=t.meta.name.split("_");return console.log("Validate",e.user.fcuruniv,a),a[0]===e.user.fcuruniv&&a[1]==e.user.fyear&&a[2]==e.user.fexamtype||console.log("CRT"),!1},maxFiles:1050,styles:{dropzone:{minHeight:"90%",maxHeight:a-10}}})))))})},272:function(e,t,a){"use strict";var n=a(268),r=a.n(n),o=a(265),c=a.n(o),i=a(1),l=a.n(i),s=a(333),u=a(551),d=a(549),p=a(267);function f(e){var t=e.children,a=e.className,n=e.clearing,o=e.content,i=e.fitted,m=e.hidden,h=e.horizontal,v=e.inverted,E=e.section,b=e.vertical,w=c()("ui",Object(s.a)(n,"clearing"),Object(s.a)(i,"fitted"),Object(s.a)(m,"hidden"),Object(s.a)(h,"horizontal"),Object(s.a)(v,"inverted"),Object(s.a)(E,"section"),Object(s.a)(b,"vertical"),"divider",a),g=Object(u.a)(f,e),y=Object(d.a)(f,e);return l.a.createElement(y,r()({},g,{className:w}),p.a.isNil(t)?o:t)}f.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],f.propTypes={},t.a=f},486:function(e,t,a){"use strict";a.d(t,"a",function(){return l});var n=a(41),r=a.n(n),o=a(68),c=a(269),i=a(266),l=function(e){return function(){var t=Object(o.a)(r.a.mark(function t(a,n){var o,l,s,u,d;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=n(),a({type:"SET_LOADER"}),t.next=4,c.a.post("app.php?a=submitUploadedPhotocopy&univcode="+o.univ.funivcode,{data:e});case 4:l=t.sent,a({type:"UNSET_LOADER"}),"object"!==typeof l.data?(s={header:"Error",content:"Something went wrong"},a(Object(i.w)(s))):-1===l.data.error_code?(u={header:"Error",content:l.data.msg},a(Object(i.w)(u))):(d={header:"Success",content:l.data.msg},a(Object(i.w)(d)));case 7:case"end":return t.stop()}},t)}));return function(e,a){return t.apply(this,arguments)}}()}}}]);
//# sourceMappingURL=100.8364d9d8.chunk.js.map
|