@kg-ui/kg-ui-plus 0.2.2 → 0.2.3

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.
Files changed (76) hide show
  1. package/dist/es/directives/heighlight/index.mjs +27 -27
  2. package/dist/es/home/LFilter/FilterHead.vue.mjs +1 -1
  3. package/dist/es/kgCopilot/copilotCanvas/InitWrap.vue2.mjs +1 -1
  4. package/dist/es/kgCopilot/copilotCanvas/codeViewer/CodeTypewriter.vue.mjs +154 -0
  5. package/dist/es/kgCopilot/copilotCanvas/codeViewer/CodeTypewriter.vue2.mjs +4 -0
  6. package/dist/es/kgCopilot/copilotCanvas/codeViewer/index.vue.mjs +27 -0
  7. package/dist/es/kgCopilot/copilotCanvas/codeViewer/index.vue2.mjs +4 -0
  8. package/dist/es/kgCopilot/copilotCanvas/docViewer/index.vue.mjs +2 -2
  9. package/dist/es/kgCopilot/copilotCanvas/docViewer/wpsFileViewer/wpsAi/AiInput.vue2.mjs +1 -1
  10. package/dist/es/kgCopilot/copilotCanvas/index.vue.mjs +1 -1
  11. package/dist/es/kgCopilot/copilotCanvas/index.vue2.mjs +46 -6
  12. package/dist/es/kgCopilot/copilotCanvas/index.vue3.mjs +2 -2
  13. package/dist/es/kgCopilot/copilotDialog/CopiContent/SuggestMessage.vue2.mjs +1 -1
  14. package/dist/es/kgCopilot/copilotDialog/CopiContent/messageParse/codeBox.vue.mjs +102 -0
  15. package/dist/es/kgCopilot/copilotDialog/CopiContent/messageParse/codeBox.vue2.mjs +4 -0
  16. package/dist/es/kgCopilot/copilotDialog/CopiContent/messageParse/index.vue.mjs +1 -1
  17. package/dist/es/kgCopilot/copilotDialog/CopiContent/messageParse/index.vue2.mjs +19 -2
  18. package/dist/es/kgCopilot/copilotDialog/CopiContent/messageParse/index.vue3.mjs +2 -2
  19. package/dist/es/kgCopilot/copilotDialog/CopiContent/messageParse/readMd.vue2.mjs +3 -3
  20. package/dist/es/kgCopilot/copilotDialog/CopiContent/messageParse/readStreamMd.vue2.mjs +2 -2
  21. package/dist/es/kgCopilot/copilotDialog/CopiContent/messageParse/reportBox.vue.mjs +2 -2
  22. package/dist/es/kgCopilot/copilotDialog/CopiContent/messageParse/reportBox.vue2.mjs +2 -2
  23. package/dist/es/kgCopilot/copilotDialog/CopiFooter/SearchInput/InputFootTool.vue2.mjs +1 -1
  24. package/dist/es/kgCopilot/copilotDialog/CopiFooter/SearchInput/SelectPluginByKey.vue2.mjs +1 -1
  25. package/dist/es/kgCopilot/copilotDialog/CopiFooter/SearchInput/index.vue2.mjs +1 -1
  26. package/dist/es/kgCopilot/copilotHistory/index.vue2.mjs +5 -5
  27. package/dist/es/kgCopilot/index.vue2.mjs +3 -3
  28. package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/code-s-slash-fill.mjs +8 -0
  29. package/dist/es/node_modules/.pnpm/{dompurify@3.0.10 → dompurify@3.2.6}/node_modules/dompurify/dist/purify.es.mjs +145 -103
  30. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/apache.mjs +4 -0
  31. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/bash.mjs +20 -2
  32. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/basic.mjs +7 -1
  33. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/c.mjs +19 -4
  34. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/css.mjs +214 -8
  35. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/dart.mjs +10 -2
  36. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/erlang.mjs +48 -6
  37. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/go.mjs +23 -3
  38. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/java.mjs +3 -1
  39. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/javascript.mjs +15 -11
  40. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/json.mjs +1 -0
  41. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/markdown.mjs +7 -1
  42. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/php.mjs +16 -2
  43. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/python.mjs +3 -1
  44. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/ruby.mjs +1 -1
  45. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/stylus.mjs +214 -8
  46. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/swift.mjs +60 -14
  47. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/typescript.mjs +45 -18
  48. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/lib/core.mjs +8 -8
  49. package/dist/es/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/styles/github.css.mjs +4 -0
  50. package/dist/es/node_modules/.pnpm/{marked@12.0.1 → marked@12.0.2}/node_modules/marked/lib/marked.esm.mjs +2 -1
  51. package/dist/es/store/modules/copilot.mjs +69 -19
  52. package/dist/es/style.css +11 -1
  53. package/package.json +2 -2
  54. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/arrow-left.mjs +0 -0
  55. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/arrow-right.mjs +0 -0
  56. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/check.mjs +0 -0
  57. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/close.mjs +0 -0
  58. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/copy-document.mjs +0 -0
  59. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/delete.mjs +0 -0
  60. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/edit.mjs +0 -0
  61. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/folder-opened.mjs +0 -0
  62. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/loading.mjs +0 -0
  63. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/notebook.mjs +0 -0
  64. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/promotion.mjs +0 -0
  65. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/reading.mjs +0 -0
  66. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/refresh.mjs +0 -0
  67. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/search.mjs +0 -0
  68. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/core.mjs +0 -0
  69. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/django.mjs +0 -0
  70. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/dns.mjs +0 -0
  71. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/dos.mjs +0 -0
  72. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/dust.mjs +0 -0
  73. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/http.mjs +0 -0
  74. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/nginx.mjs +0 -0
  75. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/xml.mjs +0 -0
  76. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/styles/sunburst.css.mjs +0 -0
