vue-layout-gitcode 1.12.1-beta.1 → 1.12.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/{dist/GloabarSearch-BVSCbbUb.js → GloabarSearch-DqrjYdlG.js} +9 -9
- package/{dist/MenuItem-DjuP8f45.js → MenuItem-Dpvb3h9q.js} +4 -4
- package/{dist/ProjectMenuList-DkKK-NLS.js → ProjectMenuList-BpIxQn_l.js} +73 -20
- package/{dist/ProjectMenuListV2-Cy-mDopT.js → ProjectMenuListV2-CVT12nBP.js} +7 -7
- package/{dist/ProjectSearch-DJmX8Vkw.js → ProjectSearch-Diui-91X.js} +6 -6
- package/{dist/SearchHistoryList-DcxGIVKV.js → SearchHistoryList-D5oCUL8b.js} +10 -10
- package/{dist/SearchPrefixTag-wGBoyYuN.js → SearchPrefixTag-CexUln9-.js} +4 -4
- package/{dist/SearchRecommed-Bj4rOU-E.js → SearchRecommed-BwukBjib.js} +7 -7
- package/{dist/SearchScopeList-DXkCgNHW.js → SearchScopeList-CZ4Ccaa5.js} +6 -6
- package/{dist/UserSearch-B3LLBuMp.js → UserSearch-CyKwfLTG.js} +6 -6
- package/{dist/index-NfMFRNgz.js → index-BRzNHTp7.js} +1580 -949
- package/{dist/index-BO5ZxPlJ.js → index-BZqT0rn_.js} +2 -2
- package/{dist/index-BZtPjJo6.js → index-BvI4j8WW.js} +32 -32
- package/{dist/index-CYtl2kxU.js → index-CHCqIZqF.js} +2 -2
- package/index.d.ts +873 -0
- package/index.js +16 -0
- package/{dist/notice-NzYRRupc.js → notice-CAgKcC_z.js} +6 -7
- package/package.json +11 -71
- package/style.css +1 -0
- package/{dist/transWebUrl-Cvy6Fboe.js → transWebUrl-QZzke_Ax.js} +1 -1
- package/README.md +0 -533
- package/dist/index.d.ts +0 -109
- package/dist/index.js +0 -15
- package/dist/package.json +0 -13
- package/dist/style.css +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent, inject,
|
|
1
|
+
import { defineComponent, inject, createElementBlock, openBlock, Fragment, createElementVNode, toDisplayString, createVNode, unref, renderList, withDirectives, createBlock, ref, watch, onMounted, createCommentVNode } from "vue";
|
|
2
2
|
import "vue-devui-lal/icon";
|
|
3
3
|
import "vue-devui-lal/icon/style.css";
|
|
4
|
-
import { h as headRequest, R as REPO_MODULE, a as i18n, G as GIcon, v as vElementExposure, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-
|
|
4
|
+
import { h as headRequest, R as REPO_MODULE, a as i18n, G as GIcon, v as vElementExposure, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-BRzNHTp7.js";
|
|
5
5
|
import "lodash/debounce";
|
|
6
|
-
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-
|
|
7
|
-
import "./transWebUrl-
|
|
6
|
+
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-BvI4j8WW.js";
|
|
7
|
+
import "./transWebUrl-QZzke_Ax.js";
|
|
8
8
|
import "vue-devui-lal/tooltip";
|
|
9
9
|
import "vue-devui-lal/tooltip/style.css";
|
|
10
10
|
import "vue-router";
|
|
@@ -14,7 +14,7 @@ import "vue-devui-lal/grid/style.css";
|
|
|
14
14
|
import "vue-devui-lal/skeleton/style.css";
|
|
15
15
|
import "vue-devui-lal/popover";
|
|
16
16
|
import "vue-devui-lal/popover/style.css";
|
|
17
|
-
const _hoisted_1$1 = { class: "
|
|
17
|
+
const _hoisted_1$1 = { class: "mb-[4px] mt-[16px] flex justify-between" };
|
|
18
18
|
const _hoisted_2$1 = { class: "title" };
|
|
19
19
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
20
20
|
__name: "SearchRepoCardList",
|
|
@@ -67,7 +67,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
67
67
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.dataList, (item, index) => {
|
|
68
68
|
return withDirectives((openBlock(), createBlock(SearchRepoCard, {
|
|
69
69
|
key: item.id,
|
|
70
|
-
class: "
|
|
70
|
+
class: "mb-[8px]",
|
|
71
71
|
info: { ...item, index },
|
|
72
72
|
keyword: __props.searchStr,
|
|
73
73
|
hover: "",
|
|
@@ -89,15 +89,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
89
89
|
const SearchRepoCardList = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
90
90
|
const _hoisted_1 = {
|
|
91
91
|
key: 0,
|
|
92
|
-
class: "history-list-project
|
|
92
|
+
class: "px-[8px] history-list-project pl-[8px]"
|
|
93
93
|
};
|
|
94
94
|
const _hoisted_2 = {
|
|
95
95
|
key: 1,
|
|
96
|
-
class: "history-list-project
|
|
96
|
+
class: "px-[8px] history-list-project pl-[8px]"
|
|
97
97
|
};
|
|
98
98
|
const _hoisted_3 = {
|
|
99
99
|
key: 2,
|
|
100
|
-
class: "history-list-project
|
|
100
|
+
class: "px-[8px] history-list-project pl-[8px]"
|
|
101
101
|
};
|
|
102
102
|
const _sfc_main = {
|
|
103
103
|
__name: "GloabarSearch",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent, inject, useSlots, ref, computed,
|
|
2
|
-
import { a as i18n, y as useLayoutConfig, A as ThemeType, B as currentTheme, L as LANG_ZH, C as LANG_EN, D as getLocaleLang, G as GIcon, F as emitEvent, H as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-
|
|
1
|
+
import { defineComponent, inject, useSlots, ref, computed, createBlock, openBlock, unref, withCtx, createElementVNode, normalizeClass, createElementBlock, createTextVNode, createCommentVNode, toDisplayString, renderSlot } from "vue";
|
|
2
|
+
import { a as i18n, y as useLayoutConfig, A as ThemeType, B as currentTheme, L as LANG_ZH, C as LANG_EN, D as getLocaleLang, G as GIcon, F as emitEvent, H as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-BRzNHTp7.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
4
|
import { Popover } from "vue-devui-lal/popover";
|
|
5
5
|
import "vue-devui-lal/popover/style.css";
|
|
6
6
|
const _hoisted_1 = ["src"];
|
|
7
|
-
const _hoisted_2 = { class: "
|
|
7
|
+
const _hoisted_2 = { class: "relative" };
|
|
8
8
|
const _hoisted_3 = {
|
|
9
9
|
key: 1,
|
|
10
|
-
class: "token-free-text"
|
|
10
|
+
class: "token-free-text bg-[#DBE2FA] text-[#2951E0] text-[12px] rounded-[4px] px-[4px] py-[2px]"
|
|
11
11
|
};
|
|
12
12
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
13
|
__name: "MenuItem",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent, inject, ref, reactive, watch, computed, openBlock,
|
|
2
|
-
import { a as i18n, y as useLayoutConfig, G as GIcon, t as transformUrl, J as _sfc_main$1, K as loadAsideData, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, I as asideRequest, _ as _export_sfc } from "./index-
|
|
1
|
+
import { defineComponent, inject, ref, reactive, watch, computed, createElementBlock, openBlock, createCommentVNode, createBlock, withDirectives, Fragment, createElementVNode, createVNode, toDisplayString, unref, withModifiers, normalizeClass, withCtx, renderList, createTextVNode, vShow } from "vue";
|
|
2
|
+
import { a as i18n, y as useLayoutConfig, G as GIcon, t as transformUrl, J as _sfc_main$1, K as loadAsideData, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, I as asideRequest, _ as _export_sfc } from "./index-BRzNHTp7.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-QZzke_Ax.js";
|
|
5
5
|
import { Select, Option } from "vue-devui-lal/select";
|
|
6
6
|
import { Input } from "vue-devui-lal/input";
|
|
7
7
|
import { Skeleton } from "vue-devui-lal/skeleton";
|
|
@@ -12,7 +12,7 @@ import "vue-devui-lal/input/style.css";
|
|
|
12
12
|
import "vue-devui-lal/skeleton/style.css";
|
|
13
13
|
import "vue-devui-lal/menu/style.css";
|
|
14
14
|
import "vue-devui-lal/button/style.css";
|
|
15
|
-
const _hoisted_1 = { class: "devui-submenu layer_2 my-work-platform submenu-item
|
|
15
|
+
const _hoisted_1 = { class: "devui-submenu layer_2 my-work-platform submenu-item relative" };
|
|
16
16
|
const _hoisted_2 = {
|
|
17
17
|
class: "devui-submenu-title layer_2",
|
|
18
18
|
style: { "padding": "0px 24px" }
|
|
@@ -23,10 +23,15 @@ const _hoisted_4 = {
|
|
|
23
23
|
style: { "padding": "0px 24px" }
|
|
24
24
|
};
|
|
25
25
|
const _hoisted_5 = { class: "devui-submenu-title-content cursor-auto" };
|
|
26
|
-
const _hoisted_6 = {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
const _hoisted_6 = {
|
|
27
|
+
class: "devui-submenu-title layer_2",
|
|
28
|
+
style: { "padding": "0px 24px" }
|
|
29
|
+
};
|
|
30
|
+
const _hoisted_7 = { class: "devui-submenu-title-content cursor-auto" };
|
|
31
|
+
const _hoisted_8 = { key: 0 };
|
|
32
|
+
const _hoisted_9 = { class: "project-label" };
|
|
33
|
+
const _hoisted_10 = { class: "project-label flex-1 min-w-0 ellipsis" };
|
|
34
|
+
const _hoisted_11 = {
|
|
30
35
|
key: 1,
|
|
31
36
|
class: "project-label"
|
|
32
37
|
};
|
|
@@ -101,6 +106,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
101
106
|
requestFn: (params2) => API.getMyCreatedProjects(params2)
|
|
102
107
|
};
|
|
103
108
|
}
|
|
109
|
+
if (type === "enterprise") {
|
|
110
|
+
return {
|
|
111
|
+
params,
|
|
112
|
+
requestFn: (params2) => API.getUserRelatedEnterprises(params2)
|
|
113
|
+
};
|
|
114
|
+
}
|
|
104
115
|
return {
|
|
105
116
|
params,
|
|
106
117
|
requestFn: type === "project" ? (params2) => API.getMyProjects(params2) : (params2) => API.getMyGroups(params2)
|
|
@@ -162,6 +173,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
162
173
|
const fastToLink = (type) => {
|
|
163
174
|
if (type === "project") {
|
|
164
175
|
router.push({ name: "userRepos", params: { namespace: props.username } });
|
|
176
|
+
} else if (type === "enterprise") {
|
|
177
|
+
window.location.href = transformUrl(`${layoutConfig.VITE_HOST}/setting/enterprise`);
|
|
165
178
|
} else {
|
|
166
179
|
router.push({ name: "settingOrganization" });
|
|
167
180
|
}
|
|
@@ -223,6 +236,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
223
236
|
showSearch.value = !showSearch.value;
|
|
224
237
|
};
|
|
225
238
|
const createRepoOrOrg = () => {
|
|
239
|
+
if (props.type === "enterprise") return;
|
|
226
240
|
if (!props.isLogin) {
|
|
227
241
|
setLoginTriggerSource(props.type === "project" ? "aside_createRepo" : "aside_createOrg");
|
|
228
242
|
useReport("login_exposure", { source: props.type === "project" ? "aside_createRepo" : "aside_createOrg" });
|
|
@@ -238,7 +252,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
238
252
|
return openBlock(), createElementBlock("ul", _hoisted_1, [
|
|
239
253
|
_ctx.type === "project" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
240
254
|
createElementVNode("div", _hoisted_2, [
|
|
241
|
-
_cache[
|
|
255
|
+
_cache[17] || (_cache[17] = createElementVNode("span", { class: "devui-menu-icon" }, null, -1)),
|
|
242
256
|
createElementVNode("span", _hoisted_3, [
|
|
243
257
|
createElementVNode("div", {
|
|
244
258
|
class: "fast-click-button",
|
|
@@ -253,7 +267,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
253
267
|
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => showSearch.value = !showSearch.value, ["stop"]))
|
|
254
268
|
}),
|
|
255
269
|
createElementVNode("div", {
|
|
256
|
-
class: normalizeClass(["
|
|
270
|
+
class: normalizeClass(["flex flex-col pl-[0] my-work-platform-inputbox", showSearch.value ? "" : "my-work-platform-hideInputBox"]),
|
|
257
271
|
onClick: _cache[6] || (_cache[6] = withModifiers(() => {
|
|
258
272
|
}, ["stop"]))
|
|
259
273
|
}, [
|
|
@@ -261,7 +275,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
261
275
|
"menu-class": "my-work-platform-select",
|
|
262
276
|
modelValue: nameSpace.value,
|
|
263
277
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => nameSpace.value = $event),
|
|
264
|
-
class: "
|
|
278
|
+
class: "mb-[8px]",
|
|
265
279
|
placeholder: "",
|
|
266
280
|
filter: true,
|
|
267
281
|
onLoadMore: loadTeam,
|
|
@@ -299,7 +313,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
299
313
|
], 64)) : createCommentVNode("", true),
|
|
300
314
|
_ctx.type === "team" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
301
315
|
createElementVNode("div", _hoisted_4, [
|
|
302
|
-
_cache[
|
|
316
|
+
_cache[18] || (_cache[18] = createElementVNode("span", { class: "devui-menu-icon" }, null, -1)),
|
|
303
317
|
createElementVNode("span", _hoisted_5, [
|
|
304
318
|
createElementVNode("div", {
|
|
305
319
|
class: "fast-click-button",
|
|
@@ -314,7 +328,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
314
328
|
color: "var(--theme-menu-icon-fill)"
|
|
315
329
|
}),
|
|
316
330
|
createElementVNode("div", {
|
|
317
|
-
class: normalizeClass(["
|
|
331
|
+
class: normalizeClass(["flex flex-col pl-[0] my-work-platform-inputbox", showSearch.value ? "" : "my-work-platform-hideInputBox"]),
|
|
318
332
|
onClick: _cache[11] || (_cache[11] = withModifiers(() => {
|
|
319
333
|
}, ["stop"]))
|
|
320
334
|
}, [
|
|
@@ -336,8 +350,47 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
336
350
|
}, 8, ["modelValue", "placeholder"])
|
|
337
351
|
], 2)
|
|
338
352
|
], 64)) : createCommentVNode("", true),
|
|
353
|
+
_ctx.type === "enterprise" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
354
|
+
createElementVNode("div", _hoisted_6, [
|
|
355
|
+
_cache[19] || (_cache[19] = createElementVNode("span", { class: "devui-menu-icon" }, null, -1)),
|
|
356
|
+
createElementVNode("span", _hoisted_7, [
|
|
357
|
+
createElementVNode("div", {
|
|
358
|
+
class: "fast-click-button",
|
|
359
|
+
onClick: _cache[12] || (_cache[12] = ($event) => fastToLink("enterprise"))
|
|
360
|
+
}, toDisplayString(unref(t)("gitCodeLayout.common.enterprise")), 1)
|
|
361
|
+
])
|
|
362
|
+
]),
|
|
363
|
+
createVNode(GIcon, {
|
|
364
|
+
class: "my-work-platform-searchicon",
|
|
365
|
+
name: "gt-search",
|
|
366
|
+
onClick: withModifiers(handleOpenSearch, ["stop"]),
|
|
367
|
+
color: "var(--theme-menu-icon-fill)"
|
|
368
|
+
}),
|
|
369
|
+
createElementVNode("div", {
|
|
370
|
+
class: normalizeClass(["flex flex-col pl-[0] my-work-platform-inputbox", showSearch.value ? "" : "my-work-platform-hideInputBox"]),
|
|
371
|
+
onClick: _cache[16] || (_cache[16] = withModifiers(() => {
|
|
372
|
+
}, ["stop"]))
|
|
373
|
+
}, [
|
|
374
|
+
createVNode(unref(Input), {
|
|
375
|
+
modelValue: searchKey.value,
|
|
376
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => searchKey.value = $event),
|
|
377
|
+
placeholder: unref(t)("gitCodeLayout.common.search"),
|
|
378
|
+
onInput: valChange,
|
|
379
|
+
onCompositionstart: _cache[14] || (_cache[14] = ($event) => inputIng.value = true),
|
|
380
|
+
onCompositionend: _cache[15] || (_cache[15] = ($event) => inputIng.value = false)
|
|
381
|
+
}, {
|
|
382
|
+
prefix: withCtx(() => [
|
|
383
|
+
createVNode(GIcon, {
|
|
384
|
+
name: "gt-search",
|
|
385
|
+
color: "var(--theme-menu-icon-fill)"
|
|
386
|
+
})
|
|
387
|
+
]),
|
|
388
|
+
_: 1
|
|
389
|
+
}, 8, ["modelValue", "placeholder"])
|
|
390
|
+
], 2)
|
|
391
|
+
], 64)) : createCommentVNode("", true),
|
|
339
392
|
firstLoading.value ? (openBlock(), createBlock(unref(Skeleton), {
|
|
340
|
-
key:
|
|
393
|
+
key: 3,
|
|
341
394
|
rows: 1
|
|
342
395
|
})) : createCommentVNode("", true),
|
|
343
396
|
(openBlock(true), createElementBlock(Fragment, null, renderList(projectList.value, (item) => {
|
|
@@ -364,16 +417,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
364
417
|
}, null, 8, ["src", "name", "class"]))
|
|
365
418
|
]),
|
|
366
419
|
default: withCtx(() => [
|
|
367
|
-
_ctx.type === "project" ? (openBlock(), createElementBlock("span",
|
|
368
|
-
createElementVNode("span",
|
|
369
|
-
createElementVNode("span",
|
|
370
|
-
])) : (openBlock(), createElementBlock("span",
|
|
420
|
+
_ctx.type === "project" ? (openBlock(), createElementBlock("span", _hoisted_8, [
|
|
421
|
+
createElementVNode("span", _hoisted_9, toDisplayString((item.namespace || "").slice(0, 10)) + toDisplayString((item.namespace || "").length > 10 ? "..." : ""), 1),
|
|
422
|
+
createElementVNode("span", _hoisted_10, "/" + toDisplayString(item.label), 1)
|
|
423
|
+
])) : (openBlock(), createElementBlock("span", _hoisted_11, toDisplayString(item.label), 1))
|
|
371
424
|
]),
|
|
372
425
|
_: 2
|
|
373
426
|
}, 1032, ["data-href", "title"]);
|
|
374
427
|
}), 128)),
|
|
375
|
-
!totalNum.value && !firstLoading.value ? (openBlock(), createBlock(unref(Button), {
|
|
376
|
-
key:
|
|
428
|
+
_ctx.type !== "enterprise" && !totalNum.value && !firstLoading.value ? (openBlock(), createBlock(unref(Button), {
|
|
429
|
+
key: 4,
|
|
377
430
|
variant: "text",
|
|
378
431
|
class: "more-btn",
|
|
379
432
|
onClick: withModifiers(createRepoOrOrg, ["stop"])
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent, inject, ref, reactive, computed, watch,
|
|
2
|
-
import { a as i18n, y as useLayoutConfig, t as transformUrl,
|
|
1
|
+
import { defineComponent, inject, ref, reactive, computed, watch, createElementBlock, openBlock, createElementVNode, createVNode, createBlock, createCommentVNode, withDirectives, toDisplayString, unref, withModifiers, normalizeClass, withCtx, Fragment, renderList, createTextVNode, vShow } from "vue";
|
|
2
|
+
import { a as i18n, y as useLayoutConfig, t as transformUrl, I as asideRequest, G as GIcon, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-BRzNHTp7.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-QZzke_Ax.js";
|
|
5
5
|
import { Input } from "vue-devui-lal/input";
|
|
6
6
|
import { Skeleton } from "vue-devui-lal/skeleton";
|
|
7
7
|
import { MenuItem } from "vue-devui-lal/menu";
|
|
@@ -10,14 +10,14 @@ import "vue-devui-lal/input/style.css";
|
|
|
10
10
|
import "vue-devui-lal/skeleton/style.css";
|
|
11
11
|
import "vue-devui-lal/menu/style.css";
|
|
12
12
|
import "vue-devui-lal/button/style.css";
|
|
13
|
-
const _hoisted_1 = { class: "devui-submenu layer_2 my-work-platform submenu-item
|
|
13
|
+
const _hoisted_1 = { class: "devui-submenu layer_2 my-work-platform submenu-item relative" };
|
|
14
14
|
const _hoisted_2 = {
|
|
15
15
|
class: "devui-submenu-title layer_2",
|
|
16
16
|
style: { "padding": "0px 24px" }
|
|
17
17
|
};
|
|
18
18
|
const _hoisted_3 = { class: "devui-submenu-title-content cursor-auto" };
|
|
19
19
|
const _hoisted_4 = { class: "project-label" };
|
|
20
|
-
const _hoisted_5 = { class: "project-label
|
|
20
|
+
const _hoisted_5 = { class: "project-label flex-1 min-w-0 ellipsis" };
|
|
21
21
|
const _hoisted_6 = ["href"];
|
|
22
22
|
const INIT_SHOW_COUNT = 4;
|
|
23
23
|
const LOAD_MORE_COUNT = 10;
|
|
@@ -165,7 +165,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
165
165
|
onClick: withModifiers(handleOpenSearch, ["stop"])
|
|
166
166
|
}),
|
|
167
167
|
createElementVNode("div", {
|
|
168
|
-
class: normalizeClass(["
|
|
168
|
+
class: normalizeClass(["flex flex-col pl-[0] my-work-platform-inputbox", showSearch.value ? "" : "my-work-platform-hideInputBox"]),
|
|
169
169
|
onClick: _cache[4] || (_cache[4] = withModifiers(() => {
|
|
170
170
|
}, ["stop"]))
|
|
171
171
|
}, [
|
|
@@ -241,7 +241,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
241
241
|
showTianqiRepo.value ? (openBlock(), createElementBlock("a", {
|
|
242
242
|
key: 2,
|
|
243
243
|
href: tianqiRepoUrl.value,
|
|
244
|
-
class: "
|
|
244
|
+
class: "flex-1 min-w-0 cursor-pointer more-btn"
|
|
245
245
|
}, toDisplayString(unref(t)("gitCodeLayout.org.tianqiRepo")) + " >", 9, _hoisted_6)) : createCommentVNode("", true)
|
|
246
246
|
]);
|
|
247
247
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ref, inject, computed, withDirectives,
|
|
2
|
-
import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-
|
|
1
|
+
import { ref, inject, computed, withDirectives, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createVNode, vShow } from "vue";
|
|
2
|
+
import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-BRzNHTp7.js";
|
|
3
3
|
import { useRoute, useRouter } from "vue-router";
|
|
4
4
|
import "vue-devui-lal/icon";
|
|
5
5
|
import "vue-devui-lal/icon/style.css";
|
|
6
|
-
const _hoisted_1 = { class: "history-list-project
|
|
7
|
-
const _hoisted_2 = { class: "history-list-project-globartitle
|
|
6
|
+
const _hoisted_1 = { class: "px-[8px] history-list-project pl-[8px]" };
|
|
7
|
+
const _hoisted_2 = { class: "history-list-project-globartitle mb-[4px] mt-[16px]" };
|
|
8
8
|
const _hoisted_3 = ["href"];
|
|
9
|
-
const _hoisted_4 = { class: "history-list-project-globarbox" };
|
|
10
|
-
const _hoisted_5 = { class: "ellipsis
|
|
9
|
+
const _hoisted_4 = { class: "flex history-list-project-globarbox" };
|
|
10
|
+
const _hoisted_5 = { class: "ml-[8px] ellipsis" };
|
|
11
11
|
const _sfc_main = /* @__PURE__ */ Object.assign({ name: "SearchFileList" }, {
|
|
12
12
|
__name: "ProjectSearch",
|
|
13
13
|
props: ["searchStr", "searchInfo", "isSearchPage"],
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock,
|
|
2
|
-
import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-
|
|
1
|
+
import { defineComponent, computed, createElementBlock, openBlock, createCommentVNode, Fragment, renderList, normalizeClass, createElementVNode, createVNode, toDisplayString, withModifiers } from "vue";
|
|
2
|
+
import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-BRzNHTp7.js";
|
|
3
3
|
import "vue-devui-lal/icon";
|
|
4
4
|
import "vue-devui-lal/icon/style.css";
|
|
5
5
|
const _hoisted_1 = { class: "history-list" };
|
|
6
6
|
const _hoisted_2 = ["onClick", "onMouseenter"];
|
|
7
|
-
const _hoisted_3 = { class: "history-list-box__content" };
|
|
8
|
-
const _hoisted_4 = { class: "
|
|
7
|
+
const _hoisted_3 = { class: "history-list-box__content flex items-center justify-between w-full" };
|
|
8
|
+
const _hoisted_4 = { class: "flex items-center" };
|
|
9
9
|
const _hoisted_5 = ["title"];
|
|
10
10
|
const _hoisted_6 = ["title"];
|
|
11
11
|
const _hoisted_7 = { class: "item-tx" };
|
|
12
|
-
const _hoisted_8 = { class: "
|
|
12
|
+
const _hoisted_8 = { class: "flex items-center gap-[8px]" };
|
|
13
13
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
14
|
__name: "SearchHistoryList",
|
|
15
15
|
props: {
|
|
@@ -107,7 +107,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
107
107
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
108
108
|
_ctx.searchHistoryList.length ? (openBlock(), createElementBlock("ul", {
|
|
109
109
|
key: 0,
|
|
110
|
-
class: "history-list-box
|
|
110
|
+
class: "history-list-box mt-[16px]",
|
|
111
111
|
onMouseleave: resetIndex
|
|
112
112
|
}, [
|
|
113
113
|
(openBlock(true), createElementBlock(Fragment, null, renderList(historyList.value, (item, index) => {
|
|
@@ -122,21 +122,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
122
122
|
createVNode(GIcon, {
|
|
123
123
|
name: "gt-line-time",
|
|
124
124
|
color: "var(--devui-aide-text)",
|
|
125
|
-
class: "
|
|
125
|
+
class: "mr-[8px]"
|
|
126
126
|
}),
|
|
127
127
|
createElementVNode("span", {
|
|
128
|
-
class: "
|
|
128
|
+
class: "whitespace-nowrap overflow-hidden text-ellipsis",
|
|
129
129
|
title: item.repoTitle
|
|
130
130
|
}, toDisplayString(item.repoTitle), 9, _hoisted_5),
|
|
131
131
|
createElementVNode("span", {
|
|
132
|
-
class: "
|
|
132
|
+
class: "whitespace-nowrap overflow-hidden text-ellipsis",
|
|
133
133
|
title: item.namespaceTitle
|
|
134
134
|
}, toDisplayString(item.namespaceTitle), 9, _hoisted_6),
|
|
135
135
|
createElementVNode("span", _hoisted_7, toDisplayString(item.q || item), 1)
|
|
136
136
|
]),
|
|
137
137
|
createElementVNode("div", _hoisted_8, [
|
|
138
138
|
createElementVNode("span", {
|
|
139
|
-
class: normalizeClass(_ctx.activeIndex === index ? "
|
|
139
|
+
class: normalizeClass(_ctx.activeIndex === index ? "text-[var(--theme-text)]" : "text-[var(--theme-placeholder)]")
|
|
140
140
|
}, toDisplayString(getRepoType(item).text), 3),
|
|
141
141
|
createVNode(GIcon, {
|
|
142
142
|
name: _ctx.activeIndex === index ? getRepoType(item).hoverIcon : getRepoType(item).icon
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent,
|
|
2
|
-
import { G as GIcon, _ as _export_sfc } from "./index-
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, createElementVNode, withDirectives, toDisplayString, withModifiers, createVNode, vShow } from "vue";
|
|
2
|
+
import { G as GIcon, _ as _export_sfc } from "./index-BRzNHTp7.js";
|
|
3
3
|
import "vue-devui-lal/icon";
|
|
4
4
|
import "vue-devui-lal/icon/style.css";
|
|
5
5
|
const _hoisted_1 = { class: "ellipsis" };
|
|
@@ -20,12 +20,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20
20
|
};
|
|
21
21
|
return (_ctx, _cache) => {
|
|
22
22
|
return openBlock(), createElementBlock("p", {
|
|
23
|
-
class: "g-header-search-projectname",
|
|
23
|
+
class: "g-header-search-projectname flex items-center px-[16px]",
|
|
24
24
|
onClick: onInputClick
|
|
25
25
|
}, [
|
|
26
26
|
createElementVNode("span", _hoisted_1, toDisplayString(_ctx.tag), 1),
|
|
27
27
|
withDirectives(createElementVNode("span", {
|
|
28
|
-
class: "g-header-search-projectname-close",
|
|
28
|
+
class: "g-header-search-projectname-close ml-[12px] flex",
|
|
29
29
|
onClick: withModifiers(onCloseTag, ["stop"])
|
|
30
30
|
}, [
|
|
31
31
|
createVNode(GIcon, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent, inject, ref, onMounted,
|
|
2
|
-
import { u as useReportRepo, S as SearchRepoCard } from "./index-
|
|
3
|
-
import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-
|
|
1
|
+
import { defineComponent, inject, ref, onMounted, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, renderSlot, createBlock, createVNode, withCtx } from "vue";
|
|
2
|
+
import { u as useReportRepo, S as SearchRepoCard } from "./index-BvI4j8WW.js";
|
|
3
|
+
import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-BRzNHTp7.js";
|
|
4
4
|
import { Row, Col } from "vue-devui-lal/grid";
|
|
5
5
|
import { SkeletonItem } from "vue-devui-lal/skeleton";
|
|
6
6
|
import "vue-devui-lal/grid/style.css";
|
|
@@ -63,7 +63,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
63
63
|
}, () => [
|
|
64
64
|
(openBlock(), createBlock(SearchRepoCard, {
|
|
65
65
|
key: item.id,
|
|
66
|
-
class: "
|
|
66
|
+
class: "mb-[8px]",
|
|
67
67
|
info: { ...item, index },
|
|
68
68
|
keyword: "",
|
|
69
69
|
hover: "",
|
|
@@ -77,7 +77,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
77
77
|
])) : (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
78
78
|
(openBlock(), createElementBlock(Fragment, null, renderList(5, (item) => {
|
|
79
79
|
return createElementVNode("div", {
|
|
80
|
-
class: "
|
|
80
|
+
class: "pt-[8px] pb-[16px]",
|
|
81
81
|
key: item
|
|
82
82
|
}, [
|
|
83
83
|
createVNode(unref(Row), {
|
|
@@ -101,7 +101,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
101
101
|
_: 1
|
|
102
102
|
}),
|
|
103
103
|
createVNode(unref(Row), {
|
|
104
|
-
class: "
|
|
104
|
+
class: "mt-[12px]",
|
|
105
105
|
align: "middle",
|
|
106
106
|
gutter: 16
|
|
107
107
|
}, {
|
|
@@ -116,7 +116,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
116
116
|
_: 1
|
|
117
117
|
}),
|
|
118
118
|
createVNode(unref(Row), {
|
|
119
|
-
class: "
|
|
119
|
+
class: "mt-[12px]",
|
|
120
120
|
align: "middle",
|
|
121
121
|
gutter: 16
|
|
122
122
|
}, {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent,
|
|
2
|
-
import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, Fragment, renderList, createElementVNode, createVNode, createCommentVNode, toDisplayString, unref } from "vue";
|
|
2
|
+
import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-BRzNHTp7.js";
|
|
3
3
|
import "vue-devui-lal/icon";
|
|
4
4
|
import "vue-devui-lal/icon/style.css";
|
|
5
5
|
const _hoisted_1 = ["onClick"];
|
|
6
|
-
const _hoisted_2 = { class: "linkItem" };
|
|
6
|
+
const _hoisted_2 = { class: "flex linkItem pl-[9px] pr-[19px]" };
|
|
7
7
|
const _hoisted_3 = { class: "leftTx ellipsis" };
|
|
8
8
|
const _hoisted_4 = {
|
|
9
9
|
key: 0,
|
|
10
|
-
class: "
|
|
10
|
+
class: "ml-[4px]"
|
|
11
11
|
};
|
|
12
12
|
const _hoisted_5 = { key: 1 };
|
|
13
|
-
const _hoisted_6 = { class: "
|
|
13
|
+
const _hoisted_6 = { class: "ml-[4px]" };
|
|
14
14
|
const _hoisted_7 = { class: "right-text" };
|
|
15
15
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
16
16
|
__name: "SearchScopeList",
|
|
@@ -30,7 +30,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
30
30
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchScopeList, (item, index) => {
|
|
31
31
|
return openBlock(), createElementBlock("li", {
|
|
32
32
|
key: index,
|
|
33
|
-
class: "g-header-search-scopechoose",
|
|
33
|
+
class: "g-header-search-scopechoose pt-[16px] px-[8px]",
|
|
34
34
|
onClick: ($event) => onScopeSearch(item)
|
|
35
35
|
}, [
|
|
36
36
|
createElementVNode("div", _hoisted_2, [
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { inject, ref, watch, withDirectives,
|
|
2
|
-
import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-
|
|
1
|
+
import { inject, ref, watch, withDirectives, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createVNode, vShow } from "vue";
|
|
2
|
+
import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-BRzNHTp7.js";
|
|
3
3
|
import "vue-devui-lal/icon";
|
|
4
4
|
import "vue-devui-lal/icon/style.css";
|
|
5
|
-
const _hoisted_1 = { class: "history-list-project
|
|
6
|
-
const _hoisted_2 = { class: "history-list-project-globartitle
|
|
5
|
+
const _hoisted_1 = { class: "px-[8px] history-list-project pl-[8px]" };
|
|
6
|
+
const _hoisted_2 = { class: "history-list-project-globartitle mb-[4px] mt-[16px]" };
|
|
7
7
|
const _hoisted_3 = ["href"];
|
|
8
|
-
const _hoisted_4 = { class: "history-list-project-globarbox" };
|
|
9
|
-
const _hoisted_5 = { class: "ellipsis
|
|
8
|
+
const _hoisted_4 = { class: "flex history-list-project-globarbox" };
|
|
9
|
+
const _hoisted_5 = { class: "ml-[8px] ellipsis" };
|
|
10
10
|
const _sfc_main = {
|
|
11
11
|
__name: "UserSearch",
|
|
12
12
|
props: ["searchStr", "searchInfo"],
|