@kg-ui/kg-ui-plus 0.1.19 → 0.1.21
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/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/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 +107 -31
- 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/index.vue.mjs +1 -1
- package/dist/es/KgCopilot/dialogue/index.vue2.mjs +3 -2
- 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.vue2.mjs +52 -42
- 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 +2 -2
- package/dist/es/KgCopilot/dialogue/messageParse/readMd.vue3.mjs +2 -2
- package/dist/es/KgCopilot/historyRecord/index.vue.mjs +7 -0
- package/dist/es/KgCopilot/historyRecord/index.vue2.mjs +142 -0
- package/dist/es/KgCopilot/historyRecord/index.vue3.mjs +4 -0
- package/dist/es/KgCopilot/index.vue.mjs +1 -1
- package/dist/es/KgCopilot/index.vue2.mjs +44 -9
- package/dist/es/KgCopilot/index.vue3.mjs +2 -2
- package/dist/es/api/copilot.mjs +55 -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/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/arrow-left.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/arrow-right.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/delete.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/search.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/braces-line.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/close-circle-line.mjs +8 -0
- package/dist/es/node_modules/.pnpm/{dompurify@3.0.10 → dompurify@3.1.5}/node_modules/dompurify/dist/purify.es.mjs +48 -11
- package/dist/es/node_modules/.pnpm/{marked@12.0.1 → marked@12.0.2}/node_modules/marked/lib/marked.esm.mjs +2 -1
- package/dist/es/store/modules/copilot.mjs +158 -5
- package/dist/es/style.css +1 -1
- package/dist/es/utils/copilot.mjs +25 -0
- package/dist/es/utils/home.mjs +1 -0
- package/dist/es/utils/http/index.mjs +7 -0
- package/package.json +123 -123
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 "./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 "./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-67e42d06"]]);
|
5
5
|
export {
|
6
6
|
SearchInput as default
|
7
7
|
};
|
@@ -1,11 +1,14 @@
|
|
1
|
-
import { defineComponent, ref, onMounted, watch, computed, resolveComponent, openBlock, createElementBlock, createElementVNode, createVNode, withModifiers, toDisplayString, normalizeClass, unref, createCommentVNode,
|
2
|
-
import
|
1
|
+
import { defineComponent, ref, onMounted, watch, computed, resolveComponent, openBlock, createElementBlock, createElementVNode, createVNode, withModifiers, toDisplayString, normalizeClass, unref, createCommentVNode, withCtx, Fragment, renderList, normalizeStyle, createBlock, withKeys, createTextVNode, pushScopeId, popScopeId } from "vue";
|
2
|
+
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
6
|
import { useCopilotStoreHook } from "../../../store/modules/copilot.mjs";
|
7
|
-
import {
|
8
|
-
|
7
|
+
import { plusParamToStr } from "../../../utils/copilot.mjs";
|
8
|
+
import data$2 from "../../../node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/promotion.mjs";
|
9
|
+
import data from "../../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/braces-line.mjs";
|
10
|
+
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-67e42d06"), n = n(), popScopeId(), n);
|
9
12
|
const _hoisted_1 = { class: "control-contain" };
|
10
13
|
const _hoisted_2 = ["onClick"];
|
11
14
|
const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("svg", {
|
@@ -31,20 +34,37 @@ const _hoisted_7 = [
|
|
31
34
|
const _hoisted_8 = { class: "input-container" };
|
32
35
|
const _hoisted_9 = {
|
33
36
|
key: 0,
|
34
|
-
class: "plugin-town"
|
37
|
+
class: "flex justify-between items-center plugin-town"
|
38
|
+
};
|
39
|
+
const _hoisted_10 = { class: "" };
|
40
|
+
const _hoisted_11 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", null, "已选智能体:", -1));
|
41
|
+
const _hoisted_12 = { style: { "font-weight": "600" } };
|
42
|
+
const _hoisted_13 = {
|
43
|
+
class: "flex items-center justify-end",
|
44
|
+
style: { "max-width": "50%" }
|
35
45
|
};
|
36
|
-
const
|
37
|
-
const
|
38
|
-
const
|
46
|
+
const _hoisted_14 = { class: "p-2" };
|
47
|
+
const _hoisted_15 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("p", null, "参数提示", -1));
|
48
|
+
const _hoisted_16 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("line", null, null, -1));
|
49
|
+
const _hoisted_17 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("br", null, null, -1));
|
50
|
+
const _hoisted_18 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("path", {
|
51
|
+
fill: "currentColor",
|
52
|
+
d: "M10 2a4 4 0 0 0-4 4v3H3v2h3v7a2 2 0 0 1-2 2H3v2h1a4 4 0 0 0 4-4v-7h3V9H8V6a2 2 0 0 1 2-2h1V2zm5.202 14.997L11.891 21h2.595l2.014-2.434L18.514 21h2.595l-3.311-4.003L21.105 13h-2.596L16.5 15.428L14.491 13h-2.595z"
|
53
|
+
}, null, -1));
|
54
|
+
const _hoisted_19 = [
|
55
|
+
_hoisted_18
|
56
|
+
];
|
57
|
+
const _hoisted_20 = ["innerHTML"];
|
58
|
+
const _hoisted_21 = {
|
39
59
|
class: "input-row",
|
40
60
|
id: "copiFooter"
|
41
61
|
};
|
42
|
-
const
|
43
|
-
const
|
44
|
-
const
|
45
|
-
const
|
46
|
-
const
|
47
|
-
const
|
62
|
+
const _hoisted_22 = ["onKeydown"];
|
63
|
+
const _hoisted_23 = { class: "bottom-controls" };
|
64
|
+
const _hoisted_24 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "bottom-left-controls" }, null, -1));
|
65
|
+
const _hoisted_25 = { class: "bottom-right-controls" };
|
66
|
+
const _hoisted_26 = { class: "text-sum" };
|
67
|
+
const _hoisted_27 = {
|
48
68
|
key: 1,
|
49
69
|
class: "disable",
|
50
70
|
"click.stop": ""
|
@@ -60,14 +80,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
60
80
|
sendLonding,
|
61
81
|
stopDialogue,
|
62
82
|
checkedPluginByBtn,
|
63
|
-
plugins
|
83
|
+
plugins,
|
84
|
+
selPluginParams,
|
85
|
+
pluginPayloadStr
|
64
86
|
} = storeToRefs(CopilotStore);
|
65
87
|
const {
|
66
88
|
setSearchText,
|
67
89
|
sendMsg,
|
68
90
|
setShowNewTheme,
|
69
91
|
cancelRequest,
|
70
|
-
setCheckedPluginList
|
92
|
+
setCheckedPluginList,
|
93
|
+
clearPluginsPayload
|
71
94
|
} = CopilotStore;
|
72
95
|
const coptInput = ref();
|
73
96
|
const bottomFooter = ref();
|
@@ -298,6 +321,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
298
321
|
clearTimeout(timeId);
|
299
322
|
}, 100);
|
300
323
|
};
|
324
|
+
const SendMsgBtnAllow = computed(() => {
|
325
|
+
return !sendLonding.value && (textLength.value || pluginPayloadStr.value !== "");
|
326
|
+
});
|
301
327
|
const handlerSendMsg = (e) => {
|
302
328
|
if (e.key === "Enter") {
|
303
329
|
e.preventDefault();
|
@@ -311,14 +337,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
311
337
|
return;
|
312
338
|
}
|
313
339
|
const sendText = searchText.value;
|
314
|
-
if (!
|
315
|
-
return;
|
316
|
-
if (sendLonding.value)
|
340
|
+
if (!SendMsgBtnAllow.value)
|
317
341
|
return;
|
318
342
|
sendMsg(sendText);
|
319
343
|
initInput();
|
320
344
|
};
|
321
345
|
return (_ctx, _cache) => {
|
346
|
+
const _component_el_divider = resolveComponent("el-divider");
|
347
|
+
const _component_el_tooltip = resolveComponent("el-tooltip");
|
322
348
|
const _component_IconifyIconOffline = resolveComponent("IconifyIconOffline");
|
323
349
|
return openBlock(), createElementBlock("div", {
|
324
350
|
class: "bottom-footer",
|
@@ -352,10 +378,60 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
352
378
|
]),
|
353
379
|
createElementVNode("div", _hoisted_8, [
|
354
380
|
Object.keys(unref(checkedPluginByBtn)).length !== 0 ? (openBlock(), createElementBlock("div", _hoisted_9, [
|
355
|
-
_hoisted_10,
|
356
|
-
|
381
|
+
createElementVNode("div", _hoisted_10, [
|
382
|
+
_hoisted_11,
|
383
|
+
createElementVNode("span", _hoisted_12, toDisplayString(unref(checkedPluginByBtn).name), 1)
|
384
|
+
]),
|
385
|
+
createElementVNode("div", _hoisted_13, [
|
386
|
+
createVNode(_component_el_tooltip, {
|
387
|
+
class: "box-item",
|
388
|
+
effect: "light",
|
389
|
+
"show-after": 300,
|
390
|
+
placement: "top"
|
391
|
+
}, {
|
392
|
+
content: withCtx(() => [
|
393
|
+
createElementVNode("div", _hoisted_14, [
|
394
|
+
_hoisted_15,
|
395
|
+
createVNode(_component_el_divider, { style: { "padding": "0", "margin": "5px 5px 5px 0" } }),
|
396
|
+
_hoisted_16,
|
397
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(selPluginParams), (key) => {
|
398
|
+
return openBlock(), createElementBlock(Fragment, { key }, [
|
399
|
+
createElementVNode("span", null, toDisplayString(unref(plusParamToStr)(key)), 1),
|
400
|
+
_hoisted_17
|
401
|
+
], 64);
|
402
|
+
}), 128))
|
403
|
+
])
|
404
|
+
]),
|
405
|
+
default: withCtx(() => [
|
406
|
+
(openBlock(), createElementBlock("svg", {
|
407
|
+
style: normalizeStyle({ color: unref(pluginPayloadStr) === "" ? "" : "orange" }),
|
408
|
+
xmlns: "http://www.w3.org/2000/svg",
|
409
|
+
width: "1em",
|
410
|
+
height: "1em",
|
411
|
+
viewBox: "0 0 24 24",
|
412
|
+
class: "cursor-pointer w-[20px] h-[20px]"
|
413
|
+
}, _hoisted_19, 4))
|
414
|
+
]),
|
415
|
+
_: 1
|
416
|
+
}),
|
417
|
+
unref(pluginPayloadStr) === "" ? (openBlock(), createBlock(_component_IconifyIconOffline, {
|
418
|
+
key: 0,
|
419
|
+
class: "icon cursor-pointer w-[20px] h-[20px]",
|
420
|
+
icon: unref(data)
|
421
|
+
}, null, 8, ["icon"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
422
|
+
createElementVNode("span", {
|
423
|
+
class: "cursor-pointer ml-3 mr-2 inline-block overflow-hidden whitespace-nowrap text-ellipsis",
|
424
|
+
innerHTML: unref(pluginPayloadStr)
|
425
|
+
}, null, 8, _hoisted_20),
|
426
|
+
createVNode(_component_IconifyIconOffline, {
|
427
|
+
class: "icon cursor-pointer w-[20px] h-[20px]",
|
428
|
+
icon: unref(data$1),
|
429
|
+
onClick: unref(clearPluginsPayload)
|
430
|
+
}, null, 8, ["icon", "onClick"])
|
431
|
+
], 64))
|
432
|
+
])
|
357
433
|
])) : createCommentVNode("", true),
|
358
|
-
createElementVNode("div",
|
434
|
+
createElementVNode("div", _hoisted_21, [
|
359
435
|
createElementVNode("div", {
|
360
436
|
ref_key: "coptInput",
|
361
437
|
ref: coptInput,
|
@@ -370,16 +446,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
370
446
|
],
|
371
447
|
onCompositionstart: handleCompositionStart,
|
372
448
|
onCompositionend: handleCompositionEnd
|
373
|
-
}, null, 40,
|
449
|
+
}, null, 40, _hoisted_22)
|
374
450
|
]),
|
375
|
-
createElementVNode("div",
|
376
|
-
|
377
|
-
createElementVNode("div",
|
378
|
-
createElementVNode("span",
|
451
|
+
createElementVNode("div", _hoisted_23, [
|
452
|
+
_hoisted_24,
|
453
|
+
createElementVNode("div", _hoisted_25, [
|
454
|
+
createElementVNode("span", _hoisted_26, [
|
379
455
|
createElementVNode("span", {
|
380
456
|
style: normalizeStyle({ color: unref(textLength) >= 2e3 ? "red" : "#666666" })
|
381
457
|
}, toDisplayString(unref(textLength)), 5),
|
382
|
-
createTextVNode("/2000")
|
458
|
+
createTextVNode(" /2000 ")
|
383
459
|
]),
|
384
460
|
createElementVNode("button", {
|
385
461
|
class: "send-button",
|
@@ -387,15 +463,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
387
463
|
}, [
|
388
464
|
createVNode(_component_IconifyIconOffline, {
|
389
465
|
class: "icon",
|
390
|
-
icon: unref(data),
|
466
|
+
icon: unref(data$2),
|
391
467
|
style: normalizeStyle({
|
392
|
-
color: unref(
|
468
|
+
color: unref(SendMsgBtnAllow) ? "#1e56ea" : "#dbdbdb"
|
393
469
|
})
|
394
470
|
}, null, 8, ["icon", "style"])
|
395
471
|
])
|
396
472
|
])
|
397
473
|
]),
|
398
|
-
unref(stopDialogue) ? (openBlock(), createElementBlock("div",
|
474
|
+
unref(stopDialogue) ? (openBlock(), createElementBlock("div", _hoisted_27)) : createCommentVNode("", true)
|
399
475
|
])
|
400
476
|
], 512);
|
401
477
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const index_vue_vue_type_style_index_0_scoped_67e42d06_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
index_vue_vue_type_style_index_0_scoped_67e42d06_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-8d9fb74e"]]);
|
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_8d9fb74e_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
index_vue_vue_type_style_index_0_scoped_8d9fb74e_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-197eb540"]]);
|
5
5
|
export {
|
6
6
|
dialogue as default
|
7
7
|
};
|
@@ -6,7 +6,7 @@ import data$1 from "../../node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_module
|
|
6
6
|
import data from "../../node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/caret-down-fill.mjs";
|
7
7
|
import { useCopilotStoreHook } from "../../store/modules/copilot.mjs";
|
8
8
|
import { storeToRefs } from "pinia";
|
9
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
9
|
+
const _withScopeId = (n) => (pushScopeId("data-v-197eb540"), n = n(), popScopeId(), n);
|
10
10
|
const _hoisted_1 = { class: "msg-head" };
|
11
11
|
const _hoisted_2 = { class: "msg-box" };
|
12
12
|
const _hoisted_3 = {
|
@@ -86,12 +86,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
86
86
|
createVNode(MessageParse, {
|
87
87
|
msgs: item.msgs,
|
88
88
|
plusName: item.plusName,
|
89
|
+
isHistory: item.isHistory,
|
89
90
|
onPrintOk: printOk,
|
90
91
|
isShrink: item.isShrink,
|
91
92
|
isPrinting: item.needPrinting,
|
92
93
|
"onUpdate:isPrinting": ($event) => item.needPrinting = $event,
|
93
94
|
scrollToBottom
|
94
|
-
}, null, 8, ["msgs", "plusName", "isShrink", "isPrinting", "onUpdate:isPrinting"])
|
95
|
+
}, null, 8, ["msgs", "plusName", "isHistory", "isShrink", "isPrinting", "onUpdate:isPrinting"])
|
95
96
|
])
|
96
97
|
], 2)
|
97
98
|
])
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const index_vue_vue_type_style_index_0_scoped_197eb540_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
index_vue_vue_type_style_index_0_scoped_197eb540_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
|
};
|
@@ -87,7 +87,7 @@ const _sfc_main = {
|
|
87
87
|
};
|
88
88
|
}
|
89
89
|
};
|
90
|
-
const FileBox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
90
|
+
const FileBox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ecb4b657"]]);
|
91
91
|
export {
|
92
92
|
FileBox as default
|
93
93
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const fileBox_vue_vue_type_style_index_0_scoped_ecb4b657_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
fileBox_vue_vue_type_style_index_0_scoped_ecb4b657_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-04eb43eb"]]);
|
5
5
|
export {
|
6
6
|
MessageParse as default
|
7
7
|
};
|