@@ -1,30 +1,30 @@
1
- import HighlightJS from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/lib/core.mjs";
2
- import "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/styles/sunburst.css.mjs";
3
- import python from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/python.mjs";
4
- import java from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/java.mjs";
5
- import c from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/c.mjs";
6
- import javascript from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/javascript.mjs";
7
- import typescript from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/typescript.mjs";
8
- import swift from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/swift.mjs";
9
- import stylus from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/stylus.mjs";
10
- import php from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/php.mjs";
11
- import nginx from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/nginx.mjs";
12
- import json from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/json.mjs";
13
- import go from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/go.mjs";
14
- import http from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/http.mjs";
15
- import erlang from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/erlang.mjs";
16
- import ruby from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/ruby.mjs";
17
- import dust from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dust.mjs";
18
- import dos from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dos.mjs";
19
- import dns from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dns.mjs";
20
- import django from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/django.mjs";
21
- import dart from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dart.mjs";
22
- import markdown from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/markdown.mjs";
23
- import css from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/css.mjs";
24
- import bash from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/bash.mjs";
25
- import basic from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/basic.mjs";
26
- import xml from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/xml.mjs";
27
- import apache from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/apache.mjs";
1
+ import HighlightJS from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.mjs";
2
+ import "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/styles/sunburst.css.mjs";
3
+ import python from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python.mjs";
4
+ import java from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/java.mjs";
5
+ import c from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/c.mjs";
6
+ import javascript from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/javascript.mjs";
7
+ import typescript from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/typescript.mjs";
8
+ import swift from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/swift.mjs";
9
+ import stylus from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/stylus.mjs";
10
+ import php from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/php.mjs";
11
+ import nginx from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/nginx.mjs";
12
+ import json from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/json.mjs";
13
+ import go from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/go.mjs";
14
+ import http from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/http.mjs";
15
+ import erlang from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/erlang.mjs";
16
+ import ruby from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ruby.mjs";
17
+ import dust from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dust.mjs";
18
+ import dos from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dos.mjs";
19
+ import dns from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dns.mjs";
20
+ import django from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/django.mjs";
21
+ import dart from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dart.mjs";
22
+ import markdown from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/markdown.mjs";
23
+ import css from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/css.mjs";
24
+ import bash from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/bash.mjs";
25
+ import basic from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/basic.mjs";
26
+ import xml from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/xml.mjs";
27
+ import apache from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/apache.mjs";
28
28
  HighlightJS.registerLanguage("python", python);
29
29
  HighlightJS.registerLanguage("java", java);
30
30
  HighlightJS.registerLanguage("c", c);
@@ -2,7 +2,7 @@ import { defineComponent, computed, resolveComponent, openBlock, createElementBl
2
2
  import { useFilterStoreHook } from "../../store/modules/filters.mjs";
3
3
  import { storeToRefs } from "pinia";
4
4
  import { isAllEmpty as B } from "../../node_modules/.pnpm/@pureadmin_utils@1.8.5_vue@3.2.45/node_modules/@pureadmin/utils/dist/index.mjs";
5
- import data from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/close.mjs";
5
+ import data from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/close.mjs";
6
6
  import data$1 from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/arrow-down-s-line.mjs";
7
7
  import data$2 from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/arrow-up-s-line.mjs";
8
8
  const _hoisted_1 = { class: "flex justify-between p-1 bg-white text-xs text-[#666]" };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, resolveComponent, openBlock, createElementBlock, createElementVNode, createVNode, unref, pushScopeId, popScopeId } from "vue";
2
2
  import _imports_0 from "../../assets/empty.png.mjs";
