@kg-ui/kg-ui-plus 0.1.35 → 0.1.37
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/README.md +3 -3
- package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue.mjs +1 -1
- package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue2.mjs +84 -42
- package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue3.mjs +2 -2
- package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue.mjs +1 -1
- package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue2.mjs +1 -1
- package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue3.mjs +2 -2
- package/dist/es/KgCopilot/CopiCanvas/index.vue.mjs +1 -1
- package/dist/es/KgCopilot/CopiCanvas/index.vue3.mjs +2 -2
- package/dist/es/KgCopilot/CopiContent/AnswerHead.vue.mjs +1 -1
- package/dist/es/KgCopilot/CopiContent/AnswerHead.vue2.mjs +1 -1
- package/dist/es/KgCopilot/CopiContent/AnswerHead.vue3.mjs +2 -2
- package/dist/es/KgCopilot/CopiContent/UserHead.vue.mjs +2 -2
- package/dist/es/KgCopilot/CopiContent/UserHead.vue2.mjs +2 -2
- package/dist/es/KgCopilot/CopiFooter/SearchInput/InputFootTool.vue.mjs +1 -1
- package/dist/es/KgCopilot/CopiFooter/SearchInput/InputFootTool.vue3.mjs +2 -2
- package/dist/es/KgCopilot/CopiFooter/SearchInput/NewTheme.vue.mjs +1 -1
- package/dist/es/KgCopilot/CopiFooter/SearchInput/NewTheme.vue2.mjs +1 -1
- package/dist/es/KgCopilot/CopiFooter/SearchInput/NewTheme.vue3.mjs +2 -2
- package/dist/es/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue.mjs +1 -1
- package/dist/es/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue3.mjs +2 -2
- package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue.mjs +1 -1
- package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue2.mjs +1 -1
- 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 +1 -1
- package/dist/es/KgCopilot/dialogue/SuggestMessage.vue3.mjs +2 -2
- package/dist/es/KgCopilot/dialogue/index.vue.mjs +1 -1
- package/dist/es/KgCopilot/dialogue/index.vue2.mjs +1 -1
- package/dist/es/KgCopilot/dialogue/index.vue3.mjs +2 -2
- package/dist/es/KgCopilot/dialogue/messageParse/edit.vue.mjs +1 -1
- package/dist/es/KgCopilot/dialogue/messageParse/edit.vue3.mjs +2 -2
- package/dist/es/KgCopilot/dialogue/messageParse/fileBox.vue.mjs +1 -1
- package/dist/es/KgCopilot/dialogue/messageParse/fileBox.vue2.mjs +2 -2
- package/dist/es/KgCopilot/dialogue/messageParse/index.vue.mjs +1 -1
- package/dist/es/KgCopilot/dialogue/messageParse/index.vue3.mjs +2 -2
- package/dist/es/KgCopilot/dialogue/messageParse/readMd.vue.mjs +1 -1
- package/dist/es/KgCopilot/dialogue/messageParse/readMd.vue2.mjs +18 -6
- package/dist/es/KgCopilot/dialogue/messageParse/readMd.vue3.mjs +2 -2
- package/dist/es/KgCopilot/historyRecord/index.vue.mjs +1 -1
- package/dist/es/KgCopilot/historyRecord/index.vue2.mjs +1 -1
- package/dist/es/KgCopilot/historyRecord/index.vue3.mjs +2 -2
- package/dist/es/KgCopilot/index.vue.mjs +1 -1
- package/dist/es/KgCopilot/index.vue3.mjs +2 -2
- package/dist/es/home/LFilter/FilterArea.vue.mjs +1 -1
- package/dist/es/home/LFilter/FilterArea.vue2.mjs +1 -1
- package/dist/es/home/LFilter/FilterArea.vue3.mjs +2 -2
- package/dist/es/home/LFilter/FilterItem.vue.mjs +1 -1
- package/dist/es/home/LFilter/FilterItem.vue2.mjs +1 -1
- package/dist/es/home/LFilter/FilterItem.vue3.mjs +2 -2
- package/dist/es/home/LFilter/FilterItemIcon.vue.mjs +1 -1
- package/dist/es/home/LFilter/FilterItemIcon.vue2.mjs +1 -1
- package/dist/es/home/LFilter/FilterItemIcon.vue3.mjs +2 -2
- package/dist/es/home/LProject/index.vue.mjs +1 -1
- package/dist/es/home/LProject/index.vue3.mjs +2 -2
- package/dist/es/home/index.vue.mjs +1 -1
- package/dist/es/home/index.vue3.mjs +2 -2
- package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/actualApply.mjs +4 -4
- package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/functionCall.mjs +10 -2
- package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/index.mjs +4 -4
- package/dist/es/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.mjs +73 -65
- package/dist/es/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.mjs +12 -4
- package/dist/es/node_modules/.pnpm/get-intrinsic@1.2.6/node_modules/get-intrinsic/index.mjs +4 -4
- package/dist/es/node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.mjs +2 -2
- package/dist/es/style.css +1 -1
- package/package.json +124 -124
package/README.md
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
# 星光探索-组件库
|
2
|
-
|
3
|
-
## 基于vue3 elemet-plus封装的组件库
|
1
|
+
# 星光探索-组件库
|
2
|
+
|
3
|
+
## 基于vue3 elemet-plus封装的组件库
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./FilePreview.vue2.mjs";
|
2
2
|
import "./FilePreview.vue3.mjs";
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
4
|
-
const FilePreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const FilePreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c0e9e69a"]]);
|
5
5
|
export {
|
6
6
|
FilePreview as default
|
7
7
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, ref, watch, onMounted, onBeforeUnmount, resolveComponent, openBlock, createElementBlock, withDirectives, createVNode, vShow, createElementVNode, normalizeStyle, unref, createCommentVNode, vModelText, createTextVNode, toDisplayString, pushScopeId, popScopeId } from "vue";
|
1
|
+
import { defineComponent, ref, watch, onMounted, onBeforeUnmount, resolveComponent, openBlock, createElementBlock, withDirectives, createVNode, vShow, createElementVNode, normalizeStyle, unref, createCommentVNode, withKeys, vModelText, createTextVNode, toDisplayString, pushScopeId, popScopeId } from "vue";
|
2
2
|
import { ClickOutside } from "element-plus";
|
3
3
|
import { renderAsync } from "../../node_modules/.pnpm/docx-preview@0.3.3/node_modules/docx-preview/dist/docx-preview.mjs";
|
4
4
|
import { getDocxFileByUrl } from "../../api/copilot.mjs";
|
@@ -9,10 +9,11 @@ import data from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules
|
|
9
9
|
import data$1 from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/promotion.mjs";
|
10
10
|
import data$2 from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/file-damage-line.mjs";
|
11
11
|
import { useThrottleFn } from "../../node_modules/.pnpm/@vueuse_shared@9.13.0_vue@3.2.45/node_modules/@vueuse/shared/index.mjs";
|
12
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
12
|
+
const _withScopeId = (n) => (pushScopeId("data-v-c0e9e69a"), n = n(), popScopeId(), n);
|
13
13
|
const _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", null, " 询问AI助手", -1));
|
14
|
-
const _hoisted_2 =
|
15
|
-
const _hoisted_3 = { class: "
|
14
|
+
const _hoisted_2 = ["onKeydown"];
|
15
|
+
const _hoisted_3 = { class: "err_result" };
|
16
|
+
const _hoisted_4 = { class: "w-[50%] text-center" };
|
16
17
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
17
18
|
__name: "FilePreview",
|
18
19
|
setup(__props) {
|
@@ -66,36 +67,53 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
66
67
|
const selectTxt = ref("");
|
67
68
|
const range = ref();
|
68
69
|
const selection = ref();
|
69
|
-
const
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
70
|
+
const handleSelectText = (e) => {
|
71
|
+
selection.value = window.getSelection();
|
72
|
+
if (!selection.value)
|
73
|
+
return;
|
74
|
+
range.value = selection.value.getRangeAt(0);
|
75
|
+
const text = selection.value.toString();
|
76
|
+
if (!text.length)
|
77
|
+
return false;
|
78
|
+
setTimeout(() => {
|
79
|
+
selectTxt.value = "“" + text + "”";
|
80
|
+
showSelectMenu(e);
|
81
|
+
}, 100);
|
74
82
|
};
|
75
83
|
const menuInputRef = ref();
|
76
|
-
const
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
84
|
+
const showSelectMenu = (event) => {
|
85
|
+
const menuWidth = 350;
|
86
|
+
const menuHeight = 45;
|
87
|
+
let top = event.clientY;
|
88
|
+
let left = event.clientX;
|
89
|
+
const viewportWidth = window.innerWidth;
|
90
|
+
const viewportHeight = window.innerHeight;
|
91
|
+
if (left + menuWidth > viewportWidth) {
|
92
|
+
left = viewportWidth - menuWidth;
|
93
|
+
}
|
94
|
+
if (top + menuHeight > viewportHeight) {
|
95
|
+
top = viewportHeight - menuHeight;
|
82
96
|
}
|
97
|
+
selectionPos.value.top = top + 5 + "px";
|
98
|
+
selectionPos.value.left = left + 5 + "px";
|
99
|
+
selectWordVisible.value = true;
|
83
100
|
};
|
84
|
-
|
101
|
+
const highlightSelectedText = () => {
|
85
102
|
if (!selection.value.rangeCount)
|
86
103
|
return;
|
87
|
-
range.value = selection.value.getRangeAt(0);
|
88
|
-
if (range.value.collapsed)
|
89
|
-
return;
|
104
|
+
range.value.value = selection.value.getRangeAt(0);
|
90
105
|
const highlightSpan = document.createElement("span");
|
91
|
-
highlightSpan.style.backgroundColor = "#fcd5b4";
|
92
|
-
highlightSpan.style.fontSize = "16pt";
|
93
|
-
highlightSpan.style.lineHeight = "16pt";
|
94
106
|
highlightSpan.className = "highlight";
|
107
|
+
const cloneStyle = ["fontSize", "fontFamily", "minHeight"];
|
95
108
|
const startContainer = range.value.startContainer;
|
96
109
|
const endContainer = range.value.endContainer;
|
110
|
+
const startOffset = range.value.startOffset;
|
111
|
+
const endOffset = range.value.endOffset;
|
97
112
|
if (startContainer === endContainer) {
|
98
113
|
const selectedText = range.value.extractContents();
|
114
|
+
cloneStyle.forEach((key) => {
|
115
|
+
highlightSpan.style[key] = startContainer.style[key];
|
116
|
+
});
|
99
117
|
highlightSpan.appendChild(selectedText);
|
100
118
|
range.value.insertNode(highlightSpan);
|
101
119
|
} else {
|
@@ -116,21 +134,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
116
134
|
if (parent) {
|
117
135
|
const span = document.createElement("span");
|
118
136
|
span.className = "highlight";
|
119
|
-
|
120
|
-
|
121
|
-
|
137
|
+
for (const key of cloneStyle) {
|
138
|
+
span.style[key] = parent.style[key];
|
139
|
+
}
|
122
140
|
if (index === 0) {
|
123
|
-
const text = node.textContent.slice(
|
141
|
+
const text = node.textContent.slice(startOffset);
|
124
142
|
span.textContent = text;
|
125
143
|
const remainingText = document.createTextNode(
|
126
|
-
node.textContent.slice(0,
|
144
|
+
node.textContent.slice(0, startOffset)
|
127
145
|
);
|
128
146
|
parent.insertBefore(remainingText, node);
|
129
147
|
} else if (index === nodesToHighlight.length - 1) {
|
130
|
-
const text = node.textContent.slice(0,
|
148
|
+
const text = node.textContent.slice(0, endOffset);
|
131
149
|
span.textContent = text;
|
132
150
|
const remainingText = document.createTextNode(
|
133
|
-
node.textContent.slice(
|
151
|
+
node.textContent.slice(endOffset)
|
134
152
|
);
|
135
153
|
parent.appendChild(remainingText);
|
136
154
|
} else {
|
@@ -140,25 +158,47 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
140
158
|
}
|
141
159
|
});
|
142
160
|
}
|
143
|
-
}
|
161
|
+
};
|
162
|
+
const removeHighlight = () => {
|
163
|
+
const highlightedElements = document.querySelectorAll(".highlight");
|
164
|
+
highlightedElements.forEach((element) => {
|
165
|
+
const parent = element.parentNode;
|
166
|
+
if (parent) {
|
167
|
+
const fragment = document.createDocumentFragment();
|
168
|
+
while (element.firstChild) {
|
169
|
+
fragment.appendChild(element.firstChild);
|
170
|
+
}
|
171
|
+
parent.replaceChild(fragment, element);
|
172
|
+
parent.normalize();
|
173
|
+
}
|
174
|
+
});
|
175
|
+
};
|
144
176
|
const inputRef = ref();
|
145
177
|
const showSuggestInput = ref(false);
|
146
178
|
const handleClickSuggestBtn = () => {
|
147
179
|
showSuggestInput.value = true;
|
148
|
-
|
180
|
+
highlightSelectedText();
|
149
181
|
setTimeout(() => {
|
150
182
|
if (inputRef.value) {
|
151
183
|
inputRef.value.focus();
|
152
184
|
}
|
153
185
|
}, 100);
|
154
186
|
};
|
155
|
-
const
|
187
|
+
const suggestInputValue = ref("");
|
156
188
|
const sendSuggest = () => {
|
157
|
-
if (!
|
189
|
+
if (!suggestInputValue.value.length)
|
158
190
|
return;
|
159
|
-
sendMsg(
|
191
|
+
sendMsg(suggestInputValue.value, selectTxt.value);
|
160
192
|
onClickOutside();
|
161
193
|
};
|
194
|
+
const onClickOutside = () => {
|
195
|
+
if (selectWordVisible.value) {
|
196
|
+
selectWordVisible.value = false;
|
197
|
+
showSuggestInput.value = false;
|
198
|
+
suggestInputValue.value = "";
|
199
|
+
removeHighlight();
|
200
|
+
}
|
201
|
+
};
|
162
202
|
return (_ctx, _cache) => {
|
163
203
|
const _component_IconifyIconOffline = resolveComponent("IconifyIconOffline");
|
164
204
|
return openBlock(), createElementBlock("div", {
|
@@ -173,8 +213,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
173
213
|
ref_key: "docPreviewRef",
|
174
214
|
ref: docPreviewRef,
|
175
215
|
class: "preview",
|
176
|
-
style: normalizeStyle({ zoom: zoom.value })
|
177
|
-
|
216
|
+
style: normalizeStyle({ zoom: zoom.value }),
|
217
|
+
onMouseup: handleSelectText
|
218
|
+
}, null, 36), [
|
178
219
|
[vShow, !result.value && !loading.value]
|
179
220
|
]),
|
180
221
|
selectWordVisible.value ? withDirectives((openBlock(), createElementBlock("div", {
|
@@ -205,9 +246,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
205
246
|
class: "edit-input",
|
206
247
|
type: "text",
|
207
248
|
placeholder: "编辑和说明...",
|
208
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
209
|
-
|
210
|
-
|
249
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => suggestInputValue.value = $event),
|
250
|
+
onKeydown: withKeys(sendSuggest, ["enter"])
|
251
|
+
}, null, 40, _hoisted_2), [
|
252
|
+
[vModelText, suggestInputValue.value]
|
211
253
|
]),
|
212
254
|
createElementVNode("button", {
|
213
255
|
class: "send-button",
|
@@ -217,7 +259,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
217
259
|
class: "icon",
|
218
260
|
icon: unref(data$1),
|
219
261
|
style: normalizeStyle({
|
220
|
-
color:
|
262
|
+
color: suggestInputValue.value.length ? "#1e56ea" : "#dbdbdb"
|
221
263
|
})
|
222
264
|
}, null, 8, ["icon", "style"])
|
223
265
|
])
|
@@ -225,8 +267,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
225
267
|
], 4)), [
|
226
268
|
[unref(ClickOutside), onClickOutside]
|
227
269
|
]) : createCommentVNode("", true),
|
228
|
-
withDirectives(createElementVNode("div",
|
229
|
-
createElementVNode("div",
|
270
|
+
withDirectives(createElementVNode("div", _hoisted_3, [
|
271
|
+
createElementVNode("div", _hoisted_4, [
|
230
272
|
createVNode(_component_IconifyIconOffline, {
|
231
273
|
icon: unref(data$2),
|
232
274
|
width: "100%",
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const FilePreview_vue_vue_type_style_index_0_scoped_c0e9e69a_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
FilePreview_vue_vue_type_style_index_0_scoped_c0e9e69a_lang as default
|
4
4
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./InitWrap.vue2.mjs";
|
2
2
|
import "./InitWrap.vue3.mjs";
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
4
|
-
const InitWrap = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const InitWrap = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-cdbe48dd"]]);
|
5
5
|
export {
|
6
6
|
InitWrap as default
|
7
7
|
};
|
@@ -1,7 +1,7 @@
|
|
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
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-
|
4
|
+
const _withScopeId = (n) => (pushScopeId("data-v-cdbe48dd"), 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" };
|
7
7
|
const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("h2", null, "文件预览", -1));
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const InitWrap_vue_vue_type_style_index_0_scoped_cdbe48dd_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
InitWrap_vue_vue_type_style_index_0_scoped_cdbe48dd_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 CopiCanvas = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const CopiCanvas = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-73dde8eb"]]);
|
5
5
|
export {
|
6
6
|
CopiCanvas as default
|
7
7
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const index_vue_vue_type_style_index_0_scoped_73dde8eb_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
index_vue_vue_type_style_index_0_scoped_73dde8eb_lang as default
|
4
4
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./AnswerHead.vue2.mjs";
|
2
2
|
import "./AnswerHead.vue3.mjs";
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
4
|
-
const AnswerHead = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const AnswerHead = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-79b56717"]]);
|
5
5
|
export {
|
6
6
|
AnswerHead as default
|
7
7
|
};
|
@@ -3,7 +3,7 @@ import { useCopilotStoreHook } from "../../store/modules/copilot.mjs";
|
|
3
3
|
import { storeToRefs } from "pinia";
|
4
4
|
const _hoisted_1 = { class: "answer" };
|
5
5
|
const _hoisted_2 = { class: "icon" };
|
6
|
-
const _hoisted_3 = /* @__PURE__ */ createStaticVNode('<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-
|
6
|
+
const _hoisted_3 = /* @__PURE__ */ createStaticVNode('<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-79b56717><g clip-path="url(#clip0_3984_10372)" data-v-79b56717><path d="M35.1201 6.46024C34.4524 4.39741 32.5312 3 30.363 3L28.7093 3C26.2926 3 24.2217 4.72855 23.7898 7.10639L21.448 19.9984L22.1587 17.5866C22.7854 15.46 24.7377 14 26.9548 14H35.2947L38.8884 15.7857L42.3527 14H41.1975C39.0293 14 37.1082 12.6026 36.4405 10.5398L35.1201 6.46024Z" fill="url(#paint0_radial_3984_10372)" data-v-79b56717></path><path d="M13.3948 41.5178C14.0556 43.5918 15.9822 45 18.1589 45H21.397C24.1428 45 26.3748 42.7858 26.3968 40.0401L26.4921 28.1641L25.8179 30.428C25.1866 32.5478 23.2377 34.0009 21.0259 34.0009L12.623 34.0009L9.54267 31.9459L6.20776 34.0009H7.34528C9.52197 34.0009 11.4486 35.4091 12.1093 37.4831L13.3948 41.5178Z" fill="url(#paint1_radial_3984_10372)" data-v-79b56717></path><path d="M30 3H12.5C7.49997 3 4.49997 9.5 2.49997 16C0.13049 23.7008 -2.97003 34 5.99997 34H13.6122C15.8393 34 17.7964 32.5325 18.4179 30.394C19.7318 25.8726 22.0338 17.9871 23.8421 11.9841C24.7611 8.93305 25.5266 6.31272 26.7015 4.68095C27.3602 3.76611 28.458 3 30 3Z" fill="url(#paint2_linear_3984_10372)" data-v-79b56717></path><path d="M30 3H12.5C7.49997 3 4.49997 9.5 2.49997 16C0.13049 23.7008 -2.97003 34 5.99997 34H13.6122C15.8393 34 17.7964 32.5325 18.4179 30.394C19.7318 25.8726 22.0338 17.9871 23.8421 11.9841C24.7611 8.93305 25.5266 6.31272 26.7015 4.68095C27.3602 3.76611 28.458 3 30 3Z" fill="url(#paint3_linear_3984_10372)" data-v-79b56717></path><path d="M17.9963 45H35.4963C40.4963 45 43.4963 38.5 45.4963 32C47.8658 24.2992 50.9663 14 41.9963 14H34.3841C32.157 14 30.1999 15.4675 29.5784 17.606C28.2645 22.1274 25.9625 30.0129 24.1543 36.0159C23.2352 39.0669 22.4697 41.6873 21.2948 43.319C20.6361 44.2339 19.5383 45 17.9963 45Z" fill="url(#paint4_radial_3984_10372)" data-v-79b56717></path><path d="M17.9963 45H35.4963C40.4963 45 43.4963 38.5 45.4963 32C47.8658 24.2992 50.9663 14 41.9963 14H34.3841C32.157 14 30.1999 15.4675 29.5784 17.606C28.2645 22.1274 25.9625 30.0129 24.1543 36.0159C23.2352 39.0669 22.4697 41.6873 21.2948 43.319C20.6361 44.2339 19.5383 45 17.9963 45Z" fill="url(#paint5_linear_3984_10372)" data-v-79b56717></path></g><defs data-v-79b56717><radialGradient id="paint0_radial_3984_10372" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(39.3087 20.1095) rotate(-130.498) scale(18.242 17.2825)" data-v-79b56717><stop offset="0.0955758" stop-color="#00AEFF" data-v-79b56717></stop><stop offset="0.773185" stop-color="#2253CE" data-v-79b56717></stop><stop offset="1" stop-color="#0736C4" data-v-79b56717></stop></radialGradient><radialGradient id="paint1_radial_3984_10372" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(9.88779 33.7078) rotate(50.1259) scale(16.5438 16.2528)" data-v-79b56717><stop stop-color="#FFB657" data-v-79b56717></stop><stop offset="0.633728" stop-color="#FF5F3D" data-v-79b56717></stop><stop offset="0.923392" stop-color="#C02B3C" data-v-79b56717></stop></radialGradient><linearGradient id="paint2_linear_3984_10372" x1="11.4526" y1="6.75624" x2="13.8689" y2="35.1765" gradientUnits="userSpaceOnUse" data-v-79b56717><stop offset="0.156162" stop-color="#0D91E1" data-v-79b56717></stop><stop offset="0.487484" stop-color="#52B471" data-v-79b56717></stop><stop offset="0.652394" stop-color="#98BD42" data-v-79b56717></stop><stop offset="0.937361" stop-color="#FFC800" data-v-79b56717></stop></linearGradient><linearGradient id="paint3_linear_3984_10372" x1="13.6347" y1="3" x2="14.954" y2="34.0019" gradientUnits="userSpaceOnUse" data-v-79b56717><stop stop-color="#3DCBFF" data-v-79b56717></stop><stop offset="0.246674" stop-color="#0588F7" stop-opacity="0" data-v-79b56717></stop></linearGradient><radialGradient id="paint4_radial_3984_10372" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(42.8953 10.9649) rotate(109.574) scale(41.2667 50.0822)" data-v-79b56717><stop offset="0.0661714" stop-color="#8C48FF" data-v-79b56717></stop><stop offset="0.5" stop-color="#F2598A" data-v-79b56717></stop><stop offset="0.895833" stop-color="#FFB152" data-v-79b56717></stop></radialGradient><linearGradient id="paint5_linear_3984_10372" x1="44.2778" y1="12.1074" x2="44.2606" y2="20.5507" gradientUnits="userSpaceOnUse" data-v-79b56717><stop offset="0.0581535" stop-color="#F8ADFA" data-v-79b56717></stop><stop offset="0.708063" stop-color="#A86EDD" stop-opacity="0" data-v-79b56717></stop></linearGradient><clipPath id="clip0_3984_10372" data-v-79b56717><rect width="48" height="48" fill="white" data-v-79b56717></rect></clipPath></defs></svg>', 1);
|
7
7
|
const _hoisted_4 = { class: "head-label" };
|
8
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
9
9
|
__name: "AnswerHead",
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const AnswerHead_vue_vue_type_style_index_0_scoped_79b56717_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
AnswerHead_vue_vue_type_style_index_0_scoped_79b56717_lang as default
|
4
4
|
};
|
@@ -2,7 +2,7 @@ import { openBlock, createElementBlock, pushScopeId, popScopeId, createElementVN
|
|
2
2
|
import "./UserHead.vue2.mjs";
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
4
4
|
const _sfc_main = {};
|
5
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
5
|
+
const _withScopeId = (n) => (pushScopeId("data-v-e25476bb"), n = n(), popScopeId(), n);
|
6
6
|
const _hoisted_1 = { class: "user" };
|
7
7
|
const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "icon header-avatar rounded-full" }, [
|
8
8
|
/* @__PURE__ */ createElementVNode("svg", {
|
@@ -20,7 +20,7 @@ const _hoisted_4 = [
|
|
20
20
|
function _sfc_render(_ctx, _cache) {
|
21
21
|
return openBlock(), createElementBlock("div", _hoisted_1, _hoisted_4);
|
22
22
|
}
|
23
|
-
const UserHead = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
23
|
+
const UserHead = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-e25476bb"]]);
|
24
24
|
export {
|
25
25
|
UserHead as default
|
26
26
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const UserHead_vue_vue_type_style_index_0_scoped_e25476bb_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
UserHead_vue_vue_type_style_index_0_scoped_e25476bb_lang as default
|
4
4
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./InputFootTool.vue2.mjs";
|
2
2
|
import "./InputFootTool.vue3.mjs";
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
4
|
-
const InputFootTool = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const InputFootTool = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-72faacc8"]]);
|
5
5
|
export {
|
6
6
|
InputFootTool as default
|
7
7
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const InputFootTool_vue_vue_type_style_index_0_scoped_72faacc8_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
InputFootTool_vue_vue_type_style_index_0_scoped_72faacc8_lang as default
|
4
4
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./NewTheme.vue2.mjs";
|
2
2
|
import "./NewTheme.vue3.mjs";
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
4
|
-
const NewTheme = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const NewTheme = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e4530874"]]);
|
5
5
|
export {
|
6
6
|
NewTheme as default
|
7
7
|
};
|
@@ -2,7 +2,7 @@ import { defineComponent, ref, watch, openBlock, createElementBlock, createEleme
|
|
2
2
|
import { useCopilotStoreHook } from "../../../store/modules/copilot.mjs";
|
3
3
|
import { storeToRefs } from "pinia";
|
4
4
|
const _hoisted_1 = { class: "outside-left-container" };
|
5
|
-
const _hoisted_2 = /* @__PURE__ */ createStaticVNode('<div class="button-compose-content" data-v-
|
5
|
+
const _hoisted_2 = /* @__PURE__ */ createStaticVNode('<div class="button-compose-content" data-v-e4530874><div class="button-compose-icon" data-v-e4530874><svg class="button-compose-icon" width="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-e4530874><path fill="#fff" d="M12 2C17.5228 2 22 6.47715 22 12C22 12.2628 21.9899 12.5232 21.97 12.7809C21.5319 12.3658 21.0361 12.0111 20.4958 11.73C20.3532 7.16054 16.6041 3.5 12 3.5C7.30558 3.5 3.5 7.30558 3.5 12C3.5 13.4696 3.87277 14.8834 4.57303 16.1375L4.72368 16.4072L3.61096 20.3914L7.59755 19.2792L7.86709 19.4295C9.04305 20.0852 10.3592 20.4531 11.73 20.4958C12.0111 21.0361 12.3658 21.5319 12.7809 21.97C12.5232 21.9899 12.2628 22 12 22C10.3817 22 8.81782 21.6146 7.41286 20.888L3.58704 21.9553C2.92212 22.141 2.23258 21.7525 2.04691 21.0876C1.98546 20.8676 1.98549 20.6349 2.04695 20.4151L3.11461 16.5922C2.38637 15.186 2 13.6203 2 12C2 6.47715 6.47715 2 12 2ZM23 17.5C23 14.4624 20.5376 12 17.5 12C14.4624 12 12 14.4624 12 17.5C12 20.5376 14.4624 23 17.5 23C20.5376 23 23 20.5376 23 17.5ZM18.0006 18L18.0011 20.5035C18.0011 20.7797 17.7773 21.0035 17.5011 21.0035C17.225 21.0035 17.0011 20.7797 17.0011 20.5035L17.0006 18H14.4956C14.2197 18 13.9961 17.7762 13.9961 17.5C13.9961 17.2239 14.2197 17 14.4956 17H17.0005L17 14.4993C17 14.2231 17.2239 13.9993 17.5 13.9993C17.7761 13.9993 18 14.2231 18 14.4993L18.0005 17H20.4966C20.7725 17 20.9961 17.2239 20.9961 17.5C20.9961 17.7762 20.7725 18 20.4966 18H18.0006Z" data-v-e4530874></path></svg></div><div class="button-compose-text" data-v-e4530874>新主题</div></div>', 1);
|
6
6
|
const _hoisted_3 = [
|
7
7
|
_hoisted_2
|
8
8
|
];
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const NewTheme_vue_vue_type_style_index_0_scoped_e4530874_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
NewTheme_vue_vue_type_style_index_0_scoped_e4530874_lang as default
|
4
4
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./SelectPluginByKey.vue2.mjs";
|
2
2
|
import "./SelectPluginByKey.vue3.mjs";
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
4
|
-
const SelectPluginByKey = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const SelectPluginByKey = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-bbda30a3"]]);
|
5
5
|
export {
|
6
6
|
SelectPluginByKey as default
|
7
7
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const SelectPluginByKey_vue_vue_type_style_index_0_scoped_bbda30a3_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
SelectPluginByKey_vue_vue_type_style_index_0_scoped_bbda30a3_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 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
|
};
|
@@ -9,7 +9,7 @@ import { plusParamToStr } from "../../../utils/copilot.mjs";
|
|
9
9
|
import data$2 from "../../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/promotion.mjs";
|
10
10
|
import data from "../../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/braces-line.mjs";
|
11
11
|
import data$1 from "../../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/close-circle-line.mjs";
|
12
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
12
|
+
const _withScopeId = (n) => (pushScopeId("data-v-802c8083"), n = n(), popScopeId(), n);
|
13
13
|
const _hoisted_1 = { class: "control-contain" };
|
14
14
|
const _hoisted_2 = ["disabled", "onClick"];
|
15
15
|
const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("svg", {
|
@@ -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
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./SuggestMessage.vue2.mjs";
|
2
2
|
import "./SuggestMessage.vue3.mjs";
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
4
|
-
const SuggestMessage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const SuggestMessage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-87d600ce"]]);
|
5
5
|
export {
|
6
6
|
SuggestMessage as default
|
7
7
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const SuggestMessage_vue_vue_type_style_index_0_scoped_87d600ce_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
SuggestMessage_vue_vue_type_style_index_0_scoped_87d600ce_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 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
|
};
|
@@ -7,7 +7,7 @@ import data$1 from "../../node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_module
|
|
7
7
|
import data from "../../node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/caret-down-fill.mjs";
|
8
8
|
import { useCopilotStoreHook } from "../../store/modules/copilot.mjs";
|
9
9
|
import { storeToRefs } from "pinia";
|
10
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
10
|
+
const _withScopeId = (n) => (pushScopeId("data-v-954e9440"), n = n(), popScopeId(), n);
|
11
11
|
const _hoisted_1 = { class: "msg-head" };
|
12
12
|
const _hoisted_2 = { class: "msg-box" };
|
13
13
|
const _hoisted_3 = {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const index_vue_vue_type_style_index_0_scoped_954e9440_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
index_vue_vue_type_style_index_0_scoped_954e9440_lang as default
|
4
4
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./edit.vue2.mjs";
|
2
2
|
import "./edit.vue3.mjs";
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
4
|
-
const Edit = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const Edit = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-86d77442"]]);
|
5
5
|
export {
|
6
6
|
Edit as default
|
7
7
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const edit_vue_vue_type_style_index_0_scoped_86d77442_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
edit_vue_vue_type_style_index_0_scoped_86d77442_lang as default
|
4
4
|
};
|
@@ -104,7 +104,7 @@ const _sfc_main = {
|
|
104
104
|
};
|
105
105
|
}
|
106
106
|
};
|
107
|
-
const FileBox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
107
|
+
const FileBox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-af617a5e"]]);
|
108
108
|
export {
|
109
109
|
FileBox as default
|
110
110
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const fileBox_vue_vue_type_style_index_0_scoped_af617a5e_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
fileBox_vue_vue_type_style_index_0_scoped_af617a5e_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 MessageParse = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const MessageParse = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-01dfdc25"]]);
|
5
5
|
export {
|
6
6
|
MessageParse as default
|
7
7
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const index_vue_vue_type_style_index_0_scoped_01dfdc25_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
index_vue_vue_type_style_index_0_scoped_01dfdc25_lang as default
|
4
4
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./readMd.vue2.mjs";
|
2
2
|
import "./readMd.vue3.mjs";
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
4
|
-
const ReadMd = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const ReadMd = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-aad92d4c"]]);
|
5
5
|
export {
|
6
6
|
ReadMd as default
|
7
7
|
};
|