Auto Submit

dev_aliyun_xibeigongye
autosubmit 3 years ago
parent 14403a0905
commit 606664bf37

@ -85,483 +85,6 @@ var UpOutlined = {
/***/ }),
/***/ 22958:
/*!******************************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 6 modules ***!
\******************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ AntdIcon; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
var objectSpread2 = __webpack_require__(67538);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
var slicedToArray = __webpack_require__(55332);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
var defineProperty = __webpack_require__(60286);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(85284);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(978);
// EXTERNAL MODULE: ./node_modules/classnames/index.js
var classnames = __webpack_require__(43655);
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/components/Context.js
var IconContext = /*#__PURE__*/(0,react.createContext)({});
/* harmony default export */ var Context = (IconContext);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
var esm_typeof = __webpack_require__(36046);
// EXTERNAL MODULE: ./node_modules/@ctrl/tinycolor/dist/module/conversion.js
var conversion = __webpack_require__(4720);
// EXTERNAL MODULE: ./node_modules/@ctrl/tinycolor/dist/module/format-input.js
var format_input = __webpack_require__(93745);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/node_modules/@ant-design/colors/es/generate.js
var hueStep = 2; // 色相阶梯
var saturationStep = 0.16; // 饱和度阶梯,浅色部分
var saturationStep2 = 0.05; // 饱和度阶梯,深色部分
var brightnessStep1 = 0.05; // 亮度阶梯,浅色部分
var brightnessStep2 = 0.15; // 亮度阶梯,深色部分
var lightColorCount = 5; // 浅色数量,主色上
var darkColorCount = 4; // 深色数量,主色下
// 暗色主题颜色映射关系表
var darkColorMap = [{
index: 7,
opacity: 0.15
}, {
index: 6,
opacity: 0.25
}, {
index: 5,
opacity: 0.3
}, {
index: 5,
opacity: 0.45
}, {
index: 5,
opacity: 0.65
}, {
index: 5,
opacity: 0.85
}, {
index: 4,
opacity: 0.9
}, {
index: 3,
opacity: 0.95
}, {
index: 2,
opacity: 0.97
}, {
index: 1,
opacity: 0.98
}];
// Wrapper function ported from TinyColor.prototype.toHsv
// Keep it here because of `hsv.h * 360`
function toHsv(_ref) {
var r = _ref.r,
g = _ref.g,
b = _ref.b;
var hsv = (0,conversion/* rgbToHsv */.py)(r, g, b);
return {
h: hsv.h * 360,
s: hsv.s,
v: hsv.v
};
} // Wrapper function ported from TinyColor.prototype.toHexString
// Keep it here because of the prefix `#`
function toHex(_ref2) {
var r = _ref2.r,
g = _ref2.g,
b = _ref2.b;
return "#".concat((0,conversion/* rgbToHex */.vq)(r, g, b, false));
} // Wrapper function ported from TinyColor.prototype.mix, not treeshakable.
// Amount in range [0, 1]
// Assume color1 & color2 has no alpha, since the following src code did so.
function mix(rgb1, rgb2, amount) {
var p = amount / 100;
var rgb = {
r: (rgb2.r - rgb1.r) * p + rgb1.r,
g: (rgb2.g - rgb1.g) * p + rgb1.g,
b: (rgb2.b - rgb1.b) * p + rgb1.b
};
return rgb;
}
function getHue(hsv, i, light) {
var hue; // 根据色相不同,色相转向不同
if (Math.round(hsv.h) >= 60 && Math.round(hsv.h) <= 240) {
hue = light ? Math.round(hsv.h) - hueStep * i : Math.round(hsv.h) + hueStep * i;
} else {
hue = light ? Math.round(hsv.h) + hueStep * i : Math.round(hsv.h) - hueStep * i;
}
if (hue < 0) {
hue += 360;
} else if (hue >= 360) {
hue -= 360;
}
return hue;
}
function getSaturation(hsv, i, light) {
// grey color don't change saturation
if (hsv.h === 0 && hsv.s === 0) {
return hsv.s;
}
var saturation;
if (light) {
saturation = hsv.s - saturationStep * i;
} else if (i === darkColorCount) {
saturation = hsv.s + saturationStep;
} else {
saturation = hsv.s + saturationStep2 * i;
} // 边界值修正
if (saturation > 1) {
saturation = 1;
} // 第一格的 s 限制在 0.06-0.1 之间
if (light && i === lightColorCount && saturation > 0.1) {
saturation = 0.1;
}
if (saturation < 0.06) {
saturation = 0.06;
}
return Number(saturation.toFixed(2));
}
function getValue(hsv, i, light) {
var value;
if (light) {
value = hsv.v + brightnessStep1 * i;
} else {
value = hsv.v - brightnessStep2 * i;
}
if (value > 1) {
value = 1;
}
return Number(value.toFixed(2));
}
function generate(color) {
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var patterns = [];
var pColor = (0,format_input/* inputToRGB */.uA)(color);
for (var i = lightColorCount; i > 0; i -= 1) {
var hsv = toHsv(pColor);
var colorString = toHex((0,format_input/* inputToRGB */.uA)({
h: getHue(hsv, i, true),
s: getSaturation(hsv, i, true),
v: getValue(hsv, i, true)
}));
patterns.push(colorString);
}
patterns.push(toHex(pColor));
for (var _i = 1; _i <= darkColorCount; _i += 1) {
var _hsv = toHsv(pColor);
var _colorString = toHex((0,format_input/* inputToRGB */.uA)({
h: getHue(_hsv, _i),
s: getSaturation(_hsv, _i),
v: getValue(_hsv, _i)
}));
patterns.push(_colorString);
} // dark theme patterns
if (opts.theme === 'dark') {
return darkColorMap.map(function (_ref3) {
var index = _ref3.index,
opacity = _ref3.opacity;
var darkColorString = toHex(mix((0,format_input/* inputToRGB */.uA)(opts.backgroundColor || '#141414'), (0,format_input/* inputToRGB */.uA)(patterns[index]), opacity * 100));
return darkColorString;
});
}
return patterns;
}
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/node_modules/@ant-design/colors/es/index.js
var presetPrimaryColors = {
red: '#F5222D',
volcano: '#FA541C',
orange: '#FA8C16',
gold: '#FAAD14',
yellow: '#FADB14',
lime: '#A0D911',
green: '#52C41A',
cyan: '#13C2C2',
blue: '#1677FF',
geekblue: '#2F54EB',
purple: '#722ED1',
magenta: '#EB2F96',
grey: '#666666'
};
var presetPalettes = {};
var presetDarkPalettes = {};
Object.keys(presetPrimaryColors).forEach(function (key) {
presetPalettes[key] = generate(presetPrimaryColors[key]);
presetPalettes[key].primary = presetPalettes[key][5]; // dark presetPalettes
presetDarkPalettes[key] = generate(presetPrimaryColors[key], {
theme: 'dark',
backgroundColor: '#141414'
});
presetDarkPalettes[key].primary = presetDarkPalettes[key][5];
});
var red = presetPalettes.red;
var volcano = presetPalettes.volcano;
var gold = presetPalettes.gold;
var orange = presetPalettes.orange;
var yellow = presetPalettes.yellow;
var lime = presetPalettes.lime;
var green = presetPalettes.green;
var cyan = presetPalettes.cyan;
var blue = presetPalettes.blue;
var geekblue = presetPalettes.geekblue;
var purple = presetPalettes.purple;
var magenta = presetPalettes.magenta;
var grey = presetPalettes.grey;
var gray = presetPalettes.grey;
// EXTERNAL MODULE: ./node_modules/rc-util/es/warning.js
var warning = __webpack_require__(57804);
// EXTERNAL MODULE: ./node_modules/rc-util/es/Dom/dynamicCSS.js
var dynamicCSS = __webpack_require__(33773);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/utils.js
function utils_warning(valid, message) {
(0,warning/* default */.ZP)(valid, "[@ant-design/icons] ".concat(message));
}
function isIconDefinition(target) {
return (0,esm_typeof/* default */.Z)(target) === 'object' && typeof target.name === 'string' && typeof target.theme === 'string' && ((0,esm_typeof/* default */.Z)(target.icon) === 'object' || typeof target.icon === 'function');
}
function normalizeAttrs() {
var attrs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
return Object.keys(attrs).reduce(function (acc, key) {
var val = attrs[key];
switch (key) {
case 'class':
acc.className = val;
delete acc["class"];
break;
default:
acc[key] = val;
}
return acc;
}, {});
}
function utils_generate(node, key, rootProps) {
if (!rootProps) {
return /*#__PURE__*/react.createElement(node.tag, (0,objectSpread2/* default */.Z)({
key: key
}, normalizeAttrs(node.attrs)), (node.children || []).map(function (child, index) {
return utils_generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
}));
}
return /*#__PURE__*/react.createElement(node.tag, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({
key: key
}, normalizeAttrs(node.attrs)), rootProps), (node.children || []).map(function (child, index) {
return utils_generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
}));
}
function getSecondaryColor(primaryColor) {
// choose the second color
return generate(primaryColor)[0];
}
function normalizeTwoToneColors(twoToneColor) {
if (!twoToneColor) {
return [];
}
return Array.isArray(twoToneColor) ? twoToneColor : [twoToneColor];
}
// These props make sure that the SVG behaviours like general text.
// Reference: https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4
var svgBaseProps = {
width: '1em',
height: '1em',
fill: 'currentColor',
'aria-hidden': 'true',
focusable: 'false'
};
var iconStyles = "\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";
var useInsertStyles = function useInsertStyles() {
var styleStr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : iconStyles;
var _useContext = (0,react.useContext)(Context),
csp = _useContext.csp,
prefixCls = _useContext.prefixCls;
var mergedStyleStr = styleStr;
if (prefixCls) {
mergedStyleStr = mergedStyleStr.replace(/anticon/g, prefixCls);
}
(0,react.useEffect)(function () {
(0,dynamicCSS/* updateCSS */.hq)(mergedStyleStr, '@ant-design-icons', {
prepend: true,
csp: csp
});
}, []);
};
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/components/IconBase.js
var _excluded = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"];
var twoToneColorPalette = {
primaryColor: '#333',
secondaryColor: '#E6E6E6',
calculated: false
};
function setTwoToneColors(_ref) {
var primaryColor = _ref.primaryColor,
secondaryColor = _ref.secondaryColor;
twoToneColorPalette.primaryColor = primaryColor;
twoToneColorPalette.secondaryColor = secondaryColor || getSecondaryColor(primaryColor);
twoToneColorPalette.calculated = !!secondaryColor;
}
function getTwoToneColors() {
return (0,objectSpread2/* default */.Z)({}, twoToneColorPalette);
}
var IconBase = function IconBase(props) {
var icon = props.icon,
className = props.className,
onClick = props.onClick,
style = props.style,
primaryColor = props.primaryColor,
secondaryColor = props.secondaryColor,
restProps = (0,objectWithoutProperties/* default */.Z)(props, _excluded);
var colors = twoToneColorPalette;
if (primaryColor) {
colors = {
primaryColor: primaryColor,
secondaryColor: secondaryColor || getSecondaryColor(primaryColor)
};
}
useInsertStyles();
utils_warning(isIconDefinition(icon), "icon should be icon definiton, but got ".concat(icon));
if (!isIconDefinition(icon)) {
return null;
}
var target = icon;
if (target && typeof target.icon === 'function') {
target = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, target), {}, {
icon: target.icon(colors.primaryColor, colors.secondaryColor)
});
}
return utils_generate(target.icon, "svg-".concat(target.name), (0,objectSpread2/* default */.Z)({
className: className,
onClick: onClick,
style: style,
'data-icon': target.name,
width: '1em',
height: '1em',
fill: 'currentColor',
'aria-hidden': 'true'
}, restProps));
};
IconBase.displayName = 'IconReact';
IconBase.getTwoToneColors = getTwoToneColors;
IconBase.setTwoToneColors = setTwoToneColors;
/* harmony default export */ var components_IconBase = (IconBase);
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/components/twoTonePrimaryColor.js
function setTwoToneColor(twoToneColor) {
var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor),
_normalizeTwoToneColo2 = (0,slicedToArray/* default */.Z)(_normalizeTwoToneColo, 2),
primaryColor = _normalizeTwoToneColo2[0],
secondaryColor = _normalizeTwoToneColo2[1];
return components_IconBase.setTwoToneColors({
primaryColor: primaryColor,
secondaryColor: secondaryColor
});
}
function getTwoToneColor() {
var colors = components_IconBase.getTwoToneColors();
if (!colors.calculated) {
return colors.primaryColor;
}
return [colors.primaryColor, colors.secondaryColor];
}
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js
var AntdIcon_excluded = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
// Initial setting
// should move it to antd main repo?
setTwoToneColor('#1890ff');
var Icon = /*#__PURE__*/react.forwardRef(function (props, ref) {
var _classNames;
var className = props.className,
icon = props.icon,
spin = props.spin,
rotate = props.rotate,
tabIndex = props.tabIndex,
onClick = props.onClick,
twoToneColor = props.twoToneColor,
restProps = (0,objectWithoutProperties/* default */.Z)(props, AntdIcon_excluded);
var _React$useContext = react.useContext(Context),
_React$useContext$pre = _React$useContext.prefixCls,
prefixCls = _React$useContext$pre === void 0 ? 'anticon' : _React$useContext$pre,
rootClassName = _React$useContext.rootClassName;
var classString = classnames_default()(rootClassName, prefixCls, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-").concat(icon.name), !!icon.name), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-spin"), !!spin || icon.name === 'loading'), _classNames), className);
var iconTabIndex = tabIndex;
if (iconTabIndex === undefined && onClick) {
iconTabIndex = -1;
}
var svgStyle = rotate ? {
msTransform: "rotate(".concat(rotate, "deg)"),
transform: "rotate(".concat(rotate, "deg)")
} : undefined;
var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor),
_normalizeTwoToneColo2 = (0,slicedToArray/* default */.Z)(_normalizeTwoToneColo, 2),
primaryColor = _normalizeTwoToneColo2[0],
secondaryColor = _normalizeTwoToneColo2[1];
return /*#__PURE__*/react.createElement("span", (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({
role: "img",
"aria-label": icon.name
}, restProps), {}, {
ref: ref,
tabIndex: iconTabIndex,
onClick: onClick,
className: classString
}), /*#__PURE__*/react.createElement(components_IconBase, {
icon: icon,
primaryColor: primaryColor,
secondaryColor: secondaryColor,
style: svgStyle
}));
});
Icon.displayName = 'AntdIcon';
Icon.getTwoToneColor = getTwoToneColor;
Icon.setTwoToneColor = setTwoToneColor;
/* harmony default export */ var AntdIcon = (Icon);
/***/ }),
/***/ 22934:
/*!*****************************************************************!*\
!*** ./node_modules/@ant-design/icons/es/icons/DownOutlined.js ***!

@ -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(24, 84, 201, 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(89, 61, 3, 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(186, 26, 226, 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, 66, 248, 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(24, 84, 201, 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(89, 61, 3, 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(186, 26, 226, 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, 66, 248, 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(24, 84, 201, 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(89, 61, 3, 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(186, 26, 226, 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, 66, 248, 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(24, 84, 201, 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(89, 61, 3, 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(186, 26, 226, 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, 66, 248, 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(24, 84, 201, 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(89, 61, 3, 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(186, 26, 226, 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, 66, 248, 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(24, 84, 201, 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(89, 61, 3, 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(186, 26, 226, 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, 66, 248, 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: color(~`colorPalette("@{heading-color}", 2)`);}
.ant-menu-item-danger.ant-menu-item:active {background: #fff1f0;}
.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: color(~`colorPalette("@{heading-color}", 2)`);}
.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-danger.ant-menu-item-selected {background-color: #fff1f0;}
.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(24, 84, 201, 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(89, 61, 3, 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(186, 26, 226, 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, 66, 248, 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: color(~`colorPalette("@{heading-color}", 2)`);border-color: color(~`colorPalette("@{heading-color}", 4)`);}
.ant-tag-red {color: #cf1322;background: #fff1f0;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;}
@ -1658,7 +1658,7 @@ tr.ant-table-expanded-row:hover > td {background: #fbfbfb;}
.ant-tag-green-inverse {color: #fff;background: #52c41a;border-color: #52c41a;}
.ant-tag-blue {color: #096dd9;background: #e6f7ff;border-color: #91d5ff;}
.ant-tag-blue-inverse {color: #fff;background: #1890ff;border-color: #1890ff;}
.ant-tag-geekblue {color: #1d39c4;background: color(~`colorPalette("@{layout-header-background}", 3)`);border-color: #adc6ff;}
.ant-tag-geekblue {color: #1d39c4;background: #f0f5ff;border-color: #adc6ff;}
.ant-tag-geekblue-inverse {color: #fff;background: #2f54eb;border-color: #2f54eb;}
.ant-tag-purple {color: #531dab;background: #f9f0ff;border-color: #d3adf7;}
.ant-tag-purple-inverse {color: #fff;background: #722ed1;border-color: #722ed1;}

@ -11,12 +11,12 @@
<meta http-equiv="Cache-Control" content="no-transform">
<title>头歌实践教学平台</title>
<link href="//at.alicdn.com/t/c/font_653600_snegkjmk52a.css" rel="stylesheet">
<link rel="stylesheet" href="https://www-cdn.educoder.net/umi.f7b048db.css">
<link rel="stylesheet" href="https://www-cdn.educoder.net/umi.8f49b194.css">
<script src="/js/polyfill.min.js"></script>
</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.976ee36f.js"></script>
<script src="https://www-cdn.educoder.net/umi.22403ed5.js"></script>
<script src="https://www-cdn.educoder.net/js/officeapi.js"></script>
<script src="https://www-cdn.educoder.net/js/public.js"></script>

@ -4719,6 +4719,9 @@ var ShixunDetail_ShixunsListPage = function ShixunsListPage(_ref) {
iscopyshow = _useState14[0],
setiscopyshow = _useState14[1];
var localtion = (0,_umi_production_exports.useLocation)();
var _useSearchParams = (0,_umi_production_exports.useSearchParams)(),
_useSearchParams2 = slicedToArray_default()(_useSearchParams, 1),
searchParams = _useSearchParams2[0];
// console.log('------',location);
@ -5245,10 +5248,8 @@ var ShixunDetail_ShixunsListPage = function ShixunsListPage(_ref) {
}
}, [user]);
(0,react.useEffect)(function () {
var _localtion$query;
if (localtion !== null && localtion !== void 0 && (_localtion$query = localtion.query) !== null && _localtion$query !== void 0 && _localtion$query.code) {
var _localtion$query2;
addinfo(localtion === null || localtion === void 0 ? void 0 : (_localtion$query2 = localtion.query) === null || _localtion$query2 === void 0 ? void 0 : _localtion$query2.code);
if (searchParams.get('code')) {
addinfo(searchParams.get('code'));
} else {
getTopBar();
getMenus();

@ -7395,8 +7395,8 @@ var HiddenSetting_WorkList = function WorkList(_ref) {
eff_score: '',
//效率分
unified_anonymous_comment: true,
unified_anonymous_appeal: true,
anonymous_group: false
unified_anonymous_appeal: true
// anonymous_group: false,
}),
_useState6 = slicedToArray_default()(_useState5, 2),
data = _useState6[0],
@ -7733,7 +7733,7 @@ var HiddenSetting_WorkList = function WorkList(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "right",
overlayStyle: {
maxWidth: 400
maxWidth: 600
},
title: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
@ -7845,33 +7845,6 @@ var HiddenSetting_WorkList = function WorkList(_ref) {
})]
})
})]
}), data.unified_anonymous_comment && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
className: "mt25 mb25 pl30",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: "\u4E92\u8BC4\u65B9\u5F0F:"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
className: "ml5",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_radio/* default.Group */.ZP.Group, {
value: data.anonymous_group,
disabled: disabled || data.anonymous_appeal || (workSetting === null || workSetting === void 0 ? void 0 : workSetting.anonymous_comment),
onChange: function onChange(e) {
setData(function (originalData) {
return objectSpread2_default()(objectSpread2_default()({}, originalData), {}, {
anonymous_group: e.target.value
});
});
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
value: false,
children: "\u6240\u6709\u5206\u7EC4\u4E92\u8BC4"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
value: true,
disabled: !(workSetting !== null && workSetting !== void 0 && workSetting.can_anonymous_group),
children: "\u73ED\u5185\u5C0F\u7EC4\u4E92\u8BC4"
})]
})
})]
}), data.unified_anonymous_comment ? /*#__PURE__*/(0,jsx_runtime.jsx)(UnifiedComment/* default */.Z, {
data: data,
setData: setData,

@ -3546,11 +3546,10 @@ var DelShixun = function DelShixun(_ref) {
var ChangeScore_DelShixun = function DelShixun(_ref) {
var _actionTabs$selectArr9, _actionTabs$selectArr10, _actionTabs$selectArr11, _actionTabs$selectArr12, _actionTabs$selectArr13, _actionTabs$selectArr14, _actionTabs$selectArr15, _actionTabs$selectArr16;
var _actionTabs$selectArr7, _actionTabs$selectArr8, _actionTabs$selectArr9, _actionTabs$selectArr10, _actionTabs$selectArr11, _actionTabs$selectArr12, _actionTabs$selectArr13, _actionTabs$selectArr14;
var exercise = _ref.exercise,
dispatch = _ref.dispatch;
var params = (0,_umi_production_exports.useParams)();
@ -3588,20 +3587,13 @@ var ChangeScore_DelShixun = function DelShixun(_ref) {
align: "middle",
justify: "end",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
onClick: function onClick() {
var _exercise$actionTabs, _exercise$actionTabs$, _actionTabs$selectArr5, _actionTabs$selectArr6;
exercise === null || exercise === void 0 ? void 0 : (_exercise$actionTabs = exercise.actionTabs) === null || _exercise$actionTabs === void 0 ? void 0 : (_exercise$actionTabs$ = _exercise$actionTabs.saveExerciseUsers) === null || _exercise$actionTabs$ === void 0 ? void 0 : _exercise$actionTabs$.call(_exercise$actionTabs);
(0,util/* openNewWindow */.xg)("/classrooms/".concat(params.coursesId, "/exercise/").concat(params.categoryId, "/review/").concat(actionTabs === null || actionTabs === void 0 ? void 0 : (_actionTabs$selectArr5 = actionTabs.selectArrs) === null || _actionTabs$selectArr5 === void 0 ? void 0 : (_actionTabs$selectArr6 = _actionTabs$selectArr5.record) === null || _actionTabs$selectArr6 === void 0 ? void 0 : _actionTabs$selectArr6.login));
},
children: "\u67E5\u770B\u8BE6\u60C5"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
className: "ml10",
onClick: cancel,
children: " \u53D6\u6D88"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
className: "ml10",
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var _actionTabs$selectArr7, _actionTabs$selectArr8;
var _actionTabs$selectArr5, _actionTabs$selectArr6;
var formValue, res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
@ -3613,7 +3605,7 @@ var ChangeScore_DelShixun = function DelShixun(_ref) {
_context.next = 5;
return (0,service_exercise/* putExerciseAdjustScore */.oS)(objectSpread2_default()(objectSpread2_default()({}, formValue), {}, {
id: params.categoryId,
user_id: actionTabs === null || actionTabs === void 0 ? void 0 : (_actionTabs$selectArr7 = actionTabs.selectArrs) === null || _actionTabs$selectArr7 === void 0 ? void 0 : (_actionTabs$selectArr8 = _actionTabs$selectArr7.record) === null || _actionTabs$selectArr8 === void 0 ? void 0 : _actionTabs$selectArr8.user_id
user_id: actionTabs === null || actionTabs === void 0 ? void 0 : (_actionTabs$selectArr5 = actionTabs.selectArrs) === null || _actionTabs$selectArr5 === void 0 ? void 0 : (_actionTabs$selectArr6 = _actionTabs$selectArr5.record) === null || _actionTabs$selectArr6 === void 0 ? void 0 : _actionTabs$selectArr6.user_id
}));
case 5:
res = _context.sent;
@ -3654,7 +3646,7 @@ var ChangeScore_DelShixun = function DelShixun(_ref) {
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
min: 0,
max: (actionTabs === null || actionTabs === void 0 ? void 0 : (_actionTabs$selectArr9 = actionTabs.selectArrs) === null || _actionTabs$selectArr9 === void 0 ? void 0 : (_actionTabs$selectArr10 = _actionTabs$selectArr9.exercise_types) === null || _actionTabs$selectArr10 === void 0 ? void 0 : _actionTabs$selectArr10.subjective_score) * 1,
max: (actionTabs === null || actionTabs === void 0 ? void 0 : (_actionTabs$selectArr7 = actionTabs.selectArrs) === null || _actionTabs$selectArr7 === void 0 ? void 0 : (_actionTabs$selectArr8 = _actionTabs$selectArr7.exercise_types) === null || _actionTabs$selectArr8 === void 0 ? void 0 : _actionTabs$selectArr8.subjective_score) * 1,
style: {
width: 150
},
@ -3666,7 +3658,7 @@ var ChangeScore_DelShixun = function DelShixun(_ref) {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "ml10",
children: ["\u5206\uFF0C\u603B\u5171\uFF1A", actionTabs === null || actionTabs === void 0 ? void 0 : (_actionTabs$selectArr11 = actionTabs.selectArrs) === null || _actionTabs$selectArr11 === void 0 ? void 0 : (_actionTabs$selectArr12 = _actionTabs$selectArr11.exercise_types) === null || _actionTabs$selectArr12 === void 0 ? void 0 : _actionTabs$selectArr12.subjective_score, "\u5206"]
children: ["\u5206\uFF0C\u603B\u5171\uFF1A", actionTabs === null || actionTabs === void 0 ? void 0 : (_actionTabs$selectArr9 = actionTabs.selectArrs) === null || _actionTabs$selectArr9 === void 0 ? void 0 : (_actionTabs$selectArr10 = _actionTabs$selectArr9.exercise_types) === null || _actionTabs$selectArr10 === void 0 ? void 0 : _actionTabs$selectArr10.subjective_score, "\u5206"]
})
})
})]
@ -3681,7 +3673,7 @@ var ChangeScore_DelShixun = function DelShixun(_ref) {
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
min: 0,
max: (actionTabs === null || actionTabs === void 0 ? void 0 : (_actionTabs$selectArr13 = actionTabs.selectArrs) === null || _actionTabs$selectArr13 === void 0 ? void 0 : (_actionTabs$selectArr14 = _actionTabs$selectArr13.exercise_types) === null || _actionTabs$selectArr14 === void 0 ? void 0 : _actionTabs$selectArr14.objective_score) * 1,
max: (actionTabs === null || actionTabs === void 0 ? void 0 : (_actionTabs$selectArr11 = actionTabs.selectArrs) === null || _actionTabs$selectArr11 === void 0 ? void 0 : (_actionTabs$selectArr12 = _actionTabs$selectArr11.exercise_types) === null || _actionTabs$selectArr12 === void 0 ? void 0 : _actionTabs$selectArr12.objective_score) * 1,
style: {
width: 150
},
@ -3694,7 +3686,7 @@ var ChangeScore_DelShixun = function DelShixun(_ref) {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "ml10",
children: ["\u5206\uFF0C\u603B\u5171\uFF1A", actionTabs === null || actionTabs === void 0 ? void 0 : (_actionTabs$selectArr15 = actionTabs.selectArrs) === null || _actionTabs$selectArr15 === void 0 ? void 0 : (_actionTabs$selectArr16 = _actionTabs$selectArr15.exercise_types) === null || _actionTabs$selectArr16 === void 0 ? void 0 : _actionTabs$selectArr16.objective_score, "\u5206"]
children: ["\u5206\uFF0C\u603B\u5171\uFF1A", actionTabs === null || actionTabs === void 0 ? void 0 : (_actionTabs$selectArr13 = actionTabs.selectArrs) === null || _actionTabs$selectArr13 === void 0 ? void 0 : (_actionTabs$selectArr14 = _actionTabs$selectArr13.exercise_types) === null || _actionTabs$selectArr14 === void 0 ? void 0 : _actionTabs$selectArr14.objective_score, "\u5206"]
})
})
})]
@ -4180,7 +4172,7 @@ var QualityModal_DelShixun = function DelShixun(_ref) {
var authority = __webpack_require__(7);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Detail/components/WorkList/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var WorkListmodules = ({"flex_box_center":"flex_box_center____uOEt","flex_space_between":"flex_space_between___J8U9e","flex_box_vertical_center":"flex_box_vertical_center___M1l_z","flex_box_center_end":"flex_box_center_end___UsRsw","flex_box_column":"flex_box_column___gcanz","rightFilter":"rightFilter___KnaoF","classwidth":"classwidth___QPkdW"});
/* harmony default export */ var WorkListmodules = ({"flex_box_center":"flex_box_center____uOEt","flex_space_between":"flex_space_between___J8U9e","flex_box_vertical_center":"flex_box_vertical_center___M1l_z","flex_box_center_end":"flex_box_center_end___UsRsw","flex_box_column":"flex_box_column___gcanz","rightFilter":"rightFilter___KnaoF","classwidth":"classwidth___QPkdW","operationLink":"operationLink___vj72A"});
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Exercise/Detail/components/WorkList/components/ObjectiveScore.tsx
@ -4545,7 +4537,16 @@ var WorkList = function WorkList(_ref) {
align: 'left',
render: function render(text, record) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [text || '--', !!(record !== null && record !== void 0 && record.delayed_at) && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
onClick: function onClick() {
if (text) {
saveExerciseUsers();
(0,util/* openNewWindow */.xg)("/classrooms/".concat(params.coursesId, "/exercise/").concat(params.categoryId, "/review/").concat(record === null || record === void 0 ? void 0 : record.login));
}
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: text ? WorkListmodules.operationLink : '',
children: text || '--'
}), !!(record !== null && record !== void 0 && record.delayed_at) && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: ["\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u8C03\u6574\u81F3", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "ml5",

@ -345,6 +345,10 @@ li:last-child > .ant-breadcrumb-separator {
height: 132px !important;
border-radius: 5px;
}
.operationLink___vj72A {
cursor: pointer;
color: #0152d9;
}
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */

@ -9135,8 +9135,8 @@ var AnonymousComment = function AnonymousComment(_ref) {
eff_score: '',
//效率分
unified_anonymous_comment: true,
unified_anonymous_appeal: true,
anonymous_group: false
unified_anonymous_appeal: true
// anonymous_group: false,
}),
_useState8 = slicedToArray_default()(_useState7, 2),
data = _useState8[0],
@ -9481,7 +9481,7 @@ var AnonymousComment = function AnonymousComment(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "right",
overlayStyle: {
maxWidth: 400
maxWidth: 600
},
title: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
@ -9593,33 +9593,6 @@ var AnonymousComment = function AnonymousComment(_ref) {
})]
})
})]
}), data.unified_anonymous_comment && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
align: "middle",
className: "mt25 mb25 pl30",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: "\u4E92\u8BC4\u65B9\u5F0F:"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
className: "ml5",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_radio/* default.Group */.ZP.Group, {
value: data.anonymous_group,
disabled: disabled || data.anonymous_appeal || (workSetting === null || workSetting === void 0 ? void 0 : workSetting.anonymous_comment),
onChange: function onChange(e) {
setData(function (originalData) {
return objectSpread2_default()(objectSpread2_default()({}, originalData), {}, {
anonymous_group: e.target.value
});
});
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
value: false,
children: "\u6240\u6709\u5206\u7EC4\u4E92\u8BC4"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
value: true,
disabled: !(workSetting !== null && workSetting !== void 0 && workSetting.can_anonymous_group),
children: "\u73ED\u5185\u5C0F\u7EC4\u4E92\u8BC4"
})]
})
})]
}), data.unified_anonymous_comment ? /*#__PURE__*/(0,jsx_runtime.jsx)(UnifiedComment/* default */.Z, {
data: data,
setData: setData,

@ -1718,7 +1718,7 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
}
});
},
children: "\u95EE\u5377\u9009\u7528"
children: "\u95EE\u5377\u9009\u75281"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
to: "/classrooms/".concat(params.coursesId, "/poll/").concat(params.categoryId, "/add"),
className: "c-blue font16 ml20 current",