3
- import data from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/folder-opened.mjs";
3
+ import data from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/folder-opened.mjs";
4
4
  const _withScopeId = (n) => (pushScopeId("data-v-c5041311"), n = n(), popScopeId(), n);
5
5
  const _hoisted_1 = { class: "flex flex-col justify-center flex-wrap items-center" };
6
6
  const _hoisted_2 = { class: "flex justify-center items-center folder" };
@@ -0,0 +1,154 @@
1
+ import { defineComponent, ref, watch, nextTick, onBeforeUnmount, openBlock, createElementBlock, createTextVNode, Fragment, renderList, createElementVNode, toDisplayString } from "vue";
2
+ import HighlightJS from "../../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.mjs";
3
+ import javascript from "../../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/javascript.mjs";
4
+ import typescript from "../../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/typescript.mjs";
5
+ import python from "../../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python.mjs";
6
+ import css from "../../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/css.mjs";
7
+ import xml from "../../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/xml.mjs";
8
+ import go from "../../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/go.mjs";
9
+ import java from "../../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/java.mjs";
10
+ import "../../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/styles/github.css.mjs";
11
+ const _hoisted_1 = { class: "text-sm font-mono p-4 m-0 whitespace-pre-wrap break-words" };
12
+ const _hoisted_2 = { class: "w-8 text-right select-none pr-4 text-gray-400" };
13
+ const _hoisted_3 = ["innerHTML"];
14
+ const _sfc_main = /* @__PURE__ */ defineComponent({
15
+ __name: "CodeTypewriter",
16
+ props: {
17
+ code: null,
18
+ language: null,
19
+ speed: null,
20
+ isPrint: { type: Boolean }
21
+ },
22
+ emits: ["done"],
23
+ setup(__props, { emit: emits }) {
24
+ const props = __props;
25
+ HighlightJS.registerLanguage("javascript", javascript);
26
+ HighlightJS.registerLanguage("typescript", typescript);
27
+ HighlightJS.registerLanguage("python", python);
28
+ HighlightJS.registerLanguage("css", css);
29
+ HighlightJS.registerLanguage("html", xml);
30
+ HighlightJS.registerLanguage("go", go);
31
+ HighlightJS.registerLanguage("java", java);
32
+ const speed = props.speed ?? 30;
33
+ const visibleLines = ref([]);
34
+ const printedLineCount = ref(0);
35
+ let fullTextLines = [];
36
+ let highlightedLines = [];
37
+ let lineIndex = 0;
38
+ let charIndex = 0;
39
+ let timerId;
40
+ function sliceByTextCount(htmlStr, count) {
41
+ const parser = new DOMParser();
42
+ const doc = parser.parseFromString(`<div>${htmlStr}</div>`, "text/html");
43
+ const root = doc.body.firstChild;
44
+ let currentCount = 0;
45
+ function traverse(node) {
46
+ if (currentCount >= count)
47
+ return null;
48
+ if (node.nodeType === Node.TEXT_NODE) {
49
+ const text = node.textContent || "";
50
+ if (currentCount + text.length > count) {
51
+ const truncated = text.slice(0, count - currentCount);
52
+ currentCount = count;
53
+ return document.createTextNode(truncated);
54
+ } else {
55
+ currentCount += text.length;
56
+ return document.createTextNode(text);
57
+ }
58
+ } else if (node.nodeType === Node.ELEMENT_NODE) {
59
+ const el = node;
60
+ const newEl = document.createElement(el.tagName);
61
+ for (const attr of el.attributes) {
62
+ newEl.setAttribute(attr.name, attr.value);
63
+ }
64
+ for (const child of el.childNodes) {
65
+ const result = traverse(child);
66
+ if (result)
67
+ newEl.appendChild(result);
68
+ if (currentCount >= count)
69
+ break;
70
+ }
71
+ return newEl;
72
+ }
73
+ return null;
74
+ }
75
+ const slicedNode = traverse(root);
76
+ const container = document.createElement("div");
77
+ if (slicedNode)
78
+ container.appendChild(slicedNode);
79
+ return container.innerHTML;
80
+ }
81
+ function startTyping(fromLine) {
82
+ lineIndex = fromLine;
83
+ charIndex = 0;
84
+ const type = () => {
85
+ const htmlLine = highlightedLines[lineIndex];
86
+ const textLine = fullTextLines[lineIndex];
87
+ if (!visibleLines.value[lineIndex])
88
+ visibleLines.value[lineIndex] = "";
89
+ charIndex++;
90
+ visibleLines.value[lineIndex] = sliceByTextCount(htmlLine, charIndex);
91
+ if (charIndex >= textLine.length) {
92
+ printedLineCount.value++;
93
+ lineIndex++;
94
+ charIndex = 0;
95
+ }
96
+ if (lineIndex < highlightedLines.length) {
97
+ timerId = window.setTimeout(type, speed);
98
+ } else {
99
+ emits("done");
100
+ }
101
+ };
102
+ type();
103
+ }
104
+ watch(
105
+ () => props.code,
106
+ async (newCode) => {
107
+ clearTimeout(timerId);
108
+ const lines = newCode.replace(/\r\n/g, "\n").split("\n");
109
+ const highlights = lines.map(
110
+ (line) => line.trim() ? HighlightJS.highlight(line, { language: props.language || "javascript" }).value : "&nbsp;"
111
+ );
112
+ fullTextLines = lines;
113
+ highlightedLines = highlights;
114
+ await nextTick();
115
+ visibleLines.value = [...visibleLines.value];
116
+ for (let i = visibleLines.value.length; i < highlights.length; i++) {
117
+ visibleLines.value[i] = "";
118
+ }
119
+ if (props.isPrint) {
120
+ startTyping(printedLineCount.value);
121
+ } else {
122
+ visibleLines.value = [...highlights];
123
+ printedLineCount.value = highlights.length;
124
+ }
125
+ },
126
+ { immediate: true }
127
+ );
128
+ onBeforeUnmount(() => clearTimeout(timerId));
129
+ return (_ctx, _cache) => {
130
+ return openBlock(), createElementBlock("pre", _hoisted_1, [
131
+ createTextVNode(" "),
132
+ (openBlock(true), createElementBlock(Fragment, null, renderList(visibleLines.value, (line, index) => {
133
+ return openBlock(), createElementBlock("div", {
134
+ key: index,
135
+ class: "flex items-start"
136
+ }, [
137
+ createTextVNode("\n "),
138
+ createElementVNode("span", _hoisted_2, toDisplayString(index + 1), 1),
139
+ createTextVNode("\n "),
140
+ createElementVNode("code", {
141
+ class: "flex-1",
142
+ innerHTML: line
143
+ }, null, 8, _hoisted_3),
144
+ createTextVNode("\n ")
145
+ ]);
146
+ }), 128)),
147
+ createTextVNode("\n ")
148
+ ]);
149
+ };
150
+ }
151
+ });
152
+ export {
153
+ _sfc_main as default
154
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./CodeTypewriter.vue.mjs";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,27 @@
1
+ import { defineComponent, openBlock, createBlock } from "vue";
2
+ import _sfc_main$1 from "./CodeTypewriter.vue.mjs";
3
+ const _sfc_main = /* @__PURE__ */ defineComponent({
4
+ __name: "index",
5
+ props: {
6
+ code: null,
7
+ needPrint: { type: Boolean }
8
+ },
9
+ emits: ["printOk"],
10
+ setup(__props, { emit: emits }) {
11
+ function onDone() {
12
+ emits("printOk");
13
+ }
14
+ return (_ctx, _cache) => {
15
+ return openBlock(), createBlock(_sfc_main$1, {
16
+ code: __props.code,
17
+ language: "javascript",
18
+ speed: 30,
19
+ isPrint: __props.needPrint,
20
+ onDone
21
+ }, null, 8, ["code", "isPrint"]);
22
+ };
23
+ }
24
+ });
25
+ export {
26
+ _sfc_main as default
27
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./index.vue.mjs";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./index.vue2.mjs";
2
2
  import "./index.vue3.mjs";
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const wpsIndex = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-044d1ce3"]]);
4
+ const WpsIndex = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-044d1ce3"]]);
5
5
  export {
6
- wpsIndex as default
6
+ WpsIndex as default
7
7
  };
@@ -2,7 +2,7 @@ import { defineComponent, ref, computed, onMounted, resolveComponent, openBlock,
2
2
  import { storeToRefs } from "pinia";
3
3
  import { onClickOutside } from "../../../../../node_modules/.pnpm/@vueuse_core@9.13.0_vue@3.2.45/node_modules/@vueuse/core/index.mjs";
4
4
  import { useCopilotStoreHook, aiBarBtnType, wpsAiOpt } from "../../../../../store/modules/copilot.mjs";
5
- import data from "../../../../../node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/refresh.mjs";
5
+ import data from "../../../../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/refresh.mjs";
6
6
  const _withScopeId = (n) => (pushScopeId("data-v-be2025bf"), n = n(), popScopeId(), n);
7
7
  const _hoisted_1 = { class: "textarea overflow-y-auto text-gray-800 text-base border-2 border-blue-500 rounded-xl p-3 mb-2 font-serif select-text" };
8
8
  const _hoisted_2 = { class: "flex justify-between items-center mt-4" };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./index.vue2.mjs";
2
2
  import "./index.vue3.mjs";
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const CopiCanvas = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-18e6109e"]]);
4
+ const CopiCanvas = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-42ae1e66"]]);
5
5
  export {
6
6
  CopiCanvas as default
7
7
  };
@@ -1,9 +1,10 @@
1
- import { defineComponent, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, createVNode, toDisplayString, createCommentVNode, createBlock } from "vue";
1
+ import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, createVNode, toDisplayString, createCommentVNode, createBlock } from "vue";
2
2
  import { storeToRefs } from "pinia";
3
- import data from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/reading.mjs";
4
- import { useCopilotStoreHook } from "../../store/modules/copilot.mjs";
5
- import wpsIndex from "./docViewer/index.vue.mjs";
3
+ import WpsIndex from "./docViewer/index.vue.mjs";
4
+ import _sfc_main$1 from "./codeViewer/index.vue.mjs";
6
5
  import InitWrap from "./InitWrap.vue.mjs";
6
+ import data from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/reading.mjs";
7
+ import { useCopilotStoreHook, DataType } from "../../store/modules/copilot.mjs";
7
8
  import data$1 from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/share-forward-2-fill.mjs";
8
9
  import { getWpsShareCode } from "../../api/copilot.mjs";
9
10
  import { execCommand } from "../../utils/index.mjs";
@@ -27,7 +28,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
27
28
  },
28
29
  setup(__props) {
29
30
  const CopilotStore = useCopilotStoreHook();
30
- const { canvasVisible, previewFileUrl, successShowFile, fileId } = storeToRefs(CopilotStore);
31
+ const {
32
+ msgList,
33
+ canvasVisible,
34
+ canvasType,
35
+ canvasCodeMsgIndex,
36
+ previewFileUrl,
37
+ successShowFile,
38
+ fileId
39
+ } = storeToRefs(CopilotStore);
31
40
  const { changeCanvasVisible } = CopilotStore;
32
41
  const shareFile = async () => {
33
42
  const res = await getWpsShareCode(fileId.value);
@@ -39,6 +48,32 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
39
48
  message("获取分享码失败", { type: "error" });
40
49
  }
41
50
  };
51
+ const curCode = computed(() => {
52
+ let str = "";
53
+ const msgIndex = canvasCodeMsgIndex.value[0];
54
+ const subMsgIndex = canvasCodeMsgIndex.value[1];
55
+ if (msgIndex !== -1) {
56
+ str = msgList.value[msgIndex].msgs[subMsgIndex].content;
57
+ }
58
+ return str;
59
+ });
60
+ const needPrint = computed(() => {
61
+ let isNeed = true;
62
+ const msgIndex = canvasCodeMsgIndex.value[0];
63
+ const subMsgIndex = canvasCodeMsgIndex.value[1];
64
+ if (msgIndex !== -1) {
65
+ isNeed = msgList.value[msgIndex].msgs[subMsgIndex].needPrinting;
66
+ }
67
+ return isNeed;
68
+ });
69
+ const handleCodePrintOk = () => {
70
+ const msgIndex = canvasCodeMsgIndex.value[0];
71
+ const subMsgIndex = canvasCodeMsgIndex.value[1];
72
+ if (msgIndex !== -1) {
73
+ const obj = msgList.value[msgIndex].msgs[subMsgIndex];
74
+ obj.needPrinting = false;
75
+ }
76
+ };
42
77
  return (_ctx, _cache) => {
43
78
  const _component_IconifyIconOffline = resolveComponent("IconifyIconOffline");
44
79
  return openBlock(), createElementBlock("div", {
@@ -64,7 +99,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
64
99
  ])) : createCommentVNode("", true)
65
100
  ]),
