@kg-ui/kg-ui-plus 0.2.0 → 0.2.1
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/api/copilot.mjs +23 -6
- package/dist/es/directives/heighlight/index.mjs +27 -27
- 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/FilterHead.vue.mjs +1 -1
- 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/index.mjs +1 -1
- package/dist/es/{KgCopilot/CopiCanvas → kgCopilot/copilotCanvas}/InitWrap.vue.mjs +1 -1
- package/dist/es/{KgCopilot/CopiCanvas → kgCopilot/copilotCanvas}/InitWrap.vue2.mjs +2 -2
- package/dist/es/kgCopilot/copilotCanvas/InitWrap.vue3.mjs +4 -0
- package/dist/es/{KgCopilot/CopiCanvas → kgCopilot/copilotCanvas}/docViewer/index.vue.mjs +1 -1
- package/dist/es/{KgCopilot/CopiCanvas → kgCopilot/copilotCanvas}/docViewer/index.vue2.mjs +4 -1
- package/dist/es/kgCopilot/copilotCanvas/docViewer/index.vue3.mjs +4 -0
- package/dist/es/{KgCopilot/CopiCanvas → kgCopilot/copilotCanvas}/docViewer/wpsFileViewer/wpsAi/AiBar.vue.mjs +1 -1
- package/dist/es/{KgCopilot/CopiCanvas → kgCopilot/copilotCanvas}/docViewer/wpsFileViewer/wpsAi/AiBar.vue2.mjs +1 -1
- package/dist/es/kgCopilot/copilotCanvas/docViewer/wpsFileViewer/wpsAi/AiBar.vue3.mjs +4 -0
- package/dist/es/{KgCopilot/CopiCanvas → kgCopilot/copilotCanvas}/docViewer/wpsFileViewer/wpsAi/AiInput.vue.mjs +1 -1
- package/dist/es/{KgCopilot/CopiCanvas → kgCopilot/copilotCanvas}/docViewer/wpsFileViewer/wpsAi/AiInput.vue2.mjs +2 -2
- package/dist/es/kgCopilot/copilotCanvas/docViewer/wpsFileViewer/wpsAi/AiInput.vue3.mjs +4 -0
- package/dist/es/{KgCopilot/CopiCanvas → kgCopilot/copilotCanvas}/docViewer/wpsFileViewer/wpsPanel.vue.mjs +1 -1
- package/dist/es/{KgCopilot/CopiCanvas → kgCopilot/copilotCanvas}/docViewer/wpsFileViewer/wpsPanel.vue2.mjs +71 -55
- package/dist/es/kgCopilot/copilotCanvas/docViewer/wpsFileViewer/wpsPanel.vue3.mjs +4 -0
- package/dist/es/{KgCopilot/CopiCanvas → kgCopilot/copilotCanvas}/index.vue.mjs +1 -1
- package/dist/es/{KgCopilot/CopiCanvas → kgCopilot/copilotCanvas}/index.vue2.mjs +31 -6
- package/dist/es/kgCopilot/copilotCanvas/index.vue3.mjs +4 -0
- package/dist/es/{KgCopilot → kgCopilot/copilotDialog}/CopiContent/AnswerHead.vue.mjs +2 -2
- package/dist/es/{KgCopilot → kgCopilot/copilotDialog}/CopiContent/AnswerHead.vue2.mjs +2 -2
- package/dist/es/kgCopilot/copilotDialog/CopiContent/AnswerHead.vue3.mjs +4 -0
- package/dist/es/{KgCopilot/dialogue → kgCopilot/copilotDialog/CopiContent}/SuggestMessage.vue.mjs +2 -2
- package/dist/es/{KgCopilot/dialogue → kgCopilot/copilotDialog/CopiContent}/SuggestMessage.vue2.mjs +2 -2
- package/dist/es/kgCopilot/copilotDialog/CopiContent/SuggestMessage.vue3.mjs +4 -0
- package/dist/es/{KgCopilot → kgCopilot/copilotDialog}/CopiContent/UserHead.vue.mjs +3 -3
- package/dist/es/kgCopilot/copilotDialog/CopiContent/UserHead.vue2.mjs +4 -0
- package/dist/es/{KgCopilot/dialogue → kgCopilot/copilotDialog/CopiContent}/index.vue.mjs +2 -2
- package/dist/es/{KgCopilot/dialogue → kgCopilot/copilotDialog/CopiContent}/index.vue2.mjs +6 -6
- package/dist/es/kgCopilot/copilotDialog/CopiContent/index.vue3.mjs +4 -0
- package/dist/es/{KgCopilot/dialogue → kgCopilot/copilotDialog/CopiContent}/messageParse/edit.vue.mjs +2 -2
- package/dist/es/{KgCopilot/dialogue → kgCopilot/copilotDialog/CopiContent}/messageParse/edit.vue2.mjs +3 -3
- package/dist/es/kgCopilot/copilotDialog/CopiContent/messageParse/edit.vue3.mjs +4 -0
- package/dist/es/{KgCopilot/dialogue → kgCopilot/copilotDialog/CopiContent}/messageParse/fileBox.vue.mjs +5 -5
- package/dist/es/kgCopilot/copilotDialog/CopiContent/messageParse/fileBox.vue2.mjs +4 -0
- package/dist/es/{KgCopilot/dialogue → kgCopilot/copilotDialog/CopiContent}/messageParse/index.vue.mjs +2 -2
- package/dist/es/{KgCopilot/dialogue → kgCopilot/copilotDialog/CopiContent}/messageParse/index.vue2.mjs +2 -2
- package/dist/es/kgCopilot/copilotDialog/CopiContent/messageParse/index.vue3.mjs +4 -0
- package/dist/es/{KgCopilot/dialogue → kgCopilot/copilotDialog/CopiContent}/messageParse/readMd.vue.mjs +2 -2
- package/dist/es/{KgCopilot/dialogue → kgCopilot/copilotDialog/CopiContent}/messageParse/readMd.vue2.mjs +5 -5
- package/dist/es/kgCopilot/copilotDialog/CopiContent/messageParse/readMd.vue3.mjs +4 -0
- package/dist/es/{KgCopilot → kgCopilot/copilotDialog}/CopiFooter/SearchInput/InputFootTool.vue.mjs +2 -2
- package/dist/es/{KgCopilot → kgCopilot/copilotDialog}/CopiFooter/SearchInput/InputFootTool.vue2.mjs +3 -3
- package/dist/es/kgCopilot/copilotDialog/CopiFooter/SearchInput/InputFootTool.vue3.mjs +4 -0
- package/dist/es/{KgCopilot → kgCopilot/copilotDialog}/CopiFooter/SearchInput/NewTheme.vue.mjs +2 -2
- package/dist/es/{KgCopilot → kgCopilot/copilotDialog}/CopiFooter/SearchInput/NewTheme.vue2.mjs +2 -2
- package/dist/es/kgCopilot/copilotDialog/CopiFooter/SearchInput/NewTheme.vue3.mjs +4 -0
- package/dist/es/{KgCopilot → kgCopilot/copilotDialog}/CopiFooter/SearchInput/SelectPluginByKey.vue.mjs +2 -2
- package/dist/es/{KgCopilot → kgCopilot/copilotDialog}/CopiFooter/SearchInput/SelectPluginByKey.vue2.mjs +2 -2
- package/dist/es/kgCopilot/copilotDialog/CopiFooter/SearchInput/SelectPluginByKey.vue3.mjs +4 -0
- package/dist/es/{KgCopilot → kgCopilot/copilotDialog}/CopiFooter/SearchInput/index.vue.mjs +2 -2
- package/dist/es/{KgCopilot → kgCopilot/copilotDialog}/CopiFooter/SearchInput/index.vue2.mjs +7 -7
- package/dist/es/kgCopilot/copilotDialog/CopiFooter/SearchInput/index.vue3.mjs +4 -0
- package/dist/es/{KgCopilot → kgCopilot/copilotDialog}/CopiFooter/index.vue.mjs +2 -2
- package/dist/es/kgCopilot/copilotDialog/CopiFooter/index.vue3.mjs +4 -0
- package/dist/es/{KgCopilot/historyRecord → kgCopilot/copilotHistory}/index.vue.mjs +1 -1
- package/dist/es/{KgCopilot/historyRecord → kgCopilot/copilotHistory}/index.vue2.mjs +6 -6
- package/dist/es/kgCopilot/copilotHistory/index.vue3.mjs +4 -0
- package/dist/es/{KgCopilot → kgCopilot}/index.vue.mjs +1 -1
- package/dist/es/{KgCopilot → kgCopilot}/index.vue2.mjs +7 -7
- package/dist/es/kgCopilot/index.vue3.mjs +4 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/share-forward-2-fill.mjs +8 -0
- package/dist/es/node_modules/.pnpm/{dompurify@3.0.10 → dompurify@3.2.3}/node_modules/dompurify/dist/purify.es.mjs +119 -91
- 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/{marked@12.0.1 → marked@12.0.2}/node_modules/marked/lib/marked.esm.mjs +2 -1
- package/dist/es/store/modules/copilot.mjs +11 -6
- package/dist/es/style.css +1 -1
- package/dist/es/utils/index.mjs +14 -0
- package/package.json +124 -124
- package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue3.mjs +0 -4
- package/dist/es/KgCopilot/CopiCanvas/docViewer/index.vue3.mjs +0 -4
- package/dist/es/KgCopilot/CopiCanvas/docViewer/wpsFileViewer/wpsAi/AiBar.vue3.mjs +0 -4
- package/dist/es/KgCopilot/CopiCanvas/docViewer/wpsFileViewer/wpsAi/AiInput.vue3.mjs +0 -4
- package/dist/es/KgCopilot/CopiCanvas/docViewer/wpsFileViewer/wpsPanel.vue3.mjs +0 -4
- package/dist/es/KgCopilot/CopiCanvas/index.vue3.mjs +0 -4
- package/dist/es/KgCopilot/CopiContent/AnswerHead.vue3.mjs +0 -4
- package/dist/es/KgCopilot/CopiContent/UserHead.vue2.mjs +0 -4
- package/dist/es/KgCopilot/CopiFooter/SearchInput/InputFootTool.vue3.mjs +0 -4
- package/dist/es/KgCopilot/CopiFooter/SearchInput/NewTheme.vue3.mjs +0 -4
- package/dist/es/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue3.mjs +0 -4
- package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue3.mjs +0 -4
- package/dist/es/KgCopilot/CopiFooter/index.vue3.mjs +0 -4
- package/dist/es/KgCopilot/dialogue/SuggestMessage.vue3.mjs +0 -4
- package/dist/es/KgCopilot/dialogue/index.vue3.mjs +0 -4
- package/dist/es/KgCopilot/dialogue/messageParse/edit.vue3.mjs +0 -4
- package/dist/es/KgCopilot/dialogue/messageParse/fileBox.vue2.mjs +0 -4
- package/dist/es/KgCopilot/dialogue/messageParse/index.vue3.mjs +0 -4
- package/dist/es/KgCopilot/dialogue/messageParse/readMd.vue3.mjs +0 -4
- package/dist/es/KgCopilot/historyRecord/index.vue3.mjs +0 -4
- package/dist/es/KgCopilot/index.vue3.mjs +0 -4
- /package/dist/es/{KgCopilot/CopiCanvas → kgCopilot/copilotCanvas}/FileSkeletion.vue.mjs +0 -0
- /package/dist/es/{KgCopilot/CopiCanvas → kgCopilot/copilotCanvas}/FileSkeletion.vue2.mjs +0 -0
- /package/dist/es/{KgCopilot/CopiCanvas → kgCopilot/copilotCanvas}/docViewer/wpsFileViewer/lib/web-office-sdk-solution-v2.0.7.es.mjs +0 -0
- /package/dist/es/{KgCopilot/CopiCanvas → kgCopilot/copilotCanvas}/docViewer/wpsFileViewer/wpsAi/index.vue.mjs +0 -0
- /package/dist/es/{KgCopilot/CopiCanvas → kgCopilot/copilotCanvas}/docViewer/wpsFileViewer/wpsAi/index.vue2.mjs +0 -0
- /package/dist/es/{KgCopilot/dialogue → kgCopilot/copilotDialog/CopiContent}/messageParse/fileIcon.vue.mjs +0 -0
- /package/dist/es/{KgCopilot/dialogue → kgCopilot/copilotDialog/CopiContent}/messageParse/fileIcon.vue2.mjs +0 -0
- /package/dist/es/{KgCopilot/dialogue → kgCopilot/copilotDialog/CopiContent}/messageParse/mdInCode.mjs +0 -0
- /package/dist/es/{KgCopilot → kgCopilot/copilotDialog}/CopiFooter/index.vue2.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-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/copy-document.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/folder-opened.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/notebook.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/reading.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/refresh.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
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# 星光探索-组件库
|
|
2
|
-
|
|
3
|
-
## 基于vue3 elemet-plus封装的组件库
|
|
1
|
+
# 星光探索-组件库
|
|
2
|
+
|
|
3
|
+
## 基于vue3 elemet-plus封装的组件库
|
package/dist/es/api/copilot.mjs
CHANGED
|
@@ -92,12 +92,28 @@ const updateFileToWps = (data) => {
|
|
|
92
92
|
});
|
|
93
93
|
};
|
|
94
94
|
const downloadByWps = (fileId) => {
|
|
95
|
-
return http.request(
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
95
|
+
return http.request(
|
|
96
|
+
"post",
|
|
97
|
+
"/api/uploadFile/getUploadFileById",
|
|
98
|
+
{
|
|
99
|
+
params: {
|
|
100
|
+
fileId
|
|
101
|
+
},
|
|
102
|
+
timeout: 6e4
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
};
|
|
106
|
+
const getWpsShareCode = (fileId) => {
|
|
107
|
+
return http.request(
|
|
108
|
+
"post",
|
|
109
|
+
"/api/uploadFile/getUploadFileById",
|
|
110
|
+
{
|
|
111
|
+
params: {
|
|
112
|
+
fileId
|
|
113
|
+
},
|
|
114
|
+
timeout: 6e4
|
|
115
|
+
}
|
|
116
|
+
);
|
|
101
117
|
};
|
|
102
118
|
export {
|
|
103
119
|
createHistoryInfo,
|
|
@@ -108,6 +124,7 @@ export {
|
|
|
108
124
|
getHistoryInfo,
|
|
109
125
|
getHistoryRecordList,
|
|
110
126
|
getReport,
|
|
127
|
+
getWpsShareCode,
|
|
111
128
|
updataHistoryInfo,
|
|
112
129
|
updataHistoryRecord,
|
|
113
130
|
updateFileToWps
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import HighlightJS from "../../node_modules/.pnpm/highlight.js@11.
|
|
2
|
-
import "../../node_modules/.pnpm/highlight.js@11.
|
|
3
|
-
import python from "../../node_modules/.pnpm/highlight.js@11.
|
|
4
|
-
import java from "../../node_modules/.pnpm/highlight.js@11.
|
|
5
|
-
import c from "../../node_modules/.pnpm/highlight.js@11.
|
|
6
|
-
import javascript from "../../node_modules/.pnpm/highlight.js@11.
|
|
7
|
-
import typescript from "../../node_modules/.pnpm/highlight.js@11.
|
|
8
|
-
import swift from "../../node_modules/.pnpm/highlight.js@11.
|
|
9
|
-
import stylus from "../../node_modules/.pnpm/highlight.js@11.
|
|
10
|
-
import php from "../../node_modules/.pnpm/highlight.js@11.
|
|
11
|
-
import nginx from "../../node_modules/.pnpm/highlight.js@11.
|
|
12
|
-
import json from "../../node_modules/.pnpm/highlight.js@11.
|
|
13
|
-
import go from "../../node_modules/.pnpm/highlight.js@11.
|
|
14
|
-
import http from "../../node_modules/.pnpm/highlight.js@11.
|
|
15
|
-
import erlang from "../../node_modules/.pnpm/highlight.js@11.
|
|
16
|
-
import ruby from "../../node_modules/.pnpm/highlight.js@11.
|
|
17
|
-
import dust from "../../node_modules/.pnpm/highlight.js@11.
|
|
18
|
-
import dos from "../../node_modules/.pnpm/highlight.js@11.
|
|
19
|
-
import dns from "../../node_modules/.pnpm/highlight.js@11.
|
|
20
|
-
import django from "../../node_modules/.pnpm/highlight.js@11.
|
|
21
|
-
import dart from "../../node_modules/.pnpm/highlight.js@11.
|
|
22
|
-
import markdown from "../../node_modules/.pnpm/highlight.js@11.
|
|
23
|
-
import css from "../../node_modules/.pnpm/highlight.js@11.
|
|
24
|
-
import bash from "../../node_modules/.pnpm/highlight.js@11.
|
|
25
|
-
import basic from "../../node_modules/.pnpm/highlight.js@11.
|
|
26
|
-
import xml from "../../node_modules/.pnpm/highlight.js@11.
|
|
27
|
-
import apache from "../../node_modules/.pnpm/highlight.js@11.
|
|
1
|
+
import HighlightJS from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.mjs";
|
|
2
|
+
import "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/styles/sunburst.css.mjs";
|
|
3
|
+
import python from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python.mjs";
|
|
4
|
+
import java from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/java.mjs";
|
|
5
|
+
import c from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/c.mjs";
|
|
6
|
+
import javascript from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/javascript.mjs";
|
|
7
|
+
import typescript from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/typescript.mjs";
|
|
8
|
+
import swift from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/swift.mjs";
|
|
9
|
+
import stylus from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/stylus.mjs";
|
|
10
|
+
import php from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/php.mjs";
|
|
11
|
+
import nginx from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/nginx.mjs";
|
|
12
|
+
import json from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/json.mjs";
|
|
13
|
+
import go from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/go.mjs";
|
|
14
|
+
import http from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/http.mjs";
|
|
15
|
+
import erlang from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/erlang.mjs";
|
|
16
|
+
import ruby from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/ruby.mjs";
|
|
17
|
+
import dust from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dust.mjs";
|
|
18
|
+
import dos from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dos.mjs";
|
|
19
|
+
import dns from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dns.mjs";
|
|
20
|
+
import django from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/django.mjs";
|
|
21
|
+
import dart from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/dart.mjs";
|
|
22
|
+
import markdown from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/markdown.mjs";
|
|
23
|
+
import css from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/css.mjs";
|
|
24
|
+
import bash from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/bash.mjs";
|
|
25
|
+
import basic from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/basic.mjs";
|
|
26
|
+
import xml from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/xml.mjs";
|
|
27
|
+
import apache from "../../node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/apache.mjs";
|
|
28
28
|
HighlightJS.registerLanguage("python", python);
|
|
29
29
|
HighlightJS.registerLanguage("java", java);
|
|
30
30
|
HighlightJS.registerLanguage("c", c);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./FilterArea.vue2.mjs";
|
|
2
2
|
import "./FilterArea.vue3.mjs";
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const FilterArea = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const FilterArea = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-996410e5"]]);
|
|
5
5
|
export {
|
|
6
6
|
FilterArea as default
|
|
7
7
|
};
|
|
@@ -9,7 +9,7 @@ import data$2 from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_module
|
|
|
9
9
|
import { checkFilterShow_xinyuan, checkFilterShow, checkFilterShow_letter } from "../../utils/home.mjs";
|
|
10
10
|
import FilterItem from "./FilterItem.vue.mjs";
|
|
11
11
|
import FilterItemIcon from "./FilterItemIcon.vue.mjs";
|
|
12
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
12
|
+
const _withScopeId = (n) => (pushScopeId("data-v-996410e5"), n = n(), popScopeId(), n);
|
|
13
13
|
const _hoisted_1 = { id: "filterWrap" };
|
|
14
14
|
const _hoisted_2 = { key: 0 };
|
|
15
15
|
const _hoisted_3 = { class: "flex flex-1 align-middle justify-items-start flex-wrap" };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const FilterArea_vue_vue_type_style_index_0_scoped_996410e5_lang = "";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
FilterArea_vue_vue_type_style_index_0_scoped_996410e5_lang as default
|
|
4
4
|
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent, computed, resolveComponent, openBlock, createElementBl
|
|
|
2
2
|
import { useFilterStoreHook } from "../../store/modules/filters.mjs";
|
|
3
3
|
import { storeToRefs } from "pinia";
|
|
4
4
|
import { isAllEmpty as B } from "../../node_modules/.pnpm/@pureadmin_utils@1.8.5_vue@3.2.45/node_modules/@pureadmin/utils/dist/index.mjs";
|
|
5
|
-
import data from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.
|
|
5
|
+
import data from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/close.mjs";
|
|
6
6
|
import data$1 from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/arrow-down-s-line.mjs";
|
|
7
7
|
import data$2 from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/arrow-up-s-line.mjs";
|
|
8
8
|
const _hoisted_1 = { class: "flex justify-between p-1 bg-white text-xs text-[#666]" };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./FilterItem.vue2.mjs";
|
|
2
2
|
import "./FilterItem.vue3.mjs";
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const FilterItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const FilterItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-10722fd5"]]);
|
|
5
5
|
export {
|
|
6
6
|
FilterItem as default
|
|
7
7
|
};
|
|
@@ -4,7 +4,7 @@ import { useFilterStoreHook } from "../../store/modules/filters.mjs";
|
|
|
4
4
|
import { EnumFilterKind } from "../../store/modules/types.mjs";
|
|
5
5
|
import data from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/more-2-fill.mjs";
|
|
6
6
|
import { getFilterRemark } from "../../utils/home.mjs";
|
|
7
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
7
|
+
const _withScopeId = (n) => (pushScopeId("data-v-10722fd5"), n = n(), popScopeId(), n);
|
|
8
8
|
const _hoisted_1 = { class: "p-2" };
|
|
9
9
|
const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("line", null, null, -1));
|
|
10
10
|
const _hoisted_3 = ["innerHTML"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const FilterItem_vue_vue_type_style_index_0_scoped_10722fd5_lang = "";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
FilterItem_vue_vue_type_style_index_0_scoped_10722fd5_lang as default
|
|
4
4
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./FilterItemIcon.vue2.mjs";
|
|
2
2
|
import "./FilterItemIcon.vue3.mjs";
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const FilterItemIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const FilterItemIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a70be454"]]);
|
|
5
5
|
export {
|
|
6
6
|
FilterItemIcon as default
|
|
7
7
|
};
|
|
@@ -4,7 +4,7 @@ import { useFilterStoreHook } from "../../store/modules/filters.mjs";
|
|
|
4
4
|
import data from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/more-2-fill.mjs";
|
|
5
5
|
import data$1 from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/check-fill.mjs";
|
|
6
6
|
import { getFilterRemark } from "../../utils/home.mjs";
|
|
7
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
7
|
+
const _withScopeId = (n) => (pushScopeId("data-v-a70be454"), n = n(), popScopeId(), n);
|
|
8
8
|
const _hoisted_1 = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "flex items-end"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const FilterItemIcon_vue_vue_type_style_index_0_scoped_a70be454_lang = "";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
FilterItemIcon_vue_vue_type_style_index_0_scoped_a70be454_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 LProject = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const LProject = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-75d82a2e"]]);
|
|
5
5
|
export {
|
|
6
6
|
LProject as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const index_vue_vue_type_style_index_0_scoped_75d82a2e_lang = "";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
index_vue_vue_type_style_index_0_scoped_75d82a2e_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 Home = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const Home = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ca075550"]]);
|
|
5
5
|
export {
|
|
6
6
|
Home as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const index_vue_vue_type_style_index_0_scoped_ca075550_lang = "";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
index_vue_vue_type_style_index_0_scoped_ca075550_lang as default
|
|
4
4
|
};
|
package/dist/es/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Home from "./home/index.vue.mjs";
|
|
2
|
-
import KgCopilot from "./
|
|
2
|
+
import KgCopilot from "./kgCopilot/index.vue.mjs";
|
|
3
3
|
import * as index from "./directives/index.mjs";
|
|
4
4
|
import { setupStore } from "./store/index.mjs";
|
|
5
5
|
const component = [Home, KgCopilot];
|
|
@@ -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-97fef6d8"]]);
|
|
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
|
-
import data from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.
|
|
4
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
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-97fef6d8"), 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,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./index.vue2.mjs";
|
|
2
2
|
import "./index.vue3.mjs";
|
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const wpsIndex = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const wpsIndex = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-036d2425"]]);
|
|
5
5
|
export {
|
|
6
6
|
wpsIndex as default
|
|
7
7
|
};
|
|
@@ -16,7 +16,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16
16
|
__name: "index",
|
|
17
17
|
setup(__props) {
|
|
18
18
|
const CopilotStore = useCopilotStoreHook();
|
|
19
|
-
const { previewFileUrl, fileUrl, fileName, fileId } = storeToRefs(CopilotStore);
|
|
19
|
+
const { previewFileUrl, fileUrl, fileName, fileId, successShowFile } = storeToRefs(CopilotStore);
|
|
20
20
|
const { setWpsFileId } = CopilotStore;
|
|
21
21
|
const result = ref("");
|
|
22
22
|
const loading = ref(false);
|
|
@@ -30,13 +30,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
30
30
|
getDocxFileByUrl(url).then((res) => {
|
|
31
31
|
updateFileToWps({ url: fileUrl.value, name: fileName.value }).then((res2) => {
|
|
32
32
|
loading.value = false;
|
|
33
|
+
successShowFile.value = true;
|
|
33
34
|
setWpsFileId(res2);
|
|
34
35
|
}).catch((res2) => {
|
|
35
36
|
result.value = res2.response.status === 403 ? "文件已过期" : "获取失败";
|
|
37
|
+
successShowFile.value = false;
|
|
36
38
|
loading.value = false;
|
|
37
39
|
});
|
|
38
40
|
}).catch((res) => {
|
|
39
41
|
result.value = res.response.status === 403 ? "文件已过期" : "获取失败";
|
|
42
|
+
successShowFile.value = false;
|
|
40
43
|
loading.value = false;
|
|
41
44
|
});
|
|
42
45
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./AiBar.vue2.mjs";
|
|
2
2
|
import "./AiBar.vue3.mjs";
|
|
3
3
|
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const AiBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const AiBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5ca30f1d"]]);
|
|
5
5
|
export {
|
|
6
6
|
AiBar as default
|
|
7
7
|
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent, ref, computed, onMounted, openBlock, createElementBloc
|
|
|
2
2
|
import { onClickOutside } from "../../../../../node_modules/.pnpm/@vueuse_core@9.13.0_vue@3.2.45/node_modules/@vueuse/core/index.mjs";
|
|
3
3
|
import { aiBarBtnType } from "../../../../../store/modules/copilot.mjs";
|
|
4
4
|
import { message } from "../../../../../utils/message.mjs";
|
|
5
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
5
|
+
const _withScopeId = (n) => (pushScopeId("data-v-5ca30f1d"), n = n(), popScopeId(), n);
|
|
6
6
|
const _hoisted_1 = { class: "ai-bar__buttons flex items-center" };
|
|
7
7
|
const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "logo mr-2" }, "➤", -1));
|
|
8
8
|
const _hoisted_3 = { class: "flex gap-2" };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./AiInput.vue2.mjs";
|
|
2
2
|
import "./AiInput.vue3.mjs";
|
|
3
3
|
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const AiInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const AiInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6e3feb38"]]);
|
|
5
5
|
export {
|
|
6
6
|
AiInput as default
|
|
7
7
|
};
|
|
@@ -2,8 +2,8 @@ import { defineComponent, ref, computed, onMounted, resolveComponent, openBlock,
|
|
|
2
2
|
import { storeToRefs } from "pinia";
|
|
3
3
|
import { onClickOutside } from "../../../../../node_modules/.pnpm/@vueuse_core@9.13.0_vue@3.2.45/node_modules/@vueuse/core/index.mjs";
|
|
4
4
|
import { useCopilotStoreHook, aiBarBtnType, wpsAiOpt } from "../../../../../store/modules/copilot.mjs";
|
|
5
|
-
import data from "../../../../../node_modules/.pnpm/@iconify-icons_ep@1.2.
|
|
6
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
5
|
+
import data from "../../../../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/refresh.mjs";
|
|
6
|
+
const _withScopeId = (n) => (pushScopeId("data-v-6e3feb38"), n = n(), popScopeId(), n);
|
|
7
7
|
const _hoisted_1 = { class: "textarea overflow-y-auto text-gray-800 text-base border-2 border-blue-500 rounded-xl p-3 mb-2 font-serif select-text" };
|
|
8
8
|
const _hoisted_2 = { class: "flex justify-between items-center mt-4" };
|
|
9
9
|
const _hoisted_3 = { class: "flex items-center text-sm text-gray-500 mr-2" };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./wpsPanel.vue2.mjs";
|
|
2
2
|
import "./wpsPanel.vue3.mjs";
|
|
3
3
|
import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const WpsPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const WpsPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-75b8d2bb"]]);
|
|
5
5
|
export {
|
|
6
6
|
WpsPanel as default
|
|
7
7
|
};
|
|
@@ -6,7 +6,7 @@ import { useCopilotStoreHook, wpsAiOpt } from "../../../../store/modules/copilot
|
|
|
6
6
|
import { downloadByWps } from "../../../../api/copilot.mjs";
|
|
7
7
|
import { urlDownload } from "../../../../utils/home.mjs";
|
|
8
8
|
import { useThrottleFn } from "../../../../node_modules/.pnpm/@vueuse_shared@9.13.0_vue@3.2.45/node_modules/@vueuse/shared/index.mjs";
|
|
9
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
9
|
+
const _withScopeId = (n) => (pushScopeId("data-v-75b8d2bb"), n = n(), popScopeId(), n);
|
|
10
10
|
const _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", {
|
|
11
11
|
id: "office-container",
|
|
12
12
|
class: ""
|
|
@@ -75,80 +75,80 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
75
75
|
},
|
|
76
76
|
commandBars: [
|
|
77
77
|
{
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
cmbId: "FloatQuickHelp",
|
|
79
|
+
attributes: {
|
|
80
|
+
visible: false,
|
|
81
|
+
enable: true
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
85
|
+
cmbId: "HeaderRight",
|
|
86
|
+
attributes: {
|
|
87
|
+
visible: false,
|
|
88
|
+
enable: true
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
92
|
+
cmbId: "HistoryRecord",
|
|
93
|
+
attributes: {
|
|
94
|
+
visible: false,
|
|
95
|
+
enable: true
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
cmbId: "HistoryVersion",
|
|
100
|
+
attributes: {
|
|
101
|
+
visible: false,
|
|
102
|
+
enable: true
|
|
103
103
|
}
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
106
|
+
cmbId: "ShareLink",
|
|
107
|
+
attributes: {
|
|
108
|
+
visible: false,
|
|
109
|
+
enable: true
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
113
|
+
cmbId: "HeaderHistoryMenuBtn",
|
|
114
|
+
attributes: {
|
|
115
|
+
visible: false,
|
|
116
|
+
enable: true
|
|
117
117
|
}
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
120
|
+
cmbId: "PreviewDownload",
|
|
121
|
+
attributes: {
|
|
122
|
+
visible: false,
|
|
123
|
+
enable: true
|
|
124
124
|
}
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
127
|
+
cmbId: "ContextMenuConvene",
|
|
128
|
+
attributes: {
|
|
129
|
+
visible: false,
|
|
130
|
+
enable: true
|
|
131
131
|
}
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
134
|
+
cmbId: "ReviewTrackChanges",
|
|
135
|
+
attributes: {
|
|
136
|
+
visible: false,
|
|
137
|
+
enable: true
|
|
138
138
|
}
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
141
|
+
cmbId: "RevisionSetting",
|
|
142
|
+
attributes: {
|
|
143
|
+
visible: false,
|
|
144
|
+
enable: true
|
|
145
145
|
}
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
148
|
+
cmbId: "RightMenuHistory",
|
|
149
|
+
attributes: {
|
|
150
|
+
visible: false,
|
|
151
|
+
enable: true
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
]
|
|
@@ -170,9 +170,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
170
170
|
rectH = rect.height;
|
|
171
171
|
rect.width;
|
|
172
172
|
}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
173
|
+
const startPos = await getSelectionPos(app, begin);
|
|
174
|
+
const endPos = await getSelectionPos(app, end);
|
|
175
|
+
const x = startPos.x;
|
|
176
176
|
let y = startPos.y;
|
|
177
177
|
if (startPos.y === endPos.y) {
|
|
178
178
|
y = endPos.y + 95;
|
|
@@ -187,13 +187,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
187
187
|
const docWitch = info.OffsetWidth;
|
|
188
188
|
const PageSetup = await app.ActiveDocument.Sections.Item(1).PageSetup;
|
|
189
189
|
const pageWidth = await PageSetup.PageWidth;
|
|
190
|
-
wpsAiInputPos.value = {
|
|
190
|
+
wpsAiInputPos.value = {
|
|
191
|
+
x: offsetX + (docWitch - pageWidth) / 2,
|
|
192
|
+
y: wpsAiInputPosY,
|
|
193
|
+
w: pageWidth,
|
|
194
|
+
h
|
|
195
|
+
};
|
|
191
196
|
}
|
|
192
197
|
async function getSelectionPos(app2, index) {
|
|
193
|
-
|
|
194
|
-
|
|
198
|
+
const rangeIdx = await index;
|
|
199
|
+
const relativeBodyPos = await app2.ActiveDocument.ActiveWindow.Selection.GetRelativePosByGcp(
|
|
200
|
+
rangeIdx
|
|
201
|
+
);
|
|
195
202
|
await app2.ActiveDocument.ActiveWindow.Selection.GetPosByGcp(rangeIdx);
|
|
196
|
-
|
|
203
|
+
const pos = relativeBodyPos;
|
|
197
204
|
return {
|
|
198
205
|
x: pos.x ? pos.x : pos.X,
|
|
199
206
|
y: pos.y ? pos.y : pos.Y
|
|
@@ -218,13 +225,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
218
225
|
});
|
|
219
226
|
});
|
|
220
227
|
async function insertText(newText) {
|
|
221
|
-
const range = await app.ActiveDocument.Range.SetRange(
|
|
228
|
+
const range = await app.ActiveDocument.Range.SetRange(
|
|
229
|
+
selContextIndex.value[1],
|
|
230
|
+
selContextIndex.value[1]
|
|
231
|
+
);
|
|
222
232
|
range.Text = newText;
|
|
223
233
|
}
|
|
224
234
|
async function replaceText(newText) {
|
|
225
|
-
const range = await app.ActiveDocument.Range.SetRange(
|
|
235
|
+
const range = await app.ActiveDocument.Range.SetRange(
|
|
236
|
+
selContextIndex.value[0],
|
|
237
|
+
selContextIndex.value[1]
|
|
238
|
+
);
|
|
226
239
|
range.Text = "";
|
|
227
|
-
const range1 = await app.ActiveDocument.Range.SetRange(
|
|
240
|
+
const range1 = await app.ActiveDocument.Range.SetRange(
|
|
241
|
+
selContextIndex.value[0],
|
|
242
|
+
selContextIndex.value[0]
|
|
243
|
+
);
|
|
228
244
|
range1.Text = newText;
|
|
229
245
|
}
|
|
230
246
|
const handleAiAction = ({ type, text = "" }) => {
|
|
@@ -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-7b6aac5d"]]);
|
|
5
5
|
export {
|
|
6
6
|
CopiCanvas as default
|
|
7
7
|
};
|