@ -1,6 +1,551 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[54056],{
/***/ 36579:
/*!*********************************************************!*\
!*** ./src/components/PreviewAll/index.tsx + 1 modules ***!
\*********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ PreviewAll; }
});
// EXTERNAL MODULE: ./node_modules/antd/es/button/style/index.js + 1 modules
var style = __webpack_require__(39871);
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
var es_button = __webpack_require__(6889);
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/style/index.js + 1 modules
var tooltip_style = __webpack_require__(90320);
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(60047);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(71402);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(2488);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(978);
;// CONCATENATED MODULE: ./src/components/PreviewAll/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var PreviewAllmodules = ({"wrp":"wrp___dq7YK","bgBlack":"bgBlack___ARIUV","monaco":"monaco___VnZC3","darkBlue":"darkBlue___UprA9","close":"close___LKoWu","embed":"embed___hvpEJ"});
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/ArrowDownOutlined.js + 1 modules
var ArrowDownOutlined = __webpack_require__(4774);
// EXTERNAL MODULE: ./src/components/monaco-editor/index.jsx + 3 modules
var monaco_editor = __webpack_require__(8691);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(29427);
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
var jsx_runtime = __webpack_require__(50107);
;// CONCATENATED MODULE: ./src/components/PreviewAll/index.tsx
/* harmony default export */ var PreviewAll = (function (_ref) {
var name = _ref.name,
data = _ref.data,
theme = _ref.theme,
type = _ref.type,
filename = _ref.filename,
monacoEditor = _ref.monacoEditor,
className = _ref.className,
style = _ref.style,
close = _ref.close,
onClose = _ref.onClose,
hasMask = _ref.hasMask;
var _useState = (0,react.useState)('https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt'),
_useState2 = slicedToArray_default()(_useState, 2),
src = _useState2[0],
setSrc = _useState2[1];
var _useState3 = (0,react.useState)(""),
_useState4 = slicedToArray_default()(_useState3, 2),
token = _useState4[0],
setToken = _useState4[1];
var size;
var unit = 1024 * 1024;
var maxSize = 10 * unit;
var closeRef = (0,react.useRef)();
if (type === "office") {
size = (0,util/* parseUrl */.en)(data).filesize;
if (size > maxSize) {
type = "other";
}
}
if (filename) monacoEditor.filename = filename;
(0,react.useEffect)(function () {
var _document$cookie, _document$cookie$repl;
var cookies = (_document$cookie = document.cookie) === null || _document$cookie === void 0 ? void 0 : (_document$cookie$repl = _document$cookie.replace(/\s/g, "")) === null || _document$cookie$repl === void 0 ? void 0 : _document$cookie$repl.split(";");
cookies === null || cookies === void 0 ? void 0 : cookies.map(function (item) {
var i = item.split("=");
if (i[0] === '_educoder_session') {
setToken(i[1]);
}
});
}, []);
var handleClick = function handleClick() {
if (data.startsWith("http") || data.startsWith('blob:')) {
handleDown();
return;
}
(0,util/* downloadFile */.Sv)(filename || 'educoder', data, filename);
};
var handleDown = function handleDown() {
(0,util/* downLoadLink */.Nd)(filename || 'educoder', decodeURIComponent(data));
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: objectSpread2_default()({}, style || {}),
className: "".concat(hasMask && PreviewAllmodules.bgBlack, " ").concat(!!type ? PreviewAllmodules.wrp : "hide"),
children: [close && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: PreviewAllmodules.close,
ref: closeRef,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",
getPopupContainer: function getPopupContainer() {
return closeRef.current;
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
onClick: handleDown,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "icon-quxiaozhiding"
})
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u5173\u95ED",
getPopupContainer: function getPopupContainer() {
return closeRef.current;
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "",
onClick: onClose,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "icon-guanbi1"
})
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "".concat(PreviewAllmodules[className], " ").concat(className, " ").concat(PreviewAllmodules.monaco, " ").concat(type === "txt" ? "show" : "hide"),
children: type === "txt" && /*#__PURE__*/(0,jsx_runtime.jsx)(monaco_editor/* default */.ZP, objectSpread2_default()({}, monacoEditor))
}), type === "audio" && /*#__PURE__*/(0,jsx_runtime.jsx)("audio", {
src: "".concat((data === null || data === void 0 ? void 0 : data.indexOf("http://")) > -1 || (data === null || data === void 0 ? void 0 : data.indexOf("https://")) > -1 ? "" : "data:audio/mp3;base64,").concat(data),
autoPlay: true
}), type === "video" && /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
children: (data === null || data === void 0 ? void 0 : data.indexOf("http")) > -1 ? /*#__PURE__*/(0,jsx_runtime.jsx)("video", {
controls: true,
src: "".concat(data),
autoPlay: true
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("video", {
controls: true,
src: "data:video/mp4;base64,".concat(data),
autoPlay: true
})
}), type === 'office' && /*#__PURE__*/(0,jsx_runtime.jsx)("iframe", {
src: "https://view.officeapps.live.com/op/embed.aspx?src=".concat(data, "?").concat(encodeURIComponent("disposition=office&token=".concat(token)))
}), type === 'html' && /*#__PURE__*/(0,jsx_runtime.jsx)("iframe", {
src: data + '&disposition=inline'
}), type === 'pdf' && /*#__PURE__*/(0,jsx_runtime.jsx)("embed", {
className: PreviewAllmodules.embed,
src: data
}), type === "image" && /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: "".concat((data === null || data === void 0 ? void 0 : data.indexOf("http://")) > -1 || (data === null || data === void 0 ? void 0 : data.indexOf("https://")) > -1 ? "" : "data:image/png;base64,").concat(data)
}), type === "other" && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.Z, {
type: "primary",
size: "large",
onClick: handleClick,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ArrowDownOutlined/* default */.Z, {}), "\u70B9\u51FB\u4E0B\u8F7D"]
})
}), type === "download" && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.Z, {
type: "primary",
size: "large",
onClick: handleClick,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ArrowDownOutlined/* default */.Z, {}), "\u70B9\u51FB\u4E0B\u8F7D"]
})]
});
});
/***/ }),
/***/ 12768:
/*!*********************************************************!*\
!*** ./src/components/RenderHtml/index.tsx + 1 modules ***!
\*********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"Z": function() { return /* binding */ RenderHtml; }
});
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(71402);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(2488);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/react/index.js
var react = __webpack_require__(978);
// EXTERNAL MODULE: ./node_modules/katex/dist/katex.min.css
var katex_min = __webpack_require__(81897);
// EXTERNAL MODULE: ./node_modules/marked/lib/marked.js
var marked = __webpack_require__(55278);
var marked_default = /*#__PURE__*/__webpack_require__.n(marked);
// EXTERNAL MODULE: ./node_modules/marked/src/helpers.js
var helpers = __webpack_require__(15682);
;// CONCATENATED MODULE: ./src/utils/marked.ts
function indentCodeCompensation(raw, text) {
var matchIndentToCode = raw.match(/^(\s+)(?:```)/);
if (matchIndentToCode === null) {
return text;
}
var indentToCode = matchIndentToCode[1];
return text.split('\n').map(function (node) {
var matchIndentInNode = node.match(/^\s+/);
if (matchIndentInNode === null) {
return node;
}
var _matchIndentInNode = slicedToArray_default()(matchIndentInNode, 1),
indentInNode = _matchIndentInNode[0];
if (indentInNode.length >= indentToCode.length) {
return node.slice(indentToCode.length);
}
return node;
}).join('\n');
}
//兼容之前的 ##标题式写法
var toc = [];
var ctx = ["<ul>"];
var renderer = new (marked_default()).Renderer();
var headingRegex = /^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;
function cleanToc() {
toc.length = 0;
ctx = ["<ul>"];
}
var lines = {
overflow: "hidden",
WebkitBoxOrient: "vertical",
display: "-webkit-box",
WebkitLineClamp: 2
};
function buildToc(coll, k, level, ctx) {
if (k >= coll.length || coll[k].level <= level) {
return k;
}
var node = coll[k];
ctx.push("<li><a href='#" + node.anchor + "'>" + node.text + "</a>");
k++;
var childCtx = [];
k = buildToc(coll, k, node.level, childCtx);
if (childCtx.length > 0) {
ctx.push("<ul>");
childCtx.forEach(function (idm) {
ctx.push(idm);
});
ctx.push("</ul>");
}
ctx.push("</li>");
k = buildToc(coll, k, level, ctx);
return k;
}
function getTocContent() {
buildToc(toc, 0, 0, ctx);
ctx.push("</ul>");
return ctx.join("");
}
var tokenizer = {
heading: function heading(src) {
var cap = headingRegex.exec(src);
if (cap) {
return {
type: 'heading',
raw: cap[0],
depth: cap[1].length,
text: cap[2]
};
}
},
fences: function fences(src) {
var cap = this.rules.block.fences.exec(src);
if (cap) {
var raw = cap[0];
var text = indentCodeCompensation(raw, cap[3] || '');
var lang = cap[2] ? cap[2].trim() : cap[2];
if (['latex', 'katex', 'math'].indexOf(lang) >= 0) {
var id = next_id();
var expression = text;
text = id;
math_expressions[id] = {
type: 'block',
expression: expression
};
}
return {
type: 'code',
raw: raw,
lang: lang,
text: text
};
}
}
};
var latexRegex = /(?:\${2})([^\n`]+?)(?:\${2})/gi;
var katex_count = 0;
var next_id = function next_id() {
return "__special_katext_id_".concat(katex_count++, "__");
};
var math_expressions = {};
function getMathExpressions() {
return math_expressions;
}
function resetMathExpressions() {
katex_count = 0;
math_expressions = {};
}
function replace_math_with_ids(text) {
text = text.replace(latexRegex, function (_match, expression) {
var id = next_id();
math_expressions[id] = {
type: 'inline',
expression: expression
};
return id;
});
return text;
}
var original_listitem = renderer.listitem;
renderer.listitem = function (text) {
return original_listitem(replace_math_with_ids(text));
};
var original_paragraph = renderer.paragraph;
renderer.paragraph = function (text) {
return original_paragraph(replace_math_with_ids(text));
};
var original_tablecell = renderer.tablecell;
renderer.tablecell = function (content, flags) {
return original_tablecell(replace_math_with_ids(content), flags);
};
renderer.code = function (code, infostring, escaped) {
var lang = (infostring || '').match(/\S*/)[0];
if (!lang) {
return '<pre class="prettyprint linenums"><code>' + (escaped ? code : (0,helpers.escape)(code, true)) + '</code></pre>';
}
if (['latex', 'katex', 'math'].indexOf(lang) >= 0) {
return "<p class='editormd-tex'>".concat(code, "</p>");
} else {
return "<pre class=\"prettyprint linenums\"><code class=\"language-".concat(infostring, "\">").concat(escaped ? code : (0,helpers.escape)(code, true), "</code></pre>\n");
}
};
renderer.heading = function (text, level, raw) {
var anchor = this.options.headerPrefix + raw.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g, '-');
toc.push({
anchor: anchor,
level: level,
text: text
});
return '<h' + level + ' id="' + anchor + '">' + text + '</h' + level + '>';
};
marked_default().setOptions({
silent: true,
gfm: true,
pedantic: false
});
marked_default().use({
tokenizer: tokenizer,
renderer: renderer
});
/* harmony default export */ var utils_marked = ((marked_default()));
// EXTERNAL MODULE: ./node_modules/code-prettify/src/prettify.js
var prettify = __webpack_require__(86966);
// EXTERNAL MODULE: ./node_modules/hls.js/dist/hls.js
var dist_hls = __webpack_require__(36144);
var hls_default = /*#__PURE__*/__webpack_require__.n(dist_hls);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(59758);
// EXTERNAL MODULE: ./node_modules/katex/dist/katex.js
var katex = __webpack_require__(78673);
// EXTERNAL MODULE: ./src/components/PreviewAll/index.tsx + 1 modules
var PreviewAll = __webpack_require__(36579);
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
var jsx_runtime = __webpack_require__(50107);
;// CONCATENATED MODULE: ./src/components/RenderHtml/index.tsx
var preRegex = /<pre[^>]*>/g;
function _unescape(str) {
var div = document.createElement('div');
div.innerHTML = str;
return div.childNodes.length === 0 ? '' : div.childNodes[0].nodeValue;
}
/* harmony default export */ var RenderHtml = (function (_ref) {
var _ref$value = _ref.value,
value = _ref$value === void 0 ? '' : _ref$value,
className = _ref.className,
showTextOnly = _ref.showTextOnly,
showLines = _ref.showLines,
_ref$style = _ref.style,
style = _ref$style === void 0 ? {} : _ref$style,
_ref$stylesPrev = _ref.stylesPrev,
stylesPrev = _ref$stylesPrev === void 0 ? {} : _ref$stylesPrev;
var str = String(value);
var _useState = (0,react.useState)(""),
_useState2 = slicedToArray_default()(_useState, 2),
data = _useState2[0],
setData = _useState2[1];
var _useState3 = (0,react.useState)("office"),
_useState4 = slicedToArray_default()(_useState3, 2),
type = _useState4[0],
setType = _useState4[1];
var html = (0,react.useMemo)(function () {
try {
var reg = /\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g;
var reg2 = /\"\/api\/attachments\/|\"\/attachments\/download\//g;
var reg3 = /\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;
str = str.replace(reg, "(" + env/* default.API_SERVER */.Z.API_SERVER + "/api/attachments/").replace(reg2, '"' + env/* default.API_SERVER */.Z.API_SERVER + "/api/attachments/").replace(reg3, '"' + env/* default.API_SERVER */.Z.API_SERVER + "/files/uploads/").replaceAll("http://video.educoder", "https://video.educoder").replaceAll("http://www.educoder.net/api", "https://data.educoder.net/api").replaceAll("https://www.educoder.net/api", "https://data.educoder.net/api").replace(/\r\n/g, "\n");
// str = str.replace(new RegExp("(?<!\\n)\\n(?!\\n)", "g"), " \n")
} catch (e) {}
;
var rs = utils_marked(str);
var math_expressions = getMathExpressions();
if (str.match(/\[TOC\]/)) {
rs = rs.replace('<p>[TOC]</p>', getTocContent());
cleanToc();
}
rs = rs.replace(/(__special_katext_id_\d+__)/g, function (_match, capture) {
var _math_expressions$cap = math_expressions[capture],
type = _math_expressions$cap.type,
expression = _math_expressions$cap.expression;
return (0,katex.renderToString)(_unescape(expression) || '', {
displayMode: type === 'block',
throwOnError: false,
output: 'html'
});
});
rs = rs.replace(/▁/g, '▁▁▁');
resetMathExpressions();
// return dompurify.sanitize(rs)
if (showTextOnly) {
var dom = document.createElement('div');
dom.innerHTML = rs;
return dom.innerText;
}
setTimeout(function () {
return onLoad();
}, 500);
return rs;
}, [str]);
var el = (0,react.useRef)();
lines.WebkitLineClamp = showLines;
if (showLines) {
style = objectSpread2_default()(objectSpread2_default()({}, style), lines);
}
function onAncherHandler(e) {
var target = e.target;
if (target.tagName.toUpperCase() === 'A') {
var ancher = target.getAttribute('href');
if (ancher.indexOf("office") > -1) {
e.preventDefault();
setData(ancher);
setType("office");
} else if (ancher.indexOf("application/pdf") > -1) {
e.preventDefault();
setData(ancher);
setType("pdf");
} else if (ancher.indexOf("text/html") > -1) {
e.preventDefault();
setData(ancher);
setType("html");
} else if (ancher.startsWith('#')) {
e.preventDefault();
var viewEl = document.getElementById(ancher.replace('#', ''));
if (viewEl) {
viewEl.scrollIntoView(true);
}
}
}
}
var onLoad = function onLoad() {
var _el$current;
var videoElement = (_el$current = el.current) === null || _el$current === void 0 ? void 0 : _el$current.querySelectorAll('video');
videoElement === null || videoElement === void 0 ? void 0 : videoElement.forEach(function (item) {
item.oncontextmenu = function () {
return false;
};
if (item.src.indexOf('.m3u8') > -1) {
if (item.canPlayType('application/vnd.apple.mpegurl')) {} else if (hls_default().isSupported()) {
var hls = new (hls_default())();
hls.loadSource(item.src);
hls.attachMedia(item);
}
}
});
};
(0,react.useEffect)(function () {
if (el.current && html) {
if (html.match(preRegex)) {
window.PR.prettyPrint();
}
}
if (el.current) {
el.current.addEventListener('click', onAncherHandler);
return function () {
var _el$current2;
(_el$current2 = el.current) === null || _el$current2 === void 0 ? void 0 : _el$current2.removeEventListener('click', onAncherHandler);
resetMathExpressions();
cleanToc();
};
}
}, [html, el.current, onAncherHandler]);
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
ref: el,
style: objectSpread2_default()({}, style),
className: "".concat(className ? className : '', " markdown-body "),
dangerouslySetInnerHTML: {
__html: html
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)(PreviewAll/* default */.Z, {
close: true,
data: data,
type: !!(data !== null && data !== void 0 && data.length) ? type : "",
style: objectSpread2_default()({}, stylesPrev),
onClose: function onClose() {
return setData("");
}
})]
});
});
/***/ }),
/***/ 68063:
/*!********************************************************!*\
!*** ./src/pages/IntrainCourse/index.tsx + 14 modules ***!
@ -73,7 +618,7 @@ var react = __webpack_require__(978);
var _umi_production_exports = __webpack_require__(88275);
;// CONCATENATED MODULE: ./src/pages/IntrainCourse/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var IntrainCoursemodules = ({"flex_box_center":"flex_box_center___Mk6YD","flex_space_between":"flex_space_between___MZT3e","flex_box_vertical_center":"flex_box_vertical_center___l2tif","flex_box_center_end":"flex_box_center_end___KdCKH","flex_box_column":"flex_box_column___zGqWK","TopTitle":"TopTitle___NtQws","TopName":"TopName____juq8","BannerComponent":"BannerComponent___cA8Rz","Swiper":"Swiper___WCEkn","BannerListItemDiv":"BannerListItemDiv___i6OHa","BannerListItem":"BannerListItem___WRjxL","BannerListItemImg":"BannerListItemImg___VST7T","BannerListItemInfo":"BannerListItemInfo___Maz5j","BannerListItemInfoTitle":"BannerListItemInfoTitle___NbUj7","BannerListItemInfoTeacher":"BannerListItemInfoTeacher___adanB","BannerListItemInfoRate":"BannerListItemInfoRate___Iiz8R","span":"span___Q5aOf","BannerListItemInfoTime":"BannerListItemInfoTime___hGPBk","countdown":"countdown___yDGAq","timeprice":"timeprice___r1rB5","But":"But___n8EMs","span1":"span1___c81QL","ButStyles":"ButStyles___g4vAm","order":"order___T1t73","study":"study___O8gTF","PrevNext":"PrevNext___hsSaR","buttonStyle":"buttonStyle___QfHso","LeftButton":"LeftButton___xv8Cd","RightButton":"RightButton___CCgMW","AllCourse":"AllCourse___XLXVP","AllCourseTop":"AllCourseTop___ra4rb","ButList":"ButList___JDlsR","icon":"icon___VoVSC","Select":"Select___PmCfz","clear":"clear___DtGmH","Search":"Search___nX6r4","AllCourseCent":"AllCourseCent___tr2ln","AllCourseCentLeft":"AllCourseCentLeft___CKuX4","AllCourseCentLeftItem":"AllCourseCentLeftItem___lqiIv","AllCourseCentLeftItemName":"AllCourseCentLeftItemName___Uz0_G","checkboxDiv":"checkboxDiv___ttZ2D","checkboxDivClose":"checkboxDivClose___pLnfq","checkbox":"checkbox___sKZ1f","AllCourseCentRight":"AllCourseCentRight___PvNud","AllCourseCentRightItem":"AllCourseCentRightItem___HZtBN","AllCourseCentRightItemLeft":"AllCourseCentRightItemLeft___ppfeb","AllCourseCentRightItemCent":"AllCourseCentRightItemCent___QH6kE","AllCourseCentRightItemCentTitle":"AllCourseCentRightItemCentTitle___MkSs3","AllCourseCentRightItemCentIntro":"AllCourseCentRightItemCentIntro___AaW2U","AllCourseCentRightItemCentTeacher":"AllCourseCentRightItemCentTeacher___K9JM9","AllCourseCentRightItemCentRate":"AllCourseCentRightItemCentRate___nvP_8","AllCourseCentRightItemCentNum":"AllCourseCentRightItemCentNum___NdRPW","AllCourseCentRightItemRight":"AllCourseCentRightItemRight___oc_it","AllCourseCentRightItemRightPrice":"AllCourseCentRightItemRightPrice___dliDz","AllCourseCentRightItemRightAll":"AllCourseCentRightItemRightAll___OeRQn","AllStyles":"AllStyles___zTjGA","one":"one___iLZWS","span2":"span2___iCDNr","two":"two___Xhngl","Pagination":"Pagination___qKPNH","UserReview":"UserReview___KmjLd","UserReviewInfo":"UserReviewInfo___FQdRQ","UserReviewWords":"UserReviewWords___ByZG7","body":"body___CgzAR","BannerList":"BannerList___UAlhX","BannerDiv":"BannerDiv___Y_iJx","Banner":"Banner___pjKbp","Cent":"Cent___ISiU9","InfoDiv":"InfoDiv___HPQcD","infoStyle":"infoStyle___XrEMW","Img":"Img___h9Y_0","Info":"Info___UCa4P","Info1":"Info1___jkSAI","Info2":"Info2___ye3YF","userInfoDiv":"userInfoDiv___UJuyG","Detailed":"Detailed___WSFSZ","CustomTags":"CustomTags___fDxDW","centNavDiv":"centNavDiv___J7CEL","centNavDivOpen":"centNavDivOpen___S9xEP","centNav":"centNav___jBalL","centNavActive":"centNavActive___j2oo_","OpenClose":"OpenClose___pb09k","OpenIcon":"OpenIcon___bVCdt","CloseIcon":"CloseIcon___SI85g","FixeRight":"FixeRight___YVyTP","FixeAbout":"FixeAbout___vzDzf","FixeInfo":"FixeInfo___GOZo3","Qrcode":"Qrcode___p1quP","FixeRightOpen":"FixeRightOpen___qALtO"});
/* harmony default export */ var IntrainCoursemodules = ({"flex_box_center":"flex_box_center___Mk6YD","flex_space_between":"flex_space_between___MZT3e","flex_box_vertical_center":"flex_box_vertical_center___l2tif","flex_box_center_end":"flex_box_center_end___KdCKH","flex_box_column":"flex_box_column___zGqWK","AllButStyle":"AllButStyle___nZyt2","ButStyles":"ButStyles___g4vAm","order":"order___T1t73","study":"study___O8gTF","studyActive":"studyActive____XjIl","TopTitle":"TopTitle___NtQws","TopName":"TopName____juq8","BannerComponent":"BannerComponent___cA8Rz","Swiper":"Swiper___WCEkn","BannerListItemDiv":"BannerListItemDiv___i6OHa","BannerListItem":"BannerListItem___WRjxL","BannerListItemImg":"BannerListItemImg___VST7T","BannerListItemInfo":"BannerListItemInfo___Maz5j","BannerListItemInfoTitle":"BannerListItemInfoTitle___NbUj7","BannerListItemInfoTeacher":"BannerListItemInfoTeacher___adanB","BannerListItemInfoRate":"BannerListItemInfoRate___Iiz8R","span":"span___Q5aOf","BannerListItemInfoTime":"BannerListItemInfoTime___hGPBk","countdown":"countdown___yDGAq","timeprice":"timeprice___r1rB5","But":"But___n8EMs","span1":"span1___c81QL","PrevNext":"PrevNext___hsSaR","buttonStyle":"buttonStyle___QfHso","LeftButton":"LeftButton___xv8Cd","RightButton":"RightButton___CCgMW","AllCourse":"AllCourse___XLXVP","AllCourseTop":"AllCourseTop___ra4rb","ButList":"ButList___JDlsR","icon":"icon___VoVSC","Select":"Select___PmCfz","clear":"clear___DtGmH","Search":"Search___nX6r4","AllCourseCent":"AllCourseCent___tr2ln","AllCourseCentLeft":"AllCourseCentLeft___CKuX4","AllCourseCentLeftItem":"AllCourseCentLeftItem___lqiIv","AllCourseCentLeftItemName":"AllCourseCentLeftItemName___Uz0_G","checkboxDiv":"checkboxDiv___ttZ2D","checkboxDivClose":"checkboxDivClose___pLnfq","checkbox":"checkbox___sKZ1f","AllCourseCentRight":"AllCourseCentRight___PvNud","AllCourseCentRightItem":"AllCourseCentRightItem___HZtBN","AllCourseCentRightItemLeft":"AllCourseCentRightItemLeft___ppfeb","AllCourseCentRightItemCent":"AllCourseCentRightItemCent___QH6kE","AllCourseCentRightItemCentTitle":"AllCourseCentRightItemCentTitle___MkSs3","AllCourseCentRightItemCentIntro":"AllCourseCentRightItemCentIntro___AaW2U","topicTitle":"topicTitle___XNbLV","AllCourseCentRightItemCentTeacher":"AllCourseCentRightItemCentTeacher___K9JM9","AllCourseCentRightItemCentRate":"AllCourseCentRightItemCentRate___nvP_8","AllCourseCentRightItemCentNum":"AllCourseCentRightItemCentNum___NdRPW","AllStyles":"AllStyles___zTjGA","AllCourseCentRightItemRight":"AllCourseCentRightItemRight___oc_it","PriceStyles":"PriceStyles___elfNF","OriginPrice":"OriginPrice___g_WQa","IsDiscount":"IsDiscount___nm8g9","IsDiscountPrice":"IsDiscountPrice___vcPDt","IsDiscountCountdown":"IsDiscountCountdown___ED5GI","span2":"span2___iCDNr","IsDiscountOriginPrice":"IsDiscountOriginPrice___dHu5H","two":"two___Xhngl","Pagination":"Pagination___qKPNH","UserReview":"UserReview___KmjLd","UserReviewInfo":"UserReviewInfo___FQdRQ","UserReviewWords":"UserReviewWords___ByZG7","body":"body___CgzAR","BannerList":"BannerList___UAlhX","BannerDiv":"BannerDiv___Y_iJx","Banner":"Banner___pjKbp","Cent":"Cent___ISiU9","InfoDiv":"InfoDiv___HPQcD","infoStyle":"infoStyle___XrEMW","Img":"Img___h9Y_0","Info":"Info___UCa4P","Info1":"Info1___jkSAI","Info2":"Info2___ye3YF","userInfoDiv":"userInfoDiv___UJuyG","Detailed":"Detailed___WSFSZ","CustomTags":"CustomTags___fDxDW","centNavDiv":"centNavDiv___J7CEL","centNavDivOpen":"centNavDivOpen___S9xEP","centNav":"centNav___jBalL","centNavActive":"centNavActive___j2oo_","OpenClose":"OpenClose___pb09k","OpenIcon":"OpenIcon___bVCdt","CloseIcon":"CloseIcon___SI85g","FixeRight":"FixeRight___YVyTP","FixeAbout":"FixeAbout___vzDzf","FixeInfo":"FixeInfo___GOZo3","Qrcode":"Qrcode___p1quP","FixeRightOpen":"FixeRightOpen___qALtO"});
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/LeftOutlined.js
var LeftOutlined = __webpack_require__(86521);
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/RightOutlined.js
@ -143,6 +688,8 @@ var tx_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAq
var verifyLogin = __webpack_require__(72551);
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(84519);
// EXTERNAL MODULE: ./src/components/RenderHtml/index.tsx + 1 modules
var RenderHtml = __webpack_require__(12768);
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
var jsx_runtime = __webpack_require__(50107);
;// CONCATENATED MODULE: ./src/pages/IntrainCourse/index.tsx
@ -181,6 +728,7 @@ var jsx_runtime = __webpack_require__(50107);
var TopTitle = function TopTitle(_ref) {
@ -445,7 +993,7 @@ var IntrainCoursePage = function IntrainCoursePage(_ref2) {
className: IntrainCoursemodules.BannerListItemInfoRate,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: IntrainCoursemodules.span,
children: item.averge_star
children: item.averge_star.toFixed(1)
}), /*#__PURE__*/(0,jsx_runtime.jsx)(rate/* default */.Z, {
style: {
color: '#E59819',
@ -454,7 +1002,7 @@ var IntrainCoursePage = function IntrainCoursePage(_ref2) {
},
allowHalf: true,
disabled: true,
defaultValue: parseFloat(item.averge_star)
value: item.averge_star || 0
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: IntrainCoursemodules.BannerListItemInfoTime,
@ -482,11 +1030,11 @@ var IntrainCoursePage = function IntrainCoursePage(_ref2) {
className: IntrainCoursemodules.span1,
children: [item.learn_count / 10000 > 1 ? (item.learn_count / 10000).toFixed(1) + 'W' : item.learn_count, "\u4EBA\u6B63\u5728\u5B66"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
className: "".concat(item.user_paid_subject ? IntrainCoursemodules.study : IntrainCoursemodules.order),
className: "".concat(item.user_paid_subject ? IntrainCoursemodules.study : IntrainCoursemodules.order, " ").concat(item.user_paid_subject ? item.progress.current == 0 ? '' : IntrainCoursemodules.studyActive : ''),
onClick: function onClick() {
item.user_paid_subject ? _umi_production_exports.history.push("/paths/".concat(item.identifier)) : handleImmediatelyPay(item.identifier);
},
children: item.user_paid_subject ? item.is_free ? '开始学习' : '继续学习' : '立即购买'
children: item.user_paid_subject ? item.progress.current == 0 ? '开始学习' : '继续学习' : '立即购买'
})]
})]
})
@ -530,7 +1078,7 @@ var IntrainCoursePage = function IntrainCoursePage(_ref2) {
className: IntrainCoursemodules.BannerListItemInfoRate,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: IntrainCoursemodules.span,
children: item.averge_star
children: item.averge_star.toFixed(1)
}), /*#__PURE__*/(0,jsx_runtime.jsx)(rate/* default */.Z, {
style: {
color: '#E59819',
@ -539,7 +1087,7 @@ var IntrainCoursePage = function IntrainCoursePage(_ref2) {
},
allowHalf: true,
disabled: true,
defaultValue: item.averge_star
value: item.averge_star || 0
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: IntrainCoursemodules.BannerListItemInfoTime,
@ -567,11 +1115,11 @@ var IntrainCoursePage = function IntrainCoursePage(_ref2) {
className: IntrainCoursemodules.span1,
children: [item.learn_count / 10000 > 1 ? (item.learn_count / 10000).toFixed(1) + 'W' : item.learn_count, "\u4EBA\u6B63\u5728\u5B66"]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
className: "".concat(item.user_paid_subject ? IntrainCoursemodules.study : IntrainCoursemodules.order),
className: "".concat(item.user_paid_subject ? IntrainCoursemodules.study : IntrainCoursemodules.order, "\n ").concat(item.user_paid_subject ? item.progress.current == 0 ? '' : IntrainCoursemodules.studyActive : ''),
onClick: function onClick() {
item.user_paid_subject ? _umi_production_exports.history.push("/paths/".concat(item.identifier)) : handleImmediatelyPay(item.identifier);
},
children: item.user_paid_subject ? item.is_free ? '开始学习' : '继续学习' : '立即购买'
children: item.user_paid_subject ? item.progress.current == 0 ? '开始学习' : '继续学习' : '立即购买'
})]
})]
})
@ -1033,17 +1581,16 @@ var IntrainCoursePage = function IntrainCoursePage(_ref2) {
width: '100%'
},
children: (_intraincourse$Subjec = intraincourse.SubjectList.list) === null || _intraincourse$Subjec === void 0 ? void 0 : _intraincourse$Subjec.map(function (item, index) {
console.log(parseFloat(item.averge_star));
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
position: 'relative'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: IntrainCoursemodules.AllCourseCentRightItem,
onClick: function onClick() {
return _umi_production_exports.history.push("/paths/".concat(item.identifier));
},
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
flex: '1',
display: 'flex'
@ -1056,17 +1603,23 @@ var IntrainCoursePage = function IntrainCoursePage(_ref2) {
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: IntrainCoursemodules.AllCourseCentRightItemCent,
style: {
maxWidth: "".concat(leftNavSate ? '530px' : '680px')
maxWidth: "".concat(leftNavSate ? '500px' : '680px')
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: item.name,
placement: "topLeft",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: IntrainCoursemodules.AllCourseCentRightItemCentTitle,
children: item.name
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: IntrainCoursemodules.AllCourseCentRightItemCentIntro,
children: item.description
children: /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
showLines: 1,
className: IntrainCoursemodules.topicTitle,
showTextOnly: true,
value: item.description || ''
}, 1)
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: IntrainCoursemodules.AllCourseCentRightItemCentTeacher,
children: ["\u8BB2\u5E08\uFF1A", item.teacher]
@ -1074,7 +1627,7 @@ var IntrainCoursePage = function IntrainCoursePage(_ref2) {
className: IntrainCoursemodules.AllCourseCentRightItemCentRate,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: IntrainCoursemodules.span,
children: item.averge_star
children: item.averge_star.toFixed(1)
}), /*#__PURE__*/(0,jsx_runtime.jsx)(rate/* default */.Z, {
style: {
color: '#E59819',
@ -1083,44 +1636,49 @@ var IntrainCoursePage = function IntrainCoursePage(_ref2) {
},
allowHalf: true,
disabled: true,
defaultValue: item.averge_star
value: item.averge_star || 0
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: IntrainCoursemodules.AllCourseCentRightItemCentNum,
children: [item.subject_statics.shixun_count > 0 ? item.subject_statics.shixun_count + '个项目实战' : '', item.subject_statics.stages_count > 0 ? '·' + item.subject_statics.stages_count + '个课程章节' : '', item.subject_statics.shixun_challeng_count > 0 ? '·' + item.subject_statics.shixun_challeng_count + '个实践关卡' : '', item.subject_statics.video_items_count > 0 ? '·' + item.subject_statics.video_items_count + '节视频' : '']
children: [item.subject_statics.shixun_count > 0 ? item.subject_statics.shixun_count + '个项目实战·' : '', item.subject_statics.stages_count > 0 ? item.subject_statics.stages_count + '个课程章节·' : '', item.subject_statics.shixun_challeng_count > 0 ? item.subject_statics.shixun_challeng_count + '个实践关卡·' : '', item.subject_statics.video_items_count > 0 ? item.subject_statics.video_items_count + '节视频' : '']
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: IntrainCoursemodules.AllCourseCentRightItemRight,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: IntrainCoursemodules.AllCourseCentRightItemRightPrice,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\uFFE5", item.is_discount ? item.price : item.origin_price]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("del", {
style: {
display: "".concat(item.is_discount ? 'block' : 'none')
},
children: item.origin_price
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: IntrainCoursemodules.AllCourseCentRightItemRight,
children: [item.user_paid_subject ? /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: IntrainCoursemodules.two,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(progress/* default */.Z, {
style: {
width: '100%'
},
percent: item.progress.current / item.progress.total * 100,
strokeWidth: 6,
showInfo: false,
strokeColor: '#FCD78F'
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: IntrainCoursemodules.span2,
children: ["\u5B66\u4E60\u81F3", /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\u7B2C", ['零', '一', '二', '三', '四', '五', '六', '七', '八', '九'][item.progress.current], "\u7AE0"]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: IntrainCoursemodules.AllCourseCentRightItemRightAll,
children: item.user_paid_subject ? /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: IntrainCoursemodules.two,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(progress/* default */.Z, {
percent: item.progress.current / item.progress.total * 100,
strokeWidth: 6,
showInfo: false,
strokeColor: '#FCD78F'
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: IntrainCoursemodules.span2,
children: ["\u5B66\u4E60\u81F3", /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\u7B2C", ['零', '一', '二', '三', '四', '五', '六', '七', '八', '九'][item.progress.current], "\u7AE0"]
})]
})]
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: item.is_discount ? /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: IntrainCoursemodules.IsDiscount,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: IntrainCoursemodules.IsDiscountPrice,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: ["\uFFE5", item.is_discount ? item.price : item.origin_price]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("del", {
style: {
display: "".concat(item.is_discount && item.countdown ? 'block' : 'none')
},
children: item.origin_price
})]
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: IntrainCoursemodules.one,
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: IntrainCoursemodules.IsDiscountCountdown,
style: {
opacity: "".concat(item.countdown ? '1' : '0')
display: "".concat(item.countdown ? 'block' : 'none')
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: IntrainCoursemodules.span1,
@ -1129,24 +1687,26 @@ var IntrainCoursePage = function IntrainCoursePage(_ref2) {
className: IntrainCoursemodules.span2,
children: item.countdown
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
height: '65px'
}
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: IntrainCoursemodules.IsDiscountOriginPrice,
style: {
display: "".concat(item.countdown ? 'none' : 'block')
},
children: ["\u8BFE\u7A0B\u539F\u4EF7\uFF1A", /*#__PURE__*/(0,jsx_runtime.jsxs)("del", {
children: ["\uFFE5", item.origin_price]
})]
})]
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: IntrainCoursemodules.OriginPrice,
children: ["\uFFE5", item.origin_price]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
className: "".concat(item.user_paid_subject ? IntrainCoursemodules.study : IntrainCoursemodules.order, "\n ").concat(item.user_paid_subject ? item.progress.current == 0 ? '' : IntrainCoursemodules.studyActive : ''),
onClick: function onClick() {
item.user_paid_subject ? _umi_production_exports.history.push("/paths/".concat(item.identifier)) : handleImmediatelyPay(item.identifier);
},
children: item.user_paid_subject ? item.progress.current == 0 ? '开始学习' : '继续学习' : '立即购买'
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z, {
style: {
position: 'absolute',
bottom: '45px',
right: '35px'
},
className: "".concat(item.user_paid_subject ? IntrainCoursemodules.study : IntrainCoursemodules.order),
onClick: function onClick() {
item.user_paid_subject ? _umi_production_exports.history.push("/paths/".concat(item.identifier)) : handleImmediatelyPay(item.identifier);
},
children: item.user_paid_subject ? item.progress.current == 0 ? '开始学习' : '继续学习' : '立即购买'
})]
}, index);
})
@ -1162,7 +1722,7 @@ var IntrainCoursePage = function IntrainCoursePage(_ref2) {
getAllCourse();
},
defaultPageSize: allParamet.per_page,
defaultCurrent: allParamet.page,
defaultCurrent: 1,
current: allParamet.page
})]
})]