66
101
  createElementVNode("div", _hoisted_6, [
67
- unref(previewFileUrl) ? (openBlock(), createBlock(wpsIndex, { key: 0 })) : (openBlock(), createBlock(InitWrap, { key: 1 }))
102
+ unref(canvasType) === unref(DataType).report && unref(previewFileUrl) ? (openBlock(), createBlock(WpsIndex, { key: 0 })) : unref(canvasType) === unref(DataType).report_code ? (openBlock(), createBlock(_sfc_main$1, {
103
+ key: 1,
104
+ code: unref(curCode),
105
+ needPrint: unref(needPrint),
106
+ onPrintOk: handleCodePrintOk
107
+ }, null, 8, ["code", "needPrint"])) : (openBlock(), createBlock(InitWrap, { key: 2 }))
68
108
  ])
69
109
  ])) : createCommentVNode("", true)
70
110
  ])
@@ -1,4 +1,4 @@
1
- const index_vue_vue_type_style_index_0_scoped_18e6109e_lang = "";
1
+ const index_vue_vue_type_style_index_0_scoped_42ae1e66_lang = "";
2
2
  export {
3
- index_vue_vue_type_style_index_0_scoped_18e6109e_lang as default
3
+ index_vue_vue_type_style_index_0_scoped_42ae1e66_lang as default
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, resolveComponent, unref, openBlock, createElementBlock, Fragment, renderList, createCommentVNode, createElementVNode, toDisplayString, createVNode } from "vue";
2
2
  import { storeToRefs } from "pinia";
