edu360-web-ui 1.0.117 → 1.0.118
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.css +1 -1
- package/dist/shizhanyun-web-ui.js +44 -9
- package/dist/shizhanyun-web-ui.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/main.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@charset "UTF-8";[data-v-
|
|
1
|
+
@charset "UTF-8";[data-v-e8932521]:root{--clnpmel-color-primary: #fc5b08 !important}.code-block-view[data-v-e8932521]{margin:10px 0}.code-block-view .code-block-view-cont[data-v-e8932521]{margin:0 30px;border-radius:6px;border:1px solid #ccc}.code-toolbar[data-v-e8932521]{display:flex;gap:6px;align-items:center;justify-content:space-between;padding:4px 8px;font-size:12px;background:#f8fafe;border-bottom:1px solid #ddd;height:36px;border-radius:6px 6px 0 0}.code-toolbar .code-toolbar-right[data-v-e8932521]{display:flex;align-items:center;gap:20px}.code-toolbar .el-dropdown-link[data-v-e8932521]{cursor:pointer;display:flex;align-items:center}.hljs[data-v-e8932521]{border-radius:0 0 6px 6px}.hljs.no-toolbar[data-v-e8932521]{border-radius:6px}.dark .code-toolbar[data-v-e8932521]{background:#272822;color:#ddd}.dark .code-toolbar .el-dropdown[data-v-e8932521]{color:#ddd}pre[data-v-e8932521]{margin:0!important;padding:10px!important;font-size:14px;overflow-x:auto}.code-content[data-v-e8932521]{font-family:Courier New,Courier,monospace;white-space:pre-wrap;word-wrap:break-word}[data-v-885bddd6]:root{--clnpmel-color-primary: #fc5b08 !important}.ai-popup[data-v-885bddd6]{margin:8px 30px;background:#fff;font-size:14px;box-shadow:0 0 0 .5px #6b729447,0 2px 4px #565b760a,0 4px 24px -2px #565b7614;border-radius:12px;position:relative;z-index:2}.ai-input[data-v-885bddd6]{border-radius:12px 12px 0 0;padding:16px 16px 12px;width:100%;box-sizing:border-box}.ai-input[data-v-885bddd6] .el-textarea__inner{box-shadow:none;resize:none;padding:0}.ai-btns[data-v-885bddd6]{display:flex;justify-content:flex-end;align-items:center;padding:0 16px 16px;border-radius:0 0 12px 12px}.ai-btns .ai-btns-send[data-v-885bddd6]{width:32px;height:32px;background-color:var(--el-color-primary);border-radius:50%;color:#fff;display:flex;justify-content:center;align-items:center;font-size:18px;cursor:pointer}.ai-btns .ai-btns-send.is-disabled[data-v-885bddd6]{background-color:#6b729452;cursor:not-allowed}.ai-quick-actions[data-v-885bddd6]{padding:20px;top:calc(100% + 6px);left:0;position:absolute!important;width:160px;max-height:46vh;overflow-y:auto;background:#fff;border-radius:12px;-webkit-backdrop-filter:blur(30px);backdrop-filter:blur(30px);box-shadow:#565b7647 0 0 0 .5px,#00000014 0 2px 4px,#00000014 0 4px 12px -4px,#00000029 0 16px 24px -4px;gap:10px}.ai-quick-actions .ai-quick-actions-item[data-v-885bddd6]{height:32px;display:flex;justify-content:space-between;align-items:center;font-size:14px;cursor:pointer}.ai-quick-actions .ai-quick-actions-item>div[data-v-885bddd6]{display:flex;align-items:center;gap:4px}.tone-list[data-v-885bddd6]{display:flex;flex-direction:column;font-size:14px;gap:10px}.tone-list>p[data-v-885bddd6]{cursor:pointer}.ai-result .result-answer[data-v-885bddd6]{padding:0 18px;height:45px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #EEEEEE;font-size:14px;border-radius:12px 12px 0 0}.ai-result .result-text[data-v-885bddd6]{padding:20px 18px 0;font-size:14px;white-space:pre-wrap;max-height:300px;overflow-y:auto}.ai-result .result-image[data-v-885bddd6]{padding:10px;display:flex;justify-content:flex-start;gap:10px}.ai-result .result-image>div[data-v-885bddd6]{flex:1;width:0;position:relative}.ai-result .result-image>div>img[data-v-885bddd6]{object-fit:cover;width:100%}.ai-result .result-image>div .result-image-checkbox[data-v-885bddd6]{position:absolute;top:10px;right:10px}.ai-result .result-actions[data-v-885bddd6]{display:flex;align-items:center;gap:8px;padding:10px 20px 20px;border-radius:0 0 12px 12px}.result-text[data-v-885bddd6]{margin-bottom:8px;white-space:pre-wrap}.result-actions[data-v-885bddd6]{display:flex;gap:8px}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
|
|
2
2
|
Theme: GitHub
|
|
3
3
|
Description: Light theme as seen on github.com
|
|
4
4
|
Author: github.com
|
|
@@ -81479,12 +81479,31 @@ const _sfc_main$c = {
|
|
|
81479
81479
|
return str.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
81480
81480
|
};
|
|
81481
81481
|
const preBlock = ref(null);
|
|
81482
|
+
let isHighlighting = false;
|
|
81483
|
+
let highlightTimer = null;
|
|
81482
81484
|
const highlight2 = () => {
|
|
81483
|
-
|
|
81484
|
-
|
|
81485
|
-
|
|
81486
|
-
|
|
81487
|
-
|
|
81485
|
+
if (isHighlighting) return;
|
|
81486
|
+
if (highlightTimer) {
|
|
81487
|
+
clearTimeout(highlightTimer);
|
|
81488
|
+
}
|
|
81489
|
+
highlightTimer = setTimeout(() => {
|
|
81490
|
+
nextTick(() => {
|
|
81491
|
+
var _a3;
|
|
81492
|
+
const codeEl = (_a3 = preBlock.value) == null ? void 0 : _a3.querySelector(".code-content");
|
|
81493
|
+
if (!codeEl) return;
|
|
81494
|
+
const selection = window.getSelection();
|
|
81495
|
+
let savedRange = null;
|
|
81496
|
+
let hadFocus = false;
|
|
81497
|
+
try {
|
|
81498
|
+
if (selection && selection.rangeCount > 0 && codeEl.contains(selection.anchorNode)) {
|
|
81499
|
+
hadFocus = true;
|
|
81500
|
+
savedRange = selection.getRangeAt(0).cloneRange();
|
|
81501
|
+
}
|
|
81502
|
+
} catch (e) {
|
|
81503
|
+
}
|
|
81504
|
+
isHighlighting = true;
|
|
81505
|
+
const textContent = codeEl.innerText || codeEl.textContent || "";
|
|
81506
|
+
codeEl.innerHTML = escapeHtml2(textContent);
|
|
81488
81507
|
const language = lang.value || props.node.attrs.language || "plaintext";
|
|
81489
81508
|
codeEl.className = `language-${language}`;
|
|
81490
81509
|
try {
|
|
@@ -81492,11 +81511,27 @@ const _sfc_main$c = {
|
|
|
81492
81511
|
} catch (e) {
|
|
81493
81512
|
console.warn("Highlight failed:", e);
|
|
81494
81513
|
}
|
|
81495
|
-
|
|
81496
|
-
|
|
81514
|
+
if (hadFocus && savedRange) {
|
|
81515
|
+
try {
|
|
81516
|
+
selection.removeAllRanges();
|
|
81517
|
+
selection.addRange(savedRange);
|
|
81518
|
+
} catch (e) {
|
|
81519
|
+
}
|
|
81520
|
+
}
|
|
81521
|
+
isHighlighting = false;
|
|
81522
|
+
});
|
|
81523
|
+
}, 300);
|
|
81497
81524
|
};
|
|
81498
81525
|
highlight2();
|
|
81499
|
-
|
|
81526
|
+
let contentChangeTimer = null;
|
|
81527
|
+
watch(() => props.node.content, () => {
|
|
81528
|
+
if (contentChangeTimer) {
|
|
81529
|
+
clearTimeout(contentChangeTimer);
|
|
81530
|
+
}
|
|
81531
|
+
contentChangeTimer = setTimeout(() => {
|
|
81532
|
+
highlight2();
|
|
81533
|
+
}, 500);
|
|
81534
|
+
}, { deep: true });
|
|
81500
81535
|
const codeContHeme = {
|
|
81501
81536
|
github: "light",
|
|
81502
81537
|
monokai: "dark",
|
|
@@ -81581,7 +81616,7 @@ const _sfc_main$c = {
|
|
|
81581
81616
|
};
|
|
81582
81617
|
}
|
|
81583
81618
|
};
|
|
81584
|
-
const CodeBlockView = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-
|
|
81619
|
+
const CodeBlockView = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-e8932521"]]);
|
|
81585
81620
|
function _1c(hljs2) {
|
|
81586
81621
|
const UNDERSCORE_IDENT_RE2 = "[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+";
|
|
81587
81622
|
const v7_keywords = "далее ";
|