|
|
|
|
@ -210,9 +210,9 @@ var AsyncButton = function AsyncButton(_ref) {
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ 37337:
|
|
|
|
|
/***/ 86319:
|
|
|
|
|
/*!********************************************************!*\
|
|
|
|
|
!*** ./src/pages/Shixuns/Detail/[id].tsx + 34 modules ***!
|
|
|
|
|
!*** ./src/pages/Shixuns/Detail/[id].tsx + 32 modules ***!
|
|
|
|
|
\********************************************************/
|
|
|
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
@ -2581,72 +2581,6 @@ var Banner = function Banner(_ref) {
|
|
|
|
|
problemset: problemset
|
|
|
|
|
};
|
|
|
|
|
})(Banner));
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Shixuns/Detail/components/FirstEntryModal/index.less?modules
|
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
|
/* harmony default export */ var FirstEntryModalmodules = ({"firstEntryModal":"firstEntryModal___KL7Hx","box":"box___h_ENw","tips":"tips___L_prp"});
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Shixuns/Detail/components/FirstEntryModal/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var FirstEntryModal = function FirstEntryModal() {
|
|
|
|
|
var _useState = (0,_react_17_0_2_react.useState)(0),
|
|
|
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
|
|
|
left = _useState2[0],
|
|
|
|
|
setOffsetLeft = _useState2[1];
|
|
|
|
|
var _useState3 = (0,_react_17_0_2_react.useState)(0),
|
|
|
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
|
|
|
top = _useState4[0],
|
|
|
|
|
setOffsetTop = _useState4[1];
|
|
|
|
|
var modal = (0,_react_17_0_2_react.useRef)();
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
var firstEntry = localStorage.getItem('setPracticalFirstEntry');
|
|
|
|
|
if (!firstEntry) {
|
|
|
|
|
document.body.setAttribute('style', "height: 100vh; overflow: hidden");
|
|
|
|
|
var dom = document.getElementById('settingEntry');
|
|
|
|
|
if (dom !== null && dom !== void 0 && dom.style) {
|
|
|
|
|
setOffsetLeft(dom.offsetLeft);
|
|
|
|
|
setOffsetTop(dom.offsetTop + 18);
|
|
|
|
|
modal.current.style.display = 'block';
|
|
|
|
|
dom.style.opacity = '0';
|
|
|
|
|
var date = String(new Date().getTime());
|
|
|
|
|
localStorage.setItem('setPracticalFirstEntry', date);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}, []);
|
|
|
|
|
var close = function close() {
|
|
|
|
|
modal.current.style.display = 'none';
|
|
|
|
|
document.body.removeAttribute('style');
|
|
|
|
|
var dom = document.getElementById('settingEntry');
|
|
|
|
|
if (dom !== null && dom !== void 0 && dom.style) dom.style.opacity = '1';
|
|
|
|
|
};
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: FirstEntryModalmodules.firstEntryModal,
|
|
|
|
|
ref: modal,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: FirstEntryModalmodules.box,
|
|
|
|
|
style: {
|
|
|
|
|
left: left,
|
|
|
|
|
top: top
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
|
|
className: "iconfont icon-shijianshezhi"
|
|
|
|
|
}), " ", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
children: "\u8BBE\u7F6E"
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: FirstEntryModalmodules.tips,
|
|
|
|
|
children: ["\u53EF\u7F16\u8F91\u5B9E\u8DF5\u9879\u76EE\u7684\u57FA\u672C\u4FE1\u606F\u3001\u4EE3\u7801\u4ED3\u5E93\u3001\u4EFB\u52A1\u5173\u5361\u3001\u5B9E\u9A8C\u73AF\u5883\u7B49\u3002", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
|
|
onClick: close,
|
|
|
|
|
className: "iconfont icon-guanbi1"
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
/* harmony default export */ var components_FirstEntryModal = (FirstEntryModal);
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Shixuns/Detail/index.less?modules
|
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
|
/* harmony default export */ var Detailmodules = ({"flex_box_center":"flex_box_center___yLE9I","flex_space_between":"flex_space_between___oiROA","flex_box_vertical_center":"flex_box_vertical_center___EAVkE","flex_box_center_end":"flex_box_center_end___Y4sRU","flex_box_column":"flex_box_column___SSP3m","bg":"bg___UgpNC","tabs":"tabs___BSqmb","wrap":"wrap___NcfkY","tabsWrap":"tabsWrap___ZE6OM","verticalTabs":"verticalTabs___ioCA8","tabItem":"tabItem___gjoJK","activeIcon":"activeIcon___ksQyh","icon":"icon___GgnsD","activeTab":"activeTab___LK2Fz","content":"content___hFrYf","checkWrap":"checkWrap___k5PF5","check":"check___XPhyn"});
|
|
|
|
|
@ -3754,7 +3688,6 @@ var SvgHzzActive = function SvgHzzActive(props) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var formatTabKeyToUrl = function formatTabKeyToUrl(key, id) {
|
|
|
|
|
@ -3940,6 +3873,9 @@ var ShixunsDetailPage = function ShixunsDetailPage(_ref) {
|
|
|
|
|
},
|
|
|
|
|
children: [(0,authority/* isSuperAdmins */.Ny)() && !((_shixunsDetail$challe = shixunsDetail.challenges) !== null && _shixunsDetail$challe !== void 0 && _shixunsDetail$challe.is_jupyter || (_shixunsDetail$challe2 = shixunsDetail.challenges) !== null && _shixunsDetail$challe2 !== void 0 && _shixunsDetail$challe2.is_jupyter_lab) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: Detailmodules.checkWrap,
|
|
|
|
|
style: {
|
|
|
|
|
marginRight: '20px'
|
|
|
|
|
},
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
className: "".concat(Detailmodules.check, " ").concat(Detailmodules.activeCheck),
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
@ -3952,8 +3888,7 @@ var ShixunsDetailPage = function ShixunsDetailPage(_ref) {
|
|
|
|
|
}), own && editable && !((_shixunsDetail$detail9 = shixunsDetail.detail) !== null && _shixunsDetail$detail9 !== void 0 && _shixunsDetail$detail9.is_jupyter) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: Detailmodules.checkWrap,
|
|
|
|
|
style: {
|
|
|
|
|
width: '78px',
|
|
|
|
|
marginLeft: 20
|
|
|
|
|
width: '78px'
|
|
|
|
|
},
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
|
|
|
|
|
className: Detailmodules.check,
|
|
|
|
|
@ -4041,10 +3976,7 @@ var ShixunsDetailPage = function ShixunsDetailPage(_ref) {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: Detailmodules.content,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Outlet, {})
|
|
|
|
|
}),
|
|
|
|
|
/*#__PURE__*/
|
|
|
|
|
// own && !shixunsDetail.detail?.is_jupyter &&
|
|
|
|
|
(0,jsx_runtime.jsx)(components_FirstEntryModal, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(components_Detection, {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(components_Detection, {
|
|
|
|
|
isDrawer: isDrawer,
|
|
|
|
|
setIsDrawer: setIsDrawer
|
|
|
|
|
})]
|