3
- import data from "../../../node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/arrow-right.mjs";
3
+ import data from "../../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/arrow-right.mjs";
4
4
  import { useCopilotStoreHook } from "../../../store/modules/copilot.mjs";
5
5
  const _hoisted_1 = {
6
6
  key: 0,
@@ -0,0 +1,102 @@
1
+ import { onMounted, resolveComponent, openBlock, createElementBlock, createElementVNode, createBlock, unref, toDisplayString, withModifiers, withDirectives, vShow, createCommentVNode } from "vue";
2
+ import { urlDownload } from "../../../../utils/home.mjs";
3
+ import { useCopilotStoreHook, DataType } from "../../../../store/modules/copilot.mjs";
4
+ import { storeToRefs } from "pinia";
5
+ import data from "../../../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/loading.mjs";
6
+ import data$1 from "../../../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/code-s-slash-fill.mjs";
7
+ import "./codeBox.vue2.mjs";
8
+ import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.mjs";
9
+ const _hoisted_1 = { class: "file-content flex-1 p-4" };
10
+ const _hoisted_2 = { class: "flex items-center" };
11
+ const _hoisted_3 = { class: "h-4 w-4 flex items-center justify-center text-blue-500 mr-3" };
12
+ const _hoisted_4 = { class: "flex-1 min-w-0" };
13
+ const _hoisted_5 = { class: "text-sm font-medium text-gray-800 truncate" };
14
+ const _hoisted_6 = { class: "text-xs text-gray-500 mt-1" };
15
+ const _hoisted_7 = {
16
+ key: 0,
17
+ class: "border-t border-gray-200 bg-gray-50 flex justify-end space-x-2"
18
+ };
19
+ const _hoisted_8 = ["onClick"];
20
+ const _hoisted_9 = ["onClick"];
21
+ const _sfc_main = {
22
+ __name: "codeBox",
23
+ props: {
24
+ file_status: {
25
+ type: String,
26
+ default: "loading"
27
+ },
28
+ file_url: {
29
+ type: String,
30
+ default: ""
31
+ },
32
+ file_name: {
33
+ type: String,
34
+ default: ""
35
+ },
36
+ canvasCodeMsgIndex: {
37
+ type: Object
38
+ }
39
+ },
40
+ emits: ["printOk", "update:isPrinting"],
41
+ setup(__props, { emit: emits }) {
42
+ const props = __props;
43
+ const CopilotStore = useCopilotStoreHook();
44
+ const { fullscreen } = storeToRefs(CopilotStore);
45
+ const { openCanvasVisible, setCanvasCodeMsgIndex2 } = CopilotStore;
46
+ const downLoadFilde = () => {
47
+ urlDownload(props.file_url, props.file_name);
48
+ };
49
+ const preview = () => {
50
+ setCanvasCodeMsgIndex2(props.canvasCodeMsgIndex);
51
+ openCanvasVisible(DataType.report_code);
52
+ };
53
+ onMounted(() => {
54
+ openCanvasVisible(DataType.report_code);
55
+ emits("update:isPrinting", false);
56
+ emits("printOk");
57
+ });
58
+ return (_ctx, _cache) => {
59
+ const _component_IconifyIconOffline = resolveComponent("IconifyIconOffline");
60
+ return openBlock(), createElementBlock("div", {
61
+ class: "file-box bg-gray-50 rounded-lg border border-gray-200 hover:bg-blue-50 hover:border-blue-100 transition-colors duration-200 shadow-sm overflow-hidden flex flex-col",
62
+ onClick: preview
63
+ }, [
64
+ createElementVNode("div", _hoisted_1, [
65
+ createElementVNode("div", _hoisted_2, [
66
+ createElementVNode("div", _hoisted_3, [
67
+ __props.file_status === "loading" ? (openBlock(), createBlock(_component_IconifyIconOffline, {
68
+ key: 0,
69
+ class: "animate-spin h-4 w-4",
70
+ icon: unref(data)
71
+ }, null, 8, ["icon"])) : (openBlock(), createBlock(_component_IconifyIconOffline, {
72
+ key: 1,
73
+ class: "h-4 w-4",
74
+ icon: unref(data$1)
75
+ }, null, 8, ["icon"]))
76
+ ]),
77
+ createElementVNode("div", _hoisted_4, [
78
+ createElementVNode("p", _hoisted_5, toDisplayString(__props.file_status === "loading" ? "文件生成中" : __props.file_status === "success" ? __props.file_name : "文件异常"), 1),
79
+ createElementVNode("p", _hoisted_6, toDisplayString(__props.file_status === "loading" ? "请稍候,正在为您生成代码..." : __props.file_status === "success" ? "点击预览文件内容" : "服务器错误,请稍后再试"), 1)
80
+ ])
81
+ ])
82
+ ]),
83
+ __props.file_status === "success" ? (openBlock(), createElementBlock("div", _hoisted_7, [
84
+ createElementVNode("button", {
85
+ class: "download-btn px-3 py-1.5 text-sm font-medium rounded-md text-blue-600 hover:text-blue-800 hover:bg-blue-100 transition-colors",
86
+ onClick: withModifiers(downLoadFilde, ["stop"])
87
+ }, " 下载 ", 8, _hoisted_8),
88
+ withDirectives(createElementVNode("button", {
89
+ class: "download-btn px-3 py-1.5 text-sm font-medium rounded-md text-blue-600 hover:text-blue-800 hover:bg-blue-100 transition-colors",
90
+ onClick: withModifiers(preview, ["stop"])
91
+ }, " 预览 ", 8, _hoisted_9), [
92
+ [vShow, unref(fullscreen)]
93
+ ])
94
+ ])) : createCommentVNode("", true)
95
+ ]);
96
+ };
97
+ }
98
+ };
99
+ const CodeCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c69b406c"]]);
100
+ export {
101
+ CodeCard as default
102
+ };
@@ -0,0 +1,4 @@
1
+ const codeBox_vue_vue_type_style_index_0_scoped_c69b406c_lang = "";
2
+ export {
3
+ codeBox_vue_vue_type_style_index_0_scoped_c69b406c_lang as default
4
+ };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./index.vue2.mjs";
2
2
  import "./index.vue3.mjs";
3
3
  import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const MessageParse = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-32c6859b"]]);
4
+ const MessageParse = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fa415c57"]]);
5
5
  export {
6
6
  MessageParse as default
7
7
  };
@@ -5,6 +5,7 @@ import ReadStreamMd from "./readStreamMd.vue.mjs";
5
5
  import Edit from "./edit.vue.mjs";
6
6
  import FileBox from "./fileBox.vue.mjs";
7
7
  import ReportBox from "./reportBox.vue.mjs";
8
+ import CodeCard from "./codeBox.vue.mjs";
8
9
  import { storeToRefs } from "pinia";
9
10
  import { useVModel } from "../../../../node_modules/.pnpm/@vueuse_core@9.13.0_vue@3.2.45/node_modules/@vueuse/core/index.mjs";
10
11
  const _hoisted_1 = {
@@ -178,7 +179,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
178
179
  file_url: item.file_url,
179
180
  file_name: item.file_name,
180
181
  onPrintOk: printOk
181
- }, null, 8, ["file_status", "file_url", "file_name"])) : createCommentVNode("", true)
182
+ }, null, 8, ["file_status", "file_url", "file_name"])) : createCommentVNode("", true),
183
+ item.type === unref(DataType).report_code ? (openBlock(), createBlock(CodeCard, {
184
+ key: 5,
185
+ file_status: item.file_status,
186
+ file_url: item.file_url,
187
+ file_name: item.file_name,
188
+ canvasCodeMsgIndex: item.canvasCodeMsgIndex,
189
+ onPrintOk: printOk
190
+ }, null, 8, ["file_status", "file_url", "file_name", "canvasCodeMsgIndex"])) : createCommentVNode("", true)
182
191
  ], 64)) : createCommentVNode("", true),