@ -29,6 +29,37 @@
flex-direction: column;
box-orient: block-axis;
}
.AllButStyle___nZyt2 .ButStyles___g4vAm {
font-size: 16px;
font-weight: 600;
height: 32px;
padding: 0px 12px;
border-radius: 16px;
border: none;
}
.AllButStyle___nZyt2 .order___T1t73 {
font-size: 16px;
font-weight: 600;
height: 32px;
padding: 0px 12px;
border-radius: 16px;
border: none;
background: #F47C18;
color: #fff;
}
.AllButStyle___nZyt2 .study___O8gTF {
font-size: 16px;
font-weight: 600;
height: 32px;
padding: 0px 12px;
border-radius: 16px;
border: none;
background: rgba(244, 124, 24, 0.28);
color: #A4642F;
}
.AllButStyle___nZyt2 .studyActive____XjIl:hover {
color: #FA6400;
}
.TopTitle___NtQws {
width: 1200px;
display: flex;
@ -129,13 +160,12 @@
color: #999999;
line-height: 12px;
}
.BannerComponent___cA8Rz .Swiper___WCEkn .BannerListItemInfoTime___hGPBk .countdown___yDGAq {
margin-top: 3px;
}
.BannerComponent___cA8Rz .Swiper___WCEkn .BannerListItemInfoTime___hGPBk .countdown___yDGAq .span___Q5aOf {
font-size: 14px;
line-height: 14px;
color: #BD6B27;
display: inline-block;
margin-top: 6px;
margin-top: 4px;
}
.BannerComponent___cA8Rz .Swiper___WCEkn .BannerListItemInfoTime___hGPBk .timeprice___r1rB5 .span___Q5aOf {
font-size: 18px;
@ -155,39 +185,41 @@
align-items: center;
}
.BannerComponent___cA8Rz .Swiper___WCEkn .BannerListItem___WRjxL .But___n8EMs .span1___c81QL {
font-size: 14px;
font-size: 16px;
font-weight: 400;
color: #12A278;
line-height: 20px;
}
.BannerComponent___cA8Rz .Swiper___WCEkn .BannerListItem___WRjxL .ButStyles___g4vAm {
font-size: 14px;
font-weight: 500;
line-height: 28px;
.BannerComponent___cA8Rz .Swiper___WCEkn .BannerListItem___WRjxL .But___n8EMs .ButStyles___g4vAm {
font-size: 16px;
font-weight: 600;
height: 32px;
padding: 0px 12px;
border-radius: 14px;
border-radius: 16px;
border: none;
}
.BannerComponent___cA8Rz .Swiper___WCEkn .BannerListItem___WRjxL .order___T1t73 {
font-size: 14px;
font-weight: 500;
line-height: 28px;
.BannerComponent___cA8Rz .Swiper___WCEkn .BannerListItem___WRjxL .But___n8EMs .order___T1t73 {
font-size: 16px;
font-weight: 600;
height: 32px;
padding: 0px 12px;
border-radius: 14px;
border-radius: 16px;
border: none;
background: #F47C18;
color: #fff;
}
.BannerComponent___cA8Rz .Swiper___WCEkn .BannerListItem___WRjxL .study___O8gTF {
font-size: 14px;
font-weight: 500;
line-height: 28px;
.BannerComponent___cA8Rz .Swiper___WCEkn .BannerListItem___WRjxL .But___n8EMs .study___O8gTF {
font-size: 16px;
font-weight: 600;
height: 32px;
padding: 0px 12px;
border-radius: 14px;
border-radius: 16px;
border: none;
background: rgba(244, 124, 24, 0.28);
color: #A4642F;
}
.BannerComponent___cA8Rz .Swiper___WCEkn .BannerListItem___WRjxL .But___n8EMs .studyActive____XjIl:hover {
color: #FA6400;
}
.BannerComponent___cA8Rz .Swiper___WCEkn .BannerListItem___WRjxL:hover .BannerListItemImg___VST7T img {
height: 178px;
width: 300px;
@ -404,37 +436,6 @@
.AllCourse___XLXVP .AllCourseCentRight___PvNud [class~='ant-spin-nested-loading'] {
width: 100%;
}
.AllCourse___XLXVP .AllCourseCentRight___PvNud .ButStyles___g4vAm {
margin-top: 27px;
font-size: 14px;
font-weight: 500;
line-height: 28px;
padding: 0px 12px;
border-radius: 14px;
border: none;
}
.AllCourse___XLXVP .AllCourseCentRight___PvNud .order___T1t73 {
margin-top: 27px;
font-size: 14px;
font-weight: 500;
line-height: 28px;
padding: 0px 12px;
border-radius: 14px;
border: none;
background: #F47C18;
color: #fff;
}
.AllCourse___XLXVP .AllCourseCentRight___PvNud .study___O8gTF {
margin-top: 27px;
font-size: 14px;
font-weight: 500;
line-height: 28px;
padding: 0px 12px;
border-radius: 14px;
border: none;
background: rgba(244, 124, 24, 0.28);
color: #A4642F;
}
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItem___HZtBN {
background: #fff;
cursor: pointer;
@ -472,17 +473,25 @@
white-space: nowrap;
text-overflow: ellipsis;
}
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItem___HZtBN .AllCourseCentRightItemCentTitle___MkSs3:hover {
color: #165DFF;
}
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItem___HZtBN .AllCourseCentRightItemCentIntro___AaW2U {
margin-top: 8px;
width: 100%;
ont-size: 14px;
font-weight: 500;
color: #666;
line-height: 14px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItem___HZtBN .AllCourseCentRightItemCentIntro___AaW2U .topicTitle___XNbLV {
font-size: 14px;
font-weight: 500;
color: #666;
line-height: 14px;
}
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItem___HZtBN .AllCourseCentRightItemCentIntro___AaW2U .topicTitle___XNbLV:hover {
color: #165DFF;
}
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItem___HZtBN .AllCourseCentRightItemCentTeacher___K9JM9 {
margin-top: 16px;
font-weight: 400;
@ -512,84 +521,139 @@
color: #999;
line-height: 14px;
}
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItem___HZtBN .AllCourseCentRightItemRight___oc_it {
margin: 16px 0;
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItem___HZtBN:hover .AllCourseCentRightItemLeft___ppfeb img {
height: 178px;
width: 300px;
}
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItem___HZtBN:last-child {
margin-bottom: 0px;
}
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllStyles___zTjGA {
display: flex;
flex-wrap: wrap;
flex-direction: column;
align-items: center;
justify-content: center;
}
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItemRight___oc_it {
min-width: 120px;
position: absolute;
right: 24px;
bottom: 0px;
height: 100%;
display: flex;
flex-wrap: wrap;
flex-direction: column;
align-items: center;
justify-content: center;
}
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItem___HZtBN .AllCourseCentRightItemRightPrice___dliDz {
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItemRight___oc_it .PriceStyles___elfNF {
font-size: 20px;
font-weight: 600;
color: #F47B18;
}
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItemRight___oc_it .OriginPrice___g_WQa {
font-size: 20px;
font-weight: 600;
color: #F47B18;
}
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItemRight___oc_it .IsDiscount___nm8g9 {
text-align: center;
}
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItemRight___oc_it .IsDiscountPrice___vcPDt {
display: flex;
align-items: center;
justify-content: center;
}
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItem___HZtBN .AllCourseCentRightItemRightPrice___dliDz span {
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItemRight___oc_it .IsDiscountPrice___vcPDt span {
font-size: 20px;
font-weight: 500;
font-weight: 600;
color: #F47B18;
line-height: 20px;
white-space: nowrap;
}
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItem___HZtBN .AllCourseCentRightItemRightPrice___dliDz del {
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItemRight___oc_it .IsDiscountPrice___vcPDt del {
margin-left: 5px;
font-size: 12px;
font-weight: 400;
color: #999;
line-height: 12px;
}
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItem___HZtBN .AllCourseCentRightItemRightAll___OeRQn {
margin-top: 18px;
font-size: 12px;
line-height: 12px;
font-weight: 400;
}
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItem___HZtBN .AllCourseCentRightItemRightAll___OeRQn .AllStyles___zTjGA {
display: flex;
flex-wrap: wrap;
flex-direction: column;
align-items: center;
justify-content: center;
}
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItem___HZtBN .AllCourseCentRightItemRightAll___OeRQn .one___iLZWS {
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItemRight___oc_it .IsDiscountCountdown___ED5GI {
display: flex;
flex-wrap: wrap;
flex-direction: column;
align-items: center;
justify-content: center;
margin-top: 18px;
}
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItem___HZtBN .AllCourseCentRightItemRightAll___OeRQn .one___iLZWS .span1___c81QL {
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItemRight___oc_it .IsDiscountCountdown___ED5GI .span1___c81QL {
font-size: 12px;
line-height: 12px;
color: #999;
}
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItem___HZtBN .AllCourseCentRightItemRightAll___OeRQn .one___iLZWS .span2___iCDNr {
margin-top: 10px;
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItemRight___oc_it .IsDiscountCountdown___ED5GI .span2___iCDNr {
font-size: 14px;
line-height: 14px;
margin-top: 8px;
color: #BD6B27;
}
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItem___HZtBN .AllCourseCentRightItemRightAll___OeRQn .two___Xhngl {
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItemRight___oc_it .IsDiscountOriginPrice___dHu5H {
margin-top: 18px;
font-size: 12px;
font-weight: 400;
color: #999;
line-height: 12px;
}
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItemRight___oc_it .two___Xhngl {
display: flex;
flex-wrap: wrap;
flex-direction: column;
align-items: center;
justify-content: center;
}
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItem___HZtBN .AllCourseCentRightItemRightAll___OeRQn .two___Xhngl Progress {
width: 100%;
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItemRight___oc_it .two___Xhngl [class~='ant-progress-line'] {
line-height: 12px;
}
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItem___HZtBN .AllCourseCentRightItemRightAll___OeRQn .two___Xhngl .span2___iCDNr {
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItemRight___oc_it .two___Xhngl .span2___iCDNr {
margin-top: 10px;
color: #999;
}
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItem___HZtBN .AllCourseCentRightItemRightAll___OeRQn .two___Xhngl .span2___iCDNr span {
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItemRight___oc_it .two___Xhngl .span2___iCDNr span {
color: #FA6400;
}
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItem___HZtBN:hover .AllCourseCentRightItemLeft___ppfeb img {
height: 178px;
width: 300px;
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItemRight___oc_it .ButStyles___g4vAm {
font-size: 16px;
font-weight: 600;
height: 32px;
padding: 0px 12px;
border-radius: 16px;
border: none;
}
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItem___HZtBN:last-child {
margin-bottom: 0px;
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItemRight___oc_it .order___T1t73 {
font-size: 16px;
font-weight: 600;
height: 32px;
padding: 0px 12px;
border-radius: 16px;
border: none;
background: #F47C18;
color: #fff;
}
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItemRight___oc_it .study___O8gTF {
font-size: 16px;
font-weight: 600;
height: 32px;
padding: 0px 12px;
border-radius: 16px;
border: none;
background: rgba(244, 124, 24, 0.28);
color: #A4642F;
}
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItemRight___oc_it .studyActive____XjIl:hover {
color: #FA6400;
}
.AllCourse___XLXVP .AllCourseCentRight___PvNud .AllCourseCentRightItemRight___oc_it Button {
margin-top: 27px;
}
.AllCourse___XLXVP .AllCourseCentRight___PvNud .Pagination___qKPNH {
margin-top: 30px;
@ -986,3 +1050,92 @@
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** 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/components/PreviewAll/index.less?modules ***!
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.wrp___dq7YK {
display: flex;
justify-content: center;
align-items: center;
position: fixed;
width: 100%;
height: 100%;
left: 0;
top: 0;
z-index: 108;
}
.wrp___dq7YK.bgBlack___ARIUV {
background: rgba(0, 0, 0, 0.5);
}
.wrp___dq7YK img,
.wrp___dq7YK video {
max-width: 100%;
max-height: 80%;
text-align: center;
}
.wrp___dq7YK iframe {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
background: #fff;
}
.monaco___VnZC3 {
position: absolute;
height: 100%;
width: 100%;
}
.darkBlue___UprA9 * {
font-size: 14px;
}
.darkBlue___UprA9 [class~='margin'],
.darkBlue___UprA9 [class~='monaco-editor-background'] {
background: #0a0e2d !important;
}
.darkBlue___UprA9 [class~='line-numbers'] {
color: white !important;
}
.close___LKoWu {
position: absolute;
right: 40px;
top: 40px;
z-index: 10;
display: flex;
}
.close___LKoWu > span {
background: #4a4a4a;
color: #fff;
width: 40px;
height: 40px;
border-radius: 4px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
margin-left: 10px;
}
.embed___hvpEJ {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
}
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
/*!*******************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[4].oneOf[1].use[2]!./src/components/monaco-editor/index.css ***!
\*******************************************************************************************************************************************************************************************************************************************/
.my-monaco-editor div,
.my-diff-editor div {
font-size: inherit;
}
.my-error-line-wrp{
width: calc(100% - 20px ) !important;
background: rgba(245, 0, 0 ,0.2) !important;
height: auto !important;
color: rgba(245, 0, 0, 1);
}

@ -878,7 +878,33 @@ var Column = table/* default.Column */.Z.Column;
error_msg = _ref2.error_msg;
var outputRef = (0,react.useRef)();
var inputRef = (0,react.useRef)();
var openTerm = (0,react.useRef)(false);
var errormsgRef = (0,react.useRef)();
var expectedOutputRef = (0,react.useRef)();
var term = (0,react.useRef)(new xterm.Terminal({
fontSize: 14,
letterSpacing: 0,
cols: Math.floor(window.innerWidth * 0.4 / 9),
rows: 6
}));
var term2 = (0,react.useRef)(new xterm.Terminal({
fontSize: 14,
letterSpacing: 0,
cols: Math.floor(window.innerWidth * 0.4 / 9),
rows: 6
}));
var term3 = (0,react.useRef)(new xterm.Terminal({
fontSize: 14,
letterSpacing: 0,
cols: Math.floor(window.innerWidth * 0.4 / 9),
rows: 6
}));
var term4 = (0,react.useRef)(new xterm.Terminal({
fontSize: 14,
letterSpacing: 0,
cols: Math.floor(window.innerWidth * 0.4 / 9),
rows: 6
}));
var ulRef = (0,react.useRef)();
var _useSearchParams = (0,_umi_production_exports.useSearchParams)(),
_useSearchParams2 = slicedToArray_default()(_useSearchParams, 1),
@ -909,47 +935,48 @@ var Column = table/* default.Column */.Z.Column;
}
(0,react.useEffect)(function () {
if (output && !is_file && status !== MyProblem_interface/* ExecuteStatus.OK */.h.OK && id) {
var term = new xterm.Terminal({
fontSize: 14,
letterSpacing: 0,
cols: Math.floor(ulRef.current.clientWidth / 14),
rows: 6
});
term.open(outputRef.current);
if (!openTerm.current) term.current.open(outputRef.current);
var actual_output_format = (0,util/* findEndWhitespace */.pp)(base64.Base64.decode(output)); //.replaceAll("\r\n","\x1b[41m\x1b[37m↵\x1b[0m\r\n").replaceAll("\n","\x1b[41m\x1b[37m↵\x1b[0m\r\n").replaceAll(" ",'\x1b[41m \x1b[0m')
term.write(actual_output_format);
term.current.reset();
term.current.write(actual_output_format);
// term.current.setOption('cols', Math.floor(ulRef.current.clientWidth / 14));
setTimeout(function () {
openTerm.current = true;
}, 100);
window.terms = term;
window.outputs = base64.Base64.decode(output);
term.setOption('theme', {
term.current.setOption('theme', {
background: '#fafafa',
foreground: "#333",
cursor: '#F00'
foreground: "#333"
});
}
if (input && !is_file && status !== MyProblem_interface/* ExecuteStatus.OK */.h.OK && id) {
var term2 = new xterm.Terminal({
fontSize: 14,
letterSpacing: 0,
cols: Math.floor(ulRef.current.clientWidth / 14),
rows: 6
});
term2.open(inputRef.current);
term2.write((0,util/* findEndWhitespace */.pp)(input));
term2.setOption('theme', {
if (!openTerm.current) term2.current.open(inputRef.current);
term2.current.reset();
term2.current.write((0,util/* findEndWhitespace */.pp)(input));
// term2.current.setOption('cols', Math.floor(ulRef.current.clientWidth / 14));
term2.current.setOption('theme', {
background: '#fafafa',
foreground: "#333"
});
}
if (expected_output && !is_file && status !== MyProblem_interface/* ExecuteStatus.OK */.h.OK && id) {
var term3 = new xterm.Terminal({
fontSize: 14,
letterSpacing: 0,
cols: Math.floor(ulRef.current.clientWidth / 14),
rows: 6
if (!openTerm.current) term3.current.open(expectedOutputRef.current);
term3.current.reset();
term3.current.write((0,util/* findEndWhitespace */.pp)(base64.Base64.decode(expected_output)));
// term3.current.setOption('cols', Math.floor(ulRef.current.clientWidth / 14));
term3.current.setOption('theme', {
background: '#fafafa',
selection: "#fff",
foreground: "#333"
});
term3.open(expectedOutputRef.current);
term3.write((0,util/* findEndWhitespace */.pp)(base64.Base64.decode(expected_output)));
term3.setOption('theme', {
}
if (errormsgRef.current) {
if (!openTerm.current) term4.current.open(errormsgRef.current);
term4.current.write((0,util/* findEndWhitespace */.pp)(base64.Base64.decode(error_msg)));
term4.current.reset();
// term4.current.setOption('cols', Math.floor(ulRef.current.clientWidth / 14));
term4.current.setOption('theme', {
background: '#fafafa',
selection: "#fff",
foreground: "#333"
@ -1039,7 +1066,9 @@ var Column = table/* default.Column */.Z.Column;
className: "c-red",
children: "\u5B9E\u9645\u8F93\u51FA\uFF1A"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("pre", {
children: [(status === 4 || status === 5) && base64.Base64.decode(error_msg), status != 4 && status != 5 && (is_file ? /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
children: [(status === 4 || status === 5) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
ref: errormsgRef
}), status != 4 && status != 5 && (is_file ? /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
// href={output_file_url}
style: {
fontSize: '16px'

@ -1558,6 +1558,7 @@
}
.price___YtmIz .d3___bWANm div {
width: 0%;
height: 100%;
background: #44d7b6;
border-radius: 2px;
}

@ -830,8 +830,6 @@ span.ant-radio + * {
}
.radio___x9kMt {
display: block;
height: 30px;
line-height: 30px;
width: 500px;
overflow: hidden;
text-overflow: ellipsis;

@ -948,8 +948,6 @@ li:last-child > .ant-breadcrumb-separator {
}
.radio___x9kMt {
display: block;
height: 30px;
line-height: 30px;
width: 500px;
overflow: hidden;
text-overflow: ellipsis;

@ -400,8 +400,6 @@
}
.radio___x9kMt {
display: block;
height: 30px;
line-height: 30px;
width: 500px;
overflow: hidden;
text-overflow: ellipsis;

@ -314,8 +314,6 @@
}
.radio___x9kMt {
display: block;
height: 30px;
line-height: 30px;
width: 500px;
overflow: hidden;
text-overflow: ellipsis;

File diff suppressed because one or more lines are too long

@ -10654,6 +10654,16 @@ body .ant-pagination .ant-pagination-item-ellipsis {
top: 0;
left: 0;
}
.xterm {
position: relative;
}
.xterm .xterm-viewport {
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
}
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
Loading…
Cancel
Save