Merge commit '493806f3818b72bf830e446374bb30e2eff2b392' into dev_glcc

This commit is contained in:
Gitea 2023-09-20 09:06:32 +08:00
commit ec7ac7a7f4
19 changed files with 7 additions and 7 deletions

View File

@ -18,6 +18,6 @@
<body>
<div id="root"></div>
<script src="./umi.0ffcaec4.js"></script>
<script src="./umi.e112e8a6.js"></script>
</body>
</html>

View File

@ -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:"\u7ed3\u9879\u8003\u6838",path:"/glcc/2023/finalAssessment",name:"finalAssessment",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,E=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 E,y=Object(l["a"])(f);try{for(y.s();!(E=y.n()).done;){var O,j=E.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){y.e(B)}finally{y.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),A=I[0],G=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 U,N=Object(l["a"])(p);try{for(N.s();!(U=N.n()).done;){j=U.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:()=>{G(!A)}},A?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:A},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}}))(E)},xrsn:function(e,t,a){e.exports={backHome:"backHome___2HrP2",headImg:"headImg___3leGw"}}}]);

View File

@ -1 +0,0 @@
(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

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