183
192
  props.isPrinting && index === current.value - 1 && !item.needPrinting && current.value <= firstResIndex.value ? (openBlock(), createElementBlock("span", _hoisted_1)) : createCommentVNode("", true)
184
193
  ], 64);
@@ -218,7 +227,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
218
227
  file_status: item.file_status,
219
228
  file_url: item.file_url,
220
229
  file_name: item.file_name
221
- }, null, 8, ["file_status", "file_url", "file_name"])) : createCommentVNode("", true)
230
+ }, null, 8, ["file_status", "file_url", "file_name"])) : createCommentVNode("", true),
231
+ item.type === unref(DataType).report_code ? (openBlock(), createBlock(CodeCard, {
232
+ key: 4,
233
+ file_status: item.file_status,
234
+ file_url: item.file_url,
235
+ file_name: item.file_name,
236
+ canvasCodeMsgIndex: item.canvasCodeMsgIndex,
237
+ onPrintOk: printOk
238
+ }, null, 8, ["file_status", "file_url", "file_name", "canvasCodeMsgIndex"])) : createCommentVNode("", true)
222
239
  ], 64)) : createCommentVNode("", true),
223
240
  props.isPrinting && index === current.value - 1 && !item.needPrinting && current.value > firstResIndex.value ? (openBlock(), createElementBlock("span", _hoisted_2)) : createCommentVNode("", true)
