vue-layout-gitcode 1.11.8 → 1.12.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/{GloabarSearch-CY-JzJJA.js → GloabarSearch-CD2KejZ1.js} +4 -4
- package/{MenuItem-BBAg0mco.js → MenuItem-BuMKe5YD.js} +6 -20
- package/{ProjectMenuList-Cw-TVd0n.js → ProjectMenuList-D9Z5DE-a.js} +74 -21
- package/{ProjectMenuListV2-Bngw6w9E.js → ProjectMenuListV2-B25g8wnE.js} +4 -4
- package/{ProjectSearch-CwlvG5Kx.js → ProjectSearch-CfQVFeuE.js} +2 -2
- package/{SearchHistoryList-Li5MH9iM.js → SearchHistoryList-CbbOlcNl.js} +6 -6
- package/{SearchPrefixTag-CJ4Y00F0.js → SearchPrefixTag-DfxF027m.js} +4 -4
- package/{SearchRecommed-BwZRjFtQ.js → SearchRecommed-BkpSafB7.js} +3 -3
- package/{SearchScopeList-DpWhH6_y.js → SearchScopeList-D8_DyXnM.js} +4 -4
- package/{UserSearch-BDO1Kao7.js → UserSearch-CTI8tJKs.js} +2 -2
- package/{index-BOrhyPP2.js → index-BPe8as0J.js} +42 -42
- package/{index-CQUMQjDA.js → index-DC_Q8N6x.js} +2 -2
- package/{index-CxbzgDJ7.js → index-Dxz_T-4z.js} +2110 -1459
- package/{index-EG6rTZCQ.js → index-mHzCSK_T.js} +4 -4
- package/index.d.ts +754 -452
- package/index.js +11 -10
- package/{notice-DEFdFdWP.js → notice-DnrDKUoE.js} +9 -9
- package/package.json +1 -1
- package/style.css +1 -1
- package/{transWebUrl-D9enBZpL.js → transWebUrl-B2LWS_OE.js} +1 -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-Dxz_T-4z.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-BPe8as0J.js";
|
|
7
|
+
import "./transWebUrl-B2LWS_OE.js";
|
|
8
8
|
import "vue-devui-lal/tooltip";
|
|
9
9
|
import "vue-devui-lal/tooltip/style.css";
|
|
10
10
|
import "vue-router";
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import { defineComponent, inject, useSlots, 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-Dxz_T-4z.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 = {
|
|
8
|
-
|
|
9
|
-
class: "menu-item__badge"
|
|
10
|
-
};
|
|
11
|
-
const _hoisted_3 = { class: "relative" };
|
|
12
|
-
const _hoisted_4 = {
|
|
7
|
+
const _hoisted_2 = { class: "relative" };
|
|
8
|
+
const _hoisted_3 = {
|
|
13
9
|
key: 1,
|
|
14
10
|
class: "token-free-text bg-[#DBE2FA] text-[#2951E0] text-[12px] rounded-[4px] px-[4px] py-[2px]"
|
|
15
11
|
};
|
|
@@ -41,12 +37,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
41
37
|
const slots = useSlots();
|
|
42
38
|
const useReport = inject("useReport");
|
|
43
39
|
const independence = inject("independence");
|
|
44
|
-
const globalStore = inject("globalStore");
|
|
45
40
|
const router = useRouter();
|
|
46
41
|
const props = __props;
|
|
47
|
-
const badgeVisible = computed(() => {
|
|
48
|
-
return globalStore.value.badgeVisible && props.item.left_menu_url === "/download-history";
|
|
49
|
-
});
|
|
50
42
|
const isHover = ref(false);
|
|
51
43
|
const isSelected = computed(() => {
|
|
52
44
|
return props.active || isHover.value;
|
|
@@ -94,7 +86,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
94
86
|
}
|
|
95
87
|
};
|
|
96
88
|
const handleMenuClick = () => {
|
|
97
|
-
var _a, _b;
|
|
98
89
|
const currentHref = window.location.href;
|
|
99
90
|
if (!props.item.left_menu_url) {
|
|
100
91
|
return;
|
|
@@ -106,10 +97,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
106
97
|
emitEvent("login", { loginTriggerSource: `aside_${props.item.left_menu_url}` });
|
|
107
98
|
return;
|
|
108
99
|
}
|
|
109
|
-
if (props.item.left_menu_url === "/download-history") {
|
|
110
|
-
(_b = (_a = globalStore.value) == null ? void 0 : _a.downloadClickRequest) == null ? void 0 : _b.call(_a);
|
|
111
|
-
return;
|
|
112
|
-
}
|
|
113
100
|
if (props.item.is_open_new_tab) {
|
|
114
101
|
window.open(props.item.left_menu_url, "_blank");
|
|
115
102
|
} else if (isHttps(props.item.left_menu_url || "")) {
|
|
@@ -163,8 +150,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
163
150
|
src: currentImg.value,
|
|
164
151
|
alt: ""
|
|
165
152
|
}, null, 8, _hoisted_1)),
|
|
166
|
-
|
|
167
|
-
createElementVNode("span", _hoisted_3, [
|
|
153
|
+
createElementVNode("span", _hoisted_2, [
|
|
168
154
|
createTextVNode(toDisplayString(currentName.value) + " ", 1),
|
|
169
155
|
isShowPopover.value ? (openBlock(), createBlock(GIcon, {
|
|
170
156
|
key: 0,
|
|
@@ -173,7 +159,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
173
159
|
name: "gt-line-right-tianqi",
|
|
174
160
|
color: "var(--theme-text)"
|
|
175
161
|
})) : createCommentVNode("", true),
|
|
176
|
-
isAIHub.value && isBeforeDeadline() ? (openBlock(), createElementBlock("span",
|
|
162
|
+
isAIHub.value && isBeforeDeadline() ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(unref(t)("gitCodeLayout.aihub.claimFreeToken")), 1)) : createCommentVNode("", true)
|
|
177
163
|
])
|
|
178
164
|
], 34)
|
|
179
165
|
]),
|
|
@@ -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-Dxz_T-4z.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-B2LWS_OE.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";
|
|
@@ -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}/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" });
|
|
@@ -236,9 +250,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
236
250
|
};
|
|
237
251
|
return (_ctx, _cache) => {
|
|
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",
|
|
@@ -297,9 +311,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
297
311
|
}, 8, ["modelValue", "placeholder"])
|
|
298
312
|
], 2)
|
|
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",
|
|
@@ -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) => {
|
|
@@ -346,10 +399,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
346
399
|
"data-openBlank": true,
|
|
347
400
|
"data-href": unref(transformUrl)(unref(transWebUrl)(item.web_url)),
|
|
348
401
|
class: "text",
|
|
349
|
-
title:
|
|
402
|
+
title: _ctx.type === "project" ? `${item.namespace}/${item.label}` : item.label
|
|
350
403
|
}, {
|
|
351
404
|
icon: withCtx(() => [
|
|
352
|
-
|
|
405
|
+
_ctx.type === "project" ? (openBlock(), createBlock(GIcon, {
|
|
353
406
|
key: 0,
|
|
354
407
|
name: "gt-line-project",
|
|
355
408
|
color: "var(--theme-menu-icon-fill)",
|
|
@@ -364,22 +417,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
364
417
|
}, null, 8, ["src", "name", "class"]))
|
|
365
418
|
]),
|
|
366
419
|
default: withCtx(() => [
|
|
367
|
-
|
|
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"])
|
|
380
433
|
}, {
|
|
381
434
|
default: withCtx(() => [
|
|
382
|
-
createTextVNode(toDisplayString(
|
|
435
|
+
createTextVNode(toDisplayString(_ctx.buttonText), 1)
|
|
383
436
|
]),
|
|
384
437
|
_: 1
|
|
385
438
|
})) : createCommentVNode("", true),
|
|
@@ -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-Dxz_T-4z.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-B2LWS_OE.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";
|
|
@@ -220,7 +220,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
220
220
|
onClick: withModifiers(createRepoOrOrg, ["stop"])
|
|
221
221
|
}, {
|
|
222
222
|
default: withCtx(() => [
|
|
223
|
-
createTextVNode(toDisplayString(
|
|
223
|
+
createTextVNode(toDisplayString(_ctx.buttonText), 1)
|
|
224
224
|
]),
|
|
225
225
|
_: 1
|
|
226
226
|
})) : createCommentVNode("", true),
|
|
@@ -1,5 +1,5 @@
|
|
|
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-Dxz_T-4z.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";
|
|
@@ -1,5 +1,5 @@
|
|
|
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-Dxz_T-4z.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" };
|
|
@@ -105,7 +105,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
105
105
|
};
|
|
106
106
|
return (_ctx, _cache) => {
|
|
107
107
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
108
|
-
|
|
108
|
+
_ctx.searchHistoryList.length ? (openBlock(), createElementBlock("ul", {
|
|
109
109
|
key: 0,
|
|
110
110
|
class: "history-list-box mt-[16px]",
|
|
111
111
|
onMouseleave: resetIndex
|
|
@@ -113,7 +113,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
113
113
|
(openBlock(true), createElementBlock(Fragment, null, renderList(historyList.value, (item, index) => {
|
|
114
114
|
return openBlock(), createElementBlock("li", {
|
|
115
115
|
key: item,
|
|
116
|
-
class: normalizeClass(
|
|
116
|
+
class: normalizeClass(_ctx.activeIndex === index ? "hoverbg" : ""),
|
|
117
117
|
onClick: ($event) => toSearch(item),
|
|
118
118
|
onMouseenter: ($event) => onSearchEnter(index)
|
|
119
119
|
}, [
|
|
@@ -136,10 +136,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
136
136
|
]),
|
|
137
137
|
createElementVNode("div", _hoisted_8, [
|
|
138
138
|
createElementVNode("span", {
|
|
139
|
-
class: normalizeClass(
|
|
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
|
-
name:
|
|
142
|
+
name: _ctx.activeIndex === index ? getRepoType(item).hoverIcon : getRepoType(item).icon
|
|
143
143
|
}, null, 8, ["name"])
|
|
144
144
|
])
|
|
145
145
|
]),
|
|
@@ -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-Dxz_T-4z.js";
|
|
3
3
|
import "vue-devui-lal/icon";
|
|
4
4
|
import "vue-devui-lal/icon/style.css";
|
|
5
5
|
const _hoisted_1 = { class: "ellipsis" };
|
|
@@ -23,7 +23,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23
23
|
class: "g-header-search-projectname flex items-center px-[16px]",
|
|
24
24
|
onClick: onInputClick
|
|
25
25
|
}, [
|
|
26
|
-
createElementVNode("span", _hoisted_1, toDisplayString(
|
|
26
|
+
createElementVNode("span", _hoisted_1, toDisplayString(_ctx.tag), 1),
|
|
27
27
|
withDirectives(createElementVNode("span", {
|
|
28
28
|
class: "g-header-search-projectname-close ml-[12px] flex",
|
|
29
29
|
onClick: withModifiers(onCloseTag, ["stop"])
|
|
@@ -34,7 +34,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
34
34
|
size: "7px"
|
|
35
35
|
})
|
|
36
36
|
], 512), [
|
|
37
|
-
[vShow,
|
|
37
|
+
[vShow, _ctx.closeVisible]
|
|
38
38
|
])
|
|
39
39
|
]);
|
|
40
40
|
};
|
|
@@ -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-BPe8as0J.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-Dxz_T-4z.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";
|
|
@@ -1,5 +1,5 @@
|
|
|
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-Dxz_T-4z.js";
|
|
3
3
|
import "vue-devui-lal/icon";
|
|
4
4
|
import "vue-devui-lal/icon/style.css";
|
|
5
5
|
const _hoisted_1 = ["onClick"];
|
|
@@ -27,7 +27,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
27
|
};
|
|
28
28
|
return (_ctx, _cache) => {
|
|
29
29
|
return openBlock(), createElementBlock("ul", null, [
|
|
30
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
30
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchScopeList, (item, index) => {
|
|
31
31
|
return openBlock(), createElementBlock("li", {
|
|
32
32
|
key: index,
|
|
33
33
|
class: "g-header-search-scopechoose pt-[16px] px-[8px]",
|
|
@@ -41,7 +41,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
41
41
|
}),
|
|
42
42
|
item.label ? (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(item.label) + ":", 1)) : createCommentVNode("", true),
|
|
43
43
|
item.value ? (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(item.value), 1)) : createCommentVNode("", true),
|
|
44
|
-
createElementVNode("span", _hoisted_6, toDisplayString(
|
|
44
|
+
createElementVNode("span", _hoisted_6, toDisplayString(_ctx.searchStr), 1)
|
|
45
45
|
]),
|
|
46
46
|
createElementVNode("p", _hoisted_7, [
|
|
47
47
|
createElementVNode("span", null, toDisplayString(item.label ? `${item.label}${unref($t)("gitCodeLayout.header.underSearch")}` : item.title), 1),
|
|
@@ -1,5 +1,5 @@
|
|
|
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-Dxz_T-4z.js";
|
|
3
3
|
import "vue-devui-lal/icon";
|
|
4
4
|
import "vue-devui-lal/icon/style.css";
|
|
5
5
|
const _hoisted_1 = { class: "px-[8px] history-list-project pl-[8px]" };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ref, watchEffect, defineComponent, toDisplayString, unref, useModel, watch,
|
|
1
|
+
import { ref, watchEffect, defineComponent, toDisplayString, unref, mergeModels, useModel, watch, createElementBlock, openBlock, createVNode, withDirectives, normalizeClass, createElementVNode, vShow, inject, withModifiers, createBlock, Fragment, computed, createCommentVNode, normalizeStyle, createTextVNode, onMounted, onUnmounted, renderList, withCtx, reactive } from "vue";
|
|
2
2
|
import debounce from "lodash/debounce";
|
|
3
|
-
import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource,
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
3
|
+
import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, j as useCookie, k as usePageResize, L as LANG_ZH, m as isGstarRepo, n as _sfc_main$b, o as isIncubationRepo, p as highlightWords, t as transformUrl, q as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL, w as LANG_KEY } from "./index-Dxz_T-4z.js";
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-B2LWS_OE.js";
|
|
5
5
|
import { useRouter } from "vue-router";
|
|
6
6
|
import { Row, Col } from "vue-devui-lal/grid";
|
|
7
7
|
import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";
|
|
@@ -87,7 +87,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
87
87
|
},
|
|
88
88
|
setup(__props) {
|
|
89
89
|
return (_ctx, _cache) => {
|
|
90
|
-
return toDisplayString(unref(transferNumber)({ number:
|
|
90
|
+
return toDisplayString(unref(transferNumber)({ number: _ctx.number, fixed: _ctx.fixed, byte: _ctx.byte, gt100: _ctx.gt100 }));
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
93
|
});
|
|
@@ -225,7 +225,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
225
225
|
}]),
|
|
226
226
|
onClick: withModifiers(handleStar, ["stop", "prevent"])
|
|
227
227
|
}, [
|
|
228
|
-
|
|
228
|
+
_ctx.isLike ? (openBlock(), createBlock(Like, {
|
|
229
229
|
key: 0,
|
|
230
230
|
class: "mr-[4px]",
|
|
231
231
|
modelValue: starred.value,
|
|
@@ -279,7 +279,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
279
279
|
}),
|
|
280
280
|
createElementVNode("span", null, [
|
|
281
281
|
createVNode(_sfc_main$a, {
|
|
282
|
-
number:
|
|
282
|
+
number: _ctx.count || 0
|
|
283
283
|
}, null, 8, ["number"])
|
|
284
284
|
])
|
|
285
285
|
]);
|
|
@@ -351,9 +351,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
351
351
|
color: "var(--theme-home-card-color-placeholder)",
|
|
352
352
|
size: "14"
|
|
353
353
|
}),
|
|
354
|
-
!
|
|
354
|
+
!_ctx.hideText ? (openBlock(), createElementBlock("span", _hoisted_2$4, toDisplayString(unref($t)("gitCodeLayout.components.repo.today")), 1)) : createCommentVNode("", true),
|
|
355
355
|
createVNode(_sfc_main$a, {
|
|
356
|
-
number:
|
|
356
|
+
number: _ctx.starCountOne || 0
|
|
357
357
|
}, null, 8, ["number"])
|
|
358
358
|
]);
|
|
359
359
|
};
|
|
@@ -384,9 +384,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
384
384
|
size: "14"
|
|
385
385
|
}),
|
|
386
386
|
createElementVNode("span", _hoisted_2$3, [
|
|
387
|
-
_cache[0] || (_cache[0] = createTextVNode("Star "
|
|
387
|
+
_cache[0] || (_cache[0] = createTextVNode("Star ")),
|
|
388
388
|
createVNode(_sfc_main$a, {
|
|
389
|
-
number:
|
|
389
|
+
number: _ctx.count || 0,
|
|
390
390
|
gt100: true
|
|
391
391
|
}, null, 8, ["number"])
|
|
392
392
|
])
|
|
@@ -446,32 +446,32 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
446
446
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
447
447
|
createElementVNode("div", null, [
|
|
448
448
|
createElementVNode("div", _hoisted_1$3, [
|
|
449
|
-
|
|
449
|
+
_ctx.tagInfo ? (openBlock(), createBlock(LanguageTag, {
|
|
450
450
|
key: 0,
|
|
451
|
-
"tag-info":
|
|
451
|
+
"tag-info": _ctx.tagInfo
|
|
452
452
|
}, null, 8, ["tag-info"])) : createCommentVNode("", true),
|
|
453
|
-
!
|
|
453
|
+
!_ctx.hideStarCount ? (openBlock(), createBlock(StarCountOne, {
|
|
454
454
|
key: 1,
|
|
455
455
|
hideText: "",
|
|
456
|
-
starCountOne:
|
|
456
|
+
starCountOne: _ctx.repoInfo.star_count
|
|
457
457
|
}, null, 8, ["starCountOne"])) : createCommentVNode("", true),
|
|
458
|
-
|
|
458
|
+
_ctx.repoInfo.forks_count ? (openBlock(), createBlock(ForkTag, {
|
|
459
459
|
key: 2,
|
|
460
|
-
count:
|
|
460
|
+
count: _ctx.repoInfo.forks_count
|
|
461
461
|
}, null, 8, ["count"])) : createCommentVNode("", true),
|
|
462
462
|
showUpdateTimeDot.value ? (openBlock(), createElementBlock("div", _hoisted_2$2)) : createCommentVNode("", true),
|
|
463
|
-
!
|
|
464
|
-
!
|
|
463
|
+
!_ctx.hideUpdateTime ? (openBlock(), createElementBlock("div", _hoisted_3$2, toDisplayString(unref(formatTimeFromNow)((_ctx.searchCard ? _ctx.repoInfo.last_repository_updated_at : _ctx.repoInfo.last_activity_at) || _ctx.repoInfo.last_activity_at)), 1)) : createCommentVNode("", true),
|
|
464
|
+
!_ctx.hideStarIncrease && _ctx.repoInfo.star_count_one ? (openBlock(), createBlock(StarCountOne, {
|
|
465
465
|
key: 5,
|
|
466
|
-
starCountOne:
|
|
466
|
+
starCountOne: _ctx.repoInfo.star_count_one
|
|
467
467
|
}, null, 8, ["starCountOne"])) : createCommentVNode("", true),
|
|
468
|
-
|
|
468
|
+
_ctx.repoInfo.is_gh_mirrors ? (openBlock(), createBlock(GithubStarNum, {
|
|
469
469
|
key: 6,
|
|
470
|
-
count:
|
|
470
|
+
count: _ctx.repoInfo.import_star_count
|
|
471
471
|
}, null, 8, ["count"])) : createCommentVNode("", true)
|
|
472
472
|
])
|
|
473
473
|
]),
|
|
474
|
-
!
|
|
474
|
+
!_ctx.hideTopicTags && topicNames.value.length && _ctx.searchCard ? (openBlock(), createElementBlock("div", {
|
|
475
475
|
key: 0,
|
|
476
476
|
class: "topic-tags",
|
|
477
477
|
ref_key: "topicTagsRef",
|
|
@@ -718,7 +718,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
718
718
|
});
|
|
719
719
|
return (_ctx, _cache) => {
|
|
720
720
|
return openBlock(), createElementBlock("a", {
|
|
721
|
-
class: normalizeClass(["i-search-projects-card cursor-pointer", { noborder:
|
|
721
|
+
class: normalizeClass(["i-search-projects-card cursor-pointer", { noborder: _ctx.noborder, "full-hover": _ctx.hover }]),
|
|
722
722
|
onClick: handleClick
|
|
723
723
|
}, [
|
|
724
724
|
createVNode(unref(Row), { class: "i-search-projects-card-title" }, {
|
|
@@ -732,43 +732,43 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
732
732
|
return [
|
|
733
733
|
createVNode(GIcon, {
|
|
734
734
|
name: iconName.value,
|
|
735
|
-
class: normalizeClass({ "align-middle":
|
|
735
|
+
class: normalizeClass({ "align-middle": _ctx.info.is_gh_mirrors }),
|
|
736
736
|
color: "var(--theme-placeholder)"
|
|
737
737
|
}, null, 8, ["name", "class"]),
|
|
738
738
|
createElementVNode("span", {
|
|
739
739
|
class: "repo-title",
|
|
740
740
|
innerHTML: preHandWord()
|
|
741
741
|
}, null, 8, _hoisted_1),
|
|
742
|
-
|
|
743
|
-
unref(isGstarRepo)(
|
|
742
|
+
_ctx.info.show_recommend_icon ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(unref($t)("gitCodeLayout.search.recommendTag")), 1)) : createCommentVNode("", true),
|
|
743
|
+
unref(isGstarRepo)(_ctx.info.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
744
744
|
createVNode(_sfc_main$b, {
|
|
745
745
|
origin: "repo",
|
|
746
746
|
icon: "",
|
|
747
747
|
type: "gstar",
|
|
748
748
|
message: `G-Star ${unref($t)("gitCodeLayout.GStar.project.graduation")}`
|
|
749
749
|
}, {
|
|
750
|
-
default: withCtx(() =>
|
|
751
|
-
createTextVNode("G-Star "
|
|
752
|
-
])
|
|
750
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
751
|
+
createTextVNode("G-Star ")
|
|
752
|
+
])),
|
|
753
753
|
_: 1
|
|
754
754
|
}, 8, ["message"])
|
|
755
755
|
])) : createCommentVNode("", true),
|
|
756
|
-
unref(isIncubationRepo)(
|
|
756
|
+
unref(isIncubationRepo)(_ctx.info.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
757
757
|
createVNode(_sfc_main$b, {
|
|
758
758
|
origin: "repo",
|
|
759
759
|
icon: "",
|
|
760
760
|
type: "incubation",
|
|
761
761
|
message: `G-Star ${unref($t)("gitCodeLayout.GStar.project.incubation")}`
|
|
762
762
|
}, {
|
|
763
|
-
default: withCtx(() =>
|
|
764
|
-
createTextVNode(" G-Star "
|
|
765
|
-
])
|
|
763
|
+
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
764
|
+
createTextVNode(" G-Star ")
|
|
765
|
+
])),
|
|
766
766
|
_: 1
|
|
767
767
|
}, 8, ["message"])
|
|
768
768
|
])) : createCommentVNode("", true),
|
|
769
769
|
createVNode(NewTag, {
|
|
770
|
-
repoType:
|
|
771
|
-
isNew: ((_a =
|
|
770
|
+
repoType: _ctx.cardType,
|
|
771
|
+
isNew: ((_a = _ctx.info) == null ? void 0 : _a.is_new) || false
|
|
772
772
|
}, null, 8, ["repoType", "isNew"])
|
|
773
773
|
];
|
|
774
774
|
}),
|
|
@@ -776,7 +776,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
776
776
|
}),
|
|
777
777
|
createVNode(unref(Col), { flex: "none" }, {
|
|
778
778
|
default: withCtx(() => [
|
|
779
|
-
!
|
|
779
|
+
!_ctx.hideStarBtn ? (openBlock(), createBlock(StarTag, {
|
|
780
780
|
key: 0,
|
|
781
781
|
isLike: isModel.value,
|
|
782
782
|
"star-info": starInfo.value,
|
|
@@ -788,12 +788,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
788
788
|
]),
|
|
789
789
|
_: 1
|
|
790
790
|
}),
|
|
791
|
-
!
|
|
791
|
+
!_ctx.hideDescription ? (openBlock(), createElementBlock("div", {
|
|
792
792
|
key: 0,
|
|
793
793
|
innerHTML: unref(highlightWords)("", description.value),
|
|
794
794
|
class: "i-search-projects-card-desc ellipsis mt-[8px]"
|
|
795
795
|
}, null, 8, _hoisted_5)) : createCommentVNode("", true),
|
|
796
|
-
|
|
796
|
+
_ctx.info.index === 0 && _ctx.info.is_recommend ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
797
797
|
queryLoading.value ? (openBlock(), createBlock(unref(Skeleton), { key: 0 }, {
|
|
798
798
|
placeholder: withCtx(() => [
|
|
799
799
|
createVNode(unref(Row), {
|
|
@@ -833,14 +833,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
833
833
|
})) : createCommentVNode("", true)
|
|
834
834
|
])) : isModel.value ? (openBlock(), createBlock(_sfc_main$1, {
|
|
835
835
|
key: 2,
|
|
836
|
-
repoInfo:
|
|
836
|
+
repoInfo: _ctx.info
|
|
837
837
|
}, null, 8, ["repoInfo"])) : (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
838
|
-
!
|
|
838
|
+
!_ctx.hideFooter ? (openBlock(), createBlock(RepoCardFooter, {
|
|
839
839
|
key: 0,
|
|
840
|
-
hideTopicTags:
|
|
840
|
+
hideTopicTags: _ctx.hideTopicTags,
|
|
841
841
|
hideStarCount: "",
|
|
842
842
|
tagInfo: tagInfo.value,
|
|
843
|
-
repoInfo:
|
|
843
|
+
repoInfo: _ctx.info,
|
|
844
844
|
searchCard: "",
|
|
845
845
|
class: "i-search-projects-card-bottom mt-[8px]",
|
|
846
846
|
onTopicClick: handleTopicClick
|