@kg-ui/kg-ui-plus 0.0.0 → 0.0.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 +2 -38
- package/package.json +1 -2
- package/dist/es/KgCopilot/CopiContent/AnswerHead.vue.mjs +0 -16
- package/dist/es/KgCopilot/CopiContent/AnswerHead.vue2.mjs +0 -4
- package/dist/es/KgCopilot/CopiContent/UserHead.vue.mjs +0 -26
- package/dist/es/KgCopilot/CopiContent/UserHead.vue2.mjs +0 -4
- package/dist/es/KgCopilot/CopiFooter/components/NewTheme.vue.mjs +0 -7
- package/dist/es/KgCopilot/CopiFooter/components/NewTheme.vue2.mjs +0 -49
- package/dist/es/KgCopilot/CopiFooter/components/NewTheme.vue3.mjs +0 -4
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SelectPlugin.vue.mjs +0 -7
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SelectPlugin.vue2.mjs +0 -94
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SelectPlugin.vue3.mjs +0 -4
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SpeechControl.vue.mjs +0 -7
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SpeechControl.vue2.mjs +0 -33
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SpeechControl.vue3.mjs +0 -4
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/Upload.vue.mjs +0 -7
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/Upload.vue2.mjs +0 -140
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/Upload.vue3.mjs +0 -4
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/index.vue.mjs +0 -7
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/index.vue2.mjs +0 -131
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/index.vue3.mjs +0 -4
- package/dist/es/KgCopilot/CopiFooter/index.vue.mjs +0 -7
- package/dist/es/KgCopilot/CopiFooter/index.vue2.mjs +0 -21
- package/dist/es/KgCopilot/CopiFooter/index.vue3.mjs +0 -4
- package/dist/es/KgCopilot/dialogue.vue.mjs +0 -7
- package/dist/es/KgCopilot/dialogue.vue2.mjs +0 -131
- package/dist/es/KgCopilot/dialogue.vue3.mjs +0 -4
- package/dist/es/KgCopilot/index.vue.mjs +0 -7
- package/dist/es/KgCopilot/index.vue2.mjs +0 -49
- package/dist/es/KgCopilot/index.vue3.mjs +0 -4
- package/dist/es/KgCopilot/mdInCode.mjs +0 -56
- package/dist/es/KgCopilot/readMd.vue.mjs +0 -7
- package/dist/es/KgCopilot/readMd.vue2.mjs +0 -87
- package/dist/es/KgCopilot/readMd.vue3.mjs +0 -4
- package/dist/es/ReIcon/index.mjs +0 -11
- package/dist/es/ReIcon/src/iconfont.mjs +0 -46
- package/dist/es/ReIcon/src/iconifyIconOffline.mjs +0 -30
- package/dist/es/ReIcon/src/iconifyIconOnline.mjs +0 -29
- package/dist/es/_virtual/___vite-browser-external.mjs +0 -6
- package/dist/es/_virtual/__vite-browser-external.mjs +0 -4
- package/dist/es/_virtual/_commonjsHelpers.mjs +0 -34
- package/dist/es/_virtual/_plugin-vue_export-helper.mjs +0 -10
- package/dist/es/_virtual/index.mjs +0 -13
- package/dist/es/api/project.mjs +0 -51
- package/dist/es/directives/heighlight/index.mjs +0 -69
- package/dist/es/directives/index.mjs +0 -4
- package/dist/es/home/LFilter/FilterArea.vue.mjs +0 -7
- package/dist/es/home/LFilter/FilterArea.vue2.mjs +0 -507
- package/dist/es/home/LFilter/FilterArea.vue3.mjs +0 -4
- package/dist/es/home/LFilter/FilterHead.vue.mjs +0 -129
- package/dist/es/home/LFilter/FilterHead.vue2.mjs +0 -4
- package/dist/es/home/LFilter/FilterItem.vue.mjs +0 -7
- package/dist/es/home/LFilter/FilterItem.vue2.mjs +0 -114
- package/dist/es/home/LFilter/FilterItem.vue3.mjs +0 -4
- package/dist/es/home/LFilter/FilterItemIcon.vue.mjs +0 -7
- package/dist/es/home/LFilter/FilterItemIcon.vue2.mjs +0 -171
- package/dist/es/home/LFilter/FilterItemIcon.vue3.mjs +0 -4
- package/dist/es/home/LFilter/index.vue.mjs +0 -17
- package/dist/es/home/LFilter/index.vue2.mjs +0 -4
- package/dist/es/home/LProject/index.vue.mjs +0 -7
- package/dist/es/home/LProject/index.vue2.mjs +0 -70
- package/dist/es/home/LProject/index.vue3.mjs +0 -4
- package/dist/es/home/index.vue.mjs +0 -7
- package/dist/es/home/index.vue2.mjs +0 -80
- package/dist/es/home/index.vue3.mjs +0 -4
- package/dist/es/index.mjs +0 -36
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/check.mjs +0 -8
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/circle-plus.mjs +0 -8
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/close.mjs +0 -8
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/microphone.mjs +0 -8
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/paperclip.mjs +0 -8
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/promotion.mjs +0 -8
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/upload.mjs +0 -8
- package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/copy-simple.mjs +0 -8
- package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/speaker-high-light.mjs +0 -8
- package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/thumbs-down-thin.mjs +0 -8
- package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/thumbs-up-thin.mjs +0 -8
- package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/warning-bold.mjs +0 -8
- package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/add-line.mjs +0 -8
- package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/arrow-down-s-line.mjs +0 -8
- package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/arrow-up-s-line.mjs +0 -8
- package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/check-fill.mjs +0 -8
- package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/download-line.mjs +0 -8
- package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/more-2-fill.mjs +0 -8
- package/dist/es/node_modules/.pnpm/@iconify_vue@4.0.0_vue@3.2.45/node_modules/@iconify/vue/dist/iconify.mjs +0 -1702
- package/dist/es/node_modules/.pnpm/@iconify_vue@4.0.0_vue@3.2.45/node_modules/@iconify/vue/dist/offline.mjs +0 -436
- package/dist/es/node_modules/.pnpm/@pureadmin_utils@1.8.5_vue@3.2.45/node_modules/@pureadmin/utils/dist/index.mjs +0 -70
- package/dist/es/node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/callBound.mjs +0 -16
- package/dist/es/node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/index.mjs +0 -36
- package/dist/es/node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.mjs +0 -48
- package/dist/es/node_modules/.pnpm/dompurify@3.0.10/node_modules/dompurify/dist/purify.es.mjs +0 -949
- package/dist/es/node_modules/.pnpm/es-define-property@1.0.0/node_modules/es-define-property/index.mjs +0 -22
- package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.mjs +0 -4
- package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.mjs +0 -4
- package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.mjs +0 -4
- package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.mjs +0 -4
- package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.mjs +0 -4
- package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.mjs +0 -4
- package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.mjs +0 -4
- package/dist/es/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.mjs +0 -72
- package/dist/es/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.mjs +0 -6
- package/dist/es/node_modules/.pnpm/get-intrinsic@1.2.4/node_modules/get-intrinsic/index.mjs +0 -320
- package/dist/es/node_modules/.pnpm/gopd@1.0.1/node_modules/gopd/index.mjs +0 -14
- package/dist/es/node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.mjs +0 -19
- package/dist/es/node_modules/.pnpm/has-proto@1.0.3/node_modules/has-proto/index.mjs +0 -11
- package/dist/es/node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/index.mjs +0 -21
- package/dist/es/node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/shams.mjs +0 -48
- package/dist/es/node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.mjs +0 -8
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/core.mjs +0 -5
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/apache.mjs +0 -91
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/bash.mjs +0 -377
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/basic.mjs +0 -221
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/c.mjs +0 -280
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/css.mjs +0 -732
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dart.mjs +0 -247
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/django.mjs +0 -47
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dns.mjs +0 -71
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dos.mjs +0 -160
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dust.mjs +0 -38
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/erlang.mjs +0 -176
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/go.mjs +0 -135
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/http.mjs +0 -89
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/java.mjs +0 -254
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/javascript.mjs +0 -698
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/json.mjs +0 -40
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/markdown.mjs +0 -227
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/nginx.mjs +0 -144
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/php.mjs +0 -589
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/python.mjs +0 -414
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/ruby.mjs +0 -414
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/stylus.mjs +0 -766
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/swift.mjs +0 -832
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/typescript.mjs +0 -788
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/xml.mjs +0 -227
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/lib/core.mjs +0 -1580
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/styles/paraiso-light.css.mjs +0 -4
- package/dist/es/node_modules/.pnpm/marked@12.0.1/node_modules/marked/lib/marked.esm.mjs +0 -2045
- package/dist/es/node_modules/.pnpm/object-inspect@1.13.1/node_modules/object-inspect/index.mjs +0 -514
- package/dist/es/node_modules/.pnpm/pinyin-match@1.2.4/node_modules/pinyin-match/es/main.mjs +0 -124
- package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/formats.mjs +0 -22
- package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/index.mjs +0 -14
- package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/parse.mjs +0 -199
- package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/stringify.mjs +0 -262
- package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/utils.mjs +0 -196
- package/dist/es/node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.mjs +0 -54
- package/dist/es/node_modules/.pnpm/side-channel@1.0.6/node_modules/side-channel/index.mjs +0 -115
- package/dist/es/store/index.mjs +0 -8
- package/dist/es/store/modules/copilot.mjs +0 -108
- package/dist/es/store/modules/filters.mjs +0 -346
- package/dist/es/store/modules/types.mjs +0 -19
- package/dist/es/style/index.scss.mjs +0 -4
- package/dist/es/style/tailwind.css.mjs +0 -4
- package/dist/es/style.css +0 -1
- package/dist/es/utils/home.mjs +0 -129
- package/dist/es/utils/http/index.mjs +0 -90
- package/dist/es/utils/message.mjs +0 -42
@@ -1,90 +0,0 @@
|
|
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
|
-
};
|
@@ -1,42 +0,0 @@
|
|
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
|
-
};
|