224
241
  ], 64);
@@ -1,4 +1,4 @@
1
- const index_vue_vue_type_style_index_0_scoped_32c6859b_lang = "";
1
+ const index_vue_vue_type_style_index_0_scoped_fa415c57_lang = "";
2
2
  export {
3
- index_vue_vue_type_style_index_0_scoped_32c6859b_lang as default
3
+ index_vue_vue_type_style_index_0_scoped_fa415c57_lang as default
4
4
  };
@@ -1,11 +1,11 @@
1
1
  import { defineComponent, ref, computed, watch, onMounted, resolveComponent, resolveDirective, openBlock, createElementBlock, withDirectives, createElementVNode, unref, normalizeClass, normalizeStyle, createVNode, createCommentVNode, createBlock } from "vue";
2
- import purify from "../../../../node_modules/.pnpm/dompurify@3.0.10/node_modules/dompurify/dist/purify.es.mjs";
3
- import { marked } from "../../../../node_modules/.pnpm/marked@12.0.1/node_modules/marked/lib/marked.esm.mjs";
2
+ import purify from "../../../../node_modules/.pnpm/dompurify@3.2.6/node_modules/dompurify/dist/purify.es.mjs";
3
+ import { marked } from "../../../../node_modules/.pnpm/marked@12.0.2/node_modules/marked/lib/marked.esm.mjs";
4
4
  import isInCode from "./mdInCode.mjs";
