2 lines
6.6 KiB
JavaScript
2 lines
6.6 KiB
JavaScript
(this["webpackJsonp@coreui/coreui-free-react-admin-template"]=this["webpackJsonp@coreui/coreui-free-react-admin-template"]||[]).push([[6],{650:function(e,n,t){e.exports=function(){"use strict";function e(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var c in t)e[c]=t[c]}return e}var n={read:function(e){return e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function t(c,r){function a(n,t,a){if("undefined"!==typeof document){"number"===typeof(a=e({},r,a)).expires&&(a.expires=new Date(Date.now()+864e5*a.expires)),a.expires&&(a.expires=a.expires.toUTCString()),n=encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),t=c.write(t,n);var s="";for(var i in a)a[i]&&(s+="; "+i,!0!==a[i]&&(s+="="+a[i].split(";")[0]));return document.cookie=n+"="+t+s}}function s(e){if("undefined"!==typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],r={},a=0;a<t.length;a++){var s=t[a].split("="),i=s.slice(1).join("=");'"'===i[0]&&(i=i.slice(1,-1));try{var o=n.read(s[0]);if(r[o]=c.read(i,o),e===o)break}catch(d){}}return e?r[e]:r}}return Object.create({set:a,get:s,remove:function(n,t){a(n,"",e({},t,{expires:-1}))},withAttributes:function(n){return t(this.converter,e({},this.attributes,n))},withConverter:function(n){return t(e({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(c)}})}return t(n,{path:"/"})}()},690:function(e,n,t){"use strict";t.r(n);var c=t(1),r=t.n(c),a=t(43),s=t(650),i=t.n(s),o=t(20),d=t(630),l=r.a.lazy((function(){return t.e(8).then(t.bind(null,687))})),j=r.a.lazy((function(){return Promise.all([t.e(1),t.e(5)]).then(t.bind(null,691))})),b=r.a.lazy((function(){return Promise.all([t.e(1),t.e(7)]).then(t.bind(null,688))})),m=r.a.lazy((function(){return t.e(13).then(t.bind(null,689))})),u=[{path:"/",exact:!0,name:"Home"},{path:"/dashboard",name:"\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9",component:l},{path:"/reports",exact:!0,name:"\u30ec\u30dd\u30fc\u30c8",component:j},{path:"/uploader",exact:!0,name:"\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9",component:b},{path:"/secret",exact:!0,name:"\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9",component:m}],h=t(17),p=Object(h.jsx)("div",{className:"pt-3 text-center",children:Object(h.jsx)("div",{className:"sk-spinner sk-spinner-pulse"})}),x=function(){return Object(h.jsx)("main",{className:"c-main",children:Object(h.jsx)(d.l,{fluid:!0,children:Object(h.jsx)(c.Suspense,{fallback:p,children:Object(h.jsxs)(o.d,{children:[u.map((function(e,n){return e.component&&Object(h.jsx)(o.b,{path:e.path,exact:e.exact,name:e.name,render:function(n){return null!==function(){var e=i.a.get("_shibsession_64656661756c7468747470733a2f2f66736273736f2e73756d6173656e2e6e65742f73686962626f6c657468");return console.log(e),e}()?Object(h.jsx)(e.component,Object(a.a)({},n)):Object(h.jsx)(o.a,{to:{pathname:"/sso"}})}},n)})),Object(h.jsx)(o.a,{from:"/",to:"/dashboard"})]})})})})},f=r.a.memo(x),O=function(){return Object(h.jsxs)(d.r,{fixed:!1,children:[Object(h.jsxs)("div",{children:[Object(h.jsx)("a",{href:"sumasen.net",target:"_blank",rel:"noopener noreferrer",children:"FBS"}),Object(h.jsx)("span",{className:"ml-1",children:"\xa9 2021 DigitalVox."})]}),Object(h.jsxs)("div",{className:"mfs-auto",children:[Object(h.jsx)("span",{className:"mr-1",children:"\u642d\u8f09"}),Object(h.jsx)("a",{href:"#",target:"_blank",rel:"noopener noreferrer",children:"DigitalVox"})]})]})},v=r.a.memo(O),N=t(159),g=t(629),w=function(){var e=Object(N.b)(),n=Object(N.c)((function(e){return e.sidebarShow}));return Object(h.jsxs)(d.u,{withSubheader:!0,children:[Object(h.jsx)(d.V,{inHeader:!0,className:"ml-md-3 d-lg-none",onClick:function(){var t=!![!1,"responsive"].includes(n)||"responsive";e({type:"set",sidebarShow:t})}}),Object(h.jsx)(d.V,{inHeader:!0,className:"ml-3 d-md-down-none",onClick:function(){var t=![!0,"responsive"].includes(n)&&"responsive";e({type:"set",sidebarShow:t})}}),Object(h.jsx)(d.v,{className:"mx-auto d-lg-none",to:"/",children:Object(h.jsx)("h2",{children:"FBS"})}),Object(h.jsx)(d.w,{className:"d-md-down-none mr-auto",children:Object(h.jsx)(d.x,{className:"px-3",children:Object(h.jsx)(d.y,{to:"/dashboard",children:"\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9"})})}),Object(h.jsx)(d.w,{className:"px-3",children:Object(h.jsx)(S,{})}),Object(h.jsx)(d.U,{className:"px-3 justify-content-between",children:Object(h.jsx)(d.d,{className:"border-0 c-subheader-nav m-0 px-0 px-md-3",routes:u})})]})},S=function(){return Object(h.jsxs)(d.n,{inNav:!0,className:"c-header-nav-items mx-2",direction:"down",children:[Object(h.jsx)(d.q,{className:"c-header-nav-link",caret:!1,children:Object(h.jsx)("div",{className:"c-avatar",children:"Account"})}),Object(h.jsxs)(d.p,{className:"pt-0",placement:"bottom-end",children:[Object(h.jsx)(d.o,{header:!0,tag:"div",color:"light",className:"text-center",children:Object(h.jsx)("strong",{children:"Account"})}),Object(h.jsxs)(d.o,{onClick:function(){console.log("launch sso"),window.open("https://fsbsso.sumasen.net/Shibboleth.sso/Login","_self")},children:[Object(h.jsx)(g.a,{name:"cil-bell",className:"mfe-2"}),"SSO Login"]})]})]})},C=[{_tag:"CSidebarNavItem",name:"\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9",to:"/dashboard",icon:Object(h.jsx)(g.a,{name:"cil-speedometer",customClasses:"c-sidebar-nav-icon"})},{_tag:"CSidebarNavTitle",_children:["\u30ec\u30dd\u30fc\u30c8"]},{_tag:"CSidebarNavItem",name:"\u5831\u544a\u66f8",to:"/reports",icon:"cil-drop"},{_tag:"CSidebarNavItem",name:"\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9",to:"/uploader",icon:"cil-drop"},{_tag:"CSidebarNavItem",name:"secret",to:"/secret",icon:"cil-drop"}],y=function(){var e=Object(N.b)(),n=Object(N.c)((function(e){return e.sidebarShow}));return Object(h.jsxs)(d.M,{show:n,onShowChange:function(n){return e({type:"set",sidebarShow:n})},children:[Object(h.jsxs)(d.N,{className:"d-md-down-none",to:"/",children:[Object(h.jsx)("h2",{children:"FBS"}),Object(h.jsx)(g.a,{className:"c-sidebar-brand-minimized",name:"sygnet",height:35})]}),Object(h.jsx)(d.P,{children:Object(h.jsx)(d.m,{items:C,components:{CSidebarNavDivider:d.Q,CSidebarNavDropdown:d.R,CSidebarNavItem:d.S,CSidebarNavTitle:d.T}})}),Object(h.jsx)(d.O,{className:"c-d-md-down-none"})]})},k=r.a.memo(y);n.default=function(){return Object(h.jsxs)("div",{className:"c-app c-default-layout",children:[Object(h.jsx)(k,{}),Object(h.jsxs)("div",{className:"c-wrapper",children:[Object(h.jsx)(w,{}),Object(h.jsx)("div",{className:"c-body",children:Object(h.jsx)(f,{})}),Object(h.jsx)(v,{})]})]})}}}]);
|
|
//# sourceMappingURL=6.f84d2c1a.chunk.js.map
|