vue-layout-gitcode 1.7.2 → 1.7.3
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/{GloabarSearch-b2756991.js → GloabarSearch-B8ENdpbz.js} +5 -47
- package/{MenuItem-1fd24e33.js → MenuItem-BbWTJ3TC.js} +3 -53
- package/{ProjectMenuList-2a6149ed.js → ProjectMenuList-DcL-YWFf.js} +6 -49
- package/{ProjectMenuListV2-73185b74.js → ProjectMenuListV2-CbjDSbpJ.js} +6 -52
- package/{ProjectSearch-9b7aa136.js → ProjectSearch-KXQI9EXE.js} +3 -53
- package/{SearchHistoryList-10183ba2.js → SearchHistoryList-Dio7OIDt.js} +3 -53
- package/SearchPrefixTag-D6Hinad8.js +46 -0
- package/{SearchRecommed-30a4400f.js → SearchRecommed-C1YDDC2d.js} +4 -55
- package/{SearchScopeList-0e1cd79b.js → SearchScopeList-Cma8y-al.js} +3 -53
- package/{UserSearch-34939b97.js → UserSearch-DY7rUzOa.js} +3 -62
- package/index-CPnn_0jN.js +61 -0
- package/{index-628b8678.js → index-CVWIlvsn.js} +23 -33
- package/{index-5bcdb26a.js → index-Cb7tqq6l.js} +1232 -1423
- package/index.js +11 -63
- package/{notice-169ce3dc.js → notice-e2NCMJyf.js} +6 -51
- package/package.json +1 -1
- package/style.css +1 -1
- package/{transWebUrl-d207ebc7.js → transWebUrl-BChMu1HZ.js} +3 -5
- package/SearchPrefixTag-f8fecfca.js +0 -96
- package/index-8931db99.js +0 -112
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { q as useLayoutConfig } from "./index-Cb7tqq6l.js";
|
|
2
2
|
const layoutConfig = useLayoutConfig();
|
|
3
3
|
const transWebUrl = (url, params) => {
|
|
4
|
-
if (!url)
|
|
5
|
-
return url;
|
|
4
|
+
if (!url) return url;
|
|
6
5
|
let processedUrl = url;
|
|
7
6
|
if (layoutConfig.VITE_ENV !== "production") {
|
|
8
7
|
const regex = /^(?:https?:\/\/)?(?:www\.)?([^\/]+)(\/.*)$/;
|
|
9
8
|
const match = url.match(regex);
|
|
10
9
|
processedUrl = match ? match[2] : url || "/";
|
|
11
10
|
}
|
|
12
|
-
if (!params)
|
|
13
|
-
return processedUrl;
|
|
11
|
+
if (!params) return processedUrl;
|
|
14
12
|
const separator = processedUrl.includes("?") ? "&" : "?";
|
|
15
13
|
if (typeof params === "string") {
|
|
16
14
|
return `${processedUrl}${separator}${params}`;
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, withDirectives, withModifiers, createVNode, vShow } from "vue";
|
|
2
|
-
import { G as GIcon, _ as _export_sfc } from "./index-5bcdb26a.js";
|
|
3
|
-
import "vue-devui-lal/icon";
|
|
4
|
-
import "vue-devui-lal/icon/style.css";
|
|
5
|
-
import "vue-devui-lal/button";
|
|
6
|
-
import "vue-devui-lal/popover";
|
|
7
|
-
import "vue-devui-lal/tooltip";
|
|
8
|
-
import "vue-devui-lal/textarea";
|
|
9
|
-
import "vue-devui-lal/button/style.css";
|
|
10
|
-
import "vue-devui-lal/popover/style.css";
|
|
11
|
-
import "vue-devui-lal/tooltip/style.css";
|
|
12
|
-
import "vue-devui-lal/textarea/style.css";
|
|
13
|
-
import "vue-router";
|
|
14
|
-
import "@vueuse/core";
|
|
15
|
-
import "vue-devui-lal/avatar";
|
|
16
|
-
import "vue-devui-lal/avatar/style.css";
|
|
17
|
-
import "lodash/last";
|
|
18
|
-
import "lodash/cloneDeep";
|
|
19
|
-
import "dayjs";
|
|
20
|
-
import "lodash/isDate";
|
|
21
|
-
import "vue-devui-lal/skeleton";
|
|
22
|
-
import "vue-devui-lal/skeleton/style.css";
|
|
23
|
-
import "vue-devui-lal/dropdown";
|
|
24
|
-
import "vue-devui-lal/message";
|
|
25
|
-
import "vue-devui-lal/dropdown/style.css";
|
|
26
|
-
import "vue-devui-lal/message/style.css";
|
|
27
|
-
import "lodash/debounce";
|
|
28
|
-
import "vue-devui-lal/badge";
|
|
29
|
-
import "vue-devui-lal/badge/style.css";
|
|
30
|
-
import "vue-devui-lal/tabs/style.css";
|
|
31
|
-
import "vue-devui-lal/drawer";
|
|
32
|
-
import "vue-devui-lal/drawer/style.css";
|
|
33
|
-
import "vue-devui-lal/input";
|
|
34
|
-
import "vue-devui-lal/form";
|
|
35
|
-
import "vue-devui-lal/input/style.css";
|
|
36
|
-
import "vue-devui-lal/form/style.css";
|
|
37
|
-
import "vue-devui-lal/notification";
|
|
38
|
-
import "vue-devui-lal/notification/style.css";
|
|
39
|
-
import "vue-devui-lal/menu";
|
|
40
|
-
import "vue-devui-lal/menu/style.css";
|
|
41
|
-
import "vue-devui-lal/layout";
|
|
42
|
-
import "vue-devui-lal/layout/style.css";
|
|
43
|
-
import "vue-devui-lal/radio";
|
|
44
|
-
import "@devui-design/icons/icomoon/devui-icon.css";
|
|
45
|
-
import "vue-devui-lal/radio/style.css";
|
|
46
|
-
import "vue-devui-lal/select";
|
|
47
|
-
import "vue-devui-lal/editable-select";
|
|
48
|
-
import "vue-devui-lal/select/style.css";
|
|
49
|
-
import "vue-devui-lal/editable-select/style.css";
|
|
50
|
-
import "vue-devui-lal/checkbox";
|
|
51
|
-
import "vue-devui-lal/checkbox/style.css";
|
|
52
|
-
import "vue-devui-lal/modal";
|
|
53
|
-
import "vue-devui-lal/modal/style.css";
|
|
54
|
-
const _hoisted_1 = { class: "ellipsis" };
|
|
55
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
56
|
-
__name: "SearchPrefixTag",
|
|
57
|
-
props: {
|
|
58
|
-
tag: {},
|
|
59
|
-
closeVisible: { type: Boolean }
|
|
60
|
-
},
|
|
61
|
-
emits: ["inputClick", "closeTag"],
|
|
62
|
-
setup(__props, { emit: __emit }) {
|
|
63
|
-
const emits = __emit;
|
|
64
|
-
const onInputClick = () => {
|
|
65
|
-
emits("inputClick");
|
|
66
|
-
};
|
|
67
|
-
const onCloseTag = () => {
|
|
68
|
-
emits("closeTag");
|
|
69
|
-
};
|
|
70
|
-
return (_ctx, _cache) => {
|
|
71
|
-
return openBlock(), createElementBlock("p", {
|
|
72
|
-
class: "g-header-search-projectname flex items-center px-[16px]",
|
|
73
|
-
onClick: onInputClick
|
|
74
|
-
}, [
|
|
75
|
-
createElementVNode("span", _hoisted_1, toDisplayString(_ctx.tag), 1),
|
|
76
|
-
withDirectives(createElementVNode("span", {
|
|
77
|
-
class: "g-header-search-projectname-close ml-[12px] flex",
|
|
78
|
-
onClick: withModifiers(onCloseTag, ["stop"])
|
|
79
|
-
}, [
|
|
80
|
-
createVNode(GIcon, {
|
|
81
|
-
name: "icon-close",
|
|
82
|
-
color: "#fff",
|
|
83
|
-
size: "7px"
|
|
84
|
-
})
|
|
85
|
-
], 512), [
|
|
86
|
-
[vShow, _ctx.closeVisible]
|
|
87
|
-
])
|
|
88
|
-
]);
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
const SearchPrefixTag_vue_vue_type_style_index_0_scoped_87adc0d6_lang = "";
|
|
93
|
-
const SearchPrefixTag = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-87adc0d6"]]);
|
|
94
|
-
export {
|
|
95
|
-
SearchPrefixTag as default
|
|
96
|
-
};
|
package/index-8931db99.js
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { defineComponent, onMounted, openBlock, createBlock, unref, withCtx, createElementVNode } from "vue";
|
|
2
|
-
import { FixedOverlay } from "vue-devui-lal/overlay";
|
|
3
|
-
import { w as useLayoutConfig, _ as _export_sfc } from "./index-5bcdb26a.js";
|
|
4
|
-
import "vue-devui-lal/overlay/style.css";
|
|
5
|
-
import "vue-devui-lal/button";
|
|
6
|
-
import "vue-devui-lal/popover";
|
|
7
|
-
import "vue-devui-lal/tooltip";
|
|
8
|
-
import "vue-devui-lal/textarea";
|
|
9
|
-
import "vue-devui-lal/button/style.css";
|
|
10
|
-
import "vue-devui-lal/popover/style.css";
|
|
11
|
-
import "vue-devui-lal/tooltip/style.css";
|
|
12
|
-
import "vue-devui-lal/textarea/style.css";
|
|
13
|
-
import "vue-devui-lal/icon";
|
|
14
|
-
import "vue-devui-lal/icon/style.css";
|
|
15
|
-
import "vue-router";
|
|
16
|
-
import "@vueuse/core";
|
|
17
|
-
import "vue-devui-lal/avatar";
|
|
18
|
-
import "vue-devui-lal/avatar/style.css";
|
|
19
|
-
import "lodash/last";
|
|
20
|
-
import "lodash/cloneDeep";
|
|
21
|
-
import "dayjs";
|
|
22
|
-
import "lodash/isDate";
|
|
23
|
-
import "vue-devui-lal/skeleton";
|
|
24
|
-
import "vue-devui-lal/skeleton/style.css";
|
|
25
|
-
import "vue-devui-lal/dropdown";
|
|
26
|
-
import "vue-devui-lal/message";
|
|
27
|
-
import "vue-devui-lal/dropdown/style.css";
|
|
28
|
-
import "vue-devui-lal/message/style.css";
|
|
29
|
-
import "lodash/debounce";
|
|
30
|
-
import "vue-devui-lal/badge";
|
|
31
|
-
import "vue-devui-lal/badge/style.css";
|
|
32
|
-
import "vue-devui-lal/tabs/style.css";
|
|
33
|
-
import "vue-devui-lal/drawer";
|
|
34
|
-
import "vue-devui-lal/drawer/style.css";
|
|
35
|
-
import "vue-devui-lal/input";
|
|
36
|
-
import "vue-devui-lal/form";
|
|
37
|
-
import "vue-devui-lal/input/style.css";
|
|
38
|
-
import "vue-devui-lal/form/style.css";
|
|
39
|
-
import "vue-devui-lal/notification";
|
|
40
|
-
import "vue-devui-lal/notification/style.css";
|
|
41
|
-
import "vue-devui-lal/menu";
|
|
42
|
-
import "vue-devui-lal/menu/style.css";
|
|
43
|
-
import "vue-devui-lal/layout";
|
|
44
|
-
import "vue-devui-lal/layout/style.css";
|
|
45
|
-
import "vue-devui-lal/radio";
|
|
46
|
-
import "@devui-design/icons/icomoon/devui-icon.css";
|
|
47
|
-
import "vue-devui-lal/radio/style.css";
|
|
48
|
-
import "vue-devui-lal/select";
|
|
49
|
-
import "vue-devui-lal/editable-select";
|
|
50
|
-
import "vue-devui-lal/select/style.css";
|
|
51
|
-
import "vue-devui-lal/editable-select/style.css";
|
|
52
|
-
import "vue-devui-lal/checkbox";
|
|
53
|
-
import "vue-devui-lal/checkbox/style.css";
|
|
54
|
-
import "vue-devui-lal/modal";
|
|
55
|
-
import "vue-devui-lal/modal/style.css";
|
|
56
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
57
|
-
__name: "index",
|
|
58
|
-
emits: ["close", "success"],
|
|
59
|
-
setup(__props, { emit: __emit }) {
|
|
60
|
-
const emits = __emit;
|
|
61
|
-
const captchaInit = () => {
|
|
62
|
-
if (!window.initTAC) {
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
const baseURL = useLayoutConfig().VITE_API_HOST;
|
|
66
|
-
const config = {
|
|
67
|
-
requestCaptchaDataUrl: `${baseURL}/uc/api/v1/captcha/gen`,
|
|
68
|
-
validCaptchaUrl: `${baseURL}/uc/api/v1/captcha/check`,
|
|
69
|
-
bindEl: "#captcha-box",
|
|
70
|
-
validSuccess: (res, c, tac) => {
|
|
71
|
-
tac.destroyWindow();
|
|
72
|
-
emits("success", res.data);
|
|
73
|
-
},
|
|
74
|
-
validFail: (res, c, tac) => {
|
|
75
|
-
tac.reloadCaptcha();
|
|
76
|
-
},
|
|
77
|
-
btnRefreshFun: (el, tac) => {
|
|
78
|
-
tac.reloadCaptcha();
|
|
79
|
-
},
|
|
80
|
-
btnCloseFun: (el, tac) => {
|
|
81
|
-
tac.destroyWindow();
|
|
82
|
-
emits("close");
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
const style = {
|
|
86
|
-
logoUrl: null
|
|
87
|
-
// 去除logo
|
|
88
|
-
};
|
|
89
|
-
window.initTAC("https://cdn-static.gitcode.host/js/tac/", config, style).then((tac) => {
|
|
90
|
-
tac.init();
|
|
91
|
-
}).catch((e) => {
|
|
92
|
-
console.error("初始化tac失败", e);
|
|
93
|
-
});
|
|
94
|
-
};
|
|
95
|
-
onMounted(() => {
|
|
96
|
-
captchaInit();
|
|
97
|
-
});
|
|
98
|
-
return (_ctx, _cache) => {
|
|
99
|
-
return openBlock(), createBlock(unref(FixedOverlay), { class: "captcha-overlay" }, {
|
|
100
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
101
|
-
createElementVNode("div", { id: "captcha-box" }, null, -1)
|
|
102
|
-
])),
|
|
103
|
-
_: 1
|
|
104
|
-
});
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
const index_vue_vue_type_style_index_0_scoped_f0768d1d_lang = "";
|
|
109
|
-
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f0768d1d"]]);
|
|
110
|
-
export {
|
|
111
|
-
index as default
|
|
112
|
-
};
|