@kg-ui/kg-ui-plus 0.1.30 → 0.1.32
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/es/KgCopilot/CopiCanvas/FilePreview.vue.mjs +7 -0
- package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue2.mjs +81 -0
- package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue3.mjs +4 -0
- package/dist/es/KgCopilot/CopiCanvas/FileSkeletion.vue.mjs +96 -0
- package/dist/es/KgCopilot/CopiCanvas/FileSkeletion.vue2.mjs +4 -0
- package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue.mjs +7 -0
- package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue2.mjs +41 -0
- package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue3.mjs +4 -0
- package/dist/es/KgCopilot/CopiCanvas/index.vue.mjs +7 -0
- package/dist/es/KgCopilot/CopiCanvas/index.vue2.mjs +52 -0
- package/dist/es/KgCopilot/CopiCanvas/index.vue3.mjs +4 -0
- package/dist/es/KgCopilot/CopiFooter/SearchInput/InputFootTool.vue.mjs +7 -0
- package/dist/es/KgCopilot/CopiFooter/SearchInput/InputFootTool.vue2.mjs +61 -0
- package/dist/es/KgCopilot/CopiFooter/SearchInput/InputFootTool.vue3.mjs +4 -0
- package/dist/es/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue2.mjs +1 -1
- package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue.mjs +1 -1
- package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue2.mjs +34 -22
- package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue3.mjs +2 -2
- package/dist/es/KgCopilot/CopiFooter/index.vue.mjs +1 -1
- package/dist/es/KgCopilot/CopiFooter/index.vue3.mjs +2 -2
- package/dist/es/KgCopilot/dialogue/SuggestMessage.vue.mjs +7 -0
- package/dist/es/KgCopilot/dialogue/SuggestMessage.vue2.mjs +50 -0
- package/dist/es/KgCopilot/dialogue/SuggestMessage.vue3.mjs +4 -0
- package/dist/es/KgCopilot/dialogue/index.vue.mjs +1 -1
- package/dist/es/KgCopilot/dialogue/index.vue2.mjs +10 -4
- package/dist/es/KgCopilot/dialogue/index.vue3.mjs +2 -2
- package/dist/es/KgCopilot/dialogue/messageParse/fileBox.vue.mjs +19 -5
- package/dist/es/KgCopilot/dialogue/messageParse/fileBox.vue2.mjs +2 -2
- package/dist/es/KgCopilot/dialogue/messageParse/readMd.vue2.mjs +1 -1
- package/dist/es/KgCopilot/historyRecord/index.vue.mjs +1 -1
- package/dist/es/KgCopilot/historyRecord/index.vue2.mjs +6 -6
- package/dist/es/KgCopilot/historyRecord/index.vue3.mjs +2 -2
- package/dist/es/KgCopilot/index.vue.mjs +1 -1
- package/dist/es/KgCopilot/index.vue2.mjs +62 -39
- package/dist/es/KgCopilot/index.vue3.mjs +2 -2
- package/dist/es/_virtual/_commonjs-dynamic-modules.mjs +6 -0
- package/dist/es/_virtual/jszip.min.mjs +13 -0
- package/dist/es/api/copilot.mjs +8 -0
- package/dist/es/assets/empty.png.mjs +4 -0
- package/dist/es/directives/heighlight/index.mjs +27 -27
- package/dist/es/home/LFilter/FilterHead.vue.mjs +1 -1
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/folder-opened.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/notebook.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/reading.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@vueuse_core@9.13.0_vue@3.2.45/node_modules/@vueuse/core/index.mjs +8 -1
- package/dist/es/node_modules/.pnpm/@vueuse_shared@9.13.0_vue@3.2.45/node_modules/@vueuse/shared/index.mjs +115 -2
- package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/actualApply.mjs +12 -0
- package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/functionApply.mjs +12 -0
- package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/functionCall.mjs +4 -0
- package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/index.mjs +17 -0
- package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/reflectApply.mjs +4 -0
- package/dist/es/node_modules/.pnpm/call-bound@1.0.3/node_modules/call-bound/index.mjs +18 -0
- package/dist/es/node_modules/.pnpm/docx-preview@0.3.3/node_modules/docx-preview/dist/docx-preview.mjs +3877 -0
- package/dist/es/node_modules/.pnpm/{dompurify@3.1.5 → dompurify@3.2.3}/node_modules/dompurify/dist/purify.es.mjs +78 -87
- package/dist/es/node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.mjs +37 -0
- package/dist/es/node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.mjs +12 -0
- package/dist/es/node_modules/.pnpm/es-object-atoms@1.0.0/node_modules/es-object-atoms/index.mjs +4 -0
- package/dist/es/node_modules/.pnpm/{get-intrinsic@1.2.4 → get-intrinsic@1.2.6}/node_modules/get-intrinsic/index.mjs +43 -24
- package/dist/es/node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.mjs +4 -0
- package/dist/es/node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.mjs +13 -0
- package/dist/es/node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.mjs +29 -0
- package/dist/es/node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.mjs +59 -0
- package/dist/es/node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.mjs +13 -5
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/dist/es/node_modules/.pnpm/jszip@3.10.1/node_modules/jszip/dist/jszip.min.mjs +2649 -0
- package/dist/es/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.mjs +4 -0
- package/dist/es/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.mjs +4 -0
- package/dist/es/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.mjs +4 -0
- package/dist/es/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.mjs +4 -0
- package/dist/es/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.mjs +4 -0
- package/dist/es/node_modules/.pnpm/{object-inspect@1.13.1 → object-inspect@1.13.3}/node_modules/object-inspect/index.mjs +17 -4
- package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/stringify.mjs +1 -1
- package/dist/es/node_modules/.pnpm/side-channel-list@1.0.0/node_modules/side-channel-list/index.mjs +92 -0
- package/dist/es/node_modules/.pnpm/side-channel-map@1.0.1/node_modules/side-channel-map/index.mjs +56 -0
- package/dist/es/node_modules/.pnpm/side-channel-weakmap@1.0.2/node_modules/side-channel-weakmap/index.mjs +74 -0
- package/dist/es/node_modules/.pnpm/side-channel@1.1.0/node_modules/side-channel/index.mjs +40 -0
- package/dist/es/store/modules/copilot.mjs +68 -8
- package/dist/es/style.css +1 -1
- package/dist/es/utils/http/index.mjs +1 -1
- package/package.json +3 -2
- package/dist/es/_virtual/index.mjs +0 -13
- package/dist/es/node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/callBound.mjs +0 -16
- package/dist/es/node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/index.mjs +0 -36
- package/dist/es/node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.mjs +0 -48
- package/dist/es/node_modules/.pnpm/es-define-property@1.0.0/node_modules/es-define-property/index.mjs +0 -22
- package/dist/es/node_modules/.pnpm/gopd@1.0.1/node_modules/gopd/index.mjs +0 -14
- package/dist/es/node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.mjs +0 -19
- package/dist/es/node_modules/.pnpm/has-proto@1.0.3/node_modules/has-proto/index.mjs +0 -11
- package/dist/es/node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/index.mjs +0 -21
- package/dist/es/node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/shams.mjs +0 -48
- package/dist/es/node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.mjs +0 -54
- package/dist/es/node_modules/.pnpm/side-channel@1.0.6/node_modules/side-channel/index.mjs +0 -115
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
- /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
@@ -0,0 +1,7 @@
|
|
1
|
+
import _sfc_main from "./FilePreview.vue2.mjs";
|
2
|
+
import "./FilePreview.vue3.mjs";
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
4
|
+
const FilePreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-db9ba1f6"]]);
|
5
|
+
export {
|
6
|
+
FilePreview as default
|
7
|
+
};
|
@@ -0,0 +1,81 @@
|
|
1
|
+
import { defineComponent, ref, watch, onMounted, onBeforeUnmount, openBlock, createElementBlock, withDirectives, createVNode, vShow, createElementVNode, normalizeStyle, toDisplayString } from "vue";
|
2
|
+
import { renderAsync } from "../../node_modules/.pnpm/docx-preview@0.3.3/node_modules/docx-preview/dist/docx-preview.mjs";
|
3
|
+
import { getDocxFileByUrl } from "../../api/copilot.mjs";
|
4
|
+
import { storeToRefs } from "pinia";
|
5
|
+
import { useCopilotStoreHook } from "../../store/modules/copilot.mjs";
|
6
|
+
import _sfc_main$1 from "./FileSkeletion.vue.mjs";
|
7
|
+
import { useThrottleFn } from "../../node_modules/.pnpm/@vueuse_shared@9.13.0_vue@3.2.45/node_modules/@vueuse/shared/index.mjs";
|
8
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
9
|
+
__name: "FilePreview",
|
10
|
+
setup(__props) {
|
11
|
+
const CopilotStore = useCopilotStoreHook();
|
12
|
+
const { previewFileUrl } = storeToRefs(CopilotStore);
|
13
|
+
const docPreviewRef = ref();
|
14
|
+
const docPreviewBoxRef = ref();
|
15
|
+
const result = ref("");
|
16
|
+
const zoom = ref(1);
|
17
|
+
const getZoom = useThrottleFn(() => {
|
18
|
+
const num = docPreviewBoxRef.value.clientWidth / 850;
|
19
|
+
zoom.value = num;
|
20
|
+
}, 100);
|
21
|
+
const loading = ref(false);
|
22
|
+
watch(
|
23
|
+
() => previewFileUrl.value,
|
24
|
+
(url) => {
|
25
|
+
if (!url)
|
26
|
+
return;
|
27
|
+
loading.value = true;
|
28
|
+
result.value = "";
|
29
|
+
getDocxFileByUrl(url).then((res) => {
|
30
|
+
const blob = res.data;
|
31
|
+
renderAsync(blob, docPreviewRef.value).then(() => {
|
32
|
+
getZoom();
|
33
|
+
loading.value = false;
|
34
|
+
}).catch(() => {
|
35
|
+
result.value = "解析失败";
|
36
|
+
loading.value = false;
|
37
|
+
});
|
38
|
+
}).catch(() => {
|
39
|
+
result.value = "获取失败";
|
40
|
+
loading.value = false;
|
41
|
+
});
|
42
|
+
},
|
43
|
+
{ immediate: true }
|
44
|
+
);
|
45
|
+
const resizeObserver = new ResizeObserver(() => {
|
46
|
+
getZoom();
|
47
|
+
});
|
48
|
+
onMounted(() => {
|
49
|
+
resizeObserver.observe(docPreviewBoxRef.value);
|
50
|
+
getZoom();
|
51
|
+
});
|
52
|
+
onBeforeUnmount(() => {
|
53
|
+
resizeObserver.disconnect();
|
54
|
+
});
|
55
|
+
return (_ctx, _cache) => {
|
56
|
+
return openBlock(), createElementBlock("div", {
|
57
|
+
ref_key: "docPreviewBoxRef",
|
58
|
+
ref: docPreviewBoxRef,
|
59
|
+
class: "preview-box"
|
60
|
+
}, [
|
61
|
+
withDirectives(createVNode(_sfc_main$1, null, null, 512), [
|
62
|
+
[vShow, loading.value]
|
63
|
+
]),
|
64
|
+
withDirectives(createElementVNode("div", {
|
65
|
+
ref_key: "docPreviewRef",
|
66
|
+
ref: docPreviewRef,
|
67
|
+
class: "preview",
|
68
|
+
style: normalizeStyle({ zoom: zoom.value })
|
69
|
+
}, null, 4), [
|
70
|
+
[vShow, !result.value && !loading.value]
|
71
|
+
]),
|
72
|
+
withDirectives(createElementVNode("div", { class: "err_result" }, toDisplayString(result.value), 513), [
|
73
|
+
[vShow, result.value]
|
74
|
+
])
|
75
|
+
], 512);
|
76
|
+
};
|
77
|
+
}
|
78
|
+
});
|
79
|
+
export {
|
80
|
+
_sfc_main as default
|
81
|
+
};
|
@@ -0,0 +1,96 @@
|
|
1
|
+
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList } from "vue";
|
2
|
+
const _hoisted_1 = { class: "flex justify-center mb-3" };
|
3
|
+
const _hoisted_2 = { style: { "display": "flex", "align-items": "center", "justify-items": "space-between" } };
|
4
|
+
const _hoisted_3 = { style: { "display": "flex", "align-items": "center", "justify-items": "space-between" } };
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
6
|
+
__name: "FileSkeletion",
|
7
|
+
setup(__props) {
|
8
|
+
const fileLoading = ref(true);
|
9
|
+
return (_ctx, _cache) => {
|
10
|
+
const _component_el_skeleton_item = resolveComponent("el-skeleton-item");
|
11
|
+
const _component_el_skeleton = resolveComponent("el-skeleton");
|
12
|
+
const _component_el_scrollbar = resolveComponent("el-scrollbar");
|
13
|
+
return openBlock(), createBlock(_component_el_scrollbar, {
|
14
|
+
height: "100%",
|
15
|
+
class: "p-5"
|
16
|
+
}, {
|
17
|
+
default: withCtx(() => [
|
18
|
+
createVNode(_component_el_skeleton, {
|
19
|
+
loading: fileLoading.value,
|
20
|
+
animated: "",
|
21
|
+
throttle: 500,
|
22
|
+
count: 1
|
23
|
+
}, {
|
24
|
+
template: withCtx(() => [
|
25
|
+
createElementVNode("div", _hoisted_1, [
|
26
|
+
createVNode(_component_el_skeleton_item, {
|
27
|
+
variant: "p",
|
28
|
+
style: { "width": "50%" }
|
29
|
+
})
|
30
|
+
]),
|
31
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(3, (index) => {
|
32
|
+
return createElementVNode("div", { key: index }, [
|
33
|
+
createElementVNode("div", _hoisted_2, [
|
34
|
+
createVNode(_component_el_skeleton_item, {
|
35
|
+
variant: "p",
|
36
|
+
style: { "margin-right": "16px" }
|
37
|
+
}),
|
38
|
+
createVNode(_component_el_skeleton_item, {
|
39
|
+
variant: "p",
|
40
|
+
style: { "width": "30%" }
|
41
|
+
})
|
42
|
+
]),
|
43
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(5, (index2) => {
|
44
|
+
return createVNode(_component_el_skeleton_item, {
|
45
|
+
key: index2,
|
46
|
+
variant: "p"
|
47
|
+
});
|
48
|
+
}), 64)),
|
49
|
+
createElementVNode("div", null, [
|
50
|
+
createVNode(_component_el_skeleton_item, {
|
51
|
+
variant: "p",
|
52
|
+
style: { "width": "50%" }
|
53
|
+
}),
|
54
|
+
createElementVNode("div", _hoisted_3, [
|
55
|
+
createVNode(_component_el_skeleton_item, {
|
56
|
+
variant: "p",
|
57
|
+
style: { "margin-right": "16px" }
|
58
|
+
}),
|
59
|
+
createVNode(_component_el_skeleton_item, {
|
60
|
+
variant: "p",
|
61
|
+
style: { "width": "30%" }
|
62
|
+
})
|
63
|
+
]),
|
64
|
+
createVNode(_component_el_skeleton_item, {
|
65
|
+
variant: "p",
|
66
|
+
style: { "width": "50%" }
|
67
|
+
}),
|
68
|
+
createVNode(_component_el_skeleton_item, {
|
69
|
+
variant: "p",
|
70
|
+
style: { "width": "30%" }
|
71
|
+
})
|
72
|
+
])
|
73
|
+
]);
|
74
|
+
}), 64)),
|
75
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(3, (index) => {
|
76
|
+
return createVNode(_component_el_skeleton_item, {
|
77
|
+
key: index,
|
78
|
+
variant: "p"
|
79
|
+
});
|
80
|
+
}), 64)),
|
81
|
+
createVNode(_component_el_skeleton_item, {
|
82
|
+
variant: "p",
|
83
|
+
style: { "width": "80%" }
|
84
|
+
})
|
85
|
+
]),
|
86
|
+
_: 1
|
87
|
+
}, 8, ["loading"])
|
88
|
+
]),
|
89
|
+
_: 1
|
90
|
+
});
|
91
|
+
};
|
92
|
+
}
|
93
|
+
});
|
94
|
+
export {
|
95
|
+
_sfc_main as default
|
96
|
+
};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import _sfc_main from "./InitWrap.vue2.mjs";
|
2
|
+
import "./InitWrap.vue3.mjs";
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
4
|
+
const InitWrap = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4aa11d50"]]);
|
5
|
+
export {
|
6
|
+
InitWrap as default
|
7
|
+
};
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { defineComponent, resolveComponent, openBlock, createElementBlock, createElementVNode, createVNode, unref, pushScopeId, popScopeId } from "vue";
|
2
|
+
import _imports_0 from "../../assets/empty.png.mjs";
|
3
|
+
import data from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/folder-opened.mjs";
|
4
|
+
const _withScopeId = (n) => (pushScopeId("data-v-4aa11d50"), n = n(), popScopeId(), n);
|
5
|
+
const _hoisted_1 = { class: "flex flex-col justify-center flex-wrap items-center" };
|
6
|
+
const _hoisted_2 = { class: "flex justify-center items-center folder" };
|
7
|
+
const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("h2", null, "文件预览", -1));
|
8
|
+
const _hoisted_4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "w-3/5 text-gray-500 my-3 text-center" }, [
|
9
|
+
/* @__PURE__ */ createElementVNode("span", null, " 您可以在这里预览并阅读AI报告文件,快开启您的对话吧!")
|
10
|
+
], -1));
|
11
|
+
const _hoisted_5 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("img", {
|
12
|
+
class: "my-5",
|
13
|
+
src: _imports_0,
|
14
|
+
alt: ""
|
15
|
+
}, null, -1));
|
16
|
+
const _hoisted_6 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "text-gray-500" }, [
|
17
|
+
/* @__PURE__ */ createElementVNode("span", null, " 暂无预览文件 ")
|
18
|
+
], -1));
|
19
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
20
|
+
__name: "InitWrap",
|
21
|
+
setup(__props) {
|
22
|
+
return (_ctx, _cache) => {
|
23
|
+
const _component_IconifyIconOffline = resolveComponent("IconifyIconOffline");
|
24
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
25
|
+
createElementVNode("div", _hoisted_2, [
|
26
|
+
createVNode(_component_IconifyIconOffline, {
|
27
|
+
class: "icon",
|
28
|
+
icon: unref(data)
|
29
|
+
}, null, 8, ["icon"])
|
30
|
+
]),
|
31
|
+
_hoisted_3,
|
32
|
+
_hoisted_4,
|
33
|
+
_hoisted_5,
|
34
|
+
_hoisted_6
|
35
|
+
]);
|
36
|
+
};
|
37
|
+
}
|
38
|
+
});
|
39
|
+
export {
|
40
|
+
_sfc_main as default
|
41
|
+
};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import _sfc_main from "./index.vue2.mjs";
|
2
|
+
import "./index.vue3.mjs";
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
4
|
+
const CopiCanvas = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0cc6a372"]]);
|
5
|
+
export {
|
6
|
+
CopiCanvas as default
|
7
|
+
};
|
@@ -0,0 +1,52 @@
|
|
1
|
+
import { defineComponent, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, createVNode, toDisplayString, createBlock, createCommentVNode } from "vue";
|
2
|
+
import { storeToRefs } from "pinia";
|
3
|
+
import data from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/reading.mjs";
|
4
|
+
import { useCopilotStoreHook } from "../../store/modules/copilot.mjs";
|
5
|
+
import FilePreview from "./FilePreview.vue.mjs";
|
6
|
+
import InitWrap from "./InitWrap.vue.mjs";
|
7
|
+
const _hoisted_1 = { class: "canvas-icon" };
|
8
|
+
const _hoisted_2 = { class: "canvas-content" };
|
9
|
+
const _hoisted_3 = {
|
10
|
+
key: 0,
|
11
|
+
style: { "height": "100%" }
|
12
|
+
};
|
13
|
+
const _hoisted_4 = { class: "flex justify-between p-4" };
|
14
|
+
const _hoisted_5 = { style: { "height": "calc(100% - 60px)" } };
|
15
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
16
|
+
__name: "index",
|
17
|
+
props: {
|
18
|
+
title: null
|
19
|
+
},
|
20
|
+
setup(__props) {
|
21
|
+
const CopilotStore = useCopilotStoreHook();
|
22
|
+
const { canvasVisible, previewFileUrl } = storeToRefs(CopilotStore);
|
23
|
+
const { changeCanvasVisible } = CopilotStore;
|
24
|
+
return (_ctx, _cache) => {
|
25
|
+
const _component_IconifyIconOffline = resolveComponent("IconifyIconOffline");
|
26
|
+
return openBlock(), createElementBlock("div", {
|
27
|
+
class: normalizeClass(["canvas-wrap", "ml-4", unref(canvasVisible) && "open-canvas-wrap"])
|
28
|
+
}, [
|
29
|
+
createElementVNode("div", _hoisted_1, [
|
30
|
+
createVNode(_component_IconifyIconOffline, {
|
31
|
+
class: "icon",
|
32
|
+
icon: unref(data),
|
33
|
+
onClick: unref(changeCanvasVisible)
|
34
|
+
}, null, 8, ["icon", "onClick"])
|
35
|
+
]),
|
36
|
+
createElementVNode("div", _hoisted_2, [
|
37
|
+
unref(canvasVisible) ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
38
|
+
createElementVNode("div", _hoisted_4, [
|
39
|
+
createElementVNode("h3", null, toDisplayString(__props.title), 1)
|
40
|
+
]),
|
41
|
+
createElementVNode("div", _hoisted_5, [
|
42
|
+
unref(previewFileUrl) ? (openBlock(), createBlock(FilePreview, { key: 0 })) : (openBlock(), createBlock(InitWrap, { key: 1 }))
|
43
|
+
])
|
44
|
+
])) : createCommentVNode("", true)
|
45
|
+
])
|
46
|
+
], 2);
|
47
|
+
};
|
48
|
+
}
|
49
|
+
});
|
50
|
+
export {
|
51
|
+
_sfc_main as default
|
52
|
+
};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import _sfc_main from "./InputFootTool.vue2.mjs";
|
2
|
+
import "./InputFootTool.vue3.mjs";
|
3
|
+
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
4
|
+
const InputFootTool = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8778d931"]]);
|
5
|
+
export {
|
6
|
+
InputFootTool as default
|
7
|
+
};
|
@@ -0,0 +1,61 @@
|
|
1
|
+
import { defineComponent, resolveComponent, openBlock, createElementBlock, unref, createBlock, withCtx, createElementVNode, normalizeClass, createVNode, createCommentVNode, Fragment, renderList, toDisplayString } from "vue";
|
2
|
+
import { storeToRefs } from "pinia";
|
3
|
+
import data from "../../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/reading.mjs";
|
4
|
+
import { useCopilotStoreHook } from "../../../store/modules/copilot.mjs";
|
5
|
+
import { useDebounceFn } from "../../../node_modules/.pnpm/@vueuse_shared@9.13.0_vue@3.2.45/node_modules/@vueuse/shared/index.mjs";
|
6
|
+
const _hoisted_1 = {
|
7
|
+
class: "bottom-left-controls",
|
8
|
+
style: { "margin-left": "8px" }
|
9
|
+
};
|
10
|
+
const _hoisted_2 = ["onClick"];
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
12
|
+
__name: "InputFootTool",
|
13
|
+
emits: ["addInputText"],
|
14
|
+
setup(__props, { emit }) {
|
15
|
+
const CopilotStore = useCopilotStoreHook();
|
16
|
+
const { setFullScreen } = CopilotStore;
|
17
|
+
const { fullscreen, isLittleCom } = storeToRefs(CopilotStore);
|
18
|
+
const textBtnList = ["AND", "OR", "NOT", "()", '""'];
|
19
|
+
const clickTextButton = (text) => {
|
20
|
+
emit("addInputText", text);
|
21
|
+
};
|
22
|
+
const changeFullscreen = useDebounceFn(() => {
|
23
|
+
setFullScreen(!fullscreen.value);
|
24
|
+
}, 200);
|
25
|
+
return (_ctx, _cache) => {
|
26
|
+
const _component_IconifyIconOffline = resolveComponent("IconifyIconOffline");
|
27
|
+
const _component_el_tooltip = resolveComponent("el-tooltip");
|
28
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
29
|
+
unref(isLittleCom) ? (openBlock(), createBlock(_component_el_tooltip, {
|
30
|
+
key: 0,
|
31
|
+
class: "box-item",
|
32
|
+
effect: "dark",
|
33
|
+
content: "点击此功能可预览文件并进入全屏模式"
|
34
|
+
}, {
|
35
|
+
default: withCtx(() => [
|
36
|
+
createElementVNode("button", {
|
37
|
+
class: normalizeClass(["text-button", [unref(fullscreen) && "active-button"]])
|
38
|
+
}, [
|
39
|
+
createVNode(_component_IconifyIconOffline, {
|
40
|
+
class: "icon",
|
41
|
+
icon: unref(data),
|
42
|
+
onClick: unref(changeFullscreen)
|
43
|
+
}, null, 8, ["icon", "onClick"])
|
44
|
+
], 2)
|
45
|
+
]),
|
46
|
+
_: 1
|
47
|
+
})) : createCommentVNode("", true),
|
48
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(textBtnList, (text) => {
|
49
|
+
return createElementVNode("button", {
|
50
|
+
key: text,
|
51
|
+
class: "text-button",
|
52
|
+
onClick: ($event) => clickTextButton(text)
|
53
|
+
}, toDisplayString(text), 9, _hoisted_2);
|
54
|
+
}), 64))
|
55
|
+
]);
|
56
|
+
};
|
57
|
+
}
|
58
|
+
});
|
59
|
+
export {
|
60
|
+
_sfc_main as default
|
61
|
+
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent, ref, watch, nextTick, resolveComponent, openBlock, createBlock, Transition, withCtx, withDirectives, createElementBlock, normalizeStyle, createElementVNode, Fragment, renderList, normalizeClass, toDisplayString, unref, createVNode, createCommentVNode } from "vue";
|
2
2
|
import { ClickOutside } from "element-plus";
|
3
|
-
import data from "../../../node_modules/.pnpm/@iconify-icons_ep@1.2.
|
3
|
+
import data from "../../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/check.mjs";
|
4
4
|
import { useCopilotStoreHook } from "../../../store/modules/copilot.mjs";
|
5
5
|
import { storeToRefs } from "pinia";
|
6
6
|
const _hoisted_1 = { class: "plugin-content" };
|
@@ -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 SearchInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const SearchInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-802c8083"]]);
|
5
5
|
export {
|
6
6
|
SearchInput as default
|
7
7
|
};
|
@@ -3,12 +3,13 @@ import { storeToRefs } from "pinia";
|
|
3
3
|
import NewTheme from "./NewTheme.vue.mjs";
|
4
4
|
import { filterPluginByPinyin } from "../../../utils/home.mjs";
|
5
5
|
import SelectPluginByKey from "./SelectPluginByKey.vue.mjs";
|
6
|
+
import InputFootTool from "./InputFootTool.vue.mjs";
|
6
7
|
import { useCopilotStoreHook } from "../../../store/modules/copilot.mjs";
|
7
8
|
import { plusParamToStr } from "../../../utils/copilot.mjs";
|
8
|
-
import data$2 from "../../../node_modules/.pnpm/@iconify-icons_ep@1.2.
|
9
|
+
import data$2 from "../../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/promotion.mjs";
|
9
10
|
import data from "../../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/braces-line.mjs";
|
10
11
|
import data$1 from "../../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/close-circle-line.mjs";
|
11
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
12
|
+
const _withScopeId = (n) => (pushScopeId("data-v-802c8083"), n = n(), popScopeId(), n);
|
12
13
|
const _hoisted_1 = { class: "control-contain" };
|
13
14
|
const _hoisted_2 = ["disabled", "onClick"];
|
14
15
|
const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("svg", {
|
@@ -71,11 +72,9 @@ const _hoisted_22 = {
|
|
71
72
|
const _hoisted_23 = ["onKeydown"];
|
72
73
|
const _hoisted_24 = { class: "bottom-controls" };
|
73
74
|
const _hoisted_25 = { class: "bottom-left-controls" };
|
74
|
-
const _hoisted_26 = {
|
75
|
-
const _hoisted_27 =
|
76
|
-
const _hoisted_28 = {
|
77
|
-
const _hoisted_29 = { class: "text-sum" };
|
78
|
-
const _hoisted_30 = {
|
75
|
+
const _hoisted_26 = { class: "bottom-right-controls" };
|
76
|
+
const _hoisted_27 = { class: "text-sum" };
|
77
|
+
const _hoisted_28 = {
|
79
78
|
key: 1,
|
80
79
|
class: "disable",
|
81
80
|
"click.stop": ""
|
@@ -133,7 +132,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
133
132
|
}
|
134
133
|
);
|
135
134
|
const textLength = computed(() => {
|
136
|
-
const
|
135
|
+
const lines = searchText.value.split("\n");
|
136
|
+
const num = lines.reduce(function(sum, line) {
|
137
|
+
return sum + line.length;
|
138
|
+
}, 0);
|
137
139
|
if (num === 0) {
|
138
140
|
setShowNewTheme(false);
|
139
141
|
}
|
@@ -353,7 +355,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
353
355
|
sendMsg(sendText);
|
354
356
|
initInput();
|
355
357
|
};
|
356
|
-
const textBtnList = ["AND", "OR", "NOT", "()", '""'];
|
357
358
|
const addInputText = (text) => {
|
358
359
|
coptInput.value.innerText = coptInput.value.innerText + " " + text + " ";
|
359
360
|
nextTick(() => {
|
@@ -362,6 +363,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
362
363
|
moveCursorPosition(curpos);
|
363
364
|
});
|
364
365
|
};
|
366
|
+
const handlePaste = (event) => {
|
367
|
+
event.preventDefault();
|
368
|
+
const text = (event.clipboardData || window.clipboardData).getData(
|
369
|
+
"text/plain"
|
370
|
+
);
|
371
|
+
const selection = window.getSelection();
|
372
|
+
if (!selection.rangeCount)
|
373
|
+
return;
|
374
|
+
const range = selection.getRangeAt(0);
|
375
|
+
range.deleteContents();
|
376
|
+
const textNode = document.createTextNode(text);
|
377
|
+
range.insertNode(textNode);
|
378
|
+
range.setStartAfter(textNode);
|
379
|
+
range.setEndAfter(textNode);
|
380
|
+
selection.removeAllRanges();
|
381
|
+
selection.addRange(range);
|
382
|
+
searchText.value = coptInput.value.innerText;
|
383
|
+
};
|
365
384
|
return (_ctx, _cache) => {
|
366
385
|
const _component_el_divider = resolveComponent("el-divider");
|
367
386
|
const _component_el_tooltip = resolveComponent("el-tooltip");
|
@@ -476,23 +495,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
476
495
|
handleKeyDown
|
477
496
|
],
|
478
497
|
onCompositionstart: handleCompositionStart,
|
479
|
-
onCompositionend: handleCompositionEnd
|
498
|
+
onCompositionend: handleCompositionEnd,
|
499
|
+
onPaste: handlePaste
|
480
500
|
}, null, 40, _hoisted_23)
|
481
501
|
]),
|
482
502
|
createElementVNode("div", _hoisted_24, [
|
483
503
|
createElementVNode("div", _hoisted_25, [
|
484
|
-
|
485
|
-
(openBlock(), createElementBlock(Fragment, null, renderList(textBtnList, (text) => {
|
486
|
-
return createElementVNode("button", {
|
487
|
-
key: text,
|
488
|
-
class: "text-button",
|
489
|
-
onClick: ($event) => addInputText(text)
|
490
|
-
}, toDisplayString(text), 9, _hoisted_27);
|
491
|
-
}), 64))
|
492
|
-
])
|
504
|
+
createVNode(InputFootTool, { onAddInputText: addInputText })
|
493
505
|
]),
|
494
|
-
createElementVNode("div",
|
495
|
-
createElementVNode("span",
|
506
|
+
createElementVNode("div", _hoisted_26, [
|
507
|
+
createElementVNode("span", _hoisted_27, [
|
496
508
|
createElementVNode("span", {
|
497
509
|
style: normalizeStyle({ color: unref(textLength) >= 2e3 ? "red" : "#666666" })
|
498
510
|
}, toDisplayString(unref(textLength)), 5),
|
@@ -512,7 +524,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
512
524
|
])
|
513
525
|
])
|
514
526
|
]),
|
515
|
-
unref(stopDialogue) ? (openBlock(), createElementBlock("div",
|
527
|
+
unref(stopDialogue) ? (openBlock(), createElementBlock("div", _hoisted_28)) : createCommentVNode("", true)
|
516
528
|
])
|
517
529
|
], 512);
|
518
530
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const index_vue_vue_type_style_index_0_scoped_802c8083_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
index_vue_vue_type_style_index_0_scoped_802c8083_lang as default
|
4
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 CopiFooter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const CopiFooter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-95c80042"]]);
|
5
5
|
export {
|
6
6
|
CopiFooter as default
|
7
7
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const index_vue_vue_type_style_index_0_scoped_95c80042_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
index_vue_vue_type_style_index_0_scoped_95c80042_lang as default
|
4
4
|
};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import _sfc_main from "./SuggestMessage.vue2.mjs";
|
2
|
+
import "./SuggestMessage.vue3.mjs";
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
4
|
+
const SuggestMessage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5e8c4feb"]]);
|
5
|
+
export {
|
6
|
+
SuggestMessage as default
|
7
|
+
};
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import { defineComponent, resolveComponent, unref, openBlock, createElementBlock, Fragment, renderList, createCommentVNode, createElementVNode, toDisplayString, createVNode } from "vue";
|
2
|
+
import { storeToRefs } from "pinia";
|
3
|
+
import data from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/arrow-right.mjs";
|
4
|
+
import { useCopilotStoreHook } from "../../store/modules/copilot.mjs";
|
5
|
+
const _hoisted_1 = {
|
6
|
+
key: 0,
|
7
|
+
class: "my-4 ml-9 suggest-ques-box"
|
8
|
+
};
|
9
|
+
const _hoisted_2 = ["onClick"];
|
10
|
+
const _hoisted_3 = { key: 0 };
|
11
|
+
const _hoisted_4 = { key: 1 };
|
12
|
+
const _hoisted_5 = { key: 2 };
|
13
|
+
const _hoisted_6 = { class: "mx-2" };
|
14
|
+
const _hoisted_7 = { class: "w-[16px]" };
|
15
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
16
|
+
__name: "SuggestMessage",
|
17
|
+
setup(__props) {
|
18
|
+
const copilotStore = useCopilotStoreHook();
|
19
|
+
const { sendLonding, suggest_message_list } = storeToRefs(copilotStore);
|
20
|
+
const goSearch = (question) => {
|
21
|
+
copilotStore.sendMsg(question, true);
|
22
|
+
};
|
23
|
+
return (_ctx, _cache) => {
|
24
|
+
const _component_IconifyIconOffline = resolveComponent("IconifyIconOffline");
|
25
|
+
return !unref(sendLonding) && unref(suggest_message_list).length ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
26
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(suggest_message_list), (question, index) => {
|
27
|
+
return openBlock(), createElementBlock("div", {
|
28
|
+
key: index,
|
29
|
+
class: "suggest-ques flex justify-between items-center rounded-lg mb-1 py-1 px-2 bg-white text-sm",
|
30
|
+
onClick: ($event) => goSearch(question)
|
31
|
+
}, [
|
32
|
+
index === 0 ? (openBlock(), createElementBlock("span", _hoisted_3, "🤔️")) : createCommentVNode("", true),
|
33
|
+
index === 1 ? (openBlock(), createElementBlock("span", _hoisted_4, "🎓")) : createCommentVNode("", true),
|
34
|
+
index === 2 ? (openBlock(), createElementBlock("span", _hoisted_5, "🙋")) : createCommentVNode("", true),
|
35
|
+
createElementVNode("span", _hoisted_6, toDisplayString(question), 1),
|
36
|
+
createElementVNode("div", _hoisted_7, [
|
37
|
+
createVNode(_component_IconifyIconOffline, {
|
38
|
+
class: "icon",
|
39
|
+
icon: unref(data)
|
40
|
+
}, null, 8, ["icon"])
|
41
|
+
])
|
42
|
+
], 8, _hoisted_2);
|
43
|
+
}), 128))
|
44
|
+
])) : createCommentVNode("", true);
|
45
|
+
};
|
46
|
+
}
|
47
|
+
});
|
48
|
+
export {
|
49
|
+
_sfc_main as default
|
50
|
+
};
|
@@ -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 Dialogue = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const Dialogue = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-954e9440"]]);
|
5
5
|
export {
|
6
6
|
Dialogue as default
|
7
7
|
};
|