diff --git a/color.less b/color.less index bd2de4d926..d559ade4cf 100644 --- a/color.less +++ b/color.less @@ -84,7 +84,7 @@ html {--antd-wave-shadow-color: @primary-color;} .zoom-right-enter, .zoom-right-appear {animation-fill-mode: both;} .zoom-right-leave {animation-fill-mode: both;} .ant-alert {color: @text-color;border-radius: 2px;} -.ant-alert-success {background-color: color(~`colorPalette("@{modal-heading-color}", 1)`);border: 1px solid color(~`colorPalette("@{success-color}", 3)`);} +.ant-alert-success {background-color: color(~`colorPalette("@{success-color}", 1)`);border: 1px solid color(~`colorPalette("@{success-color}", 3)`);} .ant-alert-success .ant-alert-icon {color: @success-color;} .ant-alert-info {background-color: color(~`colorPalette("@{primary-color}", 1)`);border: 1px solid color(~`colorPalette("@{primary-color}", 3)`);} .ant-alert-info .ant-alert-icon {color: @primary-color;} @@ -727,42 +727,42 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte .ant-form-item-has-success.ant-form-item-has-feedback .ant-form-item-children-icon {color: @success-color;} .ant-form-item-has-warning .ant-form-item-explain, .ant-form-item-has-warning .ant-form-item-split {color: @warning-color;} .ant-form-item-has-warning .ant-input, .ant-form-item-has-warning .ant-input-affix-wrapper, .ant-form-item-has-warning .ant-input:hover, .ant-form-item-has-warning .ant-input-affix-wrapper:hover {border-color: @warning-color;} -.ant-form-item-has-warning .ant-input:focus, .ant-form-item-has-warning .ant-input-affix-wrapper:focus, .ant-form-item-has-warning .ant-input-focused, .ant-form-item-has-warning .ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(23, 155, 30, 0.2);} +.ant-form-item-has-warning .ant-input:focus, .ant-form-item-has-warning .ant-input-affix-wrapper:focus, .ant-form-item-has-warning .ant-input-focused, .ant-form-item-has-warning .ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(105, 201, 125, 0.2);} .ant-form-item-has-warning .ant-input:not(.ant-form-item-has-warning .ant-input-disabled) {background-color: #fff;} .ant-form-item-has-warning .ant-input-affix-wrapper:not(.ant-form-item-has-warning .ant-input-affix-wrapper-disabled) {background-color: #fff;} .ant-form-item-has-warning .ant-input-affix-wrapper input:focus {box-shadow: none !important;} -.ant-form-item-has-warning .ant-calendar-picker-open .ant-calendar-picker-input {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(23, 155, 30, 0.2);} +.ant-form-item-has-warning .ant-calendar-picker-open .ant-calendar-picker-input {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(105, 201, 125, 0.2);} .ant-form-item-has-warning .ant-input-prefix {color: @warning-color;} .ant-form-item-has-warning .ant-input-group-addon {color: @warning-color;border-color: @warning-color;} .ant-form-item-has-warning .has-feedback {color: @warning-color;} .ant-form-item-has-warning.ant-form-item-has-feedback .ant-form-item-children-icon {color: @warning-color;} .ant-form-item-has-warning .ant-select:not(.ant-select-borderless) .ant-select-selector {border-color: @warning-color !important;} -.ant-form-item-has-warning .ant-select:not(.ant-select-borderless).ant-select-open .ant-select-selector, .ant-form-item-has-warning .ant-select:not(.ant-select-borderless).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(23, 155, 30, 0.2);} +.ant-form-item-has-warning .ant-select:not(.ant-select-borderless).ant-select-open .ant-select-selector, .ant-form-item-has-warning .ant-select:not(.ant-select-borderless).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(105, 201, 125, 0.2);} .ant-form-item-has-warning .ant-input-number, .ant-form-item-has-warning .ant-picker {border-color: @warning-color;} -.ant-form-item-has-warning .ant-input-number-focused, .ant-form-item-has-warning .ant-picker-focused, .ant-form-item-has-warning .ant-input-number:focus, .ant-form-item-has-warning .ant-picker:focus {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(23, 155, 30, 0.2);} +.ant-form-item-has-warning .ant-input-number-focused, .ant-form-item-has-warning .ant-picker-focused, .ant-form-item-has-warning .ant-input-number:focus, .ant-form-item-has-warning .ant-picker:focus {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(105, 201, 125, 0.2);} .ant-form-item-has-warning .ant-input-number:not([disabled]):hover, .ant-form-item-has-warning .ant-picker:not([disabled]):hover {border-color: @warning-color;} -.ant-form-item-has-warning .ant-cascader-picker:focus .ant-cascader-input {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(23, 155, 30, 0.2);} +.ant-form-item-has-warning .ant-cascader-picker:focus .ant-cascader-input {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(105, 201, 125, 0.2);} .ant-form-item-has-error .ant-form-item-explain, .ant-form-item-has-error .ant-form-item-split {color: @error-color;} .ant-form-item-has-error .ant-input, .ant-form-item-has-error .ant-input-affix-wrapper, .ant-form-item-has-error .ant-input:hover, .ant-form-item-has-error .ant-input-affix-wrapper:hover {border-color: @error-color;} -.ant-form-item-has-error .ant-input:focus, .ant-form-item-has-error .ant-input-affix-wrapper:focus, .ant-form-item-has-error .ant-input-focused, .ant-form-item-has-error .ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(204, 150, 165, 0.2);} +.ant-form-item-has-error .ant-input:focus, .ant-form-item-has-error .ant-input-affix-wrapper:focus, .ant-form-item-has-error .ant-input-focused, .ant-form-item-has-error .ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(208, 147, 89, 0.2);} .ant-form-item-has-error .ant-input:not(.ant-form-item-has-error .ant-input-disabled) {background-color: #fff;} .ant-form-item-has-error .ant-input-affix-wrapper:not(.ant-form-item-has-error .ant-input-affix-wrapper-disabled) {background-color: #fff;} .ant-form-item-has-error .ant-input-affix-wrapper input:focus {box-shadow: none !important;} -.ant-form-item-has-error .ant-calendar-picker-open .ant-calendar-picker-input {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(204, 150, 165, 0.2);} +.ant-form-item-has-error .ant-calendar-picker-open .ant-calendar-picker-input {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(208, 147, 89, 0.2);} .ant-form-item-has-error .ant-input-prefix {color: @error-color;} .ant-form-item-has-error .ant-input-group-addon {color: @error-color;border-color: @error-color;} .ant-form-item-has-error .has-feedback {color: @error-color;} .ant-form-item-has-error.ant-form-item-has-feedback .ant-form-item-children-icon {color: @error-color;} .ant-form-item-has-error .ant-select:not(.ant-select-borderless) .ant-select-selector {border-color: @error-color !important;} -.ant-form-item-has-error .ant-select:not(.ant-select-borderless).ant-select-open .ant-select-selector, .ant-form-item-has-error .ant-select:not(.ant-select-borderless).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(204, 150, 165, 0.2);} +.ant-form-item-has-error .ant-select:not(.ant-select-borderless).ant-select-open .ant-select-selector, .ant-form-item-has-error .ant-select:not(.ant-select-borderless).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(208, 147, 89, 0.2);} .ant-form-item-has-error .ant-input-group-addon .ant-select.ant-select-single:not(.ant-select-customize-input) .ant-select-selector {border: 0;} .ant-form-item-has-error .ant-select.ant-select-auto-complete .ant-input:focus {border-color: @error-color;} .ant-form-item-has-error .ant-input-number, .ant-form-item-has-error .ant-picker {border-color: @error-color;} -.ant-form-item-has-error .ant-input-number-focused, .ant-form-item-has-error .ant-picker-focused, .ant-form-item-has-error .ant-input-number:focus, .ant-form-item-has-error .ant-picker:focus {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(204, 150, 165, 0.2);} +.ant-form-item-has-error .ant-input-number-focused, .ant-form-item-has-error .ant-picker-focused, .ant-form-item-has-error .ant-input-number:focus, .ant-form-item-has-error .ant-picker:focus {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(208, 147, 89, 0.2);} .ant-form-item-has-error .ant-input-number:not([disabled]):hover, .ant-form-item-has-error .ant-picker:not([disabled]):hover {border-color: @error-color;} .ant-form-item-has-error .ant-mention-wrapper .ant-mention-editor, .ant-form-item-has-error .ant-mention-wrapper .ant-mention-editor:not([disabled]):hover {border-color: @error-color;} -.ant-form-item-has-error .ant-mention-wrapper.ant-mention-active:not([disabled]) .ant-mention-editor, .ant-form-item-has-error .ant-mention-wrapper .ant-mention-editor:not([disabled]):focus {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(204, 150, 165, 0.2);} -.ant-form-item-has-error .ant-cascader-picker:focus .ant-cascader-input {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(204, 150, 165, 0.2);} +.ant-form-item-has-error .ant-mention-wrapper.ant-mention-active:not([disabled]) .ant-mention-editor, .ant-form-item-has-error .ant-mention-wrapper .ant-mention-editor:not([disabled]):focus {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(208, 147, 89, 0.2);} +.ant-form-item-has-error .ant-cascader-picker:focus .ant-cascader-input {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(208, 147, 89, 0.2);} .ant-form-item-has-error .ant-transfer-list {border-color: @error-color;} .ant-form-item-has-error .ant-transfer-list-search:not([disabled]) {border-color: @border-color-base;} .ant-form-item-has-error .ant-transfer-list-search:not([disabled]):hover {border-color: color(~`colorPalette("@{primary-color}", 5)`);border-right-width: 1px !important;} diff --git a/index.html b/index.html index 3f2cd2c4f7..76b624dcfc 100644 --- a/index.html +++ b/index.html @@ -130,6 +130,6 @@ - + diff --git a/p__Guidance.421bc3d1.async.js b/p__Guidance.0d395397.async.js similarity index 82% rename from p__Guidance.421bc3d1.async.js rename to p__Guidance.0d395397.async.js index 36072a28af..4035a5bc14 100644 --- a/p__Guidance.421bc3d1.async.js +++ b/p__Guidance.0d395397.async.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[164],{"5oB3":function(S,m,e){S.exports={flex_box_center:"flex_box_center___2WENa",flex_space_between:"flex_space_between___32o_C",flex_box_vertical_center:"flex_box_vertical_center___VReNJ",flex_box_center_end:"flex_box_center_end___VidHP",flex_box_column:"flex_box_column___7bh0_",guidance:"guidance___1zlCK",title:"title___TLK56",u:"u___1YcNG",active:"active___2cPfY",content:"content___3PW9_",btn:"btn___26Rnl"}},"7ixt":function(S,m,e){"use strict";e.d(m,"a",function(){return g});var a={adjustX:1,adjustY:1},o=[0,0],g={left:{points:["cr","cl"],overflow:a,offset:[-4,0],targetOffset:o},right:{points:["cl","cr"],overflow:a,offset:[4,0],targetOffset:o},top:{points:["bc","tc"],overflow:a,offset:[0,-4],targetOffset:o},bottom:{points:["tc","bc"],overflow:a,offset:[0,4],targetOffset:o},topLeft:{points:["bl","tl"],overflow:a,offset:[0,-4],targetOffset:o},leftTop:{points:["tr","tl"],overflow:a,offset:[-4,0],targetOffset:o},topRight:{points:["br","tr"],overflow:a,offset:[0,-4],targetOffset:o},rightTop:{points:["tl","tr"],overflow:a,offset:[4,0],targetOffset:o},bottomRight:{points:["tr","br"],overflow:a,offset:[0,4],targetOffset:o},rightBottom:{points:["bl","br"],overflow:a,offset:[4,0],targetOffset:o},bottomLeft:{points:["tl","bl"],overflow:a,offset:[0,4],targetOffset:o},leftBottom:{points:["br","bl"],overflow:a,offset:[-4,0],targetOffset:o}},i=g},OLES:function(S,m,e){"use strict";var a=e("U8pU"),o=e("VTBJ"),g=e("Ff2n"),i=e("q1tI"),Q=e("uciX"),d=e("7ixt"),Z=function(t){var f=t.overlay,P=t.prefixCls,l=t.id,j=t.overlayInnerStyle;return i.createElement("div",{className:"".concat(P,"-inner"),id:l,role:"tooltip",style:j},typeof f=="function"?f():f)},k=Z,I=function(t,f){var P=t.overlayClassName,l=t.trigger,j=l===void 0?["hover"]:l,N=t.mouseEnterDelay,B=N===void 0?0:N,W=t.mouseLeaveDelay,w=W===void 0?.1:W,y=t.overlayStyle,O=t.prefixCls,p=O===void 0?"rc-tooltip":O,D=t.children,s=t.onVisibleChange,re=t.afterVisibleChange,ee=t.transitionName,K=t.animation,c=t.placement,T=c===void 0?"right":c,V=t.align,$=V===void 0?{}:V,X=t.destroyTooltipOnHide,v=X===void 0?!1:X,te=t.defaultVisible,H=t.getTooltipContainer,oe=t.overlayInnerStyle,ae=Object(g.a)(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),G=Object(i.useRef)(null);Object(i.useImperativeHandle)(f,function(){return G.current});var x=Object(o.a)({},ae);"visible"in t&&(x.popupVisible=t.visible);var ne=function(){var J=t.arrowContent,le=J===void 0?null:J,F=t.overlay,C=t.id;return[i.createElement("div",{className:"".concat(p,"-arrow"),key:"arrow"},le),i.createElement(k,{key:"content",prefixCls:p,id:C,overlay:F,overlayInnerStyle:oe})]},h=!1,z=!1;if(typeof v=="boolean")h=v;else if(v&&Object(a.a)(v)==="object"){var M=v.keepParent;h=M===!0,z=M===!1}return i.createElement(Q.a,Object.assign({popupClassName:P,prefixCls:p,popup:ne,action:j,builtinPlacements:d.a,popupPlacement:T,ref:G,popupAlign:$,getPopupContainer:H,onPopupVisibleChange:s,afterPopupVisibleChange:re,popupTransitionName:ee,popupAnimation:K,defaultPopupVisible:te,destroyPopupOnHide:h,autoDestroy:z,mouseLeaveDelay:w,popupStyle:y,mouseEnterDelay:B},x),D)},r=Object(i.forwardRef)(I),n=m.a=r},ObO0:function(S,m,e){"use strict";e.r(m);var a=e("cWXX"),o=e("/ezw"),g=e("+L6B"),i=e("2/Rp"),Q=e("9og8"),d=e("tJVT"),Z=e("PpiC"),k=e("WmNS"),I=e.n(k),r=e("q1tI"),n=e.n(r),q=e("Ty5D"),t=e("9kvl"),f=e("1vsH"),P=e("5oB3"),l=e.n(P),j=e("ErOA"),N=e("m3rI"),B=e("9Bee"),W=function(y){var O,p,D,s=y.user,re=Object(Z.a)(y,["user"]),ee=Object(r.useState)(1),K=Object(d.a)(ee,2),c=K[0],T=K[1],V=Object(r.useState)(!1),$=Object(d.a)(V,2),X=$[0],v=$[1],te=Object(r.useState)(!1),H=Object(d.a)(te,2),oe=H[0],ae=H[1],G=Object(r.useState)(""),x=Object(d.a)(G,2),ne=x[0],h=x[1],z=Object(r.useState)(!0),M=Object(d.a)(z,2),se=M[0],J=M[1],le=Object(r.useState)([{},{}]),F=Object(d.a)(le,2),C=F[0],_e=F[1],ie=Object(q.h)(),Y=ie.pathname;console.log(ie,"location"),Object(r.useEffect)(function(){var _;s!=null&&(_=s.userInfo)!==null&&_!==void 0&&_.identity&&de()},[s==null||((O=s.userInfo)===null||O===void 0)?void 0:O.identity]),Object(r.useEffect)(function(){ce()},[]);var de=function(){if(Y.includes("classrooms")){var u;(s==null||((u=s.userInfo)===null||u===void 0)?void 0:u.identity)==="student"&&(v(!0),T(2));return}if(Y.includes("paths")){ae(!0);return}},ce=function(){var _=Object(Q.a)(I.a.mark(function u(R){var E,L,b,ue;return I.a.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return U.next=2,Object(j.a)("/api/introductions.json",{method:"get"});case 2:E=U.sent,E!=null&&E.introductions&&(L=null,Y.includes("classrooms")&&(L="course",h("\u6559\u5B66\u8BFE\u5802")),Y.includes("paths")&&(L="subject",h("\u5B9E\u8DF5\u8BFE\u7A0B")),b=E.introductions,ue=[b==null?void 0:b.find(function(A){return A.clazz==="teacher"&&A.page_type===L}),b==null?void 0:b.find(function(A){return A.clazz==="student"&&A.page_type===L})],_e(ue)),J(!1);case 5:case"end":return U.stop()}},u)}));return function(R){return _.apply(this,arguments)}}(),me=function(){var u,R,E=N.a.API_SERVER+"/api/attachments/"+(c===1?(u=C[0])===null||u===void 0?void 0:u.attachment_id:(R=C[1])===null||R===void 0?void 0:R.attachment_id);Object(f.x)("",E)};return n.a.createElement("section",{className:l.a.guidance},n.a.createElement(o.a,{loading:se,active:!0,paragraph:{rows:5}},n.a.createElement("div",{className:l.a.title},ne,"\u65B0\u624B\u6307\u5F15"),n.a.createElement("ul",{className:l.a.u},!X&&n.a.createElement("li",{onClick:function(){return T(1)},className:c===1?l.a.active:""},"\u6559\u5E08\u7248"),!oe&&n.a.createElement("li",{onClick:function(){return T(2)},className:c===2?l.a.active:""},"\u5B66\u751F\u7248")),c===1&&n.a.createElement("div",{className:l.a.content},n.a.createElement(B.a,{value:((p=C[0])===null||p===void 0?void 0:p.content)||""})),c===2&&n.a.createElement("div",{className:l.a.content},n.a.createElement(B.a,{value:((D=C[1])===null||D===void 0?void 0:D.content)||""})),n.a.createElement("div",{className:l.a.btn},n.a.createElement(i.a,{type:"primary",onClick:me},"\u4E0B\u8F7D\u7528\u6237\u624B\u518C"))))};m.default=Object(t.a)(function(w){var y=w.user;return{user:y}})(W)}}]); +(window.webpackJsonp=window.webpackJsonp||[]).push([[164],{"5oB3":function(S,m,e){S.exports={flex_box_center:"flex_box_center___2WENa",flex_space_between:"flex_space_between___32o_C",flex_box_vertical_center:"flex_box_vertical_center___VReNJ",flex_box_center_end:"flex_box_center_end___VidHP",flex_box_column:"flex_box_column___7bh0_",guidance:"guidance___1zlCK",title:"title___TLK56",u:"u___1YcNG",active:"active___2cPfY",content:"content___3PW9_",btn:"btn___26Rnl"}},"7ixt":function(S,m,e){"use strict";e.d(m,"a",function(){return g});var a={adjustX:1,adjustY:1},o=[0,0],g={left:{points:["cr","cl"],overflow:a,offset:[-4,0],targetOffset:o},right:{points:["cl","cr"],overflow:a,offset:[4,0],targetOffset:o},top:{points:["bc","tc"],overflow:a,offset:[0,-4],targetOffset:o},bottom:{points:["tc","bc"],overflow:a,offset:[0,4],targetOffset:o},topLeft:{points:["bl","tl"],overflow:a,offset:[0,-4],targetOffset:o},leftTop:{points:["tr","tl"],overflow:a,offset:[-4,0],targetOffset:o},topRight:{points:["br","tr"],overflow:a,offset:[0,-4],targetOffset:o},rightTop:{points:["tl","tr"],overflow:a,offset:[4,0],targetOffset:o},bottomRight:{points:["tr","br"],overflow:a,offset:[0,4],targetOffset:o},rightBottom:{points:["bl","br"],overflow:a,offset:[4,0],targetOffset:o},bottomLeft:{points:["tl","bl"],overflow:a,offset:[0,4],targetOffset:o},leftBottom:{points:["br","bl"],overflow:a,offset:[-4,0],targetOffset:o}},i=g},OLES:function(S,m,e){"use strict";var a=e("U8pU"),o=e("VTBJ"),g=e("Ff2n"),i=e("q1tI"),Q=e("uciX"),d=e("7ixt"),Z=function(t){var f=t.overlay,P=t.prefixCls,l=t.id,j=t.overlayInnerStyle;return i.createElement("div",{className:"".concat(P,"-inner"),id:l,role:"tooltip",style:j},typeof f=="function"?f():f)},k=Z,I=function(t,f){var P=t.overlayClassName,l=t.trigger,j=l===void 0?["hover"]:l,N=t.mouseEnterDelay,B=N===void 0?0:N,W=t.mouseLeaveDelay,w=W===void 0?.1:W,y=t.overlayStyle,O=t.prefixCls,p=O===void 0?"rc-tooltip":O,D=t.children,s=t.onVisibleChange,re=t.afterVisibleChange,ee=t.transitionName,K=t.animation,c=t.placement,T=c===void 0?"right":c,V=t.align,$=V===void 0?{}:V,X=t.destroyTooltipOnHide,v=X===void 0?!1:X,te=t.defaultVisible,H=t.getTooltipContainer,oe=t.overlayInnerStyle,ae=Object(g.a)(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),G=Object(i.useRef)(null);Object(i.useImperativeHandle)(f,function(){return G.current});var x=Object(o.a)({},ae);"visible"in t&&(x.popupVisible=t.visible);var ne=function(){var J=t.arrowContent,le=J===void 0?null:J,F=t.overlay,C=t.id;return[i.createElement("div",{className:"".concat(p,"-arrow"),key:"arrow"},le),i.createElement(k,{key:"content",prefixCls:p,id:C,overlay:F,overlayInnerStyle:oe})]},h=!1,z=!1;if(typeof v=="boolean")h=v;else if(v&&Object(a.a)(v)==="object"){var M=v.keepParent;h=M===!0,z=M===!1}return i.createElement(Q.a,Object.assign({popupClassName:P,prefixCls:p,popup:ne,action:j,builtinPlacements:d.a,popupPlacement:T,ref:G,popupAlign:$,getPopupContainer:H,onPopupVisibleChange:s,afterPopupVisibleChange:re,popupTransitionName:ee,popupAnimation:K,defaultPopupVisible:te,destroyPopupOnHide:h,autoDestroy:z,mouseLeaveDelay:w,popupStyle:y,mouseEnterDelay:B},x),D)},r=Object(i.forwardRef)(I),n=m.a=r},ObO0:function(S,m,e){"use strict";e.r(m);var a=e("cWXX"),o=e("/ezw"),g=e("+L6B"),i=e("2/Rp"),Q=e("9og8"),d=e("tJVT"),Z=e("PpiC"),k=e("WmNS"),I=e.n(k),r=e("q1tI"),n=e.n(r),q=e("Ty5D"),t=e("9kvl"),f=e("1vsH"),P=e("5oB3"),l=e.n(P),j=e("ErOA"),N=e("m3rI"),B=e("9Bee"),W=function(y){var O,p,D,s=y.user,re=Object(Z.a)(y,["user"]),ee=Object(r.useState)(1),K=Object(d.a)(ee,2),c=K[0],T=K[1],V=Object(r.useState)(!1),$=Object(d.a)(V,2),X=$[0],v=$[1],te=Object(r.useState)(!1),H=Object(d.a)(te,2),oe=H[0],ae=H[1],G=Object(r.useState)(""),x=Object(d.a)(G,2),ne=x[0],h=x[1],z=Object(r.useState)(!0),M=Object(d.a)(z,2),se=M[0],J=M[1],le=Object(r.useState)([{},{}]),F=Object(d.a)(le,2),C=F[0],_e=F[1],ie=Object(q.h)(),Y=ie.pathname;console.log(ie,"location"),Object(r.useEffect)(function(){var _;s!=null&&(_=s.userInfo)!==null&&_!==void 0&&_.identity&&de()},[s==null||((O=s.userInfo)===null||O===void 0)?void 0:O.identity]),Object(r.useEffect)(function(){ce()},[]);var de=function(){if(Y.includes("classrooms")){var u;(s==null||((u=s.userInfo)===null||u===void 0)?void 0:u.identity)==="student"&&(v(!0),T(2));return}if(Y.includes("paths")){ae(!0);return}},ce=function(){var _=Object(Q.a)(I.a.mark(function u(R){var E,L,b,ue;return I.a.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return U.next=2,Object(j.a)("/api/introductions.json",{method:"get"});case 2:E=U.sent,E!=null&&E.introductions&&(L=null,Y.includes("classrooms")&&(L="course",h("\u6559\u5B66\u8BFE\u5802")),Y.includes("paths")&&(L="subject",h("\u5B9E\u8DF5\u8BFE\u7A0B")),b=E.introductions,ue=[b==null?void 0:b.find(function(A){return A.clazz==="teacher"&&A.page_type===L}),b==null?void 0:b.find(function(A){return A.clazz==="student"&&A.page_type===L})],_e(ue)),J(!1);case 5:case"end":return U.stop()}},u)}));return function(R){return _.apply(this,arguments)}}(),me=function(){var u,R,E=N.a.API_SERVER+(c===1?(u=C[0])===null||u===void 0?void 0:u.attachment_url:(R=C[1])===null||R===void 0?void 0:R.attachment_url);Object(f.x)("",E)};return n.a.createElement("section",{className:l.a.guidance},n.a.createElement(o.a,{loading:se,active:!0,paragraph:{rows:5}},n.a.createElement("div",{className:l.a.title},ne,"\u65B0\u624B\u6307\u5F15"),n.a.createElement("ul",{className:l.a.u},!X&&n.a.createElement("li",{onClick:function(){return T(1)},className:c===1?l.a.active:""},"\u6559\u5E08\u7248"),!oe&&n.a.createElement("li",{onClick:function(){return T(2)},className:c===2?l.a.active:""},"\u5B66\u751F\u7248")),c===1&&n.a.createElement("div",{className:l.a.content},n.a.createElement(B.a,{value:((p=C[0])===null||p===void 0?void 0:p.content)||""})),c===2&&n.a.createElement("div",{className:l.a.content},n.a.createElement(B.a,{value:((D=C[1])===null||D===void 0?void 0:D.content)||""})),n.a.createElement("div",{className:l.a.btn},n.a.createElement(i.a,{type:"primary",onClick:me},"\u4E0B\u8F7D\u7528\u6237\u624B\u518C"))))};m.default=Object(t.a)(function(w){var y=w.user;return{user:y}})(W)}}]); diff --git a/umi.27d357d9.js b/umi.2f846b0c.js similarity index 99% rename from umi.27d357d9.js rename to umi.2f846b0c.js index 55a29f07fd..d0bee288e3 100644 --- a/umi.27d357d9.js +++ b/umi.2f846b0c.js @@ -1,4 +1,4 @@ -(function(x){function g(l){for(var f=l[0],o=l[1],h=l[2],c,b,E=0,O=[];E