Auto Submit

dev_aliyun_xibeigongye
autosubmit 3 years ago
parent 52bf7cb9b8
commit 2665de7bd4

@ -89,7 +89,7 @@ html {--antd-wave-shadow-color: @primary-color;}
.ant-alert-info .ant-alert-icon {color: @primary-color;}
.ant-alert-warning {background-color: color(~`colorPalette("@{warning-color}", 1)`);border: 1px solid color(~`colorPalette("@{warning-color}", 3)`);}
.ant-alert-warning .ant-alert-icon {color: @warning-color;}
.ant-alert-error {background-color: color(~`colorPalette("@{modal-header-bg}", 2)`);border: 1px solid color(~`colorPalette("@{error-color}", 3)`);}
.ant-alert-error {background-color: color(~`colorPalette("@{error-color}", 1)`);border: 1px solid color(~`colorPalette("@{error-color}", 3)`);}
.ant-alert-error .ant-alert-icon {color: @error-color;}
.ant-alert-close-icon {background-color: transparent;border: none;}
.ant-alert-close-icon .anticon-close {color: @text-color-secondary;}
@ -563,10 +563,10 @@ a.ant-btn-disabled:active > a:only-child::after {background: transparent;}
.ant-comment-actions > li > span {color: @text-color-secondary;}
.ant-comment-actions > li > span:hover {color: #595959;}
.ant-picker-status-error.ant-picker, .ant-picker-status-error.ant-picker:not([disabled]):hover {background-color: #fff;border-color: @error-color;}
.ant-picker-status-error.ant-picker-focused, .ant-picker-status-error.ant-picker:focus {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(21, 150, 135, 0.2);border-right-width: 1px;}
.ant-picker-status-error.ant-picker-focused, .ant-picker-status-error.ant-picker:focus {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(238, 245, 14, 0.2);border-right-width: 1px;}
.ant-picker-status-error.ant-picker .ant-picker-active-bar {background: color(~`colorPalette("@{error-color}", 5)`);}
.ant-picker-status-warning.ant-picker, .ant-picker-status-warning.ant-picker:not([disabled]):hover {background-color: #fff;border-color: @warning-color;}
.ant-picker-status-warning.ant-picker-focused, .ant-picker-status-warning.ant-picker:focus {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(136, 242, 161, 0.2);border-right-width: 1px;}
.ant-picker-status-warning.ant-picker-focused, .ant-picker-status-warning.ant-picker:focus {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(19, 55, 73, 0.2);border-right-width: 1px;}
.ant-picker-status-warning.ant-picker .ant-picker-active-bar {background: color(~`colorPalette("@{warning-color}", 5)`);}
.ant-picker {color: @text-color;background: #fff;border: 1px solid @border-color-base;border-radius: 2px;}
.ant-picker:hover, .ant-picker-focused {border-color: color(~`colorPalette("@{primary-color}", 5)`);border-right-width: 1px;}
@ -788,16 +788,16 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte
.anticon.ant-input-clear-icon:hover, .ant-input-clear-icon:hover {color: @text-color-secondary;}
.anticon.ant-input-clear-icon:active, .ant-input-clear-icon:active {color: @text-color;}
.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input, .ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover {background: #fff;border-color: @error-color;}
.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus, .ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(21, 150, 135, 0.2);border-right-width: 1px;}
.ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus, .ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(238, 245, 14, 0.2);border-right-width: 1px;}
.ant-input-status-error .ant-input-prefix {color: @error-color;}
.ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input, .ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover {background: #fff;border-color: @warning-color;}
.ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus, .ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(136, 242, 161, 0.2);border-right-width: 1px;}
.ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus, .ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(19, 55, 73, 0.2);border-right-width: 1px;}
.ant-input-status-warning .ant-input-prefix {color: @warning-color;}
.ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper, .ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:hover {background: #fff;border-color: @error-color;}
.ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:focus, .ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(21, 150, 135, 0.2);border-right-width: 1px;}
.ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:focus, .ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(238, 245, 14, 0.2);border-right-width: 1px;}
.ant-input-affix-wrapper-status-error .ant-input-prefix {color: @error-color;}
.ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper, .ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:hover {background: #fff;border-color: @warning-color;}
.ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:focus, .ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(136, 242, 161, 0.2);border-right-width: 1px;}
.ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:focus, .ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(19, 55, 73, 0.2);border-right-width: 1px;}
.ant-input-affix-wrapper-status-warning .ant-input-prefix {color: @warning-color;}
.ant-input-group-wrapper-status-error .ant-input-group-addon {color: @error-color;border-color: @error-color;}
.ant-input-group-wrapper-status-warning .ant-input-group-addon {color: @warning-color;border-color: @warning-color;}
@ -894,16 +894,16 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte
.ant-input-number-affix-wrapper > div.ant-input-number {border: none;}
.ant-input-number-affix-wrapper > div.ant-input-number.ant-input-number-focused {box-shadow: none !important;}
.ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number, .ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number:hover {background: #fff;border-color: @error-color;}
.ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number:focus, .ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(21, 150, 135, 0.2);border-right-width: 1px;}
.ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number:focus, .ant-input-number-status-error:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(238, 245, 14, 0.2);border-right-width: 1px;}
.ant-input-number-status-error .ant-input-number-prefix {color: @error-color;}
.ant-input-number-status-warning:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number, .ant-input-number-status-warning:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number:hover {background: #fff;border-color: @warning-color;}
.ant-input-number-status-warning:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number:focus, .ant-input-number-status-warning:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(136, 242, 161, 0.2);border-right-width: 1px;}
.ant-input-number-status-warning:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number:focus, .ant-input-number-status-warning:not(.ant-input-number-disabled):not(.ant-input-number-borderless).ant-input-number-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(19, 55, 73, 0.2);border-right-width: 1px;}
.ant-input-number-status-warning .ant-input-number-prefix {color: @warning-color;}
.ant-input-number-affix-wrapper-status-error:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper, .ant-input-number-affix-wrapper-status-error:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper:hover {background: #fff;border-color: @error-color;}
.ant-input-number-affix-wrapper-status-error:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper:focus, .ant-input-number-affix-wrapper-status-error:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(21, 150, 135, 0.2);border-right-width: 1px;}
.ant-input-number-affix-wrapper-status-error:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper:focus, .ant-input-number-affix-wrapper-status-error:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(238, 245, 14, 0.2);border-right-width: 1px;}
.ant-input-number-affix-wrapper-status-error .ant-input-number-prefix {color: @error-color;}
.ant-input-number-affix-wrapper-status-warning:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper, .ant-input-number-affix-wrapper-status-warning:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper:hover {background: #fff;border-color: @warning-color;}
.ant-input-number-affix-wrapper-status-warning:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper:focus, .ant-input-number-affix-wrapper-status-warning:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(136, 242, 161, 0.2);border-right-width: 1px;}
.ant-input-number-affix-wrapper-status-warning:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper:focus, .ant-input-number-affix-wrapper-status-warning:not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(19, 55, 73, 0.2);border-right-width: 1px;}
.ant-input-number-affix-wrapper-status-warning .ant-input-number-prefix {color: @warning-color;}
.ant-input-number-group-wrapper-status-error .ant-input-number-group-addon {color: @error-color;border-color: @error-color;}
.ant-input-number-group-wrapper-status-warning .ant-input-number-group-addon {color: @warning-color;border-color: @warning-color;}
@ -1024,10 +1024,10 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte
.ant-list-grid .ant-col > .ant-list-item {border-bottom: none;}
.ant-list-bordered {border: 1px solid @border-color-base;border-radius: 2px;}
.ant-mentions-status-error:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions, .ant-mentions-status-error:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions:hover {background: #fff;border-color: @error-color;}
.ant-mentions-status-error:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions:focus, .ant-mentions-status-error:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(21, 150, 135, 0.2);border-right-width: 1px;}
.ant-mentions-status-error:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions:focus, .ant-mentions-status-error:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(238, 245, 14, 0.2);border-right-width: 1px;}
.ant-mentions-status-error .ant-input-prefix {color: @error-color;}
.ant-mentions-status-warning:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions, .ant-mentions-status-warning:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions:hover {background: #fff;border-color: @warning-color;}
.ant-mentions-status-warning:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions:focus, .ant-mentions-status-warning:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(136, 242, 161, 0.2);border-right-width: 1px;}
.ant-mentions-status-warning:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions:focus, .ant-mentions-status-warning:not(.ant-mentions-disabled):not(.ant-mentions-borderless).ant-mentions-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(19, 55, 73, 0.2);border-right-width: 1px;}
.ant-mentions-status-warning .ant-input-prefix {color: @warning-color;}
.ant-mentions {color: @text-color;background-color: #fff;background-image: none;border: 1px solid @border-color-base;border-radius: 2px;}
.ant-mentions::placeholder {color: #bfbfbf;}
@ -1360,9 +1360,9 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte
.ant-select-multiple .ant-select-selection-item-remove {color: inherit;color: @text-color-secondary;}
.ant-select-multiple .ant-select-selection-item-remove:hover {color: rgba(0, 0, 0, 0.75);}
.ant-select-status-error.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer) .ant-select-selector {background-color: #fff;border-color: @error-color !important;}
.ant-select-status-error.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-open .ant-select-selector, .ant-select-status-error.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(21, 150, 135, 0.2);border-right-width: 1px;}
.ant-select-status-error.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-open .ant-select-selector, .ant-select-status-error.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{error-color}", 5)`);box-shadow: 0 0 0 2px rgba(238, 245, 14, 0.2);border-right-width: 1px;}
.ant-select-status-warning.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer) .ant-select-selector {background-color: #fff;border-color: @warning-color !important;}
.ant-select-status-warning.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-open .ant-select-selector, .ant-select-status-warning.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(136, 242, 161, 0.2);border-right-width: 1px;}
.ant-select-status-warning.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-open .ant-select-selector, .ant-select-status-warning.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{warning-color}", 5)`);box-shadow: 0 0 0 2px rgba(19, 55, 73, 0.2);border-right-width: 1px;}
.ant-select {color: @text-color;}
.ant-select:not(.ant-select-customize-input) .ant-select-selector {background-color: #fff;border: 1px solid @border-color-base;border-radius: 2px;}
.ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector {border-color: color(~`colorPalette("@{primary-color}", 5)`);box-shadow: 0 0 0 2px fade(@primary-color, 20%);border-right-width: 1px;}
@ -1664,7 +1664,7 @@ tr.ant-table-expanded-row:hover > td {background: #fbfbfb;}
.ant-tag-purple-inverse {color: #fff;background: #722ed1;border-color: #722ed1;}
.ant-tag-success {color: @success-color;background: color(~`colorPalette("@{success-color}", 1)`);border-color: color(~`colorPalette("@{success-color}", 3)`);}
.ant-tag-processing {color: @primary-color;background: color(~`colorPalette("@{primary-color}", 1)`);border-color: color(~`colorPalette("@{primary-color}", 3)`);}
.ant-tag-error {color: @error-color;background: color(~`colorPalette("@{modal-header-bg}", 2)`);border-color: color(~`colorPalette("@{error-color}", 3)`);}
.ant-tag-error {color: @error-color;background: color(~`colorPalette("@{error-color}", 1)`);border-color: color(~`colorPalette("@{error-color}", 3)`);}
.ant-tag-warning {color: @warning-color;background: color(~`colorPalette("@{warning-color}", 1)`);border-color: color(~`colorPalette("@{warning-color}", 3)`);}
.ant-timeline {color: @text-color;}
.ant-timeline-item-tail {border-left: 2px solid #f0f0f0;}
@ -1896,7 +1896,7 @@ a.ant-typography.ant-typography-disabled:hover, .ant-typography a.ant-typography
.ant-upload-list-picture .ant-upload-list-item-error, .ant-upload-list-picture-card .ant-upload-list-item-error {border-color: @error-color;}
.ant-upload-list-picture .ant-upload-list-item:hover .ant-upload-list-item-info, .ant-upload-list-picture-card .ant-upload-list-item:hover .ant-upload-list-item-info {background: transparent;}
.ant-upload-list-picture .ant-upload-list-item-uploading, .ant-upload-list-picture-card .ant-upload-list-item-uploading {border-style: dashed;}
.ant-upload-list-picture .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill='#e6f7ff'], .ant-upload-list-picture-card .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill='#e6f7ff'] {fill: color(~`colorPalette("@{modal-header-bg}", 2)`);}
.ant-upload-list-picture .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill='#e6f7ff'], .ant-upload-list-picture-card .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill='#e6f7ff'] {fill: color(~`colorPalette("@{error-color}", 1)`);}
.ant-upload-list-picture .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill='#1890ff'], .ant-upload-list-picture-card .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill='#1890ff'] {fill: @error-color;}
.ant-upload-list-picture-card .ant-upload-list-item-info::before {background-color: rgba(0, 0, 0, 0.5);}
.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-eye, .ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-download, .ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-delete {color: rgba(255, 255, 255, 0.85);}

