vue-layout-gitcode 1.5.79 → 1.5.81
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-BICFzKQT.js → GloabarSearch-DlXzcMGs.js} +3 -3
- package/{MenuItem-3Mk4f4KL.js → MenuItem-ISND_wvy.js} +1 -1
- package/{ProjectMenuList-bpl02-_f.js → ProjectMenuList-BrM9bFEt.js} +3 -3
- package/{ProjectMenuListV2-BlsvgQfd.js → ProjectMenuListV2-DXkWyxjj.js} +3 -8
- package/{ProjectSearch-mqTNEBNg.js → ProjectSearch-D1lyAgMX.js} +1 -1
- package/{SearchHistoryList-DWkTcuro.js → SearchHistoryList-CYf3guD9.js} +1 -1
- package/{SearchPrefixTag-Bx1ms7y_.js → SearchPrefixTag-DnWaPuJM.js} +1 -1
- package/{SearchRecommed-2rWUzXDp.js → SearchRecommed-iwkmZ_Os.js} +2 -2
- package/{SearchScopeList-CqCv7IK5.js → SearchScopeList-B-64FqkU.js} +1 -1
- package/{UserSearch-D21vdZWx.js → UserSearch-BJhEbx6q.js} +11 -2
- package/{index-D1d3SzOQ.js → index-DJNthaNB.js} +6 -9
- package/{index-CCxdfi96.js → index-Dg53JPll.js} +3 -4
- package/{index-BXLGg-dX.js → index-bLPYnJNC.js} +238 -262
- package/index.js +11 -11
- package/{notice-DxPH5fZs.js → notice-xElU_mX_.js} +3 -5
- package/package.json +1 -1
- package/style.css +1 -1
- package/{transWebUrl-CY61-F41.js → transWebUrl-BxRwWsUU.js} +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
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-bLPYnJNC.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-DJNthaNB.js";
|
|
7
|
+
import "./transWebUrl-BxRwWsUU.js";
|
|
8
8
|
import "vue-devui-lal/tooltip";
|
|
9
9
|
import "vue-devui-lal/tooltip/style.css";
|
|
10
10
|
import "vue-router";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, inject, useSlots, ref, computed, createBlock, openBlock, unref, withCtx, createElementVNode, normalizeClass, createElementBlock, createTextVNode, createCommentVNode, toDisplayString, renderSlot } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { w as useLayoutConfig, x as ThemeType, y as currentTheme, j as LANG_ZH, z as LANG_EN, A as getLocaleLang, G as GIcon, B as emitEvent, C as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-bLPYnJNC.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";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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,
|
|
2
|
+
import { a as i18n, w as useLayoutConfig, G as GIcon, D as transformUrl, F as _sfc_main$1, H as loadAsideData, B as emitEvent, s as setLoginTriggerSource, f as useRequestReport, I as asideRequest, _ as _export_sfc } from "./index-bLPYnJNC.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-BxRwWsUU.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";
|
|
@@ -339,7 +339,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
339
339
|
return openBlock(), createBlock(unref(MenuItem), {
|
|
340
340
|
key: item.key,
|
|
341
341
|
"data-openBlank": true,
|
|
342
|
-
"data-href": unref(transWebUrl)(item.web_url),
|
|
342
|
+
"data-href": unref(transformUrl)(unref(transWebUrl)(item.web_url)),
|
|
343
343
|
class: "text",
|
|
344
344
|
title: _ctx.type === "project" ? `${item.namespace}/${item.label}` : item.label
|
|
345
345
|
}, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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,
|
|
2
|
+
import { a as i18n, w as useLayoutConfig, G as GIcon, B as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-bLPYnJNC.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-BxRwWsUU.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";
|
|
@@ -18,10 +18,6 @@ const _hoisted_2 = {
|
|
|
18
18
|
const _hoisted_3 = { class: "devui-submenu-title-content cursor-auto" };
|
|
19
19
|
const _hoisted_4 = { class: "project-label" };
|
|
20
20
|
const _hoisted_5 = { class: "project-label flex-1 min-w-0 ellipsis" };
|
|
21
|
-
const _hoisted_6 = {
|
|
22
|
-
key: 2,
|
|
23
|
-
class: "project-empty"
|
|
24
|
-
};
|
|
25
21
|
const INIT_SHOW_COUNT = 4;
|
|
26
22
|
const LOAD_MORE_COUNT = 10;
|
|
27
23
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -228,8 +224,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
228
224
|
_: 1
|
|
229
225
|
}, 8, ["loading", "disabled"]), [
|
|
230
226
|
[vShow, showExpandMore.value && props.subShow]
|
|
231
|
-
])
|
|
232
|
-
!projectList.value.length && !firstLoading.value && _ctx.isLogin ? (openBlock(), createElementBlock("li", _hoisted_6, toDisplayString(unref(t)("gitCodeLayout.common.empty")), 1)) : createCommentVNode("", true)
|
|
227
|
+
])
|
|
233
228
|
]);
|
|
234
229
|
};
|
|
235
230
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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-
|
|
2
|
+
import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-bLPYnJNC.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
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-
|
|
2
|
+
import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-bLPYnJNC.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" };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, createElementBlock, openBlock, createElementVNode, withDirectives, toDisplayString, withModifiers, createVNode, vShow } from "vue";
|
|
2
|
-
import { G as GIcon, _ as _export_sfc } from "./index-
|
|
2
|
+
import { G as GIcon, _ as _export_sfc } from "./index-bLPYnJNC.js";
|
|
3
3
|
import "vue-devui-lal/icon";
|
|
4
4
|
import "vue-devui-lal/icon/style.css";
|
|
5
5
|
const _hoisted_1 = { class: "ellipsis" };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, inject, ref, onMounted, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createBlock, createVNode, withCtx } from "vue";
|
|
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-
|
|
2
|
+
import { u as useReportRepo, S as SearchRepoCard } from "./index-DJNthaNB.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-bLPYnJNC.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
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-
|
|
2
|
+
import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-bLPYnJNC.js";
|
|
3
3
|
import "vue-devui-lal/icon";
|
|
4
4
|
import "vue-devui-lal/icon/style.css";
|
|
5
5
|
const _hoisted_1 = ["onClick"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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 } from "./index-
|
|
2
|
+
import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-bLPYnJNC.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]" };
|
|
@@ -41,7 +41,16 @@ const _sfc_main = {
|
|
|
41
41
|
search: props.searchStr
|
|
42
42
|
}).then((res) => {
|
|
43
43
|
const data = res.data || {};
|
|
44
|
-
searchFileList.value = data.content
|
|
44
|
+
searchFileList.value = data.content.map((item) => {
|
|
45
|
+
return {
|
|
46
|
+
...item,
|
|
47
|
+
web_url: transformUrl(item.web_url),
|
|
48
|
+
ssh_url_to_repo: transformUrl(item.ssh_url_to_repo),
|
|
49
|
+
http_url_to_repo: transformUrl(item.http_url_to_repo),
|
|
50
|
+
readme_url: transformUrl(item.readme_url),
|
|
51
|
+
avatar_url: transformUrl(item.avatar_url)
|
|
52
|
+
};
|
|
53
|
+
}) || [];
|
|
45
54
|
}).finally(() => {
|
|
46
55
|
loading.value = false;
|
|
47
56
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref, watchEffect, defineComponent, toDisplayString, unref, inject, createElementBlock, openBlock, normalizeClass, createElementVNode, withModifiers, withDirectives, vShow, createVNode, computed, createCommentVNode, normalizeStyle, createTextVNode, onMounted, onUnmounted, Fragment, createBlock, renderList, withCtx, reactive } from "vue";
|
|
2
2
|
import debounce from "lodash/debounce";
|
|
3
|
-
import {
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
3
|
+
import { d as transferNumber, G as GIcon, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, _ as _export_sfc, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, L as LANG_KEY, j as LANG_ZH, k as usePageResize, m as isGstarRepo, n as _sfc_main$9, o as isIncubationRepo, p as highlightWords, t as transformUrl, q as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-bLPYnJNC.js";
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-BxRwWsUU.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";
|
|
@@ -463,8 +463,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
463
463
|
default: withCtx(() => [
|
|
464
464
|
_cache[0] || (_cache[0] = createElementVNode("div", { class: "new-tag w-[32px] h-[15px] text-[9px] text-[#ffffff] flex items-center justify-center leading-[1]" }, "New", -1))
|
|
465
465
|
]),
|
|
466
|
-
_: 1
|
|
467
|
-
__: [0]
|
|
466
|
+
_: 1
|
|
468
467
|
})) : createCommentVNode("", true);
|
|
469
468
|
};
|
|
470
469
|
}
|
|
@@ -502,7 +501,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
502
501
|
const { widthType } = usePageResize();
|
|
503
502
|
const { t: $t } = i18n.global;
|
|
504
503
|
const handleClick = () => {
|
|
505
|
-
window.open(transWebUrl(props.info.web_url, props.urlParams), "_blank");
|
|
504
|
+
window.open(transWebUrl(transformUrl(props.info.web_url), props.urlParams), "_blank");
|
|
506
505
|
emits("report");
|
|
507
506
|
_frEventTrack(EVENT_NAME.CLICK_SEARCH_RESULT);
|
|
508
507
|
};
|
|
@@ -608,8 +607,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
608
607
|
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
609
608
|
createTextVNode("G-Star ")
|
|
610
609
|
])),
|
|
611
|
-
_: 1
|
|
612
|
-
__: [0]
|
|
610
|
+
_: 1
|
|
613
611
|
}, 8, ["message"])
|
|
614
612
|
])) : createCommentVNode("", true),
|
|
615
613
|
unref(isIncubationRepo)(_ctx.info.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
@@ -622,8 +620,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
622
620
|
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
623
621
|
createTextVNode(" G-Star ")
|
|
624
622
|
])),
|
|
625
|
-
_: 1
|
|
626
|
-
__: [1]
|
|
623
|
+
_: 1
|
|
627
624
|
}, 8, ["message"])
|
|
628
625
|
])) : createCommentVNode("", true),
|
|
629
626
|
createVNode(NewTag, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, onMounted, createBlock, openBlock, unref, withCtx, createElementVNode } from "vue";
|
|
2
2
|
import { FixedOverlay } from "vue-devui-lal/overlay";
|
|
3
|
-
import {
|
|
3
|
+
import { w as useLayoutConfig, _ as _export_sfc } from "./index-bLPYnJNC.js";
|
|
4
4
|
import "vue-devui-lal/overlay/style.css";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "index",
|
|
@@ -35,7 +35,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
35
35
|
logoUrl: null
|
|
36
36
|
// 去除logo
|
|
37
37
|
};
|
|
38
|
-
window.initTAC("https://cdn-static.gitcode.
|
|
38
|
+
window.initTAC("https://cdn-static.gitcode.host/js/tac/", config, style).then((tac) => {
|
|
39
39
|
tac.init();
|
|
40
40
|
}).catch((e) => {
|
|
41
41
|
console.error("初始化tac失败", e);
|
|
@@ -49,8 +49,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
49
49
|
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
50
50
|
createElementVNode("div", { id: "captcha-box" }, null, -1)
|
|
51
51
|
])),
|
|
52
|
-
_: 1
|
|
53
|
-
__: [0]
|
|
52
|
+
_: 1
|
|
54
53
|
});
|
|
55
54
|
};
|
|
56
55
|
}
|