vue-layout-gitcode 1.3.17 → 1.3.19
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-BZI4nGJ6.js → GloabarSearch-ONS6f-IZ.js} +2 -2
- package/{ProjectSearch-C8Ln8kkR.js → ProjectSearch-CoMJA9ap.js} +1 -1
- package/{SearchHistoryList-CtbS3vo7.js → SearchHistoryList-DipnAOo-.js} +1 -1
- package/{SearchPrefixTag-Cm8j06Yk.js → SearchPrefixTag-BZSeMX7C.js} +1 -1
- package/{SearchRecommed-BKVZXMJa.js → SearchRecommed-BHOx2vCC.js} +2 -2
- package/{SearchScopeList-D5B-XUfv.js → SearchScopeList-B1rFh_eG.js} +1 -1
- package/{UserSearch-CwWlVbfD.js → UserSearch-DSq_5F1q.js} +1 -1
- package/{index-BHt1CRSP.js → index-BV3o4Nmw.js} +73 -55
- package/{index-DqhnMgUQ.js → index-BsQf4k-H.js} +1 -1
- package/{index-BSK52r64.js → index-CpMIg5X3.js} +1 -1
- package/index.d.ts +3 -0
- package/index.js +1 -1
- package/{notice-WsENv1Fj.js → notice-HNGtx2Gz.js} +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { inject, ref, watch, onMounted, createElementBlock, createCommentVNode, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createBlock } from "vue";
|
|
2
2
|
import "vue-devui-lal/icon";
|
|
3
3
|
import "vue-devui-lal/icon/style.css";
|
|
4
|
-
import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_TYPE, e as extractRepoInfoWithURL, c as REPO_EVENT } from "./index-
|
|
5
|
-
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-
|
|
4
|
+
import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_TYPE, e as extractRepoInfoWithURL, c as REPO_EVENT } from "./index-BV3o4Nmw.js";
|
|
5
|
+
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-CpMIg5X3.js";
|
|
6
6
|
const _hoisted_1 = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "px-[8px] history-list-project pl-[8px]"
|
|
@@ -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-BV3o4Nmw.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-BV3o4Nmw.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-BV3o4Nmw.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, c as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-
|
|
2
|
+
import { u as useReportRepo, S as SearchRepoCard } from "./index-CpMIg5X3.js";
|
|
3
|
+
import { a as i18n, h as headRequest, R as REPO_MODULE, c as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-BV3o4Nmw.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-BV3o4Nmw.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 } from "./index-BV3o4Nmw.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]" };
|
|
@@ -10894,8 +10894,8 @@ const _hoisted_3$h = {
|
|
|
10894
10894
|
class: "tooltip-sign"
|
|
10895
10895
|
};
|
|
10896
10896
|
const _hoisted_4$d = { class: "home-nav-tooltip-wrapper" };
|
|
10897
|
-
const _hoisted_5$
|
|
10898
|
-
const _hoisted_6$
|
|
10897
|
+
const _hoisted_5$9 = { class: "home-nav-text" };
|
|
10898
|
+
const _hoisted_6$7 = {
|
|
10899
10899
|
key: 1,
|
|
10900
10900
|
class: "tools-list"
|
|
10901
10901
|
};
|
|
@@ -11110,7 +11110,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
11110
11110
|
}, {
|
|
11111
11111
|
content: withCtx(() => [
|
|
11112
11112
|
createElementVNode("div", _hoisted_4$d, [
|
|
11113
|
-
createElementVNode("div", _hoisted_5$
|
|
11113
|
+
createElementVNode("div", _hoisted_5$9, toDisplayString$1(unref(t2)("gitCodeLayout.userSetting.menu.growthCenter")), 1)
|
|
11114
11114
|
])
|
|
11115
11115
|
]),
|
|
11116
11116
|
default: withCtx(() => [
|
|
@@ -11130,7 +11130,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
11130
11130
|
]),
|
|
11131
11131
|
_: 1
|
|
11132
11132
|
})) : createCommentVNode("", true),
|
|
11133
|
-
isModuleVisible(unref(ToolsFloatDisplayItem).ELSE) ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
11133
|
+
isModuleVisible(unref(ToolsFloatDisplayItem).ELSE) ? (openBlock(), createElementBlock("div", _hoisted_6$7, [
|
|
11134
11134
|
createVNode(unref(Tooltip), {
|
|
11135
11135
|
position: "left",
|
|
11136
11136
|
"overlay-class": "tools-tag-tooltip"
|
|
@@ -14434,8 +14434,8 @@ const _hoisted_1$s = { class: "ai-hub-menus" };
|
|
|
14434
14434
|
const _hoisted_2$j = ["href", "onMouseenter"];
|
|
14435
14435
|
const _hoisted_3$g = { class: "ai-hub-menus-item_label" };
|
|
14436
14436
|
const _hoisted_4$c = ["onMouseenter"];
|
|
14437
|
-
const _hoisted_5$
|
|
14438
|
-
const _hoisted_6$
|
|
14437
|
+
const _hoisted_5$8 = { class: "ai-hub-menus-themetablist" };
|
|
14438
|
+
const _hoisted_6$6 = { class: "w-[32px] h-[32px] flex items-center justify-center" };
|
|
14439
14439
|
const _hoisted_7$6 = { class: "flex items-center min-w-[90px] gap-[8px] font-semibold" };
|
|
14440
14440
|
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
14441
14441
|
__name: "AiHubMenus",
|
|
@@ -14528,7 +14528,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
14528
14528
|
position: ["top-start"]
|
|
14529
14529
|
}, {
|
|
14530
14530
|
menu: withCtx(() => [
|
|
14531
|
-
createElementVNode("ul", _hoisted_5$
|
|
14531
|
+
createElementVNode("ul", _hoisted_5$8, [
|
|
14532
14532
|
(openBlock(true), createElementBlock(Fragment, null, renderList(themeTablist.value, (item, index22) => {
|
|
14533
14533
|
return openBlock(), createBlock(GLink, {
|
|
14534
14534
|
key: index22,
|
|
@@ -14577,7 +14577,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
14577
14577
|
href: activeMenu.value.url
|
|
14578
14578
|
}, {
|
|
14579
14579
|
default: withCtx(() => [
|
|
14580
|
-
createElementVNode("div", _hoisted_6$
|
|
14580
|
+
createElementVNode("div", _hoisted_6$6, [
|
|
14581
14581
|
createVNode(GIcon, {
|
|
14582
14582
|
size: "18px",
|
|
14583
14583
|
name: "gt-line-down",
|
|
@@ -16420,8 +16420,8 @@ const _hoisted_2$i = {
|
|
|
16420
16420
|
};
|
|
16421
16421
|
const _hoisted_3$f = { class: "org-layout-toolbar-title flex-1 ellipsis-two-line" };
|
|
16422
16422
|
const _hoisted_4$b = { class: "text-xs" };
|
|
16423
|
-
const _hoisted_5$
|
|
16424
|
-
const _hoisted_6$
|
|
16423
|
+
const _hoisted_5$7 = { class: "flex items-center w-full" };
|
|
16424
|
+
const _hoisted_6$5 = {
|
|
16425
16425
|
key: 1,
|
|
16426
16426
|
class: "flex items-center min-w-[30px]"
|
|
16427
16427
|
};
|
|
@@ -16637,7 +16637,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
16637
16637
|
default: withCtx(() => {
|
|
16638
16638
|
var _a2, _b2, _c, _d, _e, _f, _g;
|
|
16639
16639
|
return [
|
|
16640
|
-
createElementVNode("h2", _hoisted_5$
|
|
16640
|
+
createElementVNode("h2", _hoisted_5$7, [
|
|
16641
16641
|
createVNode(GLink, {
|
|
16642
16642
|
href: (_a2 = unref(breadcrumb)[0]) == null ? void 0 : _a2.path,
|
|
16643
16643
|
class: "pr-[12px]"
|
|
@@ -16653,7 +16653,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
16653
16653
|
width: 28,
|
|
16654
16654
|
height: 28,
|
|
16655
16655
|
is_round: !isOrg.value
|
|
16656
|
-
}, null, 8, ["class", "src", "name", "is_round"])) : (openBlock(), createElementBlock("div", _hoisted_6$
|
|
16656
|
+
}, null, 8, ["class", "src", "name", "is_round"])) : (openBlock(), createElementBlock("div", _hoisted_6$5, [
|
|
16657
16657
|
unref(isPhone)() ? (openBlock(), createElementBlock("img", _hoisted_7$5)) : (openBlock(), createElementBlock("img", _hoisted_8$5))
|
|
16658
16658
|
]))
|
|
16659
16659
|
];
|
|
@@ -16837,11 +16837,13 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
16837
16837
|
const res = await API.getTianqiRouteConfig();
|
|
16838
16838
|
const data = ((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.data) || {};
|
|
16839
16839
|
const { top_button: topButton } = data;
|
|
16840
|
-
|
|
16841
|
-
|
|
16842
|
-
|
|
16843
|
-
|
|
16844
|
-
|
|
16840
|
+
if (topButton) {
|
|
16841
|
+
tianqiButtonConfig.value = {
|
|
16842
|
+
img: topButton.img,
|
|
16843
|
+
img_black: topButton.img_black,
|
|
16844
|
+
url: topButton.url
|
|
16845
|
+
};
|
|
16846
|
+
}
|
|
16845
16847
|
};
|
|
16846
16848
|
getTianqiRouteConfig();
|
|
16847
16849
|
const logo = computed(() => {
|
|
@@ -17221,8 +17223,8 @@ const _hoisted_1$n = {
|
|
|
17221
17223
|
const _hoisted_2$h = { class: "flex items-center font-medium gap-[4px]" };
|
|
17222
17224
|
const _hoisted_3$e = ["src"];
|
|
17223
17225
|
const _hoisted_4$a = { class: "level-name" };
|
|
17224
|
-
const _hoisted_5$
|
|
17225
|
-
const _hoisted_6$
|
|
17226
|
+
const _hoisted_5$6 = { class: "level-icon" };
|
|
17227
|
+
const _hoisted_6$4 = ["src"];
|
|
17226
17228
|
const _hoisted_7$4 = { class: "custom-btn" };
|
|
17227
17229
|
const _hoisted_8$4 = { class: "flex items-center justify-center" };
|
|
17228
17230
|
const maxLevel = 3;
|
|
@@ -17281,11 +17283,11 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
17281
17283
|
}, null, 8, _hoisted_3$e),
|
|
17282
17284
|
createElementVNode("div", _hoisted_4$a, [
|
|
17283
17285
|
createElementVNode("div", null, toDisplayString$1(levelInfo.value.name), 1),
|
|
17284
|
-
createElementVNode("div", _hoisted_5$
|
|
17286
|
+
createElementVNode("div", _hoisted_5$6, [
|
|
17285
17287
|
createElementVNode("img", {
|
|
17286
17288
|
src: levelInfo.value.level,
|
|
17287
17289
|
alt: ""
|
|
17288
|
-
}, null, 8, _hoisted_6$
|
|
17290
|
+
}, null, 8, _hoisted_6$4)
|
|
17289
17291
|
])
|
|
17290
17292
|
])
|
|
17291
17293
|
]),
|
|
@@ -17755,7 +17757,7 @@ const _hoisted_1$k = { class: "g-header-search-prefix" };
|
|
|
17755
17757
|
const _hoisted_2$e = { class: "g-header-search-suffix-splitline" };
|
|
17756
17758
|
const _hoisted_3$b = { class: "g-header-search-suffix-suffixIcon" };
|
|
17757
17759
|
const _hoisted_4$8 = { class: "history-list" };
|
|
17758
|
-
const _hoisted_5$
|
|
17760
|
+
const _hoisted_5$5 = {
|
|
17759
17761
|
key: 1,
|
|
17760
17762
|
class: "aireposearch flex-1"
|
|
17761
17763
|
};
|
|
@@ -17768,13 +17770,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
17768
17770
|
setup(__props) {
|
|
17769
17771
|
var _a;
|
|
17770
17772
|
const { t: $t } = i18n.global;
|
|
17771
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
17772
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
17773
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
17774
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
17775
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
17776
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
17777
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
17773
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-CoMJA9ap.js"));
|
|
17774
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-DSq_5F1q.js"));
|
|
17775
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-ONS6f-IZ.js"));
|
|
17776
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-DipnAOo-.js"));
|
|
17777
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-B1rFh_eG.js"));
|
|
17778
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-BZSeMX7C.js"));
|
|
17779
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-BHOx2vCC.js"));
|
|
17778
17780
|
const props = __props;
|
|
17779
17781
|
const repoInfo = inject("repoInfo");
|
|
17780
17782
|
const orgInfo = inject("orgInfo");
|
|
@@ -18321,7 +18323,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18321
18323
|
_: 1
|
|
18322
18324
|
}, 8, ["visible"])
|
|
18323
18325
|
], 2)) : createCommentVNode("", true),
|
|
18324
|
-
_ctx.inAIHub ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
18326
|
+
_ctx.inAIHub ? (openBlock(), createElementBlock("div", _hoisted_5$5, [
|
|
18325
18327
|
createVNode(unref(Input), {
|
|
18326
18328
|
placeholder: unref($t)("gitCodeLayout.home.searchPlaceholder"),
|
|
18327
18329
|
onKeydown: withKeys(searchResult, ["enter"]),
|
|
@@ -18342,7 +18344,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18342
18344
|
}
|
|
18343
18345
|
});
|
|
18344
18346
|
const Search = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
18345
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
18347
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-HNGtx2Gz.js"));
|
|
18346
18348
|
function clearNotice() {
|
|
18347
18349
|
if (localStorage$2.getItem("validator_email")) {
|
|
18348
18350
|
localStorage$2.removeItem("validator_email");
|
|
@@ -18369,15 +18371,13 @@ function useNotification() {
|
|
|
18369
18371
|
notice
|
|
18370
18372
|
};
|
|
18371
18373
|
}
|
|
18372
|
-
const _hoisted_1$j = {
|
|
18373
|
-
const _hoisted_2$d = { class: "search-avatar flex-1 flex items-center justify-center" };
|
|
18374
|
-
const _hoisted_3$a = {
|
|
18374
|
+
const _hoisted_1$j = {
|
|
18375
18375
|
key: 1,
|
|
18376
18376
|
class: "g-header-body"
|
|
18377
18377
|
};
|
|
18378
|
-
const
|
|
18379
|
-
const
|
|
18380
|
-
const
|
|
18378
|
+
const _hoisted_2$d = { class: "g-header-body-left h-full" };
|
|
18379
|
+
const _hoisted_3$a = { class: "g-header-body-right h-full" };
|
|
18380
|
+
const _hoisted_4$7 = { key: 2 };
|
|
18381
18381
|
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
18382
18382
|
...{
|
|
18383
18383
|
name: "header"
|
|
@@ -18520,7 +18520,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18520
18520
|
return props.bgConfig.index_head && isHome.value && window.location.pathname === "/";
|
|
18521
18521
|
});
|
|
18522
18522
|
const isShowStickyNotice = computed(() => {
|
|
18523
|
-
return ([SceneValue.repo, SceneValue.org, SceneValue.user].includes(props.sceneValue) || isHome.value && window.location.pathname === "/dashboard") && props.bgConfig.detail_toolbar;
|
|
18523
|
+
return ([SceneValue.repo, SceneValue.org, SceneValue.user, SceneValue.aiRepo].includes(props.sceneValue) || isHome.value && window.location.pathname === "/dashboard") && props.bgConfig.detail_toolbar;
|
|
18524
18524
|
});
|
|
18525
18525
|
const stickyNoticeInfo = computed(() => {
|
|
18526
18526
|
return isShowStickyNotice.value ? props.bgConfig.detail_top : "";
|
|
@@ -18549,6 +18549,15 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18549
18549
|
window.open(props.bgConfig.detail_top_url, "_blank");
|
|
18550
18550
|
}
|
|
18551
18551
|
};
|
|
18552
|
+
const handleHeaderClick = (e) => {
|
|
18553
|
+
console.log("handleHeaderClick", e);
|
|
18554
|
+
if (!e.target.classList.contains("allow-click-stop")) {
|
|
18555
|
+
return;
|
|
18556
|
+
}
|
|
18557
|
+
if (isIndexHead.value && props.bgConfig.index_head_url) {
|
|
18558
|
+
window.open(props.bgConfig.index_head_url, "_blank");
|
|
18559
|
+
}
|
|
18560
|
+
};
|
|
18552
18561
|
onMounted(() => {
|
|
18553
18562
|
toNotice();
|
|
18554
18563
|
addEventListener("logout", (options) => {
|
|
@@ -18606,11 +18615,12 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18606
18615
|
return (_ctx, _cache) => {
|
|
18607
18616
|
var _a, _b, _c, _d;
|
|
18608
18617
|
return openBlock(), createElementBlock("div", {
|
|
18609
|
-
|
|
18618
|
+
onClick: withModifiers(handleHeaderClick, ["prevent", "stop"]),
|
|
18619
|
+
class: "gitcode-header-wrapper w-full cursor-pointer",
|
|
18610
18620
|
style: normalizeStyle({ height: `${unref(height)}px` })
|
|
18611
18621
|
}, [
|
|
18612
18622
|
createElementVNode("div", {
|
|
18613
|
-
class: normalizeClass(["g-header fixed z-20", { "ai-hub": inAIHub.value }]),
|
|
18623
|
+
class: normalizeClass(["g-header allow-click-stop fixed z-20", { "ai-hub": inAIHub.value }]),
|
|
18614
18624
|
ref_key: "headerRef",
|
|
18615
18625
|
ref: headerRef
|
|
18616
18626
|
}, [
|
|
@@ -18618,7 +18628,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18618
18628
|
key: 0,
|
|
18619
18629
|
class: "w-full h-[64px] cursor-pointer",
|
|
18620
18630
|
style: normalizeStyle(stickyNoticeStyle.value),
|
|
18621
|
-
onClick: handleStickyNoticeClick
|
|
18631
|
+
onClick: withModifiers(handleStickyNoticeClick, ["stop"])
|
|
18622
18632
|
}, [
|
|
18623
18633
|
createVNode(GIcon, {
|
|
18624
18634
|
class: "sticky-notice-icon",
|
|
@@ -18631,9 +18641,13 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18631
18641
|
style: normalizeStyle(detailBgStyle.value)
|
|
18632
18642
|
}, [
|
|
18633
18643
|
createElementVNode("div", {
|
|
18634
|
-
class: normalizeClass(["g-toolbar-left items-center", { "flex-[1] min-w-0": !inAIHub.value }])
|
|
18644
|
+
class: normalizeClass(["g-toolbar-left items-center allow-click-stop", { "flex-[1] min-w-0": !inAIHub.value }])
|
|
18635
18645
|
}, [
|
|
18636
|
-
createElementVNode("div",
|
|
18646
|
+
createElementVNode("div", {
|
|
18647
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
18648
|
+
}, ["prevent", "stop"])),
|
|
18649
|
+
class: "flex flex-center gap-[12px] g-header-ailog"
|
|
18650
|
+
}, [
|
|
18637
18651
|
isModuleVisible(unref(HeaderDisplayItem).ASIDE_BUTTON) ? (openBlock(), createBlock(GIcon, {
|
|
18638
18652
|
key: 0,
|
|
18639
18653
|
onClick: _cache[0] || (_cache[0] = ($event) => unref(emitEvent)("toggleAsideMenuByHamburger")),
|
|
@@ -18665,12 +18679,16 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18665
18679
|
orgProps: (_b = _ctx.headerCustomProps) == null ? void 0 : _b.orgProps,
|
|
18666
18680
|
repoProps: (_c = _ctx.headerCustomProps) == null ? void 0 : _c.repoProps,
|
|
18667
18681
|
userProps: (_d = _ctx.headerCustomProps) == null ? void 0 : _d.userProps,
|
|
18668
|
-
onFollowDevCommunity: _cache[
|
|
18669
|
-
onFollowUser: _cache[
|
|
18682
|
+
onFollowDevCommunity: _cache[2] || (_cache[2] = ($event) => emit("followDevCommunity", $event)),
|
|
18683
|
+
onFollowUser: _cache[3] || (_cache[3] = ($event) => emit("followUser"))
|
|
18670
18684
|
}, null, 8, ["scene", "isLogin", "errorCode", "orgProps", "repoProps", "userProps"])) : createCommentVNode("", true)
|
|
18671
18685
|
], 2)) : createCommentVNode("", true)
|
|
18672
18686
|
], 2),
|
|
18673
|
-
createElementVNode("div",
|
|
18687
|
+
createElementVNode("div", {
|
|
18688
|
+
onClick: _cache[4] || (_cache[4] = withModifiers(() => {
|
|
18689
|
+
}, ["prevent", "stop"])),
|
|
18690
|
+
class: "search-avatar flex-1 flex items-center justify-center"
|
|
18691
|
+
}, [
|
|
18674
18692
|
isModuleVisible(unref(HeaderDisplayItem).SEARCH_BUTTON) ? renderSlot(_ctx.$slots, "search", { key: 0 }, () => [
|
|
18675
18693
|
(openBlock(), createBlock(Search, {
|
|
18676
18694
|
inAIHub: inAIHub.value,
|
|
@@ -18680,7 +18698,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18680
18698
|
], true) : createCommentVNode("", true)
|
|
18681
18699
|
]),
|
|
18682
18700
|
createElementVNode("div", {
|
|
18683
|
-
class: normalizeClass(["g-toolbar-right gap-[16px] flex-[1] justify-end max-md:gap-[12px]", inAIHub.value ? "2xl:min-w-[600px] flex-none" : ""])
|
|
18701
|
+
class: normalizeClass(["g-toolbar-right gap-[16px] flex-[1] justify-end max-md:gap-[12px] allow-click-stop", inAIHub.value ? "2xl:min-w-[600px] flex-none" : ""])
|
|
18684
18702
|
}, [
|
|
18685
18703
|
isModuleVisible(unref(HeaderDisplayItem).DEEPSEEK_BUTTON) ? (openBlock(), createBlock(ChatBot, { key: 0 })) : createCommentVNode("", true),
|
|
18686
18704
|
!_ctx.isLogin ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
@@ -18688,7 +18706,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18688
18706
|
unref(isMobile) ? (openBlock(), createElementBlock("section", {
|
|
18689
18707
|
key: 0,
|
|
18690
18708
|
class: "app-login-warp border-none login-icon",
|
|
18691
|
-
onClick: _cache[
|
|
18709
|
+
onClick: _cache[5] || (_cache[5] = ($event) => handleLogin("login"))
|
|
18692
18710
|
}, [
|
|
18693
18711
|
createVNode(GIcon, {
|
|
18694
18712
|
name: "gt-line-NotLoggedIn",
|
|
@@ -18700,7 +18718,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18700
18718
|
createVNode(unref(Button), {
|
|
18701
18719
|
variant: "solid",
|
|
18702
18720
|
color: "primary",
|
|
18703
|
-
onClick: _cache[
|
|
18721
|
+
onClick: _cache[6] || (_cache[6] = withModifiers(($event) => handleLogin("login"), ["prevent", "stop"]))
|
|
18704
18722
|
}, {
|
|
18705
18723
|
default: withCtx(() => [
|
|
18706
18724
|
createTextVNode(toDisplayString$1(unref(t2)("gitCodeLayout.header.login")), 1)
|
|
@@ -18708,7 +18726,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18708
18726
|
_: 1
|
|
18709
18727
|
}),
|
|
18710
18728
|
createVNode(unref(Button), {
|
|
18711
|
-
onClick: _cache[
|
|
18729
|
+
onClick: _cache[7] || (_cache[7] = withModifiers(($event) => handleLogin("register"), ["prevent", "stop", "prevent", "stop"])),
|
|
18712
18730
|
class: "min-w-[64px]"
|
|
18713
18731
|
}, {
|
|
18714
18732
|
default: withCtx(() => [
|
|
@@ -18732,17 +18750,17 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18732
18750
|
], 64))
|
|
18733
18751
|
], 2)
|
|
18734
18752
|
], 6),
|
|
18735
|
-
_ctx.$slots.info || _ctx.$slots.menu || _ctx.$slots.bodyHeader ? (openBlock(), createElementBlock("div",
|
|
18753
|
+
_ctx.$slots.info || _ctx.$slots.menu || _ctx.$slots.bodyHeader ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
18736
18754
|
renderSlot(_ctx.$slots, "bodyHeader", {}, () => [
|
|
18737
|
-
createElementVNode("div",
|
|
18755
|
+
createElementVNode("div", _hoisted_2$d, [
|
|
18738
18756
|
renderSlot(_ctx.$slots, "info", {}, void 0, true)
|
|
18739
18757
|
]),
|
|
18740
|
-
createElementVNode("div",
|
|
18758
|
+
createElementVNode("div", _hoisted_3$a, [
|
|
18741
18759
|
renderSlot(_ctx.$slots, "menu", {}, void 0, true)
|
|
18742
18760
|
])
|
|
18743
18761
|
], true)
|
|
18744
18762
|
])) : createCommentVNode("", true),
|
|
18745
|
-
_ctx.$slots.headerBottom ? (openBlock(), createElementBlock("div",
|
|
18763
|
+
_ctx.$slots.headerBottom ? (openBlock(), createElementBlock("div", _hoisted_4$7, [
|
|
18746
18764
|
renderSlot(_ctx.$slots, "headerBottom", {}, void 0, true)
|
|
18747
18765
|
])) : createCommentVNode("", true)
|
|
18748
18766
|
], 2)
|
|
@@ -24937,7 +24955,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
24937
24955
|
}
|
|
24938
24956
|
});
|
|
24939
24957
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
24940
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
24958
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-BsQf4k-H.js"));
|
|
24941
24959
|
const useSlidCaptcha = () => {
|
|
24942
24960
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
24943
24961
|
const open = (config) => {
|
|
@@ -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 { w as useLayoutConfig, _ as _export_sfc } from "./index-
|
|
3
|
+
import { w as useLayoutConfig, _ as _export_sfc } from "./index-BV3o4Nmw.js";
|
|
4
4
|
import "vue-devui-lal/overlay/style.css";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "index",
|
|
@@ -1,5 +1,5 @@
|
|
|
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, reactive, withCtx } from "vue";
|
|
2
|
-
import { d as debounce, t 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$8, o as isIncubationRepo, p as highlightWords, q as transWebUrl, v as _frEventTrack, E as EVENT_NAME, b as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-
|
|
2
|
+
import { d as debounce, t 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$8, o as isIncubationRepo, p as highlightWords, q as transWebUrl, v as _frEventTrack, E as EVENT_NAME, b as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-BV3o4Nmw.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
4
|
import { Row, Col } from "vue-devui-lal/grid";
|
|
5
5
|
import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";
|
package/index.d.ts
CHANGED
|
@@ -311,6 +311,7 @@ export declare const GitCodeHeader: DefineComponent<ExtractPropTypes<{
|
|
|
311
311
|
detail_top: string;
|
|
312
312
|
detail_toolbar: string;
|
|
313
313
|
detail_top_url: string;
|
|
314
|
+
index_head_url: string;
|
|
314
315
|
} | undefined>;
|
|
315
316
|
required: false;
|
|
316
317
|
default: () => {
|
|
@@ -408,6 +409,7 @@ export declare const GitCodeHeader: DefineComponent<ExtractPropTypes<{
|
|
|
408
409
|
detail_top: string;
|
|
409
410
|
detail_toolbar: string;
|
|
410
411
|
detail_top_url: string;
|
|
412
|
+
index_head_url: string;
|
|
411
413
|
} | undefined>;
|
|
412
414
|
required: false;
|
|
413
415
|
default: () => {
|
|
@@ -437,6 +439,7 @@ export declare const GitCodeHeader: DefineComponent<ExtractPropTypes<{
|
|
|
437
439
|
detail_top: string;
|
|
438
440
|
detail_toolbar: string;
|
|
439
441
|
detail_top_url: string;
|
|
442
|
+
index_head_url: string;
|
|
440
443
|
} | undefined;
|
|
441
444
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
442
445
|
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, createBlock, openBlock, unref, isRef, withCtx, createElementVNode, normalizeClass, createVNode, createTextVNode } from "vue";
|
|
2
|
-
import { i as isPhone, u as useModel } from "./index-
|
|
2
|
+
import { i as isPhone, u as useModel } from "./index-BV3o4Nmw.js";
|
|
3
3
|
import { Notification } from "vue-devui-lal/notification";
|
|
4
4
|
import { Button } from "vue-devui-lal/button";
|
|
5
5
|
import "vue-devui-lal/notification/style.css";
|