@ -15,7 +15,7 @@
</head>
<body>
<div id="root"></div><link rel="stylesheet/less" type="text/css" href="https://www-cdn.educoder.net/color.less"><script>window.ENV = 'newBuild'</script><script src="https://www-cdn.educoder.net/js/less.min.js"></script><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="https://www-cdn.educoder.net/umi.12327982.js"></script>
<script src="https://www-cdn.educoder.net/umi.36e84dec.js"></script>
<script src="https://www-cdn.educoder.net/js/officeapi.js"></script>
<script src="https://www-cdn.educoder.net/js/public.js"></script>

@ -8181,7 +8181,8 @@ var Sortvideo = function Sortvideo(_ref3) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
zIndex: 9999,
width: '100%'
width: '100%',
position: "relative"
}
// visible={visible}
,
@ -8360,6 +8361,9 @@ var SortClassroom_SortableList = (0,react_sortable_hoc_esm/* SortableContainer *
pathsDetail = _ref2.pathsDetail;
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "task-list-container",
style: {
minHeight: (items === null || items === void 0 ? void 0 : items.length) * 240
},
children: items === null || items === void 0 ? void 0 : items.map(function (value, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(SortClassroom_SortableItem, {
dispatch: dispatch,
@ -9824,7 +9828,7 @@ var Right = function Right(_ref) {
gutter: [0, 40],
justify: "center",
align: "middle",
className: "bg-white mt0",
className: "bg-white mt0 pb20",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
className: "c-blue current",
onClick: handleAddCollaborator,

@ -1624,6 +1624,7 @@
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.sort-list-panel___T39Sk {
z-index: 1;
position: relative;
}
.sort-list-panel___T39Sk .sort-list-tip___Wu55q {
width: 80%;
@ -1676,6 +1677,7 @@
.task-list-container___ABX0H {
padding: 0;
margin: 0;
position: relative;
}
.task-list-container___ABX0H li {
overflow: hidden;
@ -1911,6 +1913,7 @@
\*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.sort-list-panel___dj9Dy {
z-index: 1;
position: relative;
}
.sort-list-panel___dj9Dy .sort-list-tip___MJMmM {
width: 80%;

@ -9508,6 +9508,8 @@ var Information = function Information(_ref) {
setcover_image_id = _useState14[1];
var changeData = (0,react.useRef)({});
var changeImg = (0,react.useRef)('');
var changeCoverImg = (0,react.useRef)('');
var changeBImg = (0,react.useRef)('');
var timer = (0,react.useRef)(null);
var throttleSave = (0,react.useRef)((0,lodash.throttle)(function () {
return handleSave();
@ -9531,7 +9533,7 @@ var Information = function Information(_ref) {
var setConfirmValue = function setConfirmValue() {
clearTimeout(timer.current);
timer.current = setTimeout(function () {
if (!(0,lodash.isEqual)(formValue, changeData.current) || attachment_id !== changeImg.current || cover_image_id !== changeImg.current || attachment_id_b !== changeImg.current) {
if (!(0,lodash.isEqual)(formValue, changeData.current) || attachment_id !== changeImg.current || cover_image_id !== changeCoverImg.current || attachment_id_b !== changeBImg.current) {
dispatch({
type: 'practiceSetting/setSideBarTabs',
payload: {
@ -9582,6 +9584,8 @@ var Information = function Information(_ref) {
form.setFieldsValue(newData);
changeData.current = objectSpread2_default()({}, newData);
changeImg.current = cloneData.attachment_id || '';
changeCoverImg.current = cloneData.cover_image_id || '';
changeBImg.current = cloneData.attachment_id_b || '';
setFormValue(objectSpread2_default()({}, newData));
setImageUrl(cloneData.attachment_id || '');
setImageUrls(cloneData.attachment_id_b || '');
@ -9658,6 +9662,8 @@ var Information = function Information(_ref) {
name: formValue.name
};
changeImg.current = attachment_id;
changeCoverImg.current = cover_image_id;
changeBImg.current = attachment_id_b;
}
});
};

@ -1150,7 +1150,7 @@ var _umi_production_exports = __webpack_require__(89214);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(29427);
// EXTERNAL MODULE: ./node_modules/@novnc/novnc/lib/rfb.js
var lib_rfb = __webpack_require__(2176);
var rfb = __webpack_require__(2176);
// EXTERNAL MODULE: ./src/components/mediator.js
var mediator = __webpack_require__(91562);
// EXTERNAL MODULE: ./node_modules/antd/es/input/style/index.js + 1 modules
@ -1354,7 +1354,11 @@ function reducer(state, action) {
var el = (0,react.useRef)();
var guacaRef = (0,react.useRef)();
var rfbRef = (0,react.useRef)();
var roRef = (0,react.useRef)();
var iframeRef = (0,react.useRef)();
var passwordRef = (0,react.useRef)();
var socketUrlRef = (0,react.useRef)();
var reConnectRef = (0,react.useRef)();
var _useState = (0,react.useState)(),
_useState2 = slicedToArray_default()(_useState, 2),
imageId = _useState2[0],
@ -1389,6 +1393,7 @@ function reducer(state, action) {
var _guacaRef$current, _guacaRef$current$dis;
(_guacaRef$current = guacaRef.current) === null || _guacaRef$current === void 0 ? void 0 : (_guacaRef$current$dis = _guacaRef$current.disconnect) === null || _guacaRef$current$dis === void 0 ? void 0 : _guacaRef$current$dis.call(_guacaRef$current);
window.removeEventListener("visibilitychange", handleFocus);
clearTimeout(reConnectRef.current);
};
}, []);
(0,react.useEffect)(function () {
@ -1444,9 +1449,8 @@ function reducer(state, action) {
});
}
function onLayout(rfb) {
var ro;
if (el.current) {
ro = new ResizeObserver_es/* default */.Z(function (entries) {
roRef.current = new ResizeObserver_es/* default */.Z(function (entries) {
var _iterator = createForOfIteratorHelper_default()(entries),
_step;
try {
@ -1467,9 +1471,9 @@ function reducer(state, action) {
_iterator.f();
}
});
ro.observe(el.current);
roRef.current.observe(el.current);
}
return ro;
return roRef.current;
}
var getWindowVnc = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
@ -1572,21 +1576,72 @@ function reducer(state, action) {
return _ref2.apply(this, arguments);
};
}();
(0,react.useEffect)(function () {
var rfb;
var ro;
function onDisconnect(e) {
if (window_vnc_url) {
message/* default.warn */.ZP.warn('由于长时间未操作连接失效正在重新连接Windows VNC服务');
dispatch({
type: Types.SET_LOADING,
payload: true
});
}
setTimeout(function () {
function onConnect() {
setPercent(100);
clearTimeout(timeout.current);
setTimeout(function () {
rfbRef.current.resizeSession = false;
dispatch({
type: Types.SET_LOADING,
payload: false
});
}, 1300);
mediator/* default.subscribe */.Z.subscribe('send-ctrl-alt-delete', function () {
var _rfbRef$current2;
(_rfbRef$current2 = rfbRef.current) === null || _rfbRef$current2 === void 0 ? void 0 : _rfbRef$current2.sendCtrlAltDel();
});
}
var toConnect = function toConnect() {
rfbRef.current = new rfb/* default */.Z(el.current, socketUrlRef.current, {
credentials: {
password: passwordRef.current
},
wsProtocols: ['binary'],
resize: "scale",
show_dot: true
});
rfbRef.current.removeEventListener('disconnect', onDisconnect);
rfbRef.current.removeEventListener('connect', onConnect);
rfbRef.current.removeEventListener('clipboard', onClipboardReceive);
roRef.current = onLayout(rfbRef.current);
rfbRef.current.viewOnly = params.view_only || false;
if (window_vnc_url) {
rfbRef.current.scaleViewport = true;
} else {
rfbRef.current.scaleViewport = params.scale || false;
}
rfbRef.current.scaleViewport = params.scale || true;
rfbRef.current.showDotCursor = true;
rfbRef.current.resizeSession = true;
rfbRef.current.addEventListener('disconnect', onDisconnect);
rfbRef.current.addEventListener('connect', onConnect);
rfbRef.current.addEventListener('clipboard', onClipboardReceive);
};
function onClipboardReceive(e) {
var rs = unicodeUnEscape(e.detail.text);
dispatch({
type: Types.SET_TRANSFER_CONTENT,
payload: rs
});
}
function onDisconnect(e) {
if (window_vnc_url) {
message/* default.warn */.ZP.warn('由于长时间未操作连接失效正在重新连接Windows VNC服务');
dispatch({
type: Types.SET_LOADING,
payload: true
});
setLinkNum(linkNum + 1);
} else {
clearTimeout(reConnectRef.current);
if (loading) return;
reConnectRef.current = setTimeout(function () {
// toConnect()
setLinkNum(linkNum + 1);
}, 2000);
}, 6000);
}
}
(0,react.useEffect)(function () {
mediator/* default.subscribe */.Z.subscribe('reset-linux-windows-loading', function () {
dispatch({
type: Types.SET_LOADING,
@ -1596,28 +1651,6 @@ function reducer(state, action) {
mediator/* default.subscribe */.Z.subscribe('reset-linux-windos-vnc', function () {
setLinkNum(linkNum + 1);
});
function onConnect() {
setPercent(100);
clearTimeout(timeout.current);
setTimeout(function () {
rfbRef.current.resizeSession = false;
dispatch({
type: Types.SET_LOADING,
payload: false
});
}, 1300);
mediator/* default.subscribe */.Z.subscribe('send-ctrl-alt-delete', function () {
var _rfb;
(_rfb = rfb) === null || _rfb === void 0 ? void 0 : _rfb.sendCtrlAltDel();
});
}
function onClipboardReceive(e) {
var rs = unicodeUnEscape(e.detail.text);
dispatch({
type: Types.SET_TRANSFER_CONTENT,
payload: rs
});
}
if ((window_vnc_url || vnc_url || linux_vnc || virtual_machine && imageId) && el.current) {
var _taskData$shixun3;
clearTimeout(timeout.current);
@ -1626,18 +1659,17 @@ function reducer(state, action) {
}
new Promise( /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
var _taskData$shixun4;
var params, socketUrl, password, res, _res$data5, _res$data6, _res$data7, urlParser, protocol, searchParams, host, _taskData$myshixun2;
var params, res, _res$data5, _res$data6, _res$data7, urlParser, protocol, searchParams, host, _taskData$myshixun2;
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
params = getJsonFromUrl();
socketUrl = '';
_context4.next = 4;
_context4.next = 3;
return getWindowVnc();
case 4:
case 3:
res = _context4.sent;
if (!(linux_vnc || virtual_machine)) {
_context4.next = 11;
_context4.next = 10;
break;
}
iframeRef.current.src = (res === null || res === void 0 ? void 0 : (_res$data5 = res.data) === null || _res$data5 === void 0 ? void 0 : _res$data5.link_url) + '&time=' + Date.now();
@ -1649,61 +1681,32 @@ function reducer(state, action) {
}
});
return _context4.abrupt("return");
case 11:
case 10:
if (window_vnc_url) {
password = 'Edu123';
socketUrl = decodeURIComponent(res === null || res === void 0 ? void 0 : (_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.link_url);
passwordRef.current = 'Edu123';
socketUrlRef.current = decodeURIComponent(res === null || res === void 0 ? void 0 : (_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.link_url);
} else {
urlParser = new URL(decodeURIComponent(res === null || res === void 0 ? void 0 : (_res$data7 = res.data) === null || _res$data7 === void 0 ? void 0 : _res$data7.link_url)); //no IE11 support
protocol = urlParser.protocol, searchParams = urlParser.searchParams, host = urlParser.host;
password = searchParams.get('password');
socketUrl = "".concat(protocol === 'https:' ? 'wss' : 'ws', "://").concat(host, "/").concat(params.path || 'websockify');
passwordRef.current = searchParams.get('password');
socketUrlRef.current = "".concat(protocol === 'https:' ? 'wss' : 'ws', "://").concat(host, "/").concat(params.path || 'websockify');
}
case 12:
case 11:
if (!((taskData === null || taskData === void 0 ? void 0 : (_taskData$shixun4 = taskData.shixun) === null || _taskData$shixun4 === void 0 ? void 0 : _taskData$shixun4.windows_connection_mode) === "rdp")) {
_context4.next = 18;
_context4.next = 17;
break;
}
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 ? void 0 : (_taskData$myshixun2 = taskData.myshixun) === null || _taskData$myshixun2 === void 0 ? void 0 : _taskData$myshixun2.id);
// guacaRef.current = new Guacamole.Client(new Guacamole.WebSocketTunnel(`wss://pre-webssh.educoder.net/tunnel?tpiID=${taskData?.myshixun?.id}&width=500&height=400&`));
// // guacaRef.current = new Guacamole.Client(new Guacamole.WebSocketTunnel(`wss://pre-webssh.educoder.net/tunnel?tpiID=4232620&width=1920&height=1080&`));
// guacaRef.current.onerror = function (error:any) {
// console.log("onerror",error);
// };
// el.current.appendChild(guacaRef.current.getDisplay().getElement());
// guacaRef.current.connect();
dispatch({
type: Types.SET_LOADING,
payload: false
});
return _context4.abrupt("return");
case 17:
toConnect();
case 18:
rfb = new lib_rfb/* default */.Z(el.current, socketUrl, {
credentials: {
password: password
},
wsProtocols: ['binary'],
resize: "scale",
show_dot: true
});
ro = onLayout(rfb);
rfb.viewOnly = params.view_only || false;
if (window_vnc_url) {
rfb.scaleViewport = true;
} else {
rfb.scaleViewport = params.scale || false;
}
rfb.scaleViewport = params.scale || true;
rfb.showDotCursor = true;
rfb.resizeSession = true;
rfbRef.current = rfb;
rfb.addEventListener('disconnect', onDisconnect);
rfb.addEventListener('connect', onConnect);
rfb.addEventListener('clipboard', onClipboardReceive);
case 29:
case "end":
return _context4.stop();
}
@ -1738,14 +1741,14 @@ function reducer(state, action) {
});
setPercent(0);
return function () {
var _rfb2, _rfb3, _rfb4, _ro;
(_rfb2 = rfb) === null || _rfb2 === void 0 ? void 0 : _rfb2.removeEventListener('disconnect', onDisconnect);
(_rfb3 = rfb) === null || _rfb3 === void 0 ? void 0 : _rfb3.removeEventListener('connect', onConnect);
(_rfb4 = rfb) === null || _rfb4 === void 0 ? void 0 : _rfb4.removeEventListener('clipboard', onClipboardReceive);
var _rfbRef$current3, _rfbRef$current4, _rfbRef$current5, _roRef$current;
(_rfbRef$current3 = rfbRef.current) === null || _rfbRef$current3 === void 0 ? void 0 : _rfbRef$current3.removeEventListener('disconnect', onDisconnect);
(_rfbRef$current4 = rfbRef.current) === null || _rfbRef$current4 === void 0 ? void 0 : _rfbRef$current4.removeEventListener('connect', onConnect);
(_rfbRef$current5 = rfbRef.current) === null || _rfbRef$current5 === void 0 ? void 0 : _rfbRef$current5.removeEventListener('clipboard', onClipboardReceive);
unsub();
unSub2();
unSub3();
(_ro = ro) === null || _ro === void 0 ? void 0 : _ro.unobserve(el.current);
(_roRef$current = roRef.current) === null || _roRef$current === void 0 ? void 0 : _roRef$current.unobserve(el.current);
};
}
}, [vnc_url, window_vnc_url, linux_vnc, linkNum, imageId]);
@ -1759,8 +1762,8 @@ function reducer(state, action) {
}
}, [virtual_machine]);
function clipboardSend(content) {
var _rfbRef$current2;
(_rfbRef$current2 = rfbRef.current) === null || _rfbRef$current2 === void 0 ? void 0 : _rfbRef$current2.clipboardPasteFrom(content);
var _rfbRef$current6;
(_rfbRef$current6 = rfbRef.current) === null || _rfbRef$current6 === void 0 ? void 0 : _rfbRef$current6.clipboardPasteFrom(content);
dispatch({
type: Types.SET_TRANSFER_CONTENT,
payload: content

@ -18375,7 +18375,7 @@ var _umi_production_exports = __webpack_require__(89214);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(29427);
// EXTERNAL MODULE: ./node_modules/@novnc/novnc/lib/rfb.js
var lib_rfb = __webpack_require__(2176);
var rfb = __webpack_require__(2176);
// EXTERNAL MODULE: ./src/components/mediator.js
var mediator = __webpack_require__(91562);
// EXTERNAL MODULE: ./node_modules/antd/es/input/style/index.js + 1 modules
@ -18579,7 +18579,11 @@ function reducer(state, action) {
var el = (0,react.useRef)();
var guacaRef = (0,react.useRef)();
var rfbRef = (0,react.useRef)();
var roRef = (0,react.useRef)();
var iframeRef = (0,react.useRef)();
var passwordRef = (0,react.useRef)();
var socketUrlRef = (0,react.useRef)();
var reConnectRef = (0,react.useRef)();
var _useState = (0,react.useState)(),
_useState2 = slicedToArray_default()(_useState, 2),
imageId = _useState2[0],
@ -18614,6 +18618,7 @@ function reducer(state, action) {
var _guacaRef$current, _guacaRef$current$dis;
(_guacaRef$current = guacaRef.current) === null || _guacaRef$current === void 0 ? void 0 : (_guacaRef$current$dis = _guacaRef$current.disconnect) === null || _guacaRef$current$dis === void 0 ? void 0 : _guacaRef$current$dis.call(_guacaRef$current);
window.removeEventListener("visibilitychange", handleFocus);
clearTimeout(reConnectRef.current);
};
}, []);
(0,react.useEffect)(function () {
@ -18669,9 +18674,8 @@ function reducer(state, action) {
});
}
function onLayout(rfb) {
var ro;
if (el.current) {
ro = new ResizeObserver_es/* default */.Z(function (entries) {
roRef.current = new ResizeObserver_es/* default */.Z(function (entries) {
var _iterator = createForOfIteratorHelper_default()(entries),
_step;
try {
@ -18692,9 +18696,9 @@ function reducer(state, action) {
_iterator.f();
}
});
ro.observe(el.current);
roRef.current.observe(el.current);
}
return ro;
return roRef.current;
}
var getWindowVnc = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
@ -18797,21 +18801,72 @@ function reducer(state, action) {
return _ref2.apply(this, arguments);
};
}();
(0,react.useEffect)(function () {
var rfb;
var ro;
function onDisconnect(e) {
if (window_vnc_url) {
message/* default.warn */.ZP.warn('由于长时间未操作连接失效正在重新连接Windows VNC服务');
dispatch({
type: Types.SET_LOADING,
payload: true
});
}
setTimeout(function () {
function onConnect() {
setPercent(100);
clearTimeout(timeout.current);
setTimeout(function () {
rfbRef.current.resizeSession = false;
dispatch({
type: Types.SET_LOADING,
payload: false
});
}, 1300);
mediator/* default.subscribe */.Z.subscribe('send-ctrl-alt-delete', function () {
var _rfbRef$current2;
(_rfbRef$current2 = rfbRef.current) === null || _rfbRef$current2 === void 0 ? void 0 : _rfbRef$current2.sendCtrlAltDel();
});
}
var toConnect = function toConnect() {
rfbRef.current = new rfb/* default */.Z(el.current, socketUrlRef.current, {
credentials: {
password: passwordRef.current
},
wsProtocols: ['binary'],
resize: "scale",
show_dot: true
});
rfbRef.current.removeEventListener('disconnect', onDisconnect);
rfbRef.current.removeEventListener('connect', onConnect);
rfbRef.current.removeEventListener('clipboard', onClipboardReceive);
roRef.current = onLayout(rfbRef.current);
rfbRef.current.viewOnly = params.view_only || false;
if (window_vnc_url) {
rfbRef.current.scaleViewport = true;
} else {
rfbRef.current.scaleViewport = params.scale || false;
}
rfbRef.current.scaleViewport = params.scale || true;
rfbRef.current.showDotCursor = true;
rfbRef.current.resizeSession = true;
rfbRef.current.addEventListener('disconnect', onDisconnect);
rfbRef.current.addEventListener('connect', onConnect);
rfbRef.current.addEventListener('clipboard', onClipboardReceive);
};
function onClipboardReceive(e) {
var rs = unicodeUnEscape(e.detail.text);
dispatch({
type: Types.SET_TRANSFER_CONTENT,
payload: rs
});
}
function onDisconnect(e) {
if (window_vnc_url) {
message/* default.warn */.ZP.warn('由于长时间未操作连接失效正在重新连接Windows VNC服务');
dispatch({
type: Types.SET_LOADING,
payload: true
});
setLinkNum(linkNum + 1);
} else {
clearTimeout(reConnectRef.current);
if (loading) return;
reConnectRef.current = setTimeout(function () {
// toConnect()
setLinkNum(linkNum + 1);
}, 2000);
}, 6000);
}
}
(0,react.useEffect)(function () {
mediator/* default.subscribe */.Z.subscribe('reset-linux-windows-loading', function () {
dispatch({
type: Types.SET_LOADING,
@ -18821,28 +18876,6 @@ function reducer(state, action) {
mediator/* default.subscribe */.Z.subscribe('reset-linux-windos-vnc', function () {
setLinkNum(linkNum + 1);
});
function onConnect() {
setPercent(100);
clearTimeout(timeout.current);
setTimeout(function () {
rfbRef.current.resizeSession = false;
dispatch({
type: Types.SET_LOADING,
payload: false
});
}, 1300);
mediator/* default.subscribe */.Z.subscribe('send-ctrl-alt-delete', function () {
var _rfb;
(_rfb = rfb) === null || _rfb === void 0 ? void 0 : _rfb.sendCtrlAltDel();
});
}
function onClipboardReceive(e) {
var rs = unicodeUnEscape(e.detail.text);
dispatch({
type: Types.SET_TRANSFER_CONTENT,
payload: rs
});
}
if ((window_vnc_url || vnc_url || linux_vnc || virtual_machine && imageId) && el.current) {
var _taskData$shixun3;
clearTimeout(timeout.current);
@ -18851,18 +18884,17 @@ function reducer(state, action) {
}
new Promise( /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
var _taskData$shixun4;
var params, socketUrl, password, res, _res$data5, _res$data6, _res$data7, urlParser, protocol, searchParams, host, _taskData$myshixun2;
var params, res, _res$data5, _res$data6, _res$data7, urlParser, protocol, searchParams, host, _taskData$myshixun2;
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
params = getJsonFromUrl();
socketUrl = '';
_context4.next = 4;
_context4.next = 3;
return getWindowVnc();
case 4:
case 3:
res = _context4.sent;
if (!(linux_vnc || virtual_machine)) {
_context4.next = 11;
_context4.next = 10;
break;
}
iframeRef.current.src = (res === null || res === void 0 ? void 0 : (_res$data5 = res.data) === null || _res$data5 === void 0 ? void 0 : _res$data5.link_url) + '&time=' + Date.now();
@ -18874,61 +18906,32 @@ function reducer(state, action) {
}
});
return _context4.abrupt("return");
case 11:
case 10:
if (window_vnc_url) {
password = 'Edu123';
socketUrl = decodeURIComponent(res === null || res === void 0 ? void 0 : (_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.link_url);
passwordRef.current = 'Edu123';
socketUrlRef.current = decodeURIComponent(res === null || res === void 0 ? void 0 : (_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.link_url);
} else {
urlParser = new URL(decodeURIComponent(res === null || res === void 0 ? void 0 : (_res$data7 = res.data) === null || _res$data7 === void 0 ? void 0 : _res$data7.link_url)); //no IE11 support
protocol = urlParser.protocol, searchParams = urlParser.searchParams, host = urlParser.host;
password = searchParams.get('password');
socketUrl = "".concat(protocol === 'https:' ? 'wss' : 'ws', "://").concat(host, "/").concat(params.path || 'websockify');
passwordRef.current = searchParams.get('password');
socketUrlRef.current = "".concat(protocol === 'https:' ? 'wss' : 'ws', "://").concat(host, "/").concat(params.path || 'websockify');
}
case 12:
case 11:
if (!((taskData === null || taskData === void 0 ? void 0 : (_taskData$shixun4 = taskData.shixun) === null || _taskData$shixun4 === void 0 ? void 0 : _taskData$shixun4.windows_connection_mode) === "rdp")) {
_context4.next = 18;
_context4.next = 17;
break;
}
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 ? void 0 : (_taskData$myshixun2 = taskData.myshixun) === null || _taskData$myshixun2 === void 0 ? void 0 : _taskData$myshixun2.id);
// guacaRef.current = new Guacamole.Client(new Guacamole.WebSocketTunnel(`wss://pre-webssh.educoder.net/tunnel?tpiID=${taskData?.myshixun?.id}&width=500&height=400&`));
// // guacaRef.current = new Guacamole.Client(new Guacamole.WebSocketTunnel(`wss://pre-webssh.educoder.net/tunnel?tpiID=4232620&width=1920&height=1080&`));
// guacaRef.current.onerror = function (error:any) {
// console.log("onerror",error);
// };
// el.current.appendChild(guacaRef.current.getDisplay().getElement());
// guacaRef.current.connect();
dispatch({
type: Types.SET_LOADING,
payload: false
});
return _context4.abrupt("return");
case 17:
toConnect();
case 18:
rfb = new lib_rfb/* default */.Z(el.current, socketUrl, {
credentials: {
password: password
},
wsProtocols: ['binary'],
resize: "scale",
show_dot: true
});
ro = onLayout(rfb);
rfb.viewOnly = params.view_only || false;
if (window_vnc_url) {
rfb.scaleViewport = true;
} else {
rfb.scaleViewport = params.scale || false;
}
rfb.scaleViewport = params.scale || true;
rfb.showDotCursor = true;
rfb.resizeSession = true;
rfbRef.current = rfb;
rfb.addEventListener('disconnect', onDisconnect);
rfb.addEventListener('connect', onConnect);
rfb.addEventListener('clipboard', onClipboardReceive);
case 29:
case "end":
return _context4.stop();
}
@ -18963,14 +18966,14 @@ function reducer(state, action) {
});
setPercent(0);
return function () {
var _rfb2, _rfb3, _rfb4, _ro;
(_rfb2 = rfb) === null || _rfb2 === void 0 ? void 0 : _rfb2.removeEventListener('disconnect', onDisconnect);
(_rfb3 = rfb) === null || _rfb3 === void 0 ? void 0 : _rfb3.removeEventListener('connect', onConnect);
(_rfb4 = rfb) === null || _rfb4 === void 0 ? void 0 : _rfb4.removeEventListener('clipboard', onClipboardReceive);
var _rfbRef$current3, _rfbRef$current4, _rfbRef$current5, _roRef$current;
(_rfbRef$current3 = rfbRef.current) === null || _rfbRef$current3 === void 0 ? void 0 : _rfbRef$current3.removeEventListener('disconnect', onDisconnect);
(_rfbRef$current4 = rfbRef.current) === null || _rfbRef$current4 === void 0 ? void 0 : _rfbRef$current4.removeEventListener('connect', onConnect);
(_rfbRef$current5 = rfbRef.current) === null || _rfbRef$current5 === void 0 ? void 0 : _rfbRef$current5.removeEventListener('clipboard', onClipboardReceive);
unsub();
unSub2();
unSub3();
(_ro = ro) === null || _ro === void 0 ? void 0 : _ro.unobserve(el.current);
(_roRef$current = roRef.current) === null || _roRef$current === void 0 ? void 0 : _roRef$current.unobserve(el.current);
};
}
}, [vnc_url, window_vnc_url, linux_vnc, linkNum, imageId]);
@ -18984,8 +18987,8 @@ function reducer(state, action) {
}
}, [virtual_machine]);
function clipboardSend(content) {
var _rfbRef$current2;
(_rfbRef$current2 = rfbRef.current) === null || _rfbRef$current2 === void 0 ? void 0 : _rfbRef$current2.clipboardPasteFrom(content);
var _rfbRef$current6;
(_rfbRef$current6 = rfbRef.current) === null || _rfbRef$current6 === void 0 ? void 0 : _rfbRef$current6.clipboardPasteFrom(content);
dispatch({
type: Types.SET_TRANSFER_CONTENT,
payload: content

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