Auto Submit

dev_local_v9_poll
autosubmit 2 years ago
parent 757c0c2dd4
commit 3ba0249b90

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

@ -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, _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, _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 practiceSetting = _ref.practiceSetting,
dispatch = _ref.dispatch,
shixunsDetail = _ref.shixunsDetail,
@ -13817,6 +13817,9 @@ 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 () {
@ -15830,7 +15833,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 && /*#__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 || isCoderCloud && virt_type === 1) && /*#__PURE__*/(0,jsx_runtime.jsx)(Label/* default */.Z, {
required: true,
name: "\u5B9E\u4F8B\u542F\u52A8\u65B9\u5F0F",
errorKey: "instance_startup_type",

@ -939,7 +939,7 @@ function reducer(state, action) {
if (instance_startup_type === 2) {
doResize();
}
if (entry.target.offsetHeight > 0 || entry.target.offsetWidth > 0) {
if ((entry.target.offsetHeight > 0 || entry.target.offsetWidth > 0) && rfb) {
setTimeout(function () {
rfb.scaleViewport = false;
// rfb?._eventHandlers?.windowResize()
@ -1186,10 +1186,10 @@ function reducer(state, action) {
break;
}
setTimeout(function () {
var _taskData$myshixun2;
var _res$data9, _res$data10, _taskData$myshixun2;
onLayout();
iframeRef.current.style.cssText = iframeRef.current.style.cssText + "width:1920px;height:1080px;position:initial";
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);
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);
dispatch({
type: Types.SET_LOADING,
payload: false
@ -1328,7 +1328,7 @@ function reducer(state, action) {
if (loading) {
return 'none';
}
if (linux_vnc || virtual_machine || window_vnc_url && instance_startup_type === 2) {
if (linux_vnc || virtual_machine || window_vnc_url) {
return 'block';
} else {
return 'none';

@ -17972,7 +17972,7 @@ function reducer(state, action) {
if (instance_startup_type === 2) {
doResize();
}
if (entry.target.offsetHeight > 0 || entry.target.offsetWidth > 0) {
if ((entry.target.offsetHeight > 0 || entry.target.offsetWidth > 0) && rfb) {
setTimeout(function () {
rfb.scaleViewport = false;
// rfb?._eventHandlers?.windowResize()
@ -18219,10 +18219,10 @@ function reducer(state, action) {
break;
}
setTimeout(function () {
var _taskData$myshixun2;
var _res$data9, _res$data10, _taskData$myshixun2;
onLayout();
iframeRef.current.style.cssText = iframeRef.current.style.cssText + "width:1920px;height:1080px;position:initial";
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);
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);
dispatch({
type: Types.SET_LOADING,
payload: false
@ -18361,7 +18361,7 @@ function reducer(state, action) {
if (loading) {
return 'none';
}
if (linux_vnc || virtual_machine || window_vnc_url && instance_startup_type === 2) {
if (linux_vnc || virtual_machine || window_vnc_url) {
return 'block';
} else {
return 'none';

@ -26,7 +26,7 @@
<body>
<!-- Guacamole -->
<script type="text/javascript" src="/js/rdp.all.min.js"></script>
<script type="text/javascript" src="/react/build/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 = "wss://webssh.educoder.net/tunnel";
let urls = `wss://webssh.educoder.net/${parames.gpPort ? 'kube' : '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/tunnel";
urls = `wss://pre-webssh.educoder.net/${parames.gpPort ? 'kube' : 'tunnel'}`;
}
// Instantiate client, using an HTTP tunnel for communications.
@ -65,7 +65,7 @@
// Connect
guac.connect("tpiID=" + parames.tpiId + "&envId=" + parames.envId + "&tpiType=" + parames.tpiType + "&width=1920&height=1080");
guac.connect(`${parames.gpPort ? ('gpPort=' + parames.gpPort + '&') : ''}` + "tpiID=" + parames.tpiId + "&envId=" + parames.envId + "&tpiType=" + parames.tpiType + "&width=1920&height=1080");
// Disconnect on close
window.onunload = function () {
@ -78,6 +78,11 @@
//
// },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