vue-layout-gitcode 1.3.19 → 1.3.21
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-ONS6f-IZ.js → GloabarSearch-LdJSgDjq.js} +2 -2
- package/{ProjectSearch-CoMJA9ap.js → ProjectSearch-BrzA0b_C.js} +1 -1
- package/{SearchHistoryList-DipnAOo-.js → SearchHistoryList-D85H9EfO.js} +1 -1
- package/{SearchPrefixTag-BZSeMX7C.js → SearchPrefixTag-CpzEuqqQ.js} +1 -1
- package/{SearchRecommed-BHOx2vCC.js → SearchRecommed-Cb1c_RU-.js} +2 -2
- package/{SearchScopeList-B1rFh_eG.js → SearchScopeList-DWEAlbyb.js} +1 -1
- package/{UserSearch-DSq_5F1q.js → UserSearch-2kdPcdBp.js} +1 -1
- package/{index-BV3o4Nmw.js → index-87RBtMC-.js} +130 -83
- package/{index-BsQf4k-H.js → index-DwykrdhW.js} +1 -1
- package/{index-CpMIg5X3.js → index-nYg3u1KW.js} +1 -1
- package/index.js +1 -1
- package/{notice-HNGtx2Gz.js → notice-ElnMcxsz.js} +1 -1
- package/package.json +1 -1
- package/style.css +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-87RBtMC-.js";
|
|
5
|
+
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-nYg3u1KW.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-87RBtMC-.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-87RBtMC-.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-87RBtMC-.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-nYg3u1KW.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-87RBtMC-.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-87RBtMC-.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-87RBtMC-.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]" };
|
|
@@ -23,6 +23,8 @@ import "vue-devui-lal/message/style.css";
|
|
|
23
23
|
import { Badge } from "vue-devui-lal/badge";
|
|
24
24
|
import "vue-devui-lal/badge/style.css";
|
|
25
25
|
import "vue-devui-lal/tabs/style.css";
|
|
26
|
+
import { Drawer } from "vue-devui-lal/drawer";
|
|
27
|
+
import "vue-devui-lal/drawer/style.css";
|
|
26
28
|
import { Input } from "vue-devui-lal/input";
|
|
27
29
|
import { Form, FormItem } from "vue-devui-lal/form";
|
|
28
30
|
import "vue-devui-lal/input/style.css";
|
|
@@ -33,9 +35,7 @@ import { Select, Option } from "vue-devui-lal/select";
|
|
|
33
35
|
import { MenuItem, Menu } from "vue-devui-lal/menu";
|
|
34
36
|
import "vue-devui-lal/select/style.css";
|
|
35
37
|
import "vue-devui-lal/menu/style.css";
|
|
36
|
-
import { Drawer } from "vue-devui-lal/drawer";
|
|
37
38
|
import { Aside } from "vue-devui-lal/layout";
|
|
38
|
-
import "vue-devui-lal/drawer/style.css";
|
|
39
39
|
import "vue-devui-lal/layout/style.css";
|
|
40
40
|
import { RadioGroup, Radio } from "vue-devui-lal/radio";
|
|
41
41
|
import "@devui-design/icons/icomoon/devui-icon.css";
|
|
@@ -10893,9 +10893,9 @@ const _hoisted_3$h = {
|
|
|
10893
10893
|
key: 0,
|
|
10894
10894
|
class: "tooltip-sign"
|
|
10895
10895
|
};
|
|
10896
|
-
const _hoisted_4$
|
|
10897
|
-
const _hoisted_5$
|
|
10898
|
-
const _hoisted_6$
|
|
10896
|
+
const _hoisted_4$e = { class: "home-nav-tooltip-wrapper" };
|
|
10897
|
+
const _hoisted_5$b = { class: "home-nav-text" };
|
|
10898
|
+
const _hoisted_6$8 = {
|
|
10899
10899
|
key: 1,
|
|
10900
10900
|
class: "tools-list"
|
|
10901
10901
|
};
|
|
@@ -11109,8 +11109,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
11109
11109
|
"overlay-class": "tools-tag-tooltip"
|
|
11110
11110
|
}, {
|
|
11111
11111
|
content: withCtx(() => [
|
|
11112
|
-
createElementVNode("div", _hoisted_4$
|
|
11113
|
-
createElementVNode("div", _hoisted_5$
|
|
11112
|
+
createElementVNode("div", _hoisted_4$e, [
|
|
11113
|
+
createElementVNode("div", _hoisted_5$b, 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$8, [
|
|
11134
11134
|
createVNode(unref(Tooltip), {
|
|
11135
11135
|
position: "left",
|
|
11136
11136
|
"overlay-class": "tools-tag-tooltip"
|
|
@@ -14433,9 +14433,9 @@ const aiThemeMenuId = "ai-theme";
|
|
|
14433
14433
|
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
|
-
const _hoisted_4$
|
|
14437
|
-
const _hoisted_5$
|
|
14438
|
-
const _hoisted_6$
|
|
14436
|
+
const _hoisted_4$d = ["onMouseenter"];
|
|
14437
|
+
const _hoisted_5$a = { class: "ai-hub-menus-themetablist" };
|
|
14438
|
+
const _hoisted_6$7 = { 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$a, [
|
|
14532
14532
|
(openBlock(true), createElementBlock(Fragment, null, renderList(themeTablist.value, (item, index22) => {
|
|
14533
14533
|
return openBlock(), createBlock(GLink, {
|
|
14534
14534
|
key: index22,
|
|
@@ -14564,7 +14564,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
14564
14564
|
createElementVNode("span", {
|
|
14565
14565
|
class: normalizeClass(["ai-hub-menus-item_label hemin", { "theme-tablist-hoverColor": ((_b2 = hoverMenu.value) == null ? void 0 : _b2.url) === menu.url }])
|
|
14566
14566
|
}, toDisplayString$1(menu.label), 3)
|
|
14567
|
-
], 40, _hoisted_4$
|
|
14567
|
+
], 40, _hoisted_4$d)
|
|
14568
14568
|
];
|
|
14569
14569
|
}),
|
|
14570
14570
|
_: 2
|
|
@@ -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$7, [
|
|
14581
14581
|
createVNode(GIcon, {
|
|
14582
14582
|
size: "18px",
|
|
14583
14583
|
name: "gt-line-down",
|
|
@@ -16419,9 +16419,9 @@ const _hoisted_2$i = {
|
|
|
16419
16419
|
class: "org-layout-toolbar"
|
|
16420
16420
|
};
|
|
16421
16421
|
const _hoisted_3$f = { class: "org-layout-toolbar-title flex-1 ellipsis-two-line" };
|
|
16422
|
-
const _hoisted_4$
|
|
16423
|
-
const _hoisted_5$
|
|
16424
|
-
const _hoisted_6$
|
|
16422
|
+
const _hoisted_4$c = { class: "text-xs" };
|
|
16423
|
+
const _hoisted_5$9 = { class: "flex items-center w-full" };
|
|
16424
|
+
const _hoisted_6$6 = {
|
|
16425
16425
|
key: 1,
|
|
16426
16426
|
class: "flex items-center min-w-[30px]"
|
|
16427
16427
|
};
|
|
@@ -16615,7 +16615,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
16615
16615
|
default: withCtx(() => {
|
|
16616
16616
|
var _a2;
|
|
16617
16617
|
return [
|
|
16618
|
-
createElementVNode("span", _hoisted_4$
|
|
16618
|
+
createElementVNode("span", _hoisted_4$c, toDisplayString$1(((_a2 = _ctx.orgProps) == null ? void 0 : _a2.isOrgFollow) ? unref(t2)("gitCodeLayout.home.alreadyFollowed") : unref(t2)("gitCodeLayout.home.focusOn")), 1)
|
|
16619
16619
|
];
|
|
16620
16620
|
}),
|
|
16621
16621
|
_: 1
|
|
@@ -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$9, [
|
|
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$6, [
|
|
16657
16657
|
unref(isPhone)() ? (openBlock(), createElementBlock("img", _hoisted_7$5)) : (openBlock(), createElementBlock("img", _hoisted_8$5))
|
|
16658
16658
|
]))
|
|
16659
16659
|
];
|
|
@@ -17003,8 +17003,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
17003
17003
|
setup(__props) {
|
|
17004
17004
|
const { t: t2 } = i18n.global;
|
|
17005
17005
|
return (_ctx, _cache) => {
|
|
17006
|
-
|
|
17007
|
-
return openBlock(), createBlock(_component_GLink, {
|
|
17006
|
+
return openBlock(), createBlock(GLink, {
|
|
17008
17007
|
variant: "text",
|
|
17009
17008
|
class: normalizeClass(["g-toolbar-docs", _ctx.whiteColor ? "white" : "black"]),
|
|
17010
17009
|
href: "https://docs.gitcode.com/docs/help/home/ai-community/",
|
|
@@ -17222,9 +17221,9 @@ const _hoisted_1$n = {
|
|
|
17222
17221
|
};
|
|
17223
17222
|
const _hoisted_2$h = { class: "flex items-center font-medium gap-[4px]" };
|
|
17224
17223
|
const _hoisted_3$e = ["src"];
|
|
17225
|
-
const _hoisted_4$
|
|
17226
|
-
const _hoisted_5$
|
|
17227
|
-
const _hoisted_6$
|
|
17224
|
+
const _hoisted_4$b = { class: "level-name" };
|
|
17225
|
+
const _hoisted_5$8 = { class: "level-icon" };
|
|
17226
|
+
const _hoisted_6$5 = ["src"];
|
|
17228
17227
|
const _hoisted_7$4 = { class: "custom-btn" };
|
|
17229
17228
|
const _hoisted_8$4 = { class: "flex items-center justify-center" };
|
|
17230
17229
|
const maxLevel = 3;
|
|
@@ -17281,13 +17280,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
17281
17280
|
src: levelInfo.value.avatar,
|
|
17282
17281
|
alt: ""
|
|
17283
17282
|
}, null, 8, _hoisted_3$e),
|
|
17284
|
-
createElementVNode("div", _hoisted_4$
|
|
17283
|
+
createElementVNode("div", _hoisted_4$b, [
|
|
17285
17284
|
createElementVNode("div", null, toDisplayString$1(levelInfo.value.name), 1),
|
|
17286
|
-
createElementVNode("div", _hoisted_5$
|
|
17285
|
+
createElementVNode("div", _hoisted_5$8, [
|
|
17287
17286
|
createElementVNode("img", {
|
|
17288
17287
|
src: levelInfo.value.level,
|
|
17289
17288
|
alt: ""
|
|
17290
|
-
}, null, 8, _hoisted_6$
|
|
17289
|
+
}, null, 8, _hoisted_6$5)
|
|
17291
17290
|
])
|
|
17292
17291
|
])
|
|
17293
17292
|
]),
|
|
@@ -17302,7 +17301,7 @@ const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-
|
|
|
17302
17301
|
const _hoisted_1$m = { class: "g-user-drawer-info-list pl-[16px]" };
|
|
17303
17302
|
const _hoisted_2$g = { class: "max-w-[200px]" };
|
|
17304
17303
|
const _hoisted_3$d = ["title"];
|
|
17305
|
-
const _hoisted_4$
|
|
17304
|
+
const _hoisted_4$a = ["title"];
|
|
17306
17305
|
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
17307
17306
|
__name: "UserAvatarMenu",
|
|
17308
17307
|
props: ["isChatBot", "accountInfo", "loginOutFinish", "inAIHub", "independence"],
|
|
@@ -17444,7 +17443,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
17444
17443
|
createElementVNode("p", {
|
|
17445
17444
|
class: "g-user-drawer-info-list-id ellipsis",
|
|
17446
17445
|
title: __props.accountInfo.username
|
|
17447
|
-
}, "@" + toDisplayString$1(__props.accountInfo.username), 9, _hoisted_4$
|
|
17446
|
+
}, "@" + toDisplayString$1(__props.accountInfo.username), 9, _hoisted_4$a)
|
|
17448
17447
|
]),
|
|
17449
17448
|
createVNode(GIcon, {
|
|
17450
17449
|
name: "gt-line-right",
|
|
@@ -17491,7 +17490,13 @@ const _hoisted_2$f = {
|
|
|
17491
17490
|
key: 0,
|
|
17492
17491
|
class: "g-user-avatar__badge"
|
|
17493
17492
|
};
|
|
17494
|
-
const _hoisted_3$c = { class: "g-user-
|
|
17493
|
+
const _hoisted_3$c = { class: "g-user-avatar flex-center ml-1" };
|
|
17494
|
+
const _hoisted_4$9 = {
|
|
17495
|
+
key: 0,
|
|
17496
|
+
class: "g-user-avatar__badge"
|
|
17497
|
+
};
|
|
17498
|
+
const _hoisted_5$7 = { class: "g-user-drawer" };
|
|
17499
|
+
const _hoisted_6$4 = { class: "p-[16px] pt-[8px] pb-0 flex justify-end items-center h-[48px]" };
|
|
17495
17500
|
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
17496
17501
|
...{
|
|
17497
17502
|
name: "UserAvatar"
|
|
@@ -17500,6 +17505,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
17500
17505
|
props: ["isChatBot", "loginOutFinish", "inAIHub", "independence"],
|
|
17501
17506
|
setup(__props) {
|
|
17502
17507
|
const { isMobile } = usePageResize();
|
|
17508
|
+
const drawerVisible = ref(false);
|
|
17503
17509
|
const accountInfo = ref();
|
|
17504
17510
|
accountInfo.value = inject("userInfo");
|
|
17505
17511
|
if (!accountInfo.value.avatar) {
|
|
@@ -17572,37 +17578,81 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
17572
17578
|
window.removeEventListener("storage", handleStorageChange);
|
|
17573
17579
|
});
|
|
17574
17580
|
return (_ctx, _cache) => {
|
|
17575
|
-
return openBlock(),
|
|
17576
|
-
|
|
17577
|
-
|
|
17578
|
-
|
|
17579
|
-
|
|
17580
|
-
onToggle: handleToggle
|
|
17581
|
-
}, {
|
|
17582
|
-
menu: withCtx(() => [
|
|
17583
|
-
createElementVNode("div", _hoisted_3$c, [
|
|
17584
|
-
createVNode(UserAvatarMenu, {
|
|
17585
|
-
independence: __props.independence,
|
|
17586
|
-
loginOutFinish: __props.loginOutFinish,
|
|
17587
|
-
accountInfo: accountInfo.value,
|
|
17588
|
-
isChatBot: __props.isChatBot,
|
|
17589
|
-
inAIHub: __props.inAIHub
|
|
17590
|
-
}, null, 8, ["independence", "loginOutFinish", "accountInfo", "isChatBot", "inAIHub"])
|
|
17591
|
-
])
|
|
17592
|
-
]),
|
|
17593
|
-
default: withCtx(() => [
|
|
17581
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
17582
|
+
unref(isMobile) ? (openBlock(), createElementBlock("div", {
|
|
17583
|
+
key: 0,
|
|
17584
|
+
onClick: _cache[0] || (_cache[0] = ($event) => drawerVisible.value = true)
|
|
17585
|
+
}, [
|
|
17594
17586
|
createElementVNode("div", _hoisted_1$l, [
|
|
17595
17587
|
createVNode(_sfc_main$y, {
|
|
17596
17588
|
name: accountInfo.value.nickname,
|
|
17597
17589
|
src: accountInfo.value.avatar
|
|
17598
17590
|
}, null, 8, ["name", "src"]),
|
|
17599
|
-
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_2$f, _cache[
|
|
17591
|
+
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_2$f, _cache[3] || (_cache[3] = [
|
|
17600
17592
|
createElementVNode("div", null, null, -1)
|
|
17601
17593
|
]))) : createCommentVNode("", true)
|
|
17602
17594
|
])
|
|
17603
|
-
]),
|
|
17604
|
-
|
|
17605
|
-
|
|
17595
|
+
])) : (openBlock(), createBlock(unref(Dropdown), {
|
|
17596
|
+
key: 1,
|
|
17597
|
+
position: ["bottom-start"],
|
|
17598
|
+
"destroy-on-hide": false,
|
|
17599
|
+
trigger: "hover",
|
|
17600
|
+
"overlay-class": "g-user-dropdown",
|
|
17601
|
+
onToggle: handleToggle
|
|
17602
|
+
}, {
|
|
17603
|
+
menu: withCtx(() => [
|
|
17604
|
+
createElementVNode("div", _hoisted_5$7, [
|
|
17605
|
+
createVNode(UserAvatarMenu, {
|
|
17606
|
+
independence: __props.independence,
|
|
17607
|
+
loginOutFinish: __props.loginOutFinish,
|
|
17608
|
+
accountInfo: accountInfo.value,
|
|
17609
|
+
isChatBot: __props.isChatBot,
|
|
17610
|
+
inAIHub: __props.inAIHub
|
|
17611
|
+
}, null, 8, ["independence", "loginOutFinish", "accountInfo", "isChatBot", "inAIHub"])
|
|
17612
|
+
])
|
|
17613
|
+
]),
|
|
17614
|
+
default: withCtx(() => [
|
|
17615
|
+
createElementVNode("div", _hoisted_3$c, [
|
|
17616
|
+
createVNode(_sfc_main$y, {
|
|
17617
|
+
name: accountInfo.value.nickname,
|
|
17618
|
+
src: accountInfo.value.avatar
|
|
17619
|
+
}, null, 8, ["name", "src"]),
|
|
17620
|
+
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_4$9, _cache[4] || (_cache[4] = [
|
|
17621
|
+
createElementVNode("div", null, null, -1)
|
|
17622
|
+
]))) : createCommentVNode("", true)
|
|
17623
|
+
])
|
|
17624
|
+
]),
|
|
17625
|
+
_: 1
|
|
17626
|
+
})),
|
|
17627
|
+
createVNode(unref(Drawer), {
|
|
17628
|
+
modelValue: drawerVisible.value,
|
|
17629
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => drawerVisible.value = $event),
|
|
17630
|
+
position: "right",
|
|
17631
|
+
"lock-scroll": "",
|
|
17632
|
+
style: normalizeStyle([{ "top": "0", "max-height": "100%" }, { width: "240px", overflowY: "scroll" }])
|
|
17633
|
+
}, {
|
|
17634
|
+
default: withCtx(() => [
|
|
17635
|
+
createElementVNode("div", null, [
|
|
17636
|
+
createElementVNode("div", _hoisted_6$4, [
|
|
17637
|
+
createVNode(unref(Button), {
|
|
17638
|
+
class: "cursor-pointer draw-side-bar-close",
|
|
17639
|
+
icon: "close",
|
|
17640
|
+
onClick: _cache[1] || (_cache[1] = ($event) => drawerVisible.value = false),
|
|
17641
|
+
variant: "text"
|
|
17642
|
+
})
|
|
17643
|
+
]),
|
|
17644
|
+
createVNode(UserAvatarMenu, {
|
|
17645
|
+
independence: __props.independence,
|
|
17646
|
+
loginOutFinish: __props.loginOutFinish,
|
|
17647
|
+
accountInfo: accountInfo.value,
|
|
17648
|
+
isChatBot: __props.isChatBot,
|
|
17649
|
+
inAIHub: __props.inAIHub
|
|
17650
|
+
}, null, 8, ["independence", "loginOutFinish", "accountInfo", "isChatBot", "inAIHub"])
|
|
17651
|
+
])
|
|
17652
|
+
]),
|
|
17653
|
+
_: 1
|
|
17654
|
+
}, 8, ["modelValue"])
|
|
17655
|
+
], 64);
|
|
17606
17656
|
};
|
|
17607
17657
|
}
|
|
17608
17658
|
});
|
|
@@ -17757,7 +17807,7 @@ const _hoisted_1$k = { class: "g-header-search-prefix" };
|
|
|
17757
17807
|
const _hoisted_2$e = { class: "g-header-search-suffix-splitline" };
|
|
17758
17808
|
const _hoisted_3$b = { class: "g-header-search-suffix-suffixIcon" };
|
|
17759
17809
|
const _hoisted_4$8 = { class: "history-list" };
|
|
17760
|
-
const _hoisted_5$
|
|
17810
|
+
const _hoisted_5$6 = {
|
|
17761
17811
|
key: 1,
|
|
17762
17812
|
class: "aireposearch flex-1"
|
|
17763
17813
|
};
|
|
@@ -17770,13 +17820,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
17770
17820
|
setup(__props) {
|
|
17771
17821
|
var _a;
|
|
17772
17822
|
const { t: $t } = i18n.global;
|
|
17773
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
17774
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
17775
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
17776
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
17777
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
17778
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
17779
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
17823
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-BrzA0b_C.js"));
|
|
17824
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-2kdPcdBp.js"));
|
|
17825
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-LdJSgDjq.js"));
|
|
17826
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-D85H9EfO.js"));
|
|
17827
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-DWEAlbyb.js"));
|
|
17828
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-CpzEuqqQ.js"));
|
|
17829
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-Cb1c_RU-.js"));
|
|
17780
17830
|
const props = __props;
|
|
17781
17831
|
const repoInfo = inject("repoInfo");
|
|
17782
17832
|
const orgInfo = inject("orgInfo");
|
|
@@ -18323,7 +18373,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18323
18373
|
_: 1
|
|
18324
18374
|
}, 8, ["visible"])
|
|
18325
18375
|
], 2)) : createCommentVNode("", true),
|
|
18326
|
-
_ctx.inAIHub ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
18376
|
+
_ctx.inAIHub ? (openBlock(), createElementBlock("div", _hoisted_5$6, [
|
|
18327
18377
|
createVNode(unref(Input), {
|
|
18328
18378
|
placeholder: unref($t)("gitCodeLayout.home.searchPlaceholder"),
|
|
18329
18379
|
onKeydown: withKeys(searchResult, ["enter"]),
|
|
@@ -18344,7 +18394,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18344
18394
|
}
|
|
18345
18395
|
});
|
|
18346
18396
|
const Search = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
18347
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
18397
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-ElnMcxsz.js"));
|
|
18348
18398
|
function clearNotice() {
|
|
18349
18399
|
if (localStorage$2.getItem("validator_email")) {
|
|
18350
18400
|
localStorage$2.removeItem("validator_email");
|
|
@@ -18371,13 +18421,14 @@ function useNotification() {
|
|
|
18371
18421
|
notice
|
|
18372
18422
|
};
|
|
18373
18423
|
}
|
|
18374
|
-
const _hoisted_1$j = {
|
|
18424
|
+
const _hoisted_1$j = { class: "search-avatar flex-1 flex items-center justify-center" };
|
|
18425
|
+
const _hoisted_2$d = {
|
|
18375
18426
|
key: 1,
|
|
18376
18427
|
class: "g-header-body"
|
|
18377
18428
|
};
|
|
18378
|
-
const
|
|
18379
|
-
const
|
|
18380
|
-
const
|
|
18429
|
+
const _hoisted_3$a = { class: "g-header-body-left h-full" };
|
|
18430
|
+
const _hoisted_4$7 = { class: "g-header-body-right h-full" };
|
|
18431
|
+
const _hoisted_5$5 = { key: 2 };
|
|
18381
18432
|
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
18382
18433
|
...{
|
|
18383
18434
|
name: "header"
|
|
@@ -18615,7 +18666,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18615
18666
|
return (_ctx, _cache) => {
|
|
18616
18667
|
var _a, _b, _c, _d;
|
|
18617
18668
|
return openBlock(), createElementBlock("div", {
|
|
18618
|
-
onClick: withModifiers(handleHeaderClick, ["
|
|
18669
|
+
onClick: withModifiers(handleHeaderClick, ["stop"]),
|
|
18619
18670
|
class: "gitcode-header-wrapper w-full cursor-pointer",
|
|
18620
18671
|
style: normalizeStyle({ height: `${unref(height)}px` })
|
|
18621
18672
|
}, [
|
|
@@ -18645,7 +18696,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18645
18696
|
}, [
|
|
18646
18697
|
createElementVNode("div", {
|
|
18647
18698
|
onClick: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
18648
|
-
}, ["
|
|
18699
|
+
}, ["stop"])),
|
|
18649
18700
|
class: "flex flex-center gap-[12px] g-header-ailog"
|
|
18650
18701
|
}, [
|
|
18651
18702
|
isModuleVisible(unref(HeaderDisplayItem).ASIDE_BUTTON) ? (openBlock(), createBlock(GIcon, {
|
|
@@ -18684,11 +18735,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18684
18735
|
}, null, 8, ["scene", "isLogin", "errorCode", "orgProps", "repoProps", "userProps"])) : createCommentVNode("", true)
|
|
18685
18736
|
], 2)) : createCommentVNode("", true)
|
|
18686
18737
|
], 2),
|
|
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
|
-
}, [
|
|
18738
|
+
createElementVNode("div", _hoisted_1$j, [
|
|
18692
18739
|
isModuleVisible(unref(HeaderDisplayItem).SEARCH_BUTTON) ? renderSlot(_ctx.$slots, "search", { key: 0 }, () => [
|
|
18693
18740
|
(openBlock(), createBlock(Search, {
|
|
18694
18741
|
inAIHub: inAIHub.value,
|
|
@@ -18706,7 +18753,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18706
18753
|
unref(isMobile) ? (openBlock(), createElementBlock("section", {
|
|
18707
18754
|
key: 0,
|
|
18708
18755
|
class: "app-login-warp border-none login-icon",
|
|
18709
|
-
onClick: _cache[
|
|
18756
|
+
onClick: _cache[4] || (_cache[4] = ($event) => handleLogin("login"))
|
|
18710
18757
|
}, [
|
|
18711
18758
|
createVNode(GIcon, {
|
|
18712
18759
|
name: "gt-line-NotLoggedIn",
|
|
@@ -18718,7 +18765,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18718
18765
|
createVNode(unref(Button), {
|
|
18719
18766
|
variant: "solid",
|
|
18720
18767
|
color: "primary",
|
|
18721
|
-
onClick: _cache[
|
|
18768
|
+
onClick: _cache[5] || (_cache[5] = withModifiers(($event) => handleLogin("login"), ["stop"]))
|
|
18722
18769
|
}, {
|
|
18723
18770
|
default: withCtx(() => [
|
|
18724
18771
|
createTextVNode(toDisplayString$1(unref(t2)("gitCodeLayout.header.login")), 1)
|
|
@@ -18726,7 +18773,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18726
18773
|
_: 1
|
|
18727
18774
|
}),
|
|
18728
18775
|
createVNode(unref(Button), {
|
|
18729
|
-
onClick: _cache[
|
|
18776
|
+
onClick: _cache[6] || (_cache[6] = withModifiers(($event) => handleLogin("register"), ["stop"])),
|
|
18730
18777
|
class: "min-w-[64px]"
|
|
18731
18778
|
}, {
|
|
18732
18779
|
default: withCtx(() => [
|
|
@@ -18750,17 +18797,17 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18750
18797
|
], 64))
|
|
18751
18798
|
], 2)
|
|
18752
18799
|
], 6),
|
|
18753
|
-
_ctx.$slots.info || _ctx.$slots.menu || _ctx.$slots.bodyHeader ? (openBlock(), createElementBlock("div",
|
|
18800
|
+
_ctx.$slots.info || _ctx.$slots.menu || _ctx.$slots.bodyHeader ? (openBlock(), createElementBlock("div", _hoisted_2$d, [
|
|
18754
18801
|
renderSlot(_ctx.$slots, "bodyHeader", {}, () => [
|
|
18755
|
-
createElementVNode("div",
|
|
18802
|
+
createElementVNode("div", _hoisted_3$a, [
|
|
18756
18803
|
renderSlot(_ctx.$slots, "info", {}, void 0, true)
|
|
18757
18804
|
]),
|
|
18758
|
-
createElementVNode("div",
|
|
18805
|
+
createElementVNode("div", _hoisted_4$7, [
|
|
18759
18806
|
renderSlot(_ctx.$slots, "menu", {}, void 0, true)
|
|
18760
18807
|
])
|
|
18761
18808
|
], true)
|
|
18762
18809
|
])) : createCommentVNode("", true),
|
|
18763
|
-
_ctx.$slots.headerBottom ? (openBlock(), createElementBlock("div",
|
|
18810
|
+
_ctx.$slots.headerBottom ? (openBlock(), createElementBlock("div", _hoisted_5$5, [
|
|
18764
18811
|
renderSlot(_ctx.$slots, "headerBottom", {}, void 0, true)
|
|
18765
18812
|
])) : createCommentVNode("", true)
|
|
18766
18813
|
], 2)
|
|
@@ -24955,7 +25002,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
24955
25002
|
}
|
|
24956
25003
|
});
|
|
24957
25004
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
24958
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
25005
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-DwykrdhW.js"));
|
|
24959
25006
|
const useSlidCaptcha = () => {
|
|
24960
25007
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
24961
25008
|
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-87RBtMC-.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-87RBtMC-.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.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-87RBtMC-.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";
|