5
5
  import { useCopilotStoreHook } from "../../../../store/modules/copilot.mjs";
6
6
  import { storeToRefs } from "pinia";
7
7
  import data$1 from "../../../../node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/check-square-fill.mjs";
8
- import data from "../../../../node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/copy-document.mjs";
8
+ import data from "../../../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/copy-document.mjs";
9
9
  const _hoisted_1 = ["innerHTML"];
10
10
  const _sfc_main = /* @__PURE__ */ defineComponent({
11
11
  __name: "readMd",
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, watch, onMounted, resolveComponent, resolveDirective, openBlock, createElementBlock, withDirectives, createElementVNode, unref, normalizeClass, normalizeStyle, createBlock, createCommentVNode } from "vue";
2
- import purify from "../../../../node_modules/.pnpm/dompurify@3.0.10/node_modules/dompurify/dist/purify.es.mjs";
3
- import { marked } from "../../../../node_modules/.pnpm/marked@12.0.1/node_modules/marked/lib/marked.esm.mjs";
2
+ import purify from "../../../../node_modules/.pnpm/dompurify@3.2.6/node_modules/dompurify/dist/purify.es.mjs";
3
+ import { marked } from "../../../../node_modules/.pnpm/marked@12.0.2/node_modules/marked/lib/marked.esm.mjs";
4
4
  import isInCode from "./mdInCode.mjs";
5
5
  import { useCopilotStoreHook } from "../../../../store/modules/copilot.mjs";
6
6
  import { storeToRefs } from "pinia";
@@ -4,7 +4,7 @@ import { urlDownload } from "../../../../utils/home.mjs";
4
4
  import { useCopilotStoreHook } from "../../../../store/modules/copilot.mjs";
5
5
  import { storeToRefs } from "pinia";
6
6
  import { downloadByWps } from "../../../../api/copilot.mjs";
7
- import data from "../../../../node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/loading.mjs";
7
+ import data from "../../../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/loading.mjs";
8
8
  import "./reportBox.vue2.mjs";
9
9
  import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.mjs";
10
10
  const _hoisted_1 = { class: "file-content flex-1 p-4" };
@@ -122,7 +122,7 @@ const _sfc_main = {
122
122
  };
123
123
  }
124
124
  };
125
- const ReportBox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-dc50eaa2"]]);
125
+ const ReportBox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b0f0b1f4"]]);
126
126
  export {
127
127
  ReportBox as default
128
128
  };
@@ -1,4 +1,4 @@
1
- const reportBox_vue_vue_type_style_index_0_scoped_dc50eaa2_lang = "";
1
+ const reportBox_vue_vue_type_style_index_0_scoped_b0f0b1f4_lang = "";
2
2
  export {
3
- reportBox_vue_vue_type_style_index_0_scoped_dc50eaa2_lang as default
3
+ reportBox_vue_vue_type_style_index_0_scoped_b0f0b1f4_lang as default
4
4
  };