Auto Submit

dev_local_v9_test6
autosubmit 2 years ago
parent 3a48c87e5a
commit 4a7fefc453

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

@ -321,6 +321,17 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u8BC4\u6D4B\u6B21\u6570"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: StudentDetailmodules.titlecoent,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: StudentDetailmodules.fonttitle,
style: {
color: '#272A3A'
},
children: (table_data === null || table_data === void 0 ? void 0 : table_data.total_evaluate_count) || 0
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u5B8C\u6210\u603B\u6B21\u6570"
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
columns: columns,
@ -1437,6 +1448,24 @@ var StudentDetail_ShixunsListPage = function ShixunsListPage(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u7EFC\u5408\u603B\u6392\u540D\uFF08\u6392\u540D / \u603B\u4EBA\u6570\uFF09"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: StudentDetailmodules.ling
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: StudentDetailmodules.rightdiv,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: StudentDetailmodules.fonttitle,
style: {
color: '#272A3A'
},
children: [data === null || data === void 0 ? void 0 : data.total_user_ranking, "/", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#99A2B4'
},
children: data === null || data === void 0 ? void 0 : data.total_user_ranking_count
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u5B66\u4E60\u603B\u65F6\u957F"
})]
})]
})]
})]

@ -13661,7 +13661,7 @@ var resetmodules = __webpack_require__(11806);
var Option = es_select["default"].Option;
var MAX_COUNT = 3;
var Environment = function Environment(_ref) {
var _cloudList$find, _cloudList$find2, _mirror_repository$ch, _mirror_repository$sh2, _mirror_repository$sh3, _mirror_repository$sh4, _mirror_repository$sh5, _boosters$find, _network_mode_list$fi, _mirrorItems$Number2;
var _cloudList$find, _mirror_repository$ch, _mirror_repository$sh2, _mirror_repository$sh3, _mirror_repository$sh4, _mirror_repository$sh5, _boosters$find, _network_mode_list$fi, _mirrorItems$Number2;
var practiceSetting = _ref.practiceSetting,
dispatch = _ref.dispatch,
shixunsDetail = _ref.shixunsDetail,
@ -13817,9 +13817,6 @@ var Environment = function Environment(_ref) {
var isAliCloud = (cloudList === null || cloudList === void 0 || (_cloudList$find = cloudList.find(function (e) {
return e.id === (shixun_environment === null || shixun_environment === void 0 ? void 0 : shixun_environment.private_cloud_id);
})) === null || _cloudList$find === void 0 ? void 0 : _cloudList$find.cloud_type) === 1;
var isCoderCloud = (cloudList === null || cloudList === void 0 || (_cloudList$find2 = cloudList.find(function (e) {
return e.id === (shixun_environment === null || shixun_environment === void 0 ? void 0 : shixun_environment.private_cloud_id);
})) === null || _cloudList$find2 === void 0 ? void 0 : _cloudList$find2.cloud_type) === 4;
(0,_react_17_0_2_react.useEffect)(function () {
window.addEventListener("click", handleClick);
return function () {
@ -15833,7 +15830,7 @@ var Environment = function Environment(_ref) {
})
})]
})
}), renderInterface(false), (shixun_environment === null || shixun_environment === void 0 ? void 0 : shixun_environment.operating_system) === 1 && (shixun_environment === null || shixun_environment === void 0 ? void 0 : shixun_environment.private_is_support_vnc) && (isAliCloud || isCoderCloud && virt_type === 1) && /*#__PURE__*/(0,jsx_runtime.jsx)(Label/* default */.Z, {
}), renderInterface(false), (shixun_environment === null || shixun_environment === void 0 ? void 0 : shixun_environment.operating_system) === 1 && (shixun_environment === null || shixun_environment === void 0 ? void 0 : shixun_environment.private_is_support_vnc) && isAliCloud && /*#__PURE__*/(0,jsx_runtime.jsx)(Label/* default */.Z, {
required: true,
name: "\u5B9E\u4F8B\u542F\u52A8\u65B9\u5F0F",
errorKey: "instance_startup_type",

@ -351,8 +351,8 @@ var Page = function Page(_ref) {
className: Indexmodules.center,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* Banner */.jL, {
dataSource: bannerBtns,
title: "\u5B9E\u8DF5\u9879\u76EE",
sunTitle: "\u8BA9\u60A8\u4FBF\u6377\u5730\u5F00\u53D1\u8BFE\u7A0B",
title: "\u5B9E\u9A8C\u5B9E\u8BAD\u5F00\u53D1\u7BA1\u7406\u5E73\u53F0",
sunTitle: "",
img: illustration_namespaceObject,
imgWidth: 346
}), /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomTags */.qp, {

@ -939,7 +939,7 @@ function reducer(state, action) {
if (instance_startup_type === 2) {
doResize();
}
if ((entry.target.offsetHeight > 0 || entry.target.offsetWidth > 0) && rfb) {
if (entry.target.offsetHeight > 0 || entry.target.offsetWidth > 0) {
setTimeout(function () {
rfb.scaleViewport = false;
// rfb?._eventHandlers?.windowResize()
@ -1186,10 +1186,10 @@ function reducer(state, action) {
break;
}
setTimeout(function () {
var _res$data9, _res$data10, _taskData$myshixun2;
var _taskData$myshixun2;
onLayout();
iframeRef.current.style.cssText = iframeRef.current.style.cssText + "width:1920px;height:1080px;position:initial";
iframeRef.current.src = "/react/build/rdp.html?".concat(res !== null && res !== void 0 && (_res$data9 = res.data) !== null && _res$data9 !== void 0 && _res$data9.gpPort ? "gpPort=" + (res === null || res === void 0 || (_res$data10 = res.data) === null || _res$data10 === void 0 ? void 0 : _res$data10.gpPort) + '&' : '', "tpiId=").concat(taskData === null || taskData === void 0 || (_taskData$myshixun2 = taskData.myshixun) === null || _taskData$myshixun2 === void 0 ? void 0 : _taskData$myshixun2.id, "&envId=").concat(shixun_environment_id, "&tpiType=").concat(tpi_type);
iframeRef.current.src = "/rdp.html?tpiId=".concat(taskData === null || taskData === void 0 || (_taskData$myshixun2 = taskData.myshixun) === null || _taskData$myshixun2 === void 0 ? void 0 : _taskData$myshixun2.id, "&envId=").concat(shixun_environment_id, "&tpiType=").concat(tpi_type);
dispatch({
type: Types.SET_LOADING,
payload: false

@ -332,7 +332,7 @@ var Banner = function Banner(_ref) {
className: activeKey === NavType.CreateImg ? Menusmodules.active : '',
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-jingxiang2 "
}), "\u5B9E\u9A8C\u955C\u50CF"]
}), "\u5206\u5E03\u5F0F\u955C\u50CF\u7BA1\u7406"]
}), ((_user$userInfo12 = user.userInfo) === null || _user$userInfo12 === void 0 ? void 0 : _user$userInfo12.user_identity) !== '学生' && /*#__PURE__*/(0,jsx_runtime.jsxs)(_umi_production_exports.Link, {
to: "/users/".concat(username.current, "/certificate"),
onClick: function onClick() {

@ -17972,7 +17972,7 @@ function reducer(state, action) {
if (instance_startup_type === 2) {
doResize();
}
if ((entry.target.offsetHeight > 0 || entry.target.offsetWidth > 0) && rfb) {
if (entry.target.offsetHeight > 0 || entry.target.offsetWidth > 0) {
setTimeout(function () {
rfb.scaleViewport = false;
// rfb?._eventHandlers?.windowResize()
@ -18219,10 +18219,10 @@ function reducer(state, action) {
break;
}
setTimeout(function () {
var _res$data9, _res$data10, _taskData$myshixun2;
var _taskData$myshixun2;
onLayout();
iframeRef.current.style.cssText = iframeRef.current.style.cssText + "width:1920px;height:1080px;position:initial";
iframeRef.current.src = "/react/build/rdp.html?".concat(res !== null && res !== void 0 && (_res$data9 = res.data) !== null && _res$data9 !== void 0 && _res$data9.gpPort ? "gpPort=" + (res === null || res === void 0 || (_res$data10 = res.data) === null || _res$data10 === void 0 ? void 0 : _res$data10.gpPort) + '&' : '', "tpiId=").concat(taskData === null || taskData === void 0 || (_taskData$myshixun2 = taskData.myshixun) === null || _taskData$myshixun2 === void 0 ? void 0 : _taskData$myshixun2.id, "&envId=").concat(shixun_environment_id, "&tpiType=").concat(tpi_type);
iframeRef.current.src = "/rdp.html?tpiId=".concat(taskData === null || taskData === void 0 || (_taskData$myshixun2 = taskData.myshixun) === null || _taskData$myshixun2 === void 0 ? void 0 : _taskData$myshixun2.id, "&envId=").concat(shixun_environment_id, "&tpiType=").concat(tpi_type);
dispatch({
type: Types.SET_LOADING,
payload: false

@ -26,7 +26,7 @@
<body>
<!-- Guacamole -->
<script type="text/javascript" src="/react/build/js/rdp.all.min.js"></script>
<script type="text/javascript" src="/js/rdp.all.min.js"></script>
<!-- Display -->
<div id="display"></div>
@ -42,9 +42,9 @@
// Get display div from document
var display = document.getElementById("display");
let urls = `ws://${location.host}/${parames.gpPort ? 'kube' : 'tunnel'}`;
let urls = "wss://webssh.educoder.net/tunnel";
if (window.location.hostname.split('.')?.[0]?.indexOf("test") > -1 || window.location.hostname.split('.')?.[0]?.indexOf("pre") > -1 || window.top.location.href.indexOf("localhost") > -1) {
urls = `wss://pre-webssh.educoder.net/${parames.gpPort ? 'kube' : 'tunnel'}`;
urls = "wss://pre-webssh.educoder.net/tunnel";
}
// Instantiate client, using an HTTP tunnel for communications.
@ -65,7 +65,7 @@
// Connect
guac.connect(`${parames.gpPort ? ('gpPort=' + parames.gpPort + '&') : ''}` + "tpiID=" + parames.tpiId + "&envId=" + parames.envId + "&tpiType=" + parames.tpiType + "&width=1920&height=1080");
guac.connect("tpiID=" + parames.tpiId + "&envId=" + parames.envId + "&tpiType=" + parames.tpiType + "&width=1920&height=1080");
// Disconnect on close
window.onunload = function () {
@ -78,11 +78,6 @@
//
// },4000)
display.addEventListener('click', () => {
display.tabIndex = 0;
display.focus();
});
// Mouse
var mouse = new Guacamole.Mouse(guac.getDisplay().getElement());

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