@kg-ui/kg-ui-plus 0.0.0
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 +39 -0
- package/dist/es/KgCopilot/CopiContent/AnswerHead.vue.mjs +16 -0
- package/dist/es/KgCopilot/CopiContent/AnswerHead.vue2.mjs +4 -0
- package/dist/es/KgCopilot/CopiContent/UserHead.vue.mjs +26 -0
- package/dist/es/KgCopilot/CopiContent/UserHead.vue2.mjs +4 -0
- package/dist/es/KgCopilot/CopiFooter/components/NewTheme.vue.mjs +7 -0
- package/dist/es/KgCopilot/CopiFooter/components/NewTheme.vue2.mjs +49 -0
- package/dist/es/KgCopilot/CopiFooter/components/NewTheme.vue3.mjs +4 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SelectPlugin.vue.mjs +7 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SelectPlugin.vue2.mjs +94 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SelectPlugin.vue3.mjs +4 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SpeechControl.vue.mjs +7 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SpeechControl.vue2.mjs +33 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SpeechControl.vue3.mjs +4 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/Upload.vue.mjs +7 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/Upload.vue2.mjs +140 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/Upload.vue3.mjs +4 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/index.vue.mjs +7 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/index.vue2.mjs +131 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/index.vue3.mjs +4 -0
- package/dist/es/KgCopilot/CopiFooter/index.vue.mjs +7 -0
- package/dist/es/KgCopilot/CopiFooter/index.vue2.mjs +21 -0
- package/dist/es/KgCopilot/CopiFooter/index.vue3.mjs +4 -0
- package/dist/es/KgCopilot/dialogue.vue.mjs +7 -0
- package/dist/es/KgCopilot/dialogue.vue2.mjs +131 -0
- package/dist/es/KgCopilot/dialogue.vue3.mjs +4 -0
- package/dist/es/KgCopilot/index.vue.mjs +7 -0
- package/dist/es/KgCopilot/index.vue2.mjs +49 -0
- package/dist/es/KgCopilot/index.vue3.mjs +4 -0
- package/dist/es/KgCopilot/mdInCode.mjs +56 -0
- package/dist/es/KgCopilot/readMd.vue.mjs +7 -0
- package/dist/es/KgCopilot/readMd.vue2.mjs +87 -0
- package/dist/es/KgCopilot/readMd.vue3.mjs +4 -0
- package/dist/es/ReIcon/index.mjs +11 -0
- package/dist/es/ReIcon/src/iconfont.mjs +46 -0
- package/dist/es/ReIcon/src/iconifyIconOffline.mjs +30 -0
- package/dist/es/ReIcon/src/iconifyIconOnline.mjs +29 -0
- package/dist/es/_virtual/___vite-browser-external.mjs +6 -0
- package/dist/es/_virtual/__vite-browser-external.mjs +4 -0
- package/dist/es/_virtual/_commonjsHelpers.mjs +34 -0
- package/dist/es/_virtual/_plugin-vue_export-helper.mjs +10 -0
- package/dist/es/_virtual/index.mjs +13 -0
- package/dist/es/api/project.mjs +51 -0
- package/dist/es/directives/heighlight/index.mjs +69 -0
- package/dist/es/directives/index.mjs +4 -0
- package/dist/es/home/LFilter/FilterArea.vue.mjs +7 -0
- package/dist/es/home/LFilter/FilterArea.vue2.mjs +507 -0
- package/dist/es/home/LFilter/FilterArea.vue3.mjs +4 -0
- package/dist/es/home/LFilter/FilterHead.vue.mjs +129 -0
- package/dist/es/home/LFilter/FilterHead.vue2.mjs +4 -0
- package/dist/es/home/LFilter/FilterItem.vue.mjs +7 -0
- package/dist/es/home/LFilter/FilterItem.vue2.mjs +114 -0
- package/dist/es/home/LFilter/FilterItem.vue3.mjs +4 -0
- package/dist/es/home/LFilter/FilterItemIcon.vue.mjs +7 -0
- package/dist/es/home/LFilter/FilterItemIcon.vue2.mjs +171 -0
- package/dist/es/home/LFilter/FilterItemIcon.vue3.mjs +4 -0
- package/dist/es/home/LFilter/index.vue.mjs +17 -0
- package/dist/es/home/LFilter/index.vue2.mjs +4 -0
- package/dist/es/home/LProject/index.vue.mjs +7 -0
- package/dist/es/home/LProject/index.vue2.mjs +70 -0
- package/dist/es/home/LProject/index.vue3.mjs +4 -0
- package/dist/es/home/index.vue.mjs +7 -0
- package/dist/es/home/index.vue2.mjs +80 -0
- package/dist/es/home/index.vue3.mjs +4 -0
- package/dist/es/index.mjs +36 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/check.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/circle-plus.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/close.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/microphone.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/paperclip.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/promotion.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/upload.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/copy-simple.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/speaker-high-light.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/thumbs-down-thin.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/thumbs-up-thin.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/warning-bold.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/add-line.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/arrow-down-s-line.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/arrow-up-s-line.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/check-fill.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/download-line.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/more-2-fill.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify_vue@4.0.0_vue@3.2.45/node_modules/@iconify/vue/dist/iconify.mjs +1702 -0
- package/dist/es/node_modules/.pnpm/@iconify_vue@4.0.0_vue@3.2.45/node_modules/@iconify/vue/dist/offline.mjs +436 -0
- package/dist/es/node_modules/.pnpm/@pureadmin_utils@1.8.5_vue@3.2.45/node_modules/@pureadmin/utils/dist/index.mjs +70 -0
- package/dist/es/node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/callBound.mjs +16 -0
- package/dist/es/node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/index.mjs +36 -0
- package/dist/es/node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.mjs +48 -0
- package/dist/es/node_modules/.pnpm/dompurify@3.0.10/node_modules/dompurify/dist/purify.es.mjs +949 -0
- package/dist/es/node_modules/.pnpm/es-define-property@1.0.0/node_modules/es-define-property/index.mjs +22 -0
- package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.mjs +4 -0
- package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.mjs +4 -0
- package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.mjs +4 -0
- package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.mjs +4 -0
- package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.mjs +4 -0
- package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.mjs +4 -0
- package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.mjs +4 -0
- package/dist/es/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.mjs +72 -0
- package/dist/es/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.mjs +6 -0
- package/dist/es/node_modules/.pnpm/get-intrinsic@1.2.4/node_modules/get-intrinsic/index.mjs +320 -0
- package/dist/es/node_modules/.pnpm/gopd@1.0.1/node_modules/gopd/index.mjs +14 -0
- package/dist/es/node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.mjs +19 -0
- package/dist/es/node_modules/.pnpm/has-proto@1.0.3/node_modules/has-proto/index.mjs +11 -0
- package/dist/es/node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/index.mjs +21 -0
- package/dist/es/node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/shams.mjs +48 -0
- package/dist/es/node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.mjs +8 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/core.mjs +5 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/apache.mjs +91 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/bash.mjs +377 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/basic.mjs +221 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/c.mjs +280 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/css.mjs +732 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dart.mjs +247 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/django.mjs +47 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dns.mjs +71 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dos.mjs +160 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dust.mjs +38 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/erlang.mjs +176 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/go.mjs +135 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/http.mjs +89 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/java.mjs +254 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/javascript.mjs +698 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/json.mjs +40 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/markdown.mjs +227 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/nginx.mjs +144 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/php.mjs +589 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/python.mjs +414 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/ruby.mjs +414 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/stylus.mjs +766 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/swift.mjs +832 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/typescript.mjs +788 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/xml.mjs +227 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/lib/core.mjs +1580 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/styles/paraiso-light.css.mjs +4 -0
- package/dist/es/node_modules/.pnpm/marked@12.0.1/node_modules/marked/lib/marked.esm.mjs +2045 -0
- package/dist/es/node_modules/.pnpm/object-inspect@1.13.1/node_modules/object-inspect/index.mjs +514 -0
- package/dist/es/node_modules/.pnpm/pinyin-match@1.2.4/node_modules/pinyin-match/es/main.mjs +124 -0
- package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/formats.mjs +22 -0
- package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/index.mjs +14 -0
- package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/parse.mjs +199 -0
- package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/stringify.mjs +262 -0
- package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/utils.mjs +196 -0
- package/dist/es/node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.mjs +54 -0
- package/dist/es/node_modules/.pnpm/side-channel@1.0.6/node_modules/side-channel/index.mjs +115 -0
- package/dist/es/store/index.mjs +8 -0
- package/dist/es/store/modules/copilot.mjs +108 -0
- package/dist/es/store/modules/filters.mjs +346 -0
- package/dist/es/store/modules/types.mjs +19 -0
- package/dist/es/style/index.scss.mjs +4 -0
- package/dist/es/style/tailwind.css.mjs +4 -0
- package/dist/es/style.css +1 -0
- package/dist/es/utils/home.mjs +129 -0
- package/dist/es/utils/http/index.mjs +90 -0
- package/dist/es/utils/message.mjs +42 -0
- package/package.json +124 -0
@@ -0,0 +1,90 @@
|
|
1
|
+
var __defProp = Object.defineProperty;
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
3
|
+
var __publicField = (obj, key, value) => {
|
4
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
5
|
+
return value;
|
6
|
+
};
|
7
|
+
import Axios from "axios";
|
8
|
+
import lib from "../../node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/index.mjs";
|
9
|
+
const defaultConfig = {
|
10
|
+
// 请求超时时间
|
11
|
+
timeout: 1e4,
|
12
|
+
headers: {
|
13
|
+
Accept: "application/json, text/plain, */*",
|
14
|
+
"Content-Type": "application/json",
|
15
|
+
"X-Requested-With": "XMLHttpRequest"
|
16
|
+
},
|
17
|
+
// 数组格式参数序列化(https://github.com/axios/axios/issues/5142)
|
18
|
+
paramsSerializer: {
|
19
|
+
serialize: lib.stringify
|
20
|
+
}
|
21
|
+
};
|
22
|
+
const _PureHttp = class {
|
23
|
+
constructor() {
|
24
|
+
this.httpInterceptorsRequest();
|
25
|
+
this.httpInterceptorsResponse();
|
26
|
+
}
|
27
|
+
/** 请求拦截 */
|
28
|
+
httpInterceptorsRequest() {
|
29
|
+
_PureHttp.axiosInstance.interceptors.request.use(
|
30
|
+
async (config) => {
|
31
|
+
config.headers["accessToken"] = window["know_token"];
|
32
|
+
return config;
|
33
|
+
},
|
34
|
+
(error) => {
|
35
|
+
return Promise.reject(error);
|
36
|
+
}
|
37
|
+
);
|
38
|
+
}
|
39
|
+
/** 响应拦截 */
|
40
|
+
httpInterceptorsResponse() {
|
41
|
+
const instance = _PureHttp.axiosInstance;
|
42
|
+
instance.interceptors.response.use(
|
43
|
+
(response) => {
|
44
|
+
var _a;
|
45
|
+
if (((_a = response == null ? void 0 : response.data) == null ? void 0 : _a.status) === -1e3) {
|
46
|
+
console.error("用户未登录");
|
47
|
+
alert("token失效");
|
48
|
+
return response.data;
|
49
|
+
}
|
50
|
+
return response.data;
|
51
|
+
},
|
52
|
+
(error) => {
|
53
|
+
const $error = error;
|
54
|
+
$error.isCancelRequest = Axios.isCancel($error);
|
55
|
+
return Promise.reject($error);
|
56
|
+
}
|
57
|
+
);
|
58
|
+
}
|
59
|
+
/** 通用请求工具函数 */
|
60
|
+
request(method, url, param, axiosConfig) {
|
61
|
+
const config = {
|
62
|
+
method,
|
63
|
+
url,
|
64
|
+
...param,
|
65
|
+
...axiosConfig
|
66
|
+
};
|
67
|
+
return new Promise((resolve, reject) => {
|
68
|
+
_PureHttp.axiosInstance.request(config).then((response) => {
|
69
|
+
resolve(response);
|
70
|
+
}).catch((error) => {
|
71
|
+
reject(error);
|
72
|
+
});
|
73
|
+
});
|
74
|
+
}
|
75
|
+
/** 单独抽离的post工具函数 */
|
76
|
+
post(url, params, config) {
|
77
|
+
return this.request("post", url, params, config);
|
78
|
+
}
|
79
|
+
/** 单独抽离的get工具函数 */
|
80
|
+
get(url, params, config) {
|
81
|
+
return this.request("get", url, params, config);
|
82
|
+
}
|
83
|
+
};
|
84
|
+
let PureHttp = _PureHttp;
|
85
|
+
/** 保存当前Axios实例对象 */
|
86
|
+
__publicField(PureHttp, "axiosInstance", Axios.create(defaultConfig));
|
87
|
+
const http = new PureHttp();
|
88
|
+
export {
|
89
|
+
http
|
90
|
+
};
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { isFunction as mt } from "../node_modules/.pnpm/@pureadmin_utils@1.8.5_vue@3.2.45/node_modules/@pureadmin/utils/dist/index.mjs";
|
2
|
+
import { ElMessage } from "element-plus";
|
3
|
+
const message = (message2, params) => {
|
4
|
+
if (!params) {
|
5
|
+
return ElMessage({
|
6
|
+
message: message2,
|
7
|
+
customClass: "pure-message"
|
8
|
+
});
|
9
|
+
} else {
|
10
|
+
const {
|
11
|
+
icon,
|
12
|
+
type = "info",
|
13
|
+
dangerouslyUseHTMLString = false,
|
14
|
+
customClass = "antd",
|
15
|
+
duration = 2e3,
|
16
|
+
showClose = false,
|
17
|
+
center = false,
|
18
|
+
offset = 20,
|
19
|
+
appendTo = document.body,
|
20
|
+
grouping = false,
|
21
|
+
onClose
|
22
|
+
} = params;
|
23
|
+
return ElMessage({
|
24
|
+
message: message2,
|
25
|
+
type,
|
26
|
+
icon,
|
27
|
+
dangerouslyUseHTMLString,
|
28
|
+
duration,
|
29
|
+
showClose,
|
30
|
+
center,
|
31
|
+
offset,
|
32
|
+
appendTo,
|
33
|
+
grouping,
|
34
|
+
// 全局搜 pure-message 即可知道该类的样式位置
|
35
|
+
customClass: customClass === "antd" ? "pure-message" : "",
|
36
|
+
onClose: () => mt(onClose) ? onClose() : null
|
37
|
+
});
|
38
|
+
}
|
39
|
+
};
|
40
|
+
export {
|
41
|
+
message
|
42
|
+
};
|
package/package.json
ADDED
@@ -0,0 +1,124 @@
|
|
1
|
+
{
|
2
|
+
"name": "@kg-ui/kg-ui-plus",
|
3
|
+
"version": "0.0.0",
|
4
|
+
"description": "A Component Library for Vue 3",
|
5
|
+
"private": false,
|
6
|
+
"main": "dist/es/index.mjs",
|
7
|
+
"files": [
|
8
|
+
"dist"
|
9
|
+
],
|
10
|
+
"scripts": {
|
11
|
+
"dev": "NODE_OPTIONS=--max-old-space-size=4096 vite",
|
12
|
+
"serve": "pnpm dev",
|
13
|
+
"build": "rimraf dist && NODE_OPTIONS=--max-old-space-size=8192 vite build",
|
14
|
+
"report": "rimraf dist && vite build",
|
15
|
+
"preview": "vite preview",
|
16
|
+
"preview:build": "pnpm build && vite preview",
|
17
|
+
"typecheck": "tsc --noEmit && vue-tsc --noEmit --skipLibCheck",
|
18
|
+
"svgo": "svgo -f src/assets/svg -o src/assets/svg",
|
19
|
+
"cloc": "NODE_OPTIONS=--max-old-space-size=4096 cloc . --exclude-dir=node_modules --exclude-lang=YAML",
|
20
|
+
"clean:cache": "rm -rf node_modules && rm -rf .eslintcache && pnpm install",
|
21
|
+
"lint:eslint": "eslint --cache --max-warnings 0 \"{src,mock,build}/**/*.{vue,js,ts,tsx}\" --fix",
|
22
|
+
"lint:prettier": "prettier --write \"src/**/*.{js,ts,json,tsx,css,less,scss,vue,html,md}\"",
|
23
|
+
"lint:stylelint": "stylelint --cache --fix \"**/*.{vue,css,scss,postcss,less}\" --cache --cache-location node_modules/.cache/stylelint/",
|
24
|
+
"lint:lint-staged": "lint-staged -c ./.husky/lintstagedrc.js",
|
25
|
+
"lint:pretty": "pretty-quick --staged",
|
26
|
+
"lint": "pnpm lint:eslint && pnpm lint:prettier && pnpm lint:stylelint",
|
27
|
+
"postinstall": "cd .. && cd .. && husky install packages/kg_tags_v3/.husky",
|
28
|
+
"prepare": "cd .. && cd .. && husky install packages/kg_tags_v3/.husky",
|
29
|
+
"preinstall": "npx only-allow pnpm"
|
30
|
+
},
|
31
|
+
"browserslist": [
|
32
|
+
"> 1%",
|
33
|
+
"not ie 11",
|
34
|
+
"not op_mini all"
|
35
|
+
],
|
36
|
+
"dependencies": {
|
37
|
+
"@pureadmin/utils": "1.8.5",
|
38
|
+
"axios": "1.2.0",
|
39
|
+
"dayjs": "1.11.6",
|
40
|
+
"dompurify": "^3.0.10",
|
41
|
+
"element-plus": "2.2.27",
|
42
|
+
"highlight.js": "^11.9.0",
|
43
|
+
"marked": "^12.0.1",
|
44
|
+
"path": "0.12.7",
|
45
|
+
"pinia": "2.0.28",
|
46
|
+
"pinyin-match": "1.2.4",
|
47
|
+
"qs": "6.11.0"
|
48
|
+
},
|
49
|
+
"devDependencies": {
|
50
|
+
"@babel/core": ">=7.0.0-0 <8.0.0",
|
51
|
+
"@commitlint/cli": "13.1.0",
|
52
|
+
"@commitlint/config-conventional": "13.1.0",
|
53
|
+
"@iconify-icons/ep": "1.2.7",
|
54
|
+
"@iconify-icons/ph": "^1.2.5",
|
55
|
+
"@iconify-icons/ri": "1.2.3",
|
56
|
+
"@iconify/vue": "4.0.0",
|
57
|
+
"@kg-ui/kg_copilot_vue3": "workspace:^0.0.22",
|
58
|
+
"@types/node": "18.11.9",
|
59
|
+
"@types/qs": "6.9.7",
|
60
|
+
"@typescript-eslint/eslint-plugin": "5.42.1",
|
61
|
+
"@typescript-eslint/parser": "5.42.1",
|
62
|
+
"@vitejs/plugin-vue": "4.0.0",
|
63
|
+
"@vitejs/plugin-vue-jsx": "3.0.0",
|
64
|
+
"@vue/eslint-config-prettier": "7.0.0",
|
65
|
+
"@vue/eslint-config-typescript": "11.0.2",
|
66
|
+
"autoprefixer": "10.4.13",
|
67
|
+
"cloc": "2.10.0",
|
68
|
+
"cssnano": "5.1.14",
|
69
|
+
"eslint": "8.8.0",
|
70
|
+
"eslint-plugin-prettier": "4.0.0",
|
71
|
+
"eslint-plugin-vue": "9.7.0",
|
72
|
+
"husky": "7.0.4",
|
73
|
+
"lint-staged": "11.1.2",
|
74
|
+
"picocolors": "1.0.0",
|
75
|
+
"postcss": "8.4.18",
|
76
|
+
"postcss-html": "1.5.0",
|
77
|
+
"postcss-import": "15.0.0",
|
78
|
+
"postcss-scss": "4.0.5",
|
79
|
+
"prettier": "2.5.1",
|
80
|
+
"pretty-quick": "3.1.1",
|
81
|
+
"rimraf": "3.0.2",
|
82
|
+
"rollup-plugin-visualizer": "5.8.3",
|
83
|
+
"sass": "^1.72.0",
|
84
|
+
"sass-loader": "^14.1.1",
|
85
|
+
"stylelint": "^14.16.1",
|
86
|
+
"stylelint-config-html": "^1.1.0",
|
87
|
+
"stylelint-config-prettier": "^9.0.5",
|
88
|
+
"stylelint-config-recommended": "^9.0.0",
|
89
|
+
"stylelint-config-standard": "^29.0.0",
|
90
|
+
"stylelint-order": "^5.0.0",
|
91
|
+
"svgo": "3.0.2",
|
92
|
+
"tailwindcss": "3.2.4",
|
93
|
+
"terser": "5.16.1",
|
94
|
+
"typescript": "4.9.3",
|
95
|
+
"unplugin-vue-define-options": "0.12.2",
|
96
|
+
"vite": "4.0.3",
|
97
|
+
"vite-plugin-cdn-import": "0.3.5",
|
98
|
+
"vite-plugin-compression": "0.5.1",
|
99
|
+
"vite-plugin-dts": "1.4.1",
|
100
|
+
"vite-plugin-remove-console": "1.3.0",
|
101
|
+
"vite-svg-loader": "3.6.0",
|
102
|
+
"vue": "3.2.45",
|
103
|
+
"vue-eslint-parser": "9.1.0",
|
104
|
+
"vue-tsc": "1.0.9",
|
105
|
+
"webpack": "^5.0.0"
|
106
|
+
},
|
107
|
+
"publishConfig": {
|
108
|
+
"access": "public",
|
109
|
+
"registry": "https://registry.npmjs.org/"
|
110
|
+
},
|
111
|
+
"pnpm": {
|
112
|
+
"peerDependencyRules": {
|
113
|
+
"ignoreMissing": [
|
114
|
+
"rollup",
|
115
|
+
"webpack"
|
116
|
+
]
|
117
|
+
}
|
118
|
+
},
|
119
|
+
"volta": {
|
120
|
+
"node": "16.13.1"
|
121
|
+
},
|
122
|
+
"author": "lyn",
|
123
|
+
"license": "MIT"
|
124
|
+
}
|