edu360-web-ui 1.0.112 → 1.0.113
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 +2 -2
- package/dist/shizhanyun-web-ui.js +153 -16
- package/dist/shizhanyun-web-ui.umd.cjs +4 -4
- package/package.json +1 -1
package/dist/main.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@charset "UTF-8";[data-v-4036ce0f]:root{--clnpmel-color-primary: #fc5b08 !important}.code-block-view[data-v-4036ce0f]{margin:10px 0}.code-block-view .code-block-view-cont[data-v-4036ce0f]{margin:0 30px;border-radius:6px;border:1px solid #ccc}.code-toolbar[data-v-4036ce0f]{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-4036ce0f]{display:flex;align-items:center;gap:20px}.code-toolbar .el-dropdown-link[data-v-4036ce0f]{cursor:pointer;display:flex;align-items:center}.hljs[data-v-4036ce0f]{border-radius:0 0 6px 6px}.hljs.no-toolbar[data-v-4036ce0f]{border-radius:6px}.dark .code-toolbar[data-v-4036ce0f]{background:#272822;color:#ddd}.dark .code-toolbar .el-dropdown[data-v-4036ce0f]{color:#ddd}pre[data-v-4036ce0f]{margin:0!important;padding:10px!important;font-size:14px;overflow-x:auto}.code-content[data-v-4036ce0f]{font-family:Courier New,Courier,monospace;white-space:pre-wrap;word-wrap:break-word}[data-v-
|
|
1
|
+
@charset "UTF-8";[data-v-4036ce0f]:root{--clnpmel-color-primary: #fc5b08 !important}.code-block-view[data-v-4036ce0f]{margin:10px 0}.code-block-view .code-block-view-cont[data-v-4036ce0f]{margin:0 30px;border-radius:6px;border:1px solid #ccc}.code-toolbar[data-v-4036ce0f]{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-4036ce0f]{display:flex;align-items:center;gap:20px}.code-toolbar .el-dropdown-link[data-v-4036ce0f]{cursor:pointer;display:flex;align-items:center}.hljs[data-v-4036ce0f]{border-radius:0 0 6px 6px}.hljs.no-toolbar[data-v-4036ce0f]{border-radius:6px}.dark .code-toolbar[data-v-4036ce0f]{background:#272822;color:#ddd}.dark .code-toolbar .el-dropdown[data-v-4036ce0f]{color:#ddd}pre[data-v-4036ce0f]{margin:0!important;padding:10px!important;font-size:14px;overflow-x:auto}.code-content[data-v-4036ce0f]{font-family:Courier New,Courier,monospace;white-space:pre-wrap;word-wrap:break-word}[data-v-8ffeb4e4]:root{--clnpmel-color-primary: #fc5b08 !important}.ai-popup[data-v-8ffeb4e4]{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-8ffeb4e4]{border-radius:12px 12px 0 0;padding:16px 16px 12px;width:100%;box-sizing:border-box}.ai-input[data-v-8ffeb4e4] .el-textarea__inner{box-shadow:none;resize:none;padding:0}.ai-btns[data-v-8ffeb4e4]{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-8ffeb4e4]{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-8ffeb4e4]{background-color:#6b729452;cursor:not-allowed}.ai-quick-actions[data-v-8ffeb4e4]{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-8ffeb4e4]{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-8ffeb4e4]{display:flex;align-items:center;gap:4px}.tone-list[data-v-8ffeb4e4]{display:flex;flex-direction:column;font-size:14px;gap:10px}.tone-list>p[data-v-8ffeb4e4]{cursor:pointer}.ai-result .result-answer[data-v-8ffeb4e4]{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-8ffeb4e4]{padding:20px 18px 0;font-size:14px;white-space:pre-wrap;max-height:300px;overflow-y:auto}.ai-result .result-image[data-v-8ffeb4e4]{padding:10px;display:flex;justify-content:flex-start;gap:10px}.ai-result .result-image>div[data-v-8ffeb4e4]{flex:1;width:0;position:relative}.ai-result .result-image>div>img[data-v-8ffeb4e4]{object-fit:cover;width:100%}.ai-result .result-image>div .result-image-checkbox[data-v-8ffeb4e4]{position:absolute;top:10px;right:10px}.ai-result .result-actions[data-v-8ffeb4e4]{display:flex;align-items:center;gap:8px;padding:10px 20px 20px;border-radius:0 0 12px 12px}.result-text[data-v-8ffeb4e4]{margin-bottom:8px;white-space:pre-wrap}.result-actions[data-v-8ffeb4e4]{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
|
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
|
|
8
8
|
Outdated base version: https://github.com/primer/github-syntax-light
|
|
9
9
|
Current colors taken from GitHub's CSS
|
|
10
|
-
*/.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}.link-bubble[data-v-547694a0]{position:absolute;width:300px}.unlink-btn[data-v-547694a0]{color:#f56c6c;border-color:#f56c6c;display:flex;align-items:center;transition:all .2s}.unlink-btn[data-v-547694a0]:hover{background-color:#f56c6c;color:#fff;border-color:#f56c6c}.unlink-btn svg[data-v-547694a0]{flex-shrink:0}.flex[data-v-547694a0]{display:flex}.justify-between[data-v-547694a0]{justify-content:space-between}.items-center[data-v-547694a0]{align-items:center}.ml-1[data-v-547694a0]{margin-left:4px}.mt-2[data-v-547694a0]{margin-top:8px}.text-right[data-v-547694a0]{text-align:right}[data-v-c0c6a2ad]:root{--clnpmel-color-primary: #fc5b08 !important}.jupyter-icon[data-v-c0c6a2ad]{display:inline-block;vertical-align:middle;fill:#333}.sudoku-div[data-v-d94a94d9]{background-color:#fff;display:inline-block}.sudoku-row[data-v-d94a94d9]{height:20px;display:flex;gap:2px}.sudoku-col[data-v-d94a94d9]{display:inline-block;width:16px;height:16px;margin-right:2px;background-color:#171a1d1a;cursor:pointer}.sudoku-col.active[data-v-d94a94d9]{background-color:#256cfb!important}[data-v-d72f0e9a]:root{--clnpmel-color-primary: #fc5b08 !important}.floating-menu[data-v-d72f0e9a]{position:relative;height:25px;z-index:999}.floating-menu .floating-menu-btn[data-v-d72f0e9a]{border-radius:4px;border:1px solid #eee;background-color:#fff;padding:4px}.floating-menu .floating-menu-btn>p[data-v-d72f0e9a]{line-height:14px;height:14px;margin:0}.floating-menu-cont[data-v-d72f0e9a]{display:flex;flex-direction:column;gap:4px;position:absolute;border-radius:4px;border:1px solid #eee;background-color:#fff;padding:0 20px 20px;width:220px;box-sizing:border-box}.floating-menu-cont .floating-menu-tit[data-v-d72f0e9a]{padding:8px 8px 4px 0;margin-left:4px;font-size:14px;line-height:16px;color:#9a9dac}.floating-menu-cont .floating-menu-top[data-v-d72f0e9a]{padding-bottom:20px;width:100%;display:flex;flex-direction:column;gap:10px;border-bottom:1px solid #EEEEEE}.floating-menu-cont .floating-menu-top .floating-menu-top-btns[data-v-d72f0e9a]{display:flex;flex-wrap:wrap;gap:10px}.floating-menu-cont .floating-menu-top .floating-menu-top-btns>svg[data-v-d72f0e9a]{cursor:pointer}.floating-menu-cont .floating-menu-common[data-v-d72f0e9a]{margin-top:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list[data-v-d72f0e9a]{margin-top:10px;display:flex;flex-direction:column;gap:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item[data-v-d72f0e9a]{display:flex;align-items:center;gap:10px;cursor:pointer}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-l[data-v-d72f0e9a]{width:42px;height:42px;border:1px solid #EEEEEE;display:flex;align-items:center;justify-content:center;border-radius:4px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r[data-v-d72f0e9a]{width:100%;display:flex;flex-direction:column;gap:4px;font-size:14px;color:#333}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r>p[data-v-d72f0e9a]{margin:0}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r .desc[data-v-d72f0e9a]{color:#9a9dac;font-size:12px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .flex-justify-between[data-v-d72f0e9a]{flex-direction:row;justify-content:space-between;align-items:center}.icon-gray[data-v-d72f0e9a]{color:#999!important;cursor:not-allowed!important}.icon-gray .floating-menu-common-item-r[data-v-d72f0e9a]{color:#999!important}.block-menu-item[data-v-d72f0e9a]{padding:.25rem;display:flex;align-items:center;gap:1rem;cursor:pointer;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:#4b5563}.block-menu-item .block-menu-item-icon[data-v-d72f0e9a]{background-color:#f3f4f6;display:flex;justify-content:center;align-items:center;height:24px;width:24px;border-radius:4px;--tw-bg-opacity: 1;padding:4px;font-size:20px}.block-menu-item[data-v-d72f0e9a]:hover{background-color:#f3f4f6;font-weight:500;--tw-text-opacity: 1;color:#111827}.block-menu-item:hover .block-menu-item-icon[data-v-d72f0e9a]{background-color:#fff}.tiptap-vue .tiptap-upload-file>div{width:100%}.tiptap-vue .tiptap-upload-file .block-menu-item{width:100%}[data-v-be715d1d]:root{--clnpmel-color-primary: #fc5b08 !important}.my-drawer .dialog-header[data-v-be715d1d]{display:flex;justify-content:flex-start;align-items:center;gap:6px}.my-drawer .dialog-header div[data-v-be715d1d]{color:var(--text-color);font-size:18px;font-style:normal;font-weight:400;line-height:25px}.my-drawer .close[data-v-be715d1d]{position:absolute;top:14px;right:14px;cursor:pointer}.my-drawer .el-drawer__header{margin-bottom:0}[data-v-8a153055]:root{--clnpmel-color-primary: #fc5b08 !important}.el-dropdown-link[data-v-8a153055]{display:flex;align-items:center;cursor:pointer}.toolbar[data-v-8a153055]{display:flex;gap:8px;flex-wrap:wrap;padding:8px 20px;align-items:center}.toolbar .flex-center[data-v-8a153055],.toolbar .flex-center .upload-demo[data-v-8a153055]{display:flex;align-items:center;justify-content:center}.toolbar svg[data-v-8a153055]{color:#333}.toolbar .el-dropdown[data-v-8a153055]{height:22px}.is-active[data-v-8a153055]{color:#256cfb}.icon-gray[data-v-8a153055]{color:#999!important;cursor:not-allowed!important}.tiptap-upload-demo[data-v-8a153055]{height:18px;display:flex;justify-content:center;align-items:center}.align-item[data-v-8a153055]{display:flex;align-items:center;gap:4px}.table-content[data-v-8a153055]{display:flex;justify-content:center;align-items:center;position:relative}.el-dropdown-menu__item>p[data-v-8a153055]{margin:0!important}.el-dropdown-link.disabled[data-v-8a153055]{opacity:.5;cursor:not-allowed!important;pointer-events:none}.tiptap-drop-down .el-dropdown-menu__item:not(.is-disabled):hover{background-color:#171a1d0f!important;color:inherit!important}.tiptap-drop-down .el-button--primary.is-link,.tiptap-drop-down .el-button--primary.is-plain,.tiptap-drop-down .el-button--primary.is-text{color:#256cfb!important}.tiptap-drop-down .el-button--primary.is-link svg,.tiptap-drop-down .el-button--primary.is-plain svg,.tiptap-drop-down .el-button--primary.is-text svg{color:#256cfb!important}.bubble-menu[data-v-dc69236f]{background:#fff;border-radius:12px;box-shadow:0 0 0 .5px #565b7647,0 2px 4px #00000014,0 4px 12px -4px #00000014,0 16px 24px -4px #00000029;z-index:999;display:flex}[data-v-1f02baea]:root{--clnpmel-color-primary: #fc5b08 !important}.floating-menu[data-v-1f02baea]{position:absolute;left:-44px;top:-14px;height:40px}.floating-menu-cont[data-v-1f02baea]{display:flex;flex-direction:column;gap:4px}.floating-menu-cont .floating-menu-tit[data-v-1f02baea]{padding:8px 8px 4px 0;margin-left:4px;font-size:14px;line-height:16px;color:#9a9dac}.floating-menu-cont .floating-menu-top[data-v-1f02baea]{padding-bottom:20px;width:100%;display:flex;flex-direction:column;gap:10px;border-bottom:1px solid #EEEEEE}.floating-menu-cont .floating-menu-top .floating-menu-top-btns[data-v-1f02baea]{display:flex;flex-wrap:wrap;gap:10px}.floating-menu-cont .floating-menu-top .floating-menu-top-btns>svg[data-v-1f02baea]{cursor:pointer}.floating-menu-cont .floating-menu-common[data-v-1f02baea]{margin-top:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list[data-v-1f02baea]{margin-top:10px;display:flex;flex-direction:column;gap:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item[data-v-1f02baea]{display:flex;align-items:center;gap:10px;cursor:pointer}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-l[data-v-1f02baea]{width:42px;height:42px;border:1px solid #EEEEEE;display:flex;align-items:center;justify-content:center;border-radius:4px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r[data-v-1f02baea]{width:100%;display:flex;flex-direction:column;gap:4px;font-size:14px;color:#333}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r .desc[data-v-1f02baea]{color:#9a9dac;font-size:12px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .flex-justify-between[data-v-1f02baea]{flex-direction:row;justify-content:space-between;align-items:center}[data-v-61adf0aa]:root{--clnpmel-color-primary: #fc5b08 !important}.table-toolbar-wrapper[data-v-61adf0aa]{position:relative}.table-side-icon[data-v-61adf0aa]{width:24px;height:24px;border-radius:4px;background:#fff;box-shadow:0 2px 8px #0000001f;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#333;transition:transform .12s ease,background .12s ease}.table-side-icon[data-v-61adf0aa]:hover{transform:translateY(-2px);background:#f5f7ff}.table-toolbar-btns[data-v-61adf0aa]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:10px}.table-toolbar-btns>div[data-v-61adf0aa]{cursor:pointer;padding:4px 8px;border-radius:4px}.table-toolbar-btns>div[data-v-61adf0aa]:hover{background-color:#f5f7fa}.table-toolbar-btns .danger[data-v-61adf0aa]{color:#f56c6c}.merge-control-panel[data-v-61adf0aa]{position:absolute;background:#fff;border-radius:6px;box-shadow:0 4px 12px #00000026;padding:8px;min-width:160px;z-index:1001}.merge-control-panel .merge-panel-header[data-v-61adf0aa]{display:flex;justify-content:space-between;align-items:center;padding-bottom:8px;margin-bottom:8px;border-bottom:1px solid #ebeef5;font-size:12px;color:#606266}.merge-control-panel .merge-panel-header svg[data-v-61adf0aa]{cursor:pointer;color:#909399}.merge-control-panel .merge-panel-header svg[data-v-61adf0aa]:hover{color:#409eff}.merge-control-panel .merge-panel-content[data-v-61adf0aa]{display:flex;flex-direction:column;gap:4px}.merge-control-panel .merge-option[data-v-61adf0aa]{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:4px;cursor:pointer;font-size:13px}.merge-control-panel .merge-option[data-v-61adf0aa]:hover{background-color:#f5f7fa}.merge-control-panel .merge-option.disabled[data-v-61adf0aa]{opacity:.5;cursor:not-allowed}.merge-control-panel .merge-option.disabled[data-v-61adf0aa]:hover{background-color:transparent}[data-v-39837116]:root{--clnpmel-color-primary: #fc5b08 !important}.ai-content[data-v-39837116]{position:absolute;width:calc(100% - 40px)}[data-v-c80a7e6c]:root{--clnpmel-color-primary: #fc5b08 !important}.el-dropdown-link[data-v-c80a7e6c]{display:flex;align-items:center;gap:4px;cursor:pointer}[data-v-c80a7e6c] .el-dropdown-menu__item.active{color:var(--el-color-primary)}.editor-wrapper[data-v-c80a7e6c]{border:1px solid #eeeeee;border-radius:6px;position:relative;box-sizing:border-box;display:flex;flex-direction:column}.editor-wrapper .editor-wrapper-toolbar[data-v-c80a7e6c]{border-bottom:1px solid #eeeeee}.editor-wrapper .editor-bottom[data-v-c80a7e6c]{display:flex;justify-content:space-between;align-items:center;padding:0 20px;height:40px;border-top:1px solid #eeeeee}.editor-wrapper .editor-bottom .editor-bottom-r[data-v-c80a7e6c]{color:#999;font-size:12px}.editor-content-container[data-v-c80a7e6c]{flex:1;height:0;position:relative}.editor-content[data-v-c80a7e6c]{padding:20px 0;position:relative;box-sizing:border-box;height:100%;overflow-y:auto}.editor-content .editor-loading[data-v-c80a7e6c]{width:100%;height:100%;position:absolute;top:0;left:0;z-index:100000}.upload-demo[data-v-c80a7e6c]{display:flex;align-items:center}.bubble-menu[data-v-c80a7e6c]{background:#fff;border-radius:4px;box-shadow:0 2px 12px #0000001a;padding:0 8px;z-index:999}.floating-menu[data-v-c80a7e6c]{position:absolute;left:-50px;top:-14px;height:40px}.floating-menu .floating-menu-cont[data-v-c80a7e6c]{display:flex;flex-direction:column}.table-toolbar[data-v-c80a7e6c]{position:absolute;z-index:2}.table-toolbar .table-toolbar-btns[data-v-c80a7e6c]{display:flex;flex-direction:column;gap:10px;background:#fff;border-radius:4px;box-shadow:0 2px 12px #0000001a;padding:0 8px;z-index:999}:root{--clnpmel-color-primary: #fc5b08 !important}.tiptap-vue .editor-content table{border-collapse:collapse;margin:10px 0;overflow:hidden;table-layout:fixed;width:100%;border:1px solid #ccc}.tiptap-vue .editor-content table td,.tiptap-vue .editor-content table th{border:1px solid #ccc;box-sizing:border-box;min-width:1em;padding:10px;position:relative;vertical-align:top}.tiptap-vue .editor-content table td>*,.tiptap-vue .editor-content table th>*{margin-bottom:0}.tiptap-vue .editor-content table td ul[data-type=taskList],.tiptap-vue .editor-content table th ul[data-type=taskList]{padding-left:0!important}.tiptap-vue .editor-content table td ul.bullet-list,.tiptap-vue .editor-content table th ul.bullet-list,.tiptap-vue .editor-content table td ol.ordered-list,.tiptap-vue .editor-content table th ol.ordered-list{padding-left:18px!important}.tiptap-vue .editor-content table th{background-color:var(--gray-1);font-weight:700;text-align:left}.tiptap-vue .editor-content table .selectedCell:after{background:#b7dcfb4d;content:"";left:0;right:0;top:0;bottom:0;pointer-events:none;position:absolute;z-index:2}.tiptap-vue .editor-content table .column-resize-handle,.tiptap-vue .editor-content table .row-resize-handle{background-color:#000;bottom:-2px;pointer-events:none;position:absolute;right:-2px;top:0;width:4px}.tiptap-vue .editor-content.resize-cursor{cursor:ew-resize;cursor:col-resize}.tiptap-vue .editor-content ul[data-type=taskList]{list-style:none;padding-left:30px;margin:10px 0}.tiptap-vue .editor-content ul[data-type=taskList] li{display:flex;align-items:baseline;-webkit-box-align:baseline}.tiptap-vue .editor-content ul[data-type=taskList] li>label{flex:0 0 auto;margin-right:.5rem;margin-top:.15em;-webkit-user-select:none;user-select:none;display:flex;align-items:center;line-height:1.5}.tiptap-vue .editor-content ul[data-type=taskList] li>div{flex:1 1 auto;word-wrap:break-word;word-break:break-word;line-height:1.5}.tiptap-vue .editor-content ul[data-type=taskList] li>div>p{margin:0!important;line-height:1.5}.tiptap-vue .editor-content ul[data-type=taskList] input[type=checkbox]{cursor:pointer;margin:0;flex-shrink:0}.tiptap-vue .editor-content ul[data-type=taskList] ul[data-type=taskList]{margin:0}.tiptap-vue .editor-content img,.tiptap-vue .editor-content p,.tiptap-vue .editor-content ol,.tiptap-vue .editor-content h1,.tiptap-vue .editor-content h2,.tiptap-vue .editor-content h3,.tiptap-vue .editor-content h4,.tiptap-vue .editor-content h5,.tiptap-vue .editor-content h6{margin:10px 0}.tiptap-vue .editor-content .ProseMirror{height:calc(100% - 10px)}.tiptap-vue .editor-content .ProseMirror p.is-empty:before{padding-left:30px;content:attr(data-placeholder);position:absolute;top:0;left:0;color:#999;pointer-events:none;font-size:inherit;font-style:italic;-webkit-user-select:none;user-select:none}.tiptap-vue .editor-content .ProseMirror>*{padding:0 30px}.tiptap-vue .editor-content .code-block-view,.tiptap-vue .editor-content .ai-assistant-card{padding:0!important}.tiptap-vue .editor-content ul[data-type=taskList] li>p{margin:0!important}.tiptap-vue .editor-content .bullet-list{padding-left:50px}.tiptap-vue .editor-content .bullet-list li>p{margin:0!important}.tiptap-vue .editor-content .ordered-list li>p{margin:0!important}.tiptap-vue .editor-content h1{font-size:2em!important}.tiptap-vue .editor-content h2{font-size:1.5em!important}.tiptap-vue .editor-content h3{font-size:1.17em!important}.tiptap-vue .editor-content h4{font-size:inherit!important}.tiptap-vue .editor-content h5{font-size:.83em!important}.tiptap-vue .editor-content h6{font-size:.67em!important}.is-inline .bullet-list,.is-inline .ordered-list,.is-inline ol,.is-inline ul[data-type=taskList]{padding-left:0!important}.tiptap-vue .el-form-item{margin-bottom:10px!important}.tiptap-vue .noPadding{padding:0}.tiptap-vue .noPadding .ProseMirror>*{padding:0}.tiptap-vue .noPadding .code-block-view-cont{margin:0!important}:focus{outline:none!important}:focus-visible{outline:none!important}.tiptap ol{padding-left:50px!important;list-style-type:decimal;margin:.5em 0}.tiptap ol ol{list-style-type:lower-alpha}.tiptap ol ol ol{list-style-type:lower-roman}.tiptap ol ol ol ol{list-style-type:upper-alpha}.tiptap ol ol ol ol ol{list-style-type:upper-roman}.tiptap li{position:relative}.tiptap ol[data-level="2"]{background-color:#00000005}.tiptap ol[data-level="3"]{background-color:#0000000a}.source-dialog-content{width:100%;height:100%}.source-dialog-content :deep(.el-textarea){width:100%}.source-dialog-content :deep(.el-textarea__inner){font-family:Consolas,Monaco,Courier New,monospace;font-size:13px;line-height:1.5;resize:none}.tiptap-vue .editor-content :deep(u),.tiptap-vue .editor-content :deep(.underline){text-decoration:underline!important}.tiptap-vue .editor-content :deep(s),.tiptap-vue .editor-content :deep(del),.tiptap-vue .editor-content :deep(strike){text-decoration:line-through!important}.tiptap-vue .editor-content :deep([style*="text-align"]){text-align:inherit}.tiptap-vue .editor-content :deep(mark){font-size:inherit!important;font-weight:inherit!important;font-style:inherit!important;color:inherit!important;line-height:inherit!important}@font-face{font-family:iconfont;src:url(iconfont.woff2?t=1761630666591) format("woff2"),url(iconfont.woff?t=1761630666591) format("woff"),url(iconfont.ttf?t=1761630666591) format("truetype")}.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-logos--jupyter:before{content:""}
|
|
10
|
+
*/.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}.link-bubble[data-v-547694a0]{position:absolute;width:300px}.unlink-btn[data-v-547694a0]{color:#f56c6c;border-color:#f56c6c;display:flex;align-items:center;transition:all .2s}.unlink-btn[data-v-547694a0]:hover{background-color:#f56c6c;color:#fff;border-color:#f56c6c}.unlink-btn svg[data-v-547694a0]{flex-shrink:0}.flex[data-v-547694a0]{display:flex}.justify-between[data-v-547694a0]{justify-content:space-between}.items-center[data-v-547694a0]{align-items:center}.ml-1[data-v-547694a0]{margin-left:4px}.mt-2[data-v-547694a0]{margin-top:8px}.text-right[data-v-547694a0]{text-align:right}[data-v-c0c6a2ad]:root{--clnpmel-color-primary: #fc5b08 !important}.jupyter-icon[data-v-c0c6a2ad]{display:inline-block;vertical-align:middle;fill:#333}.sudoku-div[data-v-d94a94d9]{background-color:#fff;display:inline-block}.sudoku-row[data-v-d94a94d9]{height:20px;display:flex;gap:2px}.sudoku-col[data-v-d94a94d9]{display:inline-block;width:16px;height:16px;margin-right:2px;background-color:#171a1d1a;cursor:pointer}.sudoku-col.active[data-v-d94a94d9]{background-color:#256cfb!important}[data-v-d72f0e9a]:root{--clnpmel-color-primary: #fc5b08 !important}.floating-menu[data-v-d72f0e9a]{position:relative;height:25px;z-index:999}.floating-menu .floating-menu-btn[data-v-d72f0e9a]{border-radius:4px;border:1px solid #eee;background-color:#fff;padding:4px}.floating-menu .floating-menu-btn>p[data-v-d72f0e9a]{line-height:14px;height:14px;margin:0}.floating-menu-cont[data-v-d72f0e9a]{display:flex;flex-direction:column;gap:4px;position:absolute;border-radius:4px;border:1px solid #eee;background-color:#fff;padding:0 20px 20px;width:220px;box-sizing:border-box}.floating-menu-cont .floating-menu-tit[data-v-d72f0e9a]{padding:8px 8px 4px 0;margin-left:4px;font-size:14px;line-height:16px;color:#9a9dac}.floating-menu-cont .floating-menu-top[data-v-d72f0e9a]{padding-bottom:20px;width:100%;display:flex;flex-direction:column;gap:10px;border-bottom:1px solid #EEEEEE}.floating-menu-cont .floating-menu-top .floating-menu-top-btns[data-v-d72f0e9a]{display:flex;flex-wrap:wrap;gap:10px}.floating-menu-cont .floating-menu-top .floating-menu-top-btns>svg[data-v-d72f0e9a]{cursor:pointer}.floating-menu-cont .floating-menu-common[data-v-d72f0e9a]{margin-top:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list[data-v-d72f0e9a]{margin-top:10px;display:flex;flex-direction:column;gap:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item[data-v-d72f0e9a]{display:flex;align-items:center;gap:10px;cursor:pointer}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-l[data-v-d72f0e9a]{width:42px;height:42px;border:1px solid #EEEEEE;display:flex;align-items:center;justify-content:center;border-radius:4px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r[data-v-d72f0e9a]{width:100%;display:flex;flex-direction:column;gap:4px;font-size:14px;color:#333}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r>p[data-v-d72f0e9a]{margin:0}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r .desc[data-v-d72f0e9a]{color:#9a9dac;font-size:12px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .flex-justify-between[data-v-d72f0e9a]{flex-direction:row;justify-content:space-between;align-items:center}.icon-gray[data-v-d72f0e9a]{color:#999!important;cursor:not-allowed!important}.icon-gray .floating-menu-common-item-r[data-v-d72f0e9a]{color:#999!important}.block-menu-item[data-v-d72f0e9a]{padding:.25rem;display:flex;align-items:center;gap:1rem;cursor:pointer;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:#4b5563}.block-menu-item .block-menu-item-icon[data-v-d72f0e9a]{background-color:#f3f4f6;display:flex;justify-content:center;align-items:center;height:24px;width:24px;border-radius:4px;--tw-bg-opacity: 1;padding:4px;font-size:20px}.block-menu-item[data-v-d72f0e9a]:hover{background-color:#f3f4f6;font-weight:500;--tw-text-opacity: 1;color:#111827}.block-menu-item:hover .block-menu-item-icon[data-v-d72f0e9a]{background-color:#fff}.tiptap-vue .tiptap-upload-file>div{width:100%}.tiptap-vue .tiptap-upload-file .block-menu-item{width:100%}[data-v-be715d1d]:root{--clnpmel-color-primary: #fc5b08 !important}.my-drawer .dialog-header[data-v-be715d1d]{display:flex;justify-content:flex-start;align-items:center;gap:6px}.my-drawer .dialog-header div[data-v-be715d1d]{color:var(--text-color);font-size:18px;font-style:normal;font-weight:400;line-height:25px}.my-drawer .close[data-v-be715d1d]{position:absolute;top:14px;right:14px;cursor:pointer}.my-drawer .el-drawer__header{margin-bottom:0}[data-v-8a153055]:root{--clnpmel-color-primary: #fc5b08 !important}.el-dropdown-link[data-v-8a153055]{display:flex;align-items:center;cursor:pointer}.toolbar[data-v-8a153055]{display:flex;gap:8px;flex-wrap:wrap;padding:8px 20px;align-items:center}.toolbar .flex-center[data-v-8a153055],.toolbar .flex-center .upload-demo[data-v-8a153055]{display:flex;align-items:center;justify-content:center}.toolbar svg[data-v-8a153055]{color:#333}.toolbar .el-dropdown[data-v-8a153055]{height:22px}.is-active[data-v-8a153055]{color:#256cfb}.icon-gray[data-v-8a153055]{color:#999!important;cursor:not-allowed!important}.tiptap-upload-demo[data-v-8a153055]{height:18px;display:flex;justify-content:center;align-items:center}.align-item[data-v-8a153055]{display:flex;align-items:center;gap:4px}.table-content[data-v-8a153055]{display:flex;justify-content:center;align-items:center;position:relative}.el-dropdown-menu__item>p[data-v-8a153055]{margin:0!important}.el-dropdown-link.disabled[data-v-8a153055]{opacity:.5;cursor:not-allowed!important;pointer-events:none}.tiptap-drop-down .el-dropdown-menu__item:not(.is-disabled):hover{background-color:#171a1d0f!important;color:inherit!important}.tiptap-drop-down .el-button--primary.is-link,.tiptap-drop-down .el-button--primary.is-plain,.tiptap-drop-down .el-button--primary.is-text{color:#256cfb!important}.tiptap-drop-down .el-button--primary.is-link svg,.tiptap-drop-down .el-button--primary.is-plain svg,.tiptap-drop-down .el-button--primary.is-text svg{color:#256cfb!important}.bubble-menu[data-v-dc69236f]{background:#fff;border-radius:12px;box-shadow:0 0 0 .5px #565b7647,0 2px 4px #00000014,0 4px 12px -4px #00000014,0 16px 24px -4px #00000029;z-index:999;display:flex}[data-v-1f02baea]:root{--clnpmel-color-primary: #fc5b08 !important}.floating-menu[data-v-1f02baea]{position:absolute;left:-44px;top:-14px;height:40px}.floating-menu-cont[data-v-1f02baea]{display:flex;flex-direction:column;gap:4px}.floating-menu-cont .floating-menu-tit[data-v-1f02baea]{padding:8px 8px 4px 0;margin-left:4px;font-size:14px;line-height:16px;color:#9a9dac}.floating-menu-cont .floating-menu-top[data-v-1f02baea]{padding-bottom:20px;width:100%;display:flex;flex-direction:column;gap:10px;border-bottom:1px solid #EEEEEE}.floating-menu-cont .floating-menu-top .floating-menu-top-btns[data-v-1f02baea]{display:flex;flex-wrap:wrap;gap:10px}.floating-menu-cont .floating-menu-top .floating-menu-top-btns>svg[data-v-1f02baea]{cursor:pointer}.floating-menu-cont .floating-menu-common[data-v-1f02baea]{margin-top:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list[data-v-1f02baea]{margin-top:10px;display:flex;flex-direction:column;gap:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item[data-v-1f02baea]{display:flex;align-items:center;gap:10px;cursor:pointer}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-l[data-v-1f02baea]{width:42px;height:42px;border:1px solid #EEEEEE;display:flex;align-items:center;justify-content:center;border-radius:4px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r[data-v-1f02baea]{width:100%;display:flex;flex-direction:column;gap:4px;font-size:14px;color:#333}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r .desc[data-v-1f02baea]{color:#9a9dac;font-size:12px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .flex-justify-between[data-v-1f02baea]{flex-direction:row;justify-content:space-between;align-items:center}[data-v-61adf0aa]:root{--clnpmel-color-primary: #fc5b08 !important}.table-toolbar-wrapper[data-v-61adf0aa]{position:relative}.table-side-icon[data-v-61adf0aa]{width:24px;height:24px;border-radius:4px;background:#fff;box-shadow:0 2px 8px #0000001f;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#333;transition:transform .12s ease,background .12s ease}.table-side-icon[data-v-61adf0aa]:hover{transform:translateY(-2px);background:#f5f7ff}.table-toolbar-btns[data-v-61adf0aa]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:10px}.table-toolbar-btns>div[data-v-61adf0aa]{cursor:pointer;padding:4px 8px;border-radius:4px}.table-toolbar-btns>div[data-v-61adf0aa]:hover{background-color:#f5f7fa}.table-toolbar-btns .danger[data-v-61adf0aa]{color:#f56c6c}.merge-control-panel[data-v-61adf0aa]{position:absolute;background:#fff;border-radius:6px;box-shadow:0 4px 12px #00000026;padding:8px;min-width:160px;z-index:1001}.merge-control-panel .merge-panel-header[data-v-61adf0aa]{display:flex;justify-content:space-between;align-items:center;padding-bottom:8px;margin-bottom:8px;border-bottom:1px solid #ebeef5;font-size:12px;color:#606266}.merge-control-panel .merge-panel-header svg[data-v-61adf0aa]{cursor:pointer;color:#909399}.merge-control-panel .merge-panel-header svg[data-v-61adf0aa]:hover{color:#409eff}.merge-control-panel .merge-panel-content[data-v-61adf0aa]{display:flex;flex-direction:column;gap:4px}.merge-control-panel .merge-option[data-v-61adf0aa]{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:4px;cursor:pointer;font-size:13px}.merge-control-panel .merge-option[data-v-61adf0aa]:hover{background-color:#f5f7fa}.merge-control-panel .merge-option.disabled[data-v-61adf0aa]{opacity:.5;cursor:not-allowed}.merge-control-panel .merge-option.disabled[data-v-61adf0aa]:hover{background-color:transparent}[data-v-39837116]:root{--clnpmel-color-primary: #fc5b08 !important}.ai-content[data-v-39837116]{position:absolute;width:calc(100% - 40px)}[data-v-b4519289]:root{--clnpmel-color-primary: #fc5b08 !important}.el-dropdown-link[data-v-b4519289]{display:flex;align-items:center;gap:4px;cursor:pointer}[data-v-b4519289] .el-dropdown-menu__item.active{color:var(--el-color-primary)}.editor-wrapper[data-v-b4519289]{border:1px solid #eeeeee;border-radius:6px;position:relative;box-sizing:border-box;display:flex;flex-direction:column}.editor-wrapper .editor-wrapper-toolbar[data-v-b4519289]{border-bottom:1px solid #eeeeee}.editor-wrapper .editor-bottom[data-v-b4519289]{display:flex;justify-content:space-between;align-items:center;padding:0 20px;height:40px;border-top:1px solid #eeeeee}.editor-wrapper .editor-bottom .editor-bottom-r[data-v-b4519289]{color:#999;font-size:12px}.editor-content-container[data-v-b4519289]{flex:1;height:0;position:relative}.editor-content[data-v-b4519289]{padding:20px 0;position:relative;box-sizing:border-box;height:100%;overflow-y:auto}.editor-content .editor-loading[data-v-b4519289]{width:100%;height:100%;position:absolute;top:0;left:0;z-index:100000}.upload-demo[data-v-b4519289]{display:flex;align-items:center}.bubble-menu[data-v-b4519289]{background:#fff;border-radius:4px;box-shadow:0 2px 12px #0000001a;padding:0 8px;z-index:999}.floating-menu[data-v-b4519289]{position:absolute;left:-50px;top:-14px;height:40px}.floating-menu .floating-menu-cont[data-v-b4519289]{display:flex;flex-direction:column}.table-toolbar[data-v-b4519289]{position:absolute;z-index:2}.table-toolbar .table-toolbar-btns[data-v-b4519289]{display:flex;flex-direction:column;gap:10px;background:#fff;border-radius:4px;box-shadow:0 2px 12px #0000001a;padding:0 8px;z-index:999}:root{--clnpmel-color-primary: #fc5b08 !important}.tiptap-vue .editor-content table{border-collapse:collapse;margin:10px 0;overflow:hidden;table-layout:fixed;width:100%;border:1px solid #ccc}.tiptap-vue .editor-content table td,.tiptap-vue .editor-content table th{border:1px solid #ccc;box-sizing:border-box;min-width:1em;padding:10px;position:relative;vertical-align:top}.tiptap-vue .editor-content table td>*,.tiptap-vue .editor-content table th>*{margin-bottom:0}.tiptap-vue .editor-content table td ul[data-type=taskList],.tiptap-vue .editor-content table th ul[data-type=taskList]{padding-left:0!important}.tiptap-vue .editor-content table td ul.bullet-list,.tiptap-vue .editor-content table th ul.bullet-list,.tiptap-vue .editor-content table td ol.ordered-list,.tiptap-vue .editor-content table th ol.ordered-list{padding-left:18px!important}.tiptap-vue .editor-content table th{background-color:var(--gray-1);font-weight:700;text-align:left}.tiptap-vue .editor-content table .selectedCell:after{background:#b7dcfb4d;content:"";left:0;right:0;top:0;bottom:0;pointer-events:none;position:absolute;z-index:2}.tiptap-vue .editor-content table .column-resize-handle,.tiptap-vue .editor-content table .row-resize-handle{background-color:#000;bottom:-2px;pointer-events:none;position:absolute;right:-2px;top:0;width:4px}.tiptap-vue .editor-content.resize-cursor{cursor:ew-resize;cursor:col-resize}.tiptap-vue .editor-content ul[data-type=taskList]{list-style:none;padding-left:30px;margin:10px 0}.tiptap-vue .editor-content ul[data-type=taskList] li{display:flex;align-items:baseline;-webkit-box-align:baseline}.tiptap-vue .editor-content ul[data-type=taskList] li>label{flex:0 0 auto;margin-right:.5rem;margin-top:.15em;-webkit-user-select:none;user-select:none;display:flex;align-items:center;line-height:1.5}.tiptap-vue .editor-content ul[data-type=taskList] li>div{flex:1 1 auto;word-wrap:break-word;word-break:break-word;line-height:1.5}.tiptap-vue .editor-content ul[data-type=taskList] li>div>p{margin:0!important;line-height:1.5}.tiptap-vue .editor-content ul[data-type=taskList] input[type=checkbox]{cursor:pointer;margin:0;flex-shrink:0}.tiptap-vue .editor-content ul[data-type=taskList] ul[data-type=taskList]{margin:0}.tiptap-vue .editor-content img,.tiptap-vue .editor-content p,.tiptap-vue .editor-content ol,.tiptap-vue .editor-content h1,.tiptap-vue .editor-content h2,.tiptap-vue .editor-content h3,.tiptap-vue .editor-content h4,.tiptap-vue .editor-content h5,.tiptap-vue .editor-content h6{margin:10px 0}.tiptap-vue .editor-content .ProseMirror{height:calc(100% - 10px)}.tiptap-vue .editor-content .ProseMirror p.is-empty:before{padding-left:30px;content:attr(data-placeholder);position:absolute;top:0;left:0;color:#999;pointer-events:none;font-size:inherit;font-style:italic;-webkit-user-select:none;user-select:none}.tiptap-vue .editor-content .ProseMirror>*{padding:0 30px}.tiptap-vue .editor-content .code-block-view,.tiptap-vue .editor-content .ai-assistant-card{padding:0!important}.tiptap-vue .editor-content ul[data-type=taskList] li>p{margin:0!important}.tiptap-vue .editor-content .bullet-list{padding-left:50px}.tiptap-vue .editor-content .bullet-list li>p{margin:0!important}.tiptap-vue .editor-content .ordered-list li>p{margin:0!important}.tiptap-vue .editor-content h1{font-size:2em!important}.tiptap-vue .editor-content h2{font-size:1.5em!important}.tiptap-vue .editor-content h3{font-size:1.17em!important}.tiptap-vue .editor-content h4{font-size:inherit!important}.tiptap-vue .editor-content h5{font-size:.83em!important}.tiptap-vue .editor-content h6{font-size:.67em!important}.is-inline .bullet-list,.is-inline .ordered-list,.is-inline ol,.is-inline ul[data-type=taskList]{padding-left:0!important}.tiptap-vue .el-form-item{margin-bottom:10px!important}.tiptap-vue .noPadding{padding:0}.tiptap-vue .noPadding .ProseMirror>*{padding:0}.tiptap-vue .noPadding .code-block-view-cont{margin:0!important}:focus{outline:none!important}:focus-visible{outline:none!important}.tiptap ol{padding-left:50px!important;list-style-type:decimal;margin:.5em 0}.tiptap ol ol{list-style-type:lower-alpha}.tiptap ol ol ol{list-style-type:lower-roman}.tiptap ol ol ol ol{list-style-type:upper-alpha}.tiptap ol ol ol ol ol{list-style-type:upper-roman}.tiptap li{position:relative}.tiptap ol[data-level="2"]{background-color:#00000005}.tiptap ol[data-level="3"]{background-color:#0000000a}.source-dialog-content{width:100%;height:100%}.source-dialog-content :deep(.el-textarea){width:100%}.source-dialog-content :deep(.el-textarea__inner){font-family:Consolas,Monaco,Courier New,monospace;font-size:13px;line-height:1.5;resize:none}.tiptap-vue .editor-content :deep(u),.tiptap-vue .editor-content :deep(.underline){text-decoration:underline!important}.tiptap-vue .editor-content :deep(s),.tiptap-vue .editor-content :deep(del),.tiptap-vue .editor-content :deep(strike){text-decoration:line-through!important}.tiptap-vue .editor-content :deep([style*="text-align"]){text-align:inherit}.tiptap-vue .editor-content :deep(mark){font-size:inherit!important;font-weight:inherit!important;font-style:inherit!important;color:inherit!important;line-height:inherit!important}@font-face{font-family:iconfont;src:url(iconfont.woff2?t=1761630666591) format("woff2"),url(iconfont.woff?t=1761630666591) format("woff"),url(iconfont.ttf?t=1761630666591) format("truetype")}.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-logos--jupyter:before{content:""}
|
|
@@ -137034,23 +137034,95 @@ function loadContentInChunks({
|
|
|
137034
137034
|
}
|
|
137035
137035
|
let index = 0;
|
|
137036
137036
|
const total = blocks.length;
|
|
137037
|
+
let cancelled = false;
|
|
137038
|
+
let timeoutId = null;
|
|
137039
|
+
const startTime2 = performance.now();
|
|
137040
|
+
const DIRECT_INSERT_THRESHOLD = 300;
|
|
137041
|
+
let actualChunkSize;
|
|
137042
|
+
if (total <= DIRECT_INSERT_THRESHOLD) {
|
|
137043
|
+
actualChunkSize = total;
|
|
137044
|
+
} else {
|
|
137045
|
+
actualChunkSize = 300;
|
|
137046
|
+
}
|
|
137047
|
+
const totalBatches = Math.ceil(total / actualChunkSize);
|
|
137048
|
+
console.log(`[分块加载] 总块数: ${total}, 每次插入: ${actualChunkSize} 块, 预计批次: ${totalBatches}`);
|
|
137049
|
+
const wasEditable = editor.isEditable;
|
|
137050
|
+
const originalUpdate = editor.options.onUpdate;
|
|
137051
|
+
if (wasEditable) {
|
|
137052
|
+
editor.setEditable(false);
|
|
137053
|
+
}
|
|
137054
|
+
editor.options.onUpdate = () => {
|
|
137055
|
+
};
|
|
137037
137056
|
const { from: from2, to } = editor.state.selection;
|
|
137038
137057
|
const insertPos = to || from2;
|
|
137058
|
+
let lastProgressUpdate = 0;
|
|
137059
|
+
let batchCount = 0;
|
|
137039
137060
|
function insertChunk(pos) {
|
|
137040
|
-
|
|
137061
|
+
if (cancelled) {
|
|
137062
|
+
return;
|
|
137063
|
+
}
|
|
137064
|
+
if (!editor || !editor.view || editor.isDestroyed) {
|
|
137065
|
+
console.warn("[分块插入] 编辑器已销毁,停止插入");
|
|
137066
|
+
cancelled = true;
|
|
137067
|
+
if (originalUpdate && editor) {
|
|
137068
|
+
editor.options.onUpdate = originalUpdate;
|
|
137069
|
+
}
|
|
137070
|
+
if (wasEditable && editor && !editor.isDestroyed) {
|
|
137071
|
+
editor.setEditable(true);
|
|
137072
|
+
}
|
|
137073
|
+
onComplete == null ? void 0 : onComplete();
|
|
137074
|
+
return;
|
|
137075
|
+
}
|
|
137076
|
+
const chunk = blocks.slice(index, index + actualChunkSize);
|
|
137041
137077
|
if (!chunk.length) {
|
|
137078
|
+
if (originalUpdate) {
|
|
137079
|
+
editor.options.onUpdate = originalUpdate;
|
|
137080
|
+
}
|
|
137081
|
+
if (wasEditable) {
|
|
137082
|
+
editor.setEditable(true);
|
|
137083
|
+
}
|
|
137084
|
+
editor.view.updateState(editor.state);
|
|
137085
|
+
const elapsed = performance.now() - startTime2;
|
|
137086
|
+
console.log(`[分块插入] 完成,总耗时: ${elapsed.toFixed(2)}ms,共 ${total} 个块`);
|
|
137042
137087
|
onProgress == null ? void 0 : onProgress(1);
|
|
137043
137088
|
onComplete == null ? void 0 : onComplete();
|
|
137044
137089
|
return;
|
|
137045
137090
|
}
|
|
137046
137091
|
try {
|
|
137092
|
+
if (!editor || !editor.view || editor.isDestroyed) {
|
|
137093
|
+
console.warn("[分块插入] 编辑器在插入过程中被销毁");
|
|
137094
|
+
cancelled = true;
|
|
137095
|
+
if (originalUpdate && editor) {
|
|
137096
|
+
editor.options.onUpdate = originalUpdate;
|
|
137097
|
+
}
|
|
137098
|
+
if (wasEditable && editor && !editor.isDestroyed) {
|
|
137099
|
+
editor.setEditable(true);
|
|
137100
|
+
}
|
|
137101
|
+
onComplete == null ? void 0 : onComplete();
|
|
137102
|
+
return;
|
|
137103
|
+
}
|
|
137047
137104
|
const beforeSize = editor.state.doc.content.size;
|
|
137048
137105
|
if (pos < 0 || pos > beforeSize) {
|
|
137049
137106
|
pos = beforeSize;
|
|
137050
137107
|
}
|
|
137051
|
-
|
|
137052
|
-
index
|
|
137053
|
-
|
|
137108
|
+
const isFirstChunk = index === 0;
|
|
137109
|
+
const isLastChunk = index + actualChunkSize >= total;
|
|
137110
|
+
batchCount++;
|
|
137111
|
+
if (total <= DIRECT_INSERT_THRESHOLD && isFirstChunk) {
|
|
137112
|
+
editor.chain().focus().insertContentAt(pos, chunk).run();
|
|
137113
|
+
} else if (isFirstChunk || isLastChunk) {
|
|
137114
|
+
editor.chain().focus().insertContentAt(pos, chunk).run();
|
|
137115
|
+
} else {
|
|
137116
|
+
editor.chain().insertContentAt(pos, chunk).run();
|
|
137117
|
+
}
|
|
137118
|
+
index += actualChunkSize;
|
|
137119
|
+
const now = performance.now();
|
|
137120
|
+
if (now - lastProgressUpdate > 100 || index >= total) {
|
|
137121
|
+
lastProgressUpdate = now;
|
|
137122
|
+
const elapsed = now - startTime2;
|
|
137123
|
+
console.log(`[分块进度] 批次 ${batchCount}/${totalBatches}, 已插入 ${index}/${total} 块, 耗时: ${elapsed.toFixed(2)}ms`);
|
|
137124
|
+
onProgress == null ? void 0 : onProgress(Math.min(index / total, 1));
|
|
137125
|
+
}
|
|
137054
137126
|
let nextPos;
|
|
137055
137127
|
if (isPaste) {
|
|
137056
137128
|
const afterSize = editor.state.doc.content.size;
|
|
@@ -137063,17 +137135,43 @@ function loadContentInChunks({
|
|
|
137063
137135
|
} else {
|
|
137064
137136
|
nextPos = editor.state.doc.content.size;
|
|
137065
137137
|
}
|
|
137066
|
-
if (
|
|
137067
|
-
|
|
137138
|
+
if (total <= DIRECT_INSERT_THRESHOLD) {
|
|
137139
|
+
timeoutId = setTimeout(() => insertChunk(nextPos), 0);
|
|
137068
137140
|
} else {
|
|
137069
|
-
|
|
137141
|
+
timeoutId = requestAnimationFrame(() => insertChunk(nextPos));
|
|
137070
137142
|
}
|
|
137071
137143
|
} catch (error2) {
|
|
137072
|
-
console.
|
|
137144
|
+
console.warn("[分块插入] 插入失败:", error2.message || error2);
|
|
137145
|
+
cancelled = true;
|
|
137146
|
+
if (originalUpdate && editor) {
|
|
137147
|
+
editor.options.onUpdate = originalUpdate;
|
|
137148
|
+
}
|
|
137149
|
+
if (wasEditable && editor && !editor.isDestroyed) {
|
|
137150
|
+
editor.setEditable(true);
|
|
137151
|
+
}
|
|
137073
137152
|
onComplete == null ? void 0 : onComplete();
|
|
137074
137153
|
}
|
|
137075
137154
|
}
|
|
137076
137155
|
insertChunk(insertPos);
|
|
137156
|
+
return {
|
|
137157
|
+
cancel: () => {
|
|
137158
|
+
cancelled = true;
|
|
137159
|
+
if (timeoutId) {
|
|
137160
|
+
try {
|
|
137161
|
+
clearTimeout(timeoutId);
|
|
137162
|
+
cancelAnimationFrame(timeoutId);
|
|
137163
|
+
} catch (e) {
|
|
137164
|
+
}
|
|
137165
|
+
timeoutId = null;
|
|
137166
|
+
}
|
|
137167
|
+
if (originalUpdate && editor && !editor.isDestroyed) {
|
|
137168
|
+
editor.options.onUpdate = originalUpdate;
|
|
137169
|
+
}
|
|
137170
|
+
if (wasEditable && editor && !editor.isDestroyed) {
|
|
137171
|
+
editor.setEditable(true);
|
|
137172
|
+
}
|
|
137173
|
+
}
|
|
137174
|
+
};
|
|
137077
137175
|
}
|
|
137078
137176
|
function extend(destination) {
|
|
137079
137177
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -137906,6 +138004,13 @@ const _sfc_main$b = {
|
|
|
137906
138004
|
}
|
|
137907
138005
|
};
|
|
137908
138006
|
onBeforeUnmount(() => {
|
|
138007
|
+
if (currentChunkLoader && currentChunkLoader.cancel) {
|
|
138008
|
+
currentChunkLoader.cancel();
|
|
138009
|
+
currentChunkLoader = null;
|
|
138010
|
+
}
|
|
138011
|
+
if (sse) {
|
|
138012
|
+
sse.close();
|
|
138013
|
+
}
|
|
137909
138014
|
document.removeEventListener("mousedown", handleClickOutside);
|
|
137910
138015
|
});
|
|
137911
138016
|
const aiInput = ref(null);
|
|
@@ -138037,6 +138142,7 @@ const _sfc_main$b = {
|
|
|
138037
138142
|
scene.value = "text-to-text";
|
|
138038
138143
|
send2();
|
|
138039
138144
|
};
|
|
138145
|
+
let currentChunkLoader = null;
|
|
138040
138146
|
const insert = () => {
|
|
138041
138147
|
if (scene.value == "text-to-image") {
|
|
138042
138148
|
let arr = imageArr.value.filter((item) => item.checked).map((item) => item.img);
|
|
@@ -138050,16 +138156,20 @@ const _sfc_main$b = {
|
|
|
138050
138156
|
const { to: to2 } = props.editor.state.selection;
|
|
138051
138157
|
console.log(answer.value, "==============");
|
|
138052
138158
|
props.editor.chain().focus().setTextSelection(to2);
|
|
138053
|
-
loadContentInChunks({
|
|
138159
|
+
currentChunkLoader = loadContentInChunks({
|
|
138054
138160
|
editor: props.editor,
|
|
138055
138161
|
content: answer.value,
|
|
138056
138162
|
type: "html",
|
|
138057
138163
|
extensions: commonExtensions(),
|
|
138058
|
-
chunkSize:
|
|
138164
|
+
chunkSize: 10,
|
|
138165
|
+
// AI 生成内容通常较小,使用 10 个块即可
|
|
138059
138166
|
onProgress: (p) => {
|
|
138060
138167
|
if (p > 0) {
|
|
138061
138168
|
emit("toggleLoading", false);
|
|
138062
138169
|
}
|
|
138170
|
+
},
|
|
138171
|
+
onComplete: () => {
|
|
138172
|
+
currentChunkLoader = null;
|
|
138063
138173
|
}
|
|
138064
138174
|
});
|
|
138065
138175
|
}
|
|
@@ -138341,7 +138451,7 @@ const _sfc_main$b = {
|
|
|
138341
138451
|
};
|
|
138342
138452
|
}
|
|
138343
138453
|
};
|
|
138344
|
-
const AiComponent = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
138454
|
+
const AiComponent = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-8ffeb4e4"]]);
|
|
138345
138455
|
const _sfc_main$a = {
|
|
138346
138456
|
__name: "AiAssistantView",
|
|
138347
138457
|
props: {
|
|
@@ -152283,21 +152393,32 @@ const _sfc_main = {
|
|
|
152283
152393
|
linkRef.value.open();
|
|
152284
152394
|
};
|
|
152285
152395
|
ref(0);
|
|
152396
|
+
const activeChunkLoaders = [];
|
|
152286
152397
|
onMounted(() => {
|
|
152287
152398
|
if (props.content) {
|
|
152288
152399
|
isLoading.value = true;
|
|
152289
|
-
loadContentInChunks({
|
|
152400
|
+
const loader = loadContentInChunks({
|
|
152290
152401
|
editor,
|
|
152291
152402
|
content: props.content,
|
|
152292
152403
|
type: "html",
|
|
152293
152404
|
extensions: commonExtensions(),
|
|
152294
|
-
chunkSize:
|
|
152405
|
+
chunkSize: 20,
|
|
152406
|
+
// 🚀 性能优化:使用较小批次避免主线程阻塞(函数内部会自动限制为 20-30)
|
|
152295
152407
|
onProgress: (p) => {
|
|
152296
152408
|
if (p > 0) {
|
|
152297
152409
|
isLoading.value = false;
|
|
152298
152410
|
}
|
|
152411
|
+
},
|
|
152412
|
+
onComplete: () => {
|
|
152413
|
+
const index = activeChunkLoaders.indexOf(loader);
|
|
152414
|
+
if (index > -1) {
|
|
152415
|
+
activeChunkLoaders.splice(index, 1);
|
|
152416
|
+
}
|
|
152299
152417
|
}
|
|
152300
152418
|
});
|
|
152419
|
+
if (loader) {
|
|
152420
|
+
activeChunkLoaders.push(loader);
|
|
152421
|
+
}
|
|
152301
152422
|
}
|
|
152302
152423
|
window.addEventListener("tiptap-image-click", onImageClick);
|
|
152303
152424
|
document.addEventListener("click", handleDocumentClick);
|
|
@@ -152318,18 +152439,28 @@ const _sfc_main = {
|
|
|
152318
152439
|
try {
|
|
152319
152440
|
isLoading.value = true;
|
|
152320
152441
|
editor.commands.clearContent();
|
|
152321
|
-
loadContentInChunks({
|
|
152442
|
+
const loader = loadContentInChunks({
|
|
152322
152443
|
editor,
|
|
152323
152444
|
content: sourceCode.value,
|
|
152324
152445
|
type: "html",
|
|
152325
152446
|
extensions: commonExtensions(),
|
|
152326
|
-
chunkSize:
|
|
152447
|
+
chunkSize: 20,
|
|
152448
|
+
// 🚀 性能优化:使用较小批次避免主线程阻塞
|
|
152327
152449
|
onProgress: (p) => {
|
|
152328
152450
|
if (p > 0) {
|
|
152329
152451
|
isLoading.value = false;
|
|
152330
152452
|
}
|
|
152453
|
+
},
|
|
152454
|
+
onComplete: () => {
|
|
152455
|
+
const index = activeChunkLoaders.indexOf(loader);
|
|
152456
|
+
if (index > -1) {
|
|
152457
|
+
activeChunkLoaders.splice(index, 1);
|
|
152458
|
+
}
|
|
152331
152459
|
}
|
|
152332
152460
|
});
|
|
152461
|
+
if (loader) {
|
|
152462
|
+
activeChunkLoaders.push(loader);
|
|
152463
|
+
}
|
|
152333
152464
|
sourceDialogVisible.value = false;
|
|
152334
152465
|
ElMessage.success("源代码已应用");
|
|
152335
152466
|
} catch (error2) {
|
|
@@ -152341,6 +152472,12 @@ const _sfc_main = {
|
|
|
152341
152472
|
isLoading.value = data;
|
|
152342
152473
|
};
|
|
152343
152474
|
onBeforeUnmount(() => {
|
|
152475
|
+
activeChunkLoaders.forEach((loader) => {
|
|
152476
|
+
if (loader && loader.cancel) {
|
|
152477
|
+
loader.cancel();
|
|
152478
|
+
}
|
|
152479
|
+
});
|
|
152480
|
+
activeChunkLoaders.length = 0;
|
|
152344
152481
|
if (editor) {
|
|
152345
152482
|
editor.destroy();
|
|
152346
152483
|
}
|
|
@@ -152497,7 +152634,7 @@ const _sfc_main = {
|
|
|
152497
152634
|
};
|
|
152498
152635
|
}
|
|
152499
152636
|
};
|
|
152500
|
-
const TiptapVue = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
152637
|
+
const TiptapVue = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b4519289"]]);
|
|
152501
152638
|
const components = [
|
|
152502
152639
|
{
|
|
152503
152640
|
name: "TiptapVue",
|