diff --git a/color.less b/color.less index 6653ad69ff..770629ccd9 100644 --- a/color.less +++ b/color.less @@ -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(41, 214, 242, 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(37, 190, 189, 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(226, 72, 73, 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(85, 242, 19, 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(41, 214, 242, 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(37, 190, 189, 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(226, 72, 73, 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(85, 242, 19, 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(41, 214, 242, 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(37, 190, 189, 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(226, 72, 73, 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(85, 242, 19, 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(41, 214, 242, 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(37, 190, 189, 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(226, 72, 73, 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(85, 242, 19, 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(41, 214, 242, 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(37, 190, 189, 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(226, 72, 73, 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(85, 242, 19, 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(41, 214, 242, 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(37, 190, 189, 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(226, 72, 73, 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(85, 242, 19, 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;} @@ -1058,10 +1058,10 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte .ant-mentions-dropdown-menu-item-active {background-color: #f5f5f5;} .ant-menu-item-danger.ant-menu-item {color: @error-color;} .ant-menu-item-danger.ant-menu-item:hover, .ant-menu-item-danger.ant-menu-item-active {color: @error-color;} -.ant-menu-item-danger.ant-menu-item:active {background: #fff1f0;} +.ant-menu-item-danger.ant-menu-item:active {background: color(~`colorPalette("@{modal-header-border-color-split}", 2)`);} .ant-menu-item-danger.ant-menu-item-selected {color: @error-color;} .ant-menu-item-danger.ant-menu-item-selected > a, .ant-menu-item-danger.ant-menu-item-selected > a:hover {color: @error-color;} -.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-danger.ant-menu-item-selected {background-color: #fff1f0;} +.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-danger.ant-menu-item-selected {background-color: color(~`colorPalette("@{modal-header-border-color-split}", 2)`);} .ant-menu-inline .ant-menu-item-danger.ant-menu-item::after {border-right-color: @error-color;} .ant-menu-dark .ant-menu-item-danger.ant-menu-item, .ant-menu-dark .ant-menu-item-danger.ant-menu-item:hover, .ant-menu-dark .ant-menu-item-danger.ant-menu-item > a {color: @error-color;} .ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-danger.ant-menu-item-selected {color: #fff;background-color: @error-color;} @@ -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(41, 214, 242, 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(37, 190, 189, 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(226, 72, 73, 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(85, 242, 19, 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;} @@ -1640,7 +1640,7 @@ tr.ant-table-expanded-row:hover > td {background: #fbfbfb;} .ant-tag-pink-inverse {color: #fff;background: #eb2f96;border-color: #eb2f96;} .ant-tag-magenta {color: #c41d7f;background: #fff0f6;border-color: #ffadd2;} .ant-tag-magenta-inverse {color: #fff;background: #eb2f96;border-color: #eb2f96;} -.ant-tag-red {color: #cf1322;background: #fff1f0;border-color: #ffa39e;} +.ant-tag-red {color: #cf1322;background: color(~`colorPalette("@{modal-header-border-color-split}", 2)`);border-color: #ffa39e;} .ant-tag-red-inverse {color: #fff;background: #f5222d;border-color: #f5222d;} .ant-tag-volcano {color: #d4380d;background: #fff2e8;border-color: #ffbb96;} .ant-tag-volcano-inverse {color: #fff;background: #fa541c;border-color: #fa541c;} diff --git a/p__tasks__Jupyter__index.async.js b/p__tasks__Jupyter__index.async.js index 38e55e4118..2486722de7 100644 --- a/p__tasks__Jupyter__index.async.js +++ b/p__tasks__Jupyter__index.async.js @@ -1778,7 +1778,7 @@ var env = __webpack_require__(59758); var PoweroffOutlined = __webpack_require__(81088); ;// CONCATENATED MODULE: ./src/pages/tasks/Jupyter/index.less?modules // extracted by mini-css-extract-plugin -/* harmony default export */ var Jupytermodules = ({"bg":"bg___yy2b4","header":"header___TfSCG","dragingMask":"dragingMask___i_1VX","content":"content___b8rIE","leftContainer":"leftContainer___BJcma","tabNav":"tabNav___uSNI4","mdContent":"mdContent___F9FMQ","resizeBar":"resizeBar___WbCV9","has-unity-3d":"has-unity-3d___BFusq","btn-resize":"btn-resize___Zfl7O","rightCotainer":"rightCotainer___iorUm","user":"user___I7MqL","titleWrap":"titleWrap___rJVb0","title":"title___jJ_Uz","endTimeWrap":"endTimeWrap___CSA6g","colorGray":"colorGray___oa4MJ","main":"main___LPfvU","loadFail":"loadFail___CrCok","reload":"reload___dIu1q","failIcon":"failIcon___g2eIS","failWrap":"failWrap___nbGWb","failReload":"failReload___nOEAI","dataSetButton":"dataSetButton___Oe8Wq","ac":"ac___XyH5r","dataSetText":"dataSetText___ltceD","dataSetOpen":"dataSetOpen___YeOkS","mymove":"mymove___nIA3W","footer":"footer____7Qyw","start":"start___mqFxv","liWarp":"liWarp___MZgVd","li":"li___Pwqoe"}); +/* harmony default export */ var Jupytermodules = ({"bg":"bg___yy2b4","header":"header___TfSCG","dragingMask":"dragingMask___i_1VX","content":"content___b8rIE","leftContainer":"leftContainer___BJcma","tabNav":"tabNav___uSNI4","mdContent":"mdContent___F9FMQ","resizeBar":"resizeBar___WbCV9","has-unity-3d":"has-unity-3d___BFusq","btn-resize":"btn-resize___Zfl7O","rightCotainer":"rightCotainer___iorUm","user":"user___I7MqL","titleWrap":"titleWrap___rJVb0","title":"title___jJ_Uz","endTimeWrap":"endTimeWrap___CSA6g","colorGray":"colorGray___oa4MJ","main":"main___LPfvU","loadFail":"loadFail___CrCok","reload":"reload___dIu1q","failIcon":"failIcon___g2eIS","failWrap":"failWrap___nbGWb","failReload":"failReload___nOEAI","dataSetButton":"dataSetButton___Oe8Wq","ac":"ac___XyH5r","dataSetText":"dataSetText___ltceD","dataSetOpen":"dataSetOpen___YeOkS","mymove":"mymove___nIA3W","footer":"footer____7Qyw","start":"start___mqFxv","liWarp":"liWarp___MZgVd","li":"li___Pwqoe","disabled":"disabled___shXs_"}); // EXTERNAL MODULE: ./src/service/task.ts var task = __webpack_require__(48632); ;// CONCATENATED MODULE: ./src/pages/tasks/Jupyter/components/Answer/index.less?modules @@ -2181,7 +2181,7 @@ function format(diff, type) { var util = __webpack_require__(29427); ;// CONCATENATED MODULE: ./src/pages/tasks/Jupyter/components/Case/index.less?modules // extracted by mini-css-extract-plugin -/* harmony default export */ var Casemodules = ({"choose-game-item":"choose-game-item___sJBZO","output-title-container":"output-title-container___HnzHt","output-title":"output-title___cQCt2","test-case-list":"test-case-list___ULWwO","test-header":"test-header___HMjcY","active":"active___YxidH","resize-y-bar":"resize-y-bar___es6Oh","test-result":"test-result___zXN_Y","markdown-body":"markdown-body___EHEjV","success":"success___ZvFU2","failer":"failer___lQvRe","count":"count___lVWvy","test-case-item":"test-case-item___ptoQn","case-header":"case-header___UDkvN","iconfont":"iconfont___XT_ll","description":"description___BJIlI","item-desc":"item-desc___e8tqN","show":"show___nh0Ha","item-tip":"item-tip___H05sn","arrow-down":"arrow-down___DcvbX","test-title":"test-title___2XlIU","arrow-right":"arrow-right___a5kiA","case-info":"case-info___akfl1","test-case-run-header":"test-case-run-header___rIpIu","test-case-run-wrp":"test-case-run-wrp___hfxtY","title":"title___ldXVu","warp":"warp_____VWp","spin":"spin___OU0Kn","diff-panel-container":"diff-panel-container___xo1_S"}); +/* harmony default export */ var Casemodules = ({"choose-game-item":"choose-game-item___sJBZO","output-title-container":"output-title-container___HnzHt","output-title":"output-title___cQCt2","test-case-list":"test-case-list___ULWwO","test-header":"test-header___HMjcY","active":"active___YxidH","resize-y-bar":"resize-y-bar___es6Oh","test-result":"test-result___zXN_Y","markdown-body":"markdown-body___EHEjV","success":"success___ZvFU2","failer":"failer___lQvRe","count":"count___lVWvy","test-case-item":"test-case-item___ptoQn","case-header":"case-header___UDkvN","iconfont":"iconfont___XT_ll","description":"description___BJIlI","item-desc":"item-desc___e8tqN","show":"show___nh0Ha","item-tip":"item-tip___H05sn","arrow-down":"arrow-down___DcvbX","test-title":"test-title___2XlIU","arrow-right":"arrow-right___a5kiA","case-info":"case-info___akfl1","test-case-run-header":"test-case-run-header___rIpIu","test-case-run-wrp":"test-case-run-wrp___hfxtY","title":"title___ldXVu","warp":"warp_____VWp","spin":"spin___OU0Kn","spinTest":"spinTest___UNIX8","diff-panel-container":"diff-panel-container___xo1_S"}); ;// CONCATENATED MODULE: ./src/pages/tasks/Jupyter/components/Case/panel.jsx @@ -2260,12 +2260,19 @@ function panel_format(diff, type) { }, className: "c-white ".concat(diffPanelmodules["diff-panel-container"], " ").concat(diffPanelmodules["diff-panel-container-2"], "\""), children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", { + style: { + minHeight: 0, + background: '#010e1f', + lineHeight: '0px' + }, dangerouslySetInnerHTML: { __html: state.oldStr } }) }); }); +// EXTERNAL MODULE: ./src/utils/authority.ts +var authority = __webpack_require__(7); ;// CONCATENATED MODULE: ./src/pages/tasks/Jupyter/components/Case/index.tsx @@ -2281,6 +2288,9 @@ function panel_format(diff, type) { + + + function TestCaseItem(_ref) { var ts_mem = _ref.ts_mem, ts_time = _ref.ts_time, @@ -2294,7 +2304,10 @@ function TestCaseItem(_ref) { title = _ref.title, isActive = _ref.isActive, id = _ref.id, - onActive = _ref.onActive; + onActive = _ref.onActive, + is_public = _ref.is_public, + test_sets_view = _ref.test_sets_view, + identity = _ref.identity; var _useState = (0,react.useState)(false), _useState2 = slicedToArray_default()(_useState, 2), rawOutput = _useState2[0], @@ -2307,7 +2320,11 @@ function TestCaseItem(_ref) { borderWidth: isActive ? 1 : 0 }, onClick: function onClick() { - return onActive(id); + if (!(0,authority/* isSuperAdmins */.Ny)() && !is_public) { + message/* default.info */.ZP.info('本测试集不可解锁'); + return; + } + onActive(id); }, children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("h2", { children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", { @@ -2324,21 +2341,35 @@ function TestCaseItem(_ref) { }), !ts_time ? null : /*#__PURE__*/(0,jsx_runtime.jsxs)("span", { className: Casemodules.description, children: [" \u4EE3\u7801\u6267\u884C\u65F6\u957F\uFF1A", ts_time, "\u79D2 "] - }), compile_success > 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)("img", { + }), !is_public ? /*#__PURE__*/(0,jsx_runtime.jsx)("i", { + className: "iconfont icon-jiesuo" + }) : null, compile_success > 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)("img", { width: 16, src: result ? success/* default */.Z : failer/* default */.Z }) : null] })] }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { className: "".concat(Casemodules["item-desc"], " ").concat(Casemodules["choose-game-item"], " ").concat(isActive ? Casemodules.show : Casemodules.hide), - children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("p", { - className: Casemodules["output-title-container"], - children: [input && /*#__PURE__*/(0,jsx_runtime.jsx)("span", { + children: [input && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", { + style: { + color: 'white', + display: 'flex', + alignItems: 'center' + }, + children: ["\u6D4B\u8BD5\u8F93\u5165", input && /*#__PURE__*/(0,jsx_runtime.jsx)("div", { style: { - color: '#747a7f' + width: '33%' }, - children: "\u2014\u2014\u6D4B\u8BD5\u8F93\u5165\u2014\u2014" - }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", { + children: /*#__PURE__*/(0,jsx_runtime.jsx)(panel, { + output: input + }) + })] + }), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", { + className: Casemodules["output-title-container"], + style: { + marginTop: 10 + }, + children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", { style: { color: '#747a7f' }, @@ -2379,29 +2410,17 @@ function TestCaseItem(_ref) { children: output }) : actual_output })] - }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { - style: { - display: 'flex' - }, - children: [input && /*#__PURE__*/(0,jsx_runtime.jsx)("div", { - style: { - width: '33%' - }, - children: /*#__PURE__*/(0,jsx_runtime.jsx)(panel, { - output: input - }) - }), !is_file && !rawOutput && /*#__PURE__*/(0,jsx_runtime.jsx)(diffPanel, { - output: output, - actual_output: actual_output - }), !is_file && rawOutput && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { - className: Casemodules["diff-panel-container"], - children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", { - className: "", - children: output - }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", { - className: "", - children: actual_output - })] + }), !is_file && !rawOutput && /*#__PURE__*/(0,jsx_runtime.jsx)(diffPanel, { + output: output, + actual_output: actual_output + }), !is_file && rawOutput && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { + className: Casemodules["diff-panel-container"], + children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", { + className: "", + children: output + }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", { + className: "", + children: actual_output })] })] })] @@ -2482,7 +2501,7 @@ function TestCaseItem(_ref) { children: /*#__PURE__*/(0,jsx_runtime.jsxs)(spin/* default */.Z, { tip: codeMessage, spinning: loading, - className: Casemodules.spin, + className: Casemodules.spinTest, children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", { className: Casemodules.title, style: { @@ -3669,6 +3688,9 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) { }), (jupyterData === null || jupyterData === void 0 ? void 0 : jupyterData.open_evaluate) && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, { children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", { className: Jupytermodules.footer, + style: { + background: '#111c24' + }, children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", { children: [gamesData !== null && gamesData !== void 0 && gamesData.time_limit ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", { children: "\u672C\u5173\u6700\u5927\u6267\u884C\u65F6\u95F4\uFF1A".concat(gamesData === null || gamesData === void 0 ? void 0 : gamesData.time_limit, "\u79D2") @@ -3685,6 +3707,7 @@ var TaskJupyterPage = function TaskJupyterPage(_ref) { className: "mr20", children: caseVisible ? '隐藏测试结果' : '查看测试结果' }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, { + className: Jupytermodules.disabled, disabled: btnTime !== 0, loading: btnLoading, onClick: evaluating, diff --git a/p__tasks__Jupyter__index.chunk.css b/p__tasks__Jupyter__index.chunk.css index ae2d8a2fdc..994050547d 100644 --- a/p__tasks__Jupyter__index.chunk.css +++ b/p__tasks__Jupyter__index.chunk.css @@ -903,6 +903,12 @@ background: #0152d9; color: #fff; } +.disabled___shXs_:disabled, +.disabled___shXs_:disabled:hover { + background: #555d68; + border: 1px solid #555d68; + color: #fff; +} /* stylelint-disable no-duplicate-selectors */ /* stylelint-disable */ /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ @@ -1242,7 +1248,7 @@ !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/tasks/Jupyter/components/Case/diffPanel.less?modules ***! \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ .diff-panel-container___DRHwS { - width: 66%; + width: 100%; height: 100%; color: #fff; font-size: 0; @@ -1287,7 +1293,7 @@ background: hsl(0, 67%, 60%); } .diff-panel-container___DRHwS ins { - color: #2ea44f; + color: white; white-space: pre; text-decoration: none; } @@ -1399,9 +1405,10 @@ display: flex; align-items: center; justify-content: center; + border-top: 1px solid #19527b; } .resize-y-bar___es6Oh > i { - color: #111c24; + color: #0152d9; position: absolute; top: 50%; left: 50%; @@ -1564,8 +1571,11 @@ .spin___OU0Kn { background-color: #fff; } +.spinTest___UNIX8 { + background: #131c23; +} .diff-panel-container___xo1_S { - width: 66%; + width: 100%; height: 100%; flex: 1 1; color: #fff;