后台改版
This commit is contained in:
parent
12280eddc5
commit
35c2a8f971
|
|
@ -7,7 +7,7 @@
|
|||
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"
|
||||
/>
|
||||
<link rel="icon" href="img/favicon.ico" />
|
||||
<link rel="stylesheet" href="./umi.04136aa7.css" />
|
||||
<link rel="stylesheet" href="./umi.21c2da79.css" />
|
||||
<script>
|
||||
window.routerBase = "./";
|
||||
</script>
|
||||
|
|
@ -18,6 +18,6 @@
|
|||
<body>
|
||||
<div id="root"></div>
|
||||
|
||||
<script src="./umi.844bd600.js"></script>
|
||||
<script src="./umi.abac34e4.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[4],{H4Hi:function(e,t,a){e.exports={siderBar:"siderBar___3a9iE",siderHead:"siderHead___2E1rr","ant-menu":"ant-menu___2FcvC"}},tCqT:function(e,t,a){"use strict";a.r(t);a("Pwec");var n=a("CtXQ"),c=a("qLMh"),i=a("9og8"),r=a("tJVT"),l=a("rAM+"),s=(a("lUTK"),a("BvKs")),o=a("q1tI"),m=a.n(o),p=(a("XDpg"),a("xrsn")),u=a.n(p),d=e=>{var t=e.backUrl;return m.a.createElement("div",{className:"admin-header"},m.a.createElement("div",{onClick:()=>{window.location.href=t}},m.a.createElement(n["a"],{className:u.a.backHome,type:"home"}),m.a.createElement("span",null,"\u8fd4\u56de\u4e3b\u7ad9")))},h=a("MuoO"),f=[{title:"GLCC2023",path:"/glcc/2023",name:"GLCC2023",icon:"mail",routes:[{title:"\u914d\u7f6e",path:"/glcc/2023/setting",name:"setting",component:"./glcc/setting"},{title:"\u9879\u76ee\u62a5\u540d\u5217\u8868",path:"/glcc/2023/projectTopic",name:"projectTopic",component:"./glcc/projectTopic"},{title:"\u5b66\u751f\u62a5\u540d\u5217\u8868",path:"/glcc/2023/stuRegistrationList",name:"stuRegistrationList",component:"./glcc/stuRegistrationList"},{title:"\u4e2d\u671f\u8003\u6838",path:"/glcc/2023/midTermExamination",name:"midTermExamination",component:"./glcc/midTermExamination"}]},{title:"GLCC2022",path:"/glcc/2022",name:"GLCC2022",icon:"mail",routes:[{title:"\u9879\u76ee\u62a5\u540d\u5217\u8868",path:"/glcc/2022/list",name:"glccList",component:"./glcc/list"},{title:"\u5b66\u751f\u62a5\u540d\u5217\u8868",path:"/glcc/2022/studentList",name:"studentList",component:"./glcc/studentList"},{title:"\u4e2d\u671f\u8003\u6838\u6750\u6599",path:"/glcc/2022/middle",name:"middleList",component:"./glcc/middleTaskList"},{title:"\u7ed3\u9879\u8003\u6838\u6750\u6599",path:"/glcc/2022/final",name:"finalList",component:"./glcc/finalList"},{title:"\u7ed3\u9879\u5bfc\u5e08\u8bc4\u5206",path:"/glcc/2022/final/tutor",name:"tutorList",component:"./glcc/tutorFinalList"}]}],g=a("H4Hi"),w=a.n(g),b=a("Xe+6"),v=s["a"].SubMenu,y=e=>{var t=e.history,a=e.children,p=(e.dispatch,e.siteInfo),u=!1,h=[],g=t.location.pathname||"/global";if(window.innerWidth>600){var y,E=Object(l["a"])(f);try{for(E.s();!(y=E.n()).done;){var O,j=y.value,L=Object(l["a"])(j.routes);try{for(L.s();!(O=L.n()).done;){var k=O.value;g.indexOf(k.path)>-1&&h.push(j.name)}}catch(B){L.e(B)}finally{L.f()}}}catch(B){E.e(B)}finally{E.f()}}else u=!0;var C=Object(o["useState"])([g]),_=Object(r["a"])(C,2),x=_[0],H=_[1],T=Object(o["useState"])(u),I=Object(r["a"])(T,2),G=I[0],U=I[1];Object(o["useEffect"])((()=>{function e(){return t.apply(this,arguments)}function t(){return t=Object(i["a"])(Object(c["a"])().mark((function e(){return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(b["a"])({url:"/api/user/getUserInfo",method:"get"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),t.apply(this,arguments)}e().then((e=>{e&&e.data&&!e.data.admin&&"8000"!==window.location.port&&(window.location.href="https://www.gitlink.org.cn/403")}))}),[]),Object(o["useEffect"])((()=>{var e,a=[],n=Object(l["a"])(f);try{for(n.s();!(e=n.n()).done;){var c=e.value;if(Array.isArray(c.routes)){var i,r=Object(l["a"])(c.routes);try{for(r.s();!(i=r.n()).done;){var s=i.value;a.push(s.path)}}catch(B){r.e(B)}finally{r.f()}}}}catch(B){n.e(B)}finally{n.f()}t.listen((e=>{a.includes(e.pathname)&&(console.log(e.pathname),H([e.pathname]))}))}),[t]);if(Array.isArray(p)){var A,N=Object(l["a"])(p);try{for(N.s();!(A=N.n()).done;){j=A.value;"site"===j.name&&j.url}}catch(B){N.e(B)}finally{N.f()}}return m.a.createElement(m.a.Fragment,null,m.a.createElement("div",{className:w.a.siderBar},m.a.createElement("div",{className:w.a.siderHead,onClick:()=>{U(!G)}},G?m.a.createElement(n["a"],{type:"menu-fold"}):m.a.createElement("h3",null,"GLCC\u7ba1\u7406\u540e\u53f0")),m.a.createElement(s["a"],{selectedKeys:x,defaultOpenKeys:h,mode:"inline",theme:"dark",inlineCollapsed:G},f.map((e=>m.a.createElement(v,{key:e.name,title:m.a.createElement("span",null,m.a.createElement(n["a"],{type:e.icon}),m.a.createElement("span",null,e.title))},e.routes&&e.routes.map((e=>m.a.createElement(s["a"].Item,{key:e.path,onClick:()=>{t.push(e.path),H([e.path])}},e.title)))))))),m.a.createElement("div",{className:"main"},m.a.createElement(d,{backUrl:window.location.href.indexOf("test")>-1?"https://testforgeplus.trustie.net/admins":"https://www.gitlink.org.cn/admins"}),a))};t["default"]=Object(h["connect"])((e=>{var t=e.user,a=e.setting;return{currentUser:t.currentUser,siteInfo:a.menuSetting.siteInfo}}))(y)},xrsn:function(e,t,a){e.exports={backHome:"backHome___2HrP2",headImg:"headImg___3leGw"}}}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1 @@
|
|||
.ant-tooltip{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.65);font-size:14px;font-variant:tabular-nums;line-height:1.5;list-style:none;font-feature-settings:"tnum","tnum";position:absolute;z-index:1060;display:block;max-width:250px;visibility:visible}.ant-tooltip-hidden{display:none}.ant-tooltip-placement-top,.ant-tooltip-placement-topLeft,.ant-tooltip-placement-topRight{padding-bottom:8px}.ant-tooltip-placement-right,.ant-tooltip-placement-rightBottom,.ant-tooltip-placement-rightTop{padding-left:8px}.ant-tooltip-placement-bottom,.ant-tooltip-placement-bottomLeft,.ant-tooltip-placement-bottomRight{padding-top:8px}.ant-tooltip-placement-left,.ant-tooltip-placement-leftBottom,.ant-tooltip-placement-leftTop{padding-right:8px}.ant-tooltip-inner{min-width:30px;min-height:32px;padding:6px 8px;color:#fff;text-align:left;text-decoration:none;word-wrap:break-word;background-color:rgba(0,0,0,.75);border-radius:4px;box-shadow:0 2px 8px rgba(0,0,0,.15)}.ant-tooltip-arrow{position:absolute;display:block;width:13.07106781px;height:13.07106781px;overflow:hidden;background:transparent;pointer-events:none}.ant-tooltip-arrow:before{position:absolute;top:0;right:0;bottom:0;left:0;display:block;width:5px;height:5px;margin:auto;background-color:rgba(0,0,0,.75);content:"";pointer-events:auto}.ant-tooltip-placement-top .ant-tooltip-arrow,.ant-tooltip-placement-topLeft .ant-tooltip-arrow,.ant-tooltip-placement-topRight .ant-tooltip-arrow{bottom:-5.07106781px}.ant-tooltip-placement-top .ant-tooltip-arrow:before,.ant-tooltip-placement-topLeft .ant-tooltip-arrow:before,.ant-tooltip-placement-topRight .ant-tooltip-arrow:before{box-shadow:3px 3px 7px rgba(0,0,0,.07);transform:translateY(-6.53553391px) rotate(45deg)}.ant-tooltip-placement-top .ant-tooltip-arrow{left:50%;transform:translateX(-50%)}.ant-tooltip-placement-topLeft .ant-tooltip-arrow{left:13px}.ant-tooltip-placement-topRight .ant-tooltip-arrow{right:13px}.ant-tooltip-placement-right .ant-tooltip-arrow,.ant-tooltip-placement-rightBottom .ant-tooltip-arrow,.ant-tooltip-placement-rightTop .ant-tooltip-arrow{left:-5.07106781px}.ant-tooltip-placement-right .ant-tooltip-arrow:before,.ant-tooltip-placement-rightBottom .ant-tooltip-arrow:before,.ant-tooltip-placement-rightTop .ant-tooltip-arrow:before{box-shadow:-3px 3px 7px rgba(0,0,0,.07);transform:translateX(6.53553391px) rotate(45deg)}.ant-tooltip-placement-right .ant-tooltip-arrow{top:50%;transform:translateY(-50%)}.ant-tooltip-placement-rightTop .ant-tooltip-arrow{top:5px}.ant-tooltip-placement-rightBottom .ant-tooltip-arrow{bottom:5px}.ant-tooltip-placement-left .ant-tooltip-arrow,.ant-tooltip-placement-leftBottom .ant-tooltip-arrow,.ant-tooltip-placement-leftTop .ant-tooltip-arrow{right:-5.07106781px}.ant-tooltip-placement-left .ant-tooltip-arrow:before,.ant-tooltip-placement-leftBottom .ant-tooltip-arrow:before,.ant-tooltip-placement-leftTop .ant-tooltip-arrow:before{box-shadow:3px -3px 7px rgba(0,0,0,.07);transform:translateX(-6.53553391px) rotate(45deg)}.ant-tooltip-placement-left .ant-tooltip-arrow{top:50%;transform:translateY(-50%)}.ant-tooltip-placement-leftTop .ant-tooltip-arrow{top:5px}.ant-tooltip-placement-leftBottom .ant-tooltip-arrow{bottom:5px}.ant-tooltip-placement-bottom .ant-tooltip-arrow,.ant-tooltip-placement-bottomLeft .ant-tooltip-arrow,.ant-tooltip-placement-bottomRight .ant-tooltip-arrow{top:-5.07106781px}.ant-tooltip-placement-bottom .ant-tooltip-arrow:before,.ant-tooltip-placement-bottomLeft .ant-tooltip-arrow:before,.ant-tooltip-placement-bottomRight .ant-tooltip-arrow:before{box-shadow:-3px -3px 7px rgba(0,0,0,.07);transform:translateY(6.53553391px) rotate(45deg)}.ant-tooltip-placement-bottom .ant-tooltip-arrow{left:50%;transform:translateX(-50%)}.ant-tooltip-placement-bottomLeft .ant-tooltip-arrow{left:13px}.ant-tooltip-placement-bottomRight .ant-tooltip-arrow{right:13px}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1 @@
|
|||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[17],{"5Dmo":function(n,t,r){"use strict";r("cIOH"),r("5YgA")},"5YgA":function(n,t,r){},Pwec:function(n,t,r){"use strict";r("cIOH"),r("WtSK")},WtSK:function(n,t,r){},lUTK:function(n,t,r){"use strict";r("cIOH"),r("x54q"),r("5Dmo")},"rAM+":function(n,t,r){"use strict";r.d(t,"a",(function(){return o}));var e=r("Qw5x");function o(n,t){var r="undefined"!==typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!r){if(Array.isArray(n)||(r=Object(e["a"])(n))||t&&n&&"number"===typeof n.length){r&&(n=r);var o=0,i=function(){};return{s:i,n:function(){return o>=n.length?{done:!0}:{done:!1,value:n[o++]}},e:function(n){throw n},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,c=!0,a=!1;return{s:function(){r=r.call(n)},n:function(){var n=r.next();return c=n.done,n},e:function(n){a=!0,u=n},f:function(){try{c||null==r["return"]||r["return"]()}finally{if(a)throw u}}}}},x54q:function(n,t,r){}}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue