Auto Submit

dev_local_v9_xiangongyedaxue
autosubmit 2 years ago
parent 1c7e14fb63
commit 261dac8b1a

@ -25,7 +25,7 @@
display: block !important;
}
</style><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="/react/build/umi.f9813830.js"></script>
<script src="/react/build/umi.ea141bae.js"></script>
<script src="/react/build/js/public.js"></script>
</body></html>

@ -531,7 +531,7 @@ var Timer = function Timer(_ref) {
var env = __webpack_require__(67871);
;// CONCATENATED MODULE: ./src/pages/Shixuns/New/ImagePreview/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var ImagePreviewmodules = ({"wrap":"wrap___nt3l8","header":"header___pWY1w","cutDown":"cutDown___LErwR","container":"container____IeqS","errorData":"errorData___pJ481"});
/* harmony default export */ var ImagePreviewmodules = ({"wrap":"wrap___nt3l8","header":"header___pWY1w","cutDown":"cutDown___LErwR","ssh":"ssh___PDcQh","container":"container____IeqS","errorData":"errorData___pJ481"});
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(15830);
// EXTERNAL MODULE: ./src/pages/tasks/code-repository/HorizontalTabs/index.tsx + 1 modules
@ -556,6 +556,7 @@ var nodata_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIsA
var Page = function Page(_ref) {
var _user$userInfo2, _user$userInfo3;
var dispatch = _ref.dispatch,
@ -568,30 +569,34 @@ var Page = function Page(_ref) {
_useState2 = slicedToArray_default()(_useState, 2),
data = _useState2[0],
setData = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(false),
var _useState3 = (0,_react_17_0_2_react.useState)(null),
_useState4 = slicedToArray_default()(_useState3, 2),
btnLoading = _useState4[0],
setBtnLoading = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)(true),
resData = _useState4[0],
setResData = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)(false),
_useState6 = slicedToArray_default()(_useState5, 2),
loading = _useState6[0],
setLoading = _useState6[1];
var _useState7 = (0,_react_17_0_2_react.useState)([]),
btnLoading = _useState6[0],
setBtnLoading = _useState6[1];
var _useState7 = (0,_react_17_0_2_react.useState)(true),
_useState8 = slicedToArray_default()(_useState7, 2),
tabs = _useState8[0],
setTabs = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)({}),
loading = _useState8[0],
setLoading = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)([]),
_useState10 = slicedToArray_default()(_useState9, 2),
tabActiveParams = _useState10[0],
setTabActiveParams = _useState10[1];
var _useState11 = (0,_react_17_0_2_react.useState)(null),
tabs = _useState10[0],
setTabs = _useState10[1];
var _useState11 = (0,_react_17_0_2_react.useState)({}),
_useState12 = slicedToArray_default()(_useState11, 2),
deadline = _useState12[0],
setDeadline = _useState12[1];
var _useState13 = (0,_react_17_0_2_react.useState)(false),
tabActiveParams = _useState12[0],
setTabActiveParams = _useState12[1];
var _useState13 = (0,_react_17_0_2_react.useState)(null),
_useState14 = slicedToArray_default()(_useState13, 2),
errorCode = _useState14[0],
setErrorCode = _useState14[1];
deadline = _useState14[0],
setDeadline = _useState14[1];
var _useState15 = (0,_react_17_0_2_react.useState)(false),
_useState16 = slicedToArray_default()(_useState15, 2),
errorCode = _useState16[0],
setErrorCode = _useState16[1];
(0,_react_17_0_2_react.useEffect)(function () {
dispatch({
type: "globalSetting/headerFooterToggle",
@ -626,6 +631,7 @@ var Page = function Page(_ref) {
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
setErrorCode(!!(res !== null && res !== void 0 && (_res$data = res.data) !== null && _res$data !== void 0 && _res$data.code));
setDeadline(res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.remaining_time);
setResData(res === null || res === void 0 ? void 0 : res.data);
setLoading(false);
// setDeadline(280000)
}
@ -780,6 +786,44 @@ var Page = function Page(_ref) {
}()
});
};
var getSSH = function getSSH() {
modal/* default */.Z.info({
title: 'SSH直连',
width: 600,
centered: true,
content: /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "50px",
children: "\u8D26\u53F7"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: resData === null || resData === void 0 ? void 0 : resData.username
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "50px",
children: "\u5730\u5740"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: resData === null || resData === void 0 ? void 0 : resData.ssh_address
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "50px",
children: "\u7AEF\u53E3"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: resData === null || resData === void 0 ? void 0 : resData.port
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "50px",
children: "\u5BC6\u7801"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: resData === null || resData === void 0 ? void 0 : resData.password
})]
})]
})
});
};
var handleSave = /*#__PURE__*/function () {
var _ref6 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6() {
var res;
@ -876,6 +920,10 @@ var Page = function Page(_ref) {
className: "icon-kaiguan font16 current ml30",
onClick: handleExit
})]
}), !!resData && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
onClick: getSSH,
className: ImagePreviewmodules.ssh,
children: "SSH\u76F4\u8FDE"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {

@ -248,6 +248,7 @@
align-items: center;
color: #fff;
padding: 0 20px;
position: relative;
}
.header___pWY1w button:disabled {
color: #7E8595 !important;
@ -263,6 +264,17 @@
.header___pWY1w .cutDown___LErwR span {
font-size: 16px;
}
.header___pWY1w .ssh___PDcQh {
position: absolute;
z-index: 100;
right: 20px;
top: 62px;
cursor: pointer;
color: #fff;
}
.header___pWY1w .ssh___PDcQh:hover {
color: #4b7cee;
}
.container____IeqS {
height: calc(100vh - 94px);
background: #000000;

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save