vue-layout-gitcode 1.12.15-beta.54 → 1.12.15-beta.56
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-DtJ1XSNT.js → GloabarSearch-BToo63lN.js} +2 -2
- package/{MenuItem-z_q38p7d.js → MenuItem-CSUD9h9u.js} +1 -1
- package/{ProjectMenuList-D-5t0FdW.js → ProjectMenuList-BIfK-2PP.js} +2 -2
- package/{ProjectMenuListV2-w27iLg53.js → ProjectMenuListV2-Cri1p6cu.js} +2 -2
- package/{ProjectSearch-COwLUc1e.js → ProjectSearch-DiFQTudk.js} +28 -7
- package/{SearchHistoryList-CbSiu8ol.js → SearchHistoryList-C4c8kz4W.js} +1 -1
- package/{SearchRecommed-DJ5BVOoR.js → SearchRecommed-BZtERyjj.js} +2 -2
- package/{SearchScopeList-CGTtiY3J.js → SearchScopeList-BSc_5zAp.js} +1 -1
- package/{UserSearch-DXTbSPeU.js → UserSearch-B4UqFeav.js} +1 -1
- package/{index-B9S7kNlY.js → index-BfbWU9zk.js} +1 -1
- package/{index-CsCZ0pnu.js → index-CBfBURIA.js} +671 -595
- package/{index-CSBavq4m.js → index-DIQGBKan.js} +1 -1
- package/index.d.ts +6 -0
- package/index.js +14 -13
- package/{notice-CabzYxnD.js → notice-CCYUf9Us.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/{transWebUrl-43DvOkSC.js → transWebUrl-B0xLdCWp.js} +1 -1
- package/{useReportRepo-nqrYd9i-.js → useReportRepo-BBA5oOrD.js} +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { defineComponent, computed, createBlock, createElementBlock, openBlock, unref, normalizeProps, mergeProps, normalizeClass, renderSlot, normalizeStyle, createElementVNode, reactive, readonly, inject, effectScope, ref, shallowRef, watch, isRef, getCurrentInstance, h, Fragment, onBeforeMount, onMounted, onUnmounted, createVNode, Text, provide, createCommentVNode, withCtx, toDisplayString as toDisplayString$1, renderList, createTextVNode, Transition, withModifiers, resolveComponent, watchEffect, nextTick,
|
|
4
|
+
import { defineComponent, computed, createBlock, createElementBlock, openBlock, unref, normalizeProps, mergeProps, normalizeClass, renderSlot, normalizeStyle, createElementVNode, reactive, readonly, inject, effectScope, ref, shallowRef, watch, isRef, getCurrentInstance, h, Fragment, onBeforeMount, onMounted, onUnmounted, createVNode, Text, provide, createCommentVNode, withCtx, toDisplayString as toDisplayString$1, renderList, createTextVNode, Transition, withModifiers, resolveComponent, watchEffect, nextTick, resolveDirective, withDirectives, onBeforeUnmount, guardReactiveProps, markRaw, resolveDynamicComponent, useAttrs, defineAsyncComponent, vShow, withKeys, useCssVars, createSlots, render, toRaw, mergeModels, useModel as useModel$1, watchPostEffect, useSlots, createStaticVNode } from "vue";
|
|
5
5
|
import { Button } from "vue-devui-lal/button";
|
|
6
6
|
import { Popover } from "vue-devui-lal/popover";
|
|
7
7
|
import { Tooltip } from "vue-devui-lal/tooltip";
|
|
@@ -23,6 +23,8 @@ import dayjs from "dayjs";
|
|
|
23
23
|
import isDate$1 from "lodash/isDate";
|
|
24
24
|
import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";
|
|
25
25
|
import "vue-devui-lal/skeleton/style.css";
|
|
26
|
+
import { Dropdown } from "vue-devui-lal/dropdown";
|
|
27
|
+
import "vue-devui-lal/dropdown/style.css";
|
|
26
28
|
import debounce from "lodash/debounce";
|
|
27
29
|
import { Badge } from "vue-devui-lal/badge";
|
|
28
30
|
import "vue-devui-lal/badge/style.css";
|
|
@@ -30,8 +32,6 @@ import { Tabs, Tab } from "vue-devui-lal/tabs";
|
|
|
30
32
|
import "vue-devui-lal/tabs/style.css";
|
|
31
33
|
import "vue-devui-lal/loading/style.css";
|
|
32
34
|
import { LoadingDirective } from "vue-devui-lal/loading";
|
|
33
|
-
import { Dropdown } from "vue-devui-lal/dropdown";
|
|
34
|
-
import "vue-devui-lal/dropdown/style.css";
|
|
35
35
|
import { Drawer } from "vue-devui-lal/drawer";
|
|
36
36
|
import "vue-devui-lal/drawer/style.css";
|
|
37
37
|
import { Input } from "vue-devui-lal/input";
|
|
@@ -57,9 +57,9 @@ import { Checkbox } from "vue-devui-lal/checkbox";
|
|
|
57
57
|
import "vue-devui-lal/checkbox/style.css";
|
|
58
58
|
import { Modal } from "vue-devui-lal/modal";
|
|
59
59
|
import "vue-devui-lal/modal/style.css";
|
|
60
|
-
const _hoisted_1$
|
|
61
|
-
const _hoisted_2$
|
|
62
|
-
const _sfc_main$
|
|
60
|
+
const _hoisted_1$J = ["xlink:href"];
|
|
61
|
+
const _hoisted_2$x = ["xlink:href"];
|
|
62
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
63
63
|
__name: "index",
|
|
64
64
|
props: {
|
|
65
65
|
name: { default: "gt-run" },
|
|
@@ -88,7 +88,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
88
88
|
}, [
|
|
89
89
|
createElementVNode("use", {
|
|
90
90
|
"xlink:href": `#${_ctx.name}`
|
|
91
|
-
}, null, 8, _hoisted_1$
|
|
91
|
+
}, null, 8, _hoisted_1$J)
|
|
92
92
|
], 6)),
|
|
93
93
|
renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
|
|
94
94
|
], 2)) : (openBlock(), createElementBlock("svg", {
|
|
@@ -99,7 +99,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
99
99
|
}, [
|
|
100
100
|
createElementVNode("use", {
|
|
101
101
|
"xlink:href": `#${_ctx.name}`
|
|
102
|
-
}, null, 8, _hoisted_2$
|
|
102
|
+
}, null, 8, _hoisted_2$x)
|
|
103
103
|
], 6));
|
|
104
104
|
};
|
|
105
105
|
}
|
|
@@ -111,7 +111,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
111
111
|
}
|
|
112
112
|
return target;
|
|
113
113
|
};
|
|
114
|
-
const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
114
|
+
const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
115
115
|
const defaultConfig = {
|
|
116
116
|
VITE_ENV: "production",
|
|
117
117
|
VITE_HOST: "https://gitcode.com",
|
|
@@ -817,7 +817,7 @@ function createDOMPurify() {
|
|
|
817
817
|
const {
|
|
818
818
|
DocumentFragment,
|
|
819
819
|
HTMLTemplateElement,
|
|
820
|
-
Node
|
|
820
|
+
Node,
|
|
821
821
|
Element,
|
|
822
822
|
NodeFilter,
|
|
823
823
|
NamedNodeMap = window2.NamedNodeMap || window2.MozNamedAttrMap,
|
|
@@ -1196,7 +1196,7 @@ function createDOMPurify() {
|
|
|
1196
1196
|
return element instanceof HTMLFormElement && (typeof element.nodeName !== "string" || typeof element.textContent !== "string" || typeof element.removeChild !== "function" || !(element.attributes instanceof NamedNodeMap) || typeof element.removeAttribute !== "function" || typeof element.setAttribute !== "function" || typeof element.namespaceURI !== "string" || typeof element.insertBefore !== "function" || typeof element.hasChildNodes !== "function");
|
|
1197
1197
|
};
|
|
1198
1198
|
const _isNode = function _isNode2(value) {
|
|
1199
|
-
return typeof
|
|
1199
|
+
return typeof Node === "function" && value instanceof Node;
|
|
1200
1200
|
};
|
|
1201
1201
|
function _executeHooks(hooks2, currentNode, data) {
|
|
1202
1202
|
arrayForEach(hooks2, (hook) => {
|
|
@@ -1450,7 +1450,7 @@ function createDOMPurify() {
|
|
|
1450
1450
|
throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
|
|
1451
1451
|
}
|
|
1452
1452
|
}
|
|
1453
|
-
} else if (dirty instanceof
|
|
1453
|
+
} else if (dirty instanceof Node) {
|
|
1454
1454
|
body = _initDocument("<!---->");
|
|
1455
1455
|
importedNode = body.ownerDocument.importNode(dirty, true);
|
|
1456
1456
|
if (importedNode.nodeType === NODE_TYPE.element && importedNode.nodeName === "BODY") {
|
|
@@ -7717,7 +7717,6 @@ const gitCodeLayout$1 = {
|
|
|
7717
7717
|
Tianqi: "天启",
|
|
7718
7718
|
topic: "热门主题",
|
|
7719
7719
|
discoverMore: "探索更多",
|
|
7720
|
-
atomCodeOfficial: "AtomCode 官网",
|
|
7721
7720
|
competition: "大赛平台",
|
|
7722
7721
|
aiCommunity: "AI社区",
|
|
7723
7722
|
learnCenter: "学习中心",
|
|
@@ -7737,6 +7736,7 @@ const gitCodeLayout$1 = {
|
|
|
7737
7736
|
useAtomCode: "使用 AtomCode…",
|
|
7738
7737
|
openInWorkbench: "在工作台中打开",
|
|
7739
7738
|
contextHint: "由 Agent 协助处理当前任务",
|
|
7739
|
+
atomCodeOfficial: "AtomCode 官网",
|
|
7740
7740
|
downloadCli: "下载 AtomCode CLI"
|
|
7741
7741
|
},
|
|
7742
7742
|
header: {
|
|
@@ -8137,7 +8137,6 @@ const gitCodeLayout = {
|
|
|
8137
8137
|
Tianqi: "Tianqi",
|
|
8138
8138
|
topic: "Hot topics",
|
|
8139
8139
|
discoverMore: "Discover More",
|
|
8140
|
-
atomCodeOfficial: "AtomCode Website",
|
|
8141
8140
|
competition: "Competition",
|
|
8142
8141
|
aiCommunity: "AI Hub",
|
|
8143
8142
|
learnCenter: "Learning Center",
|
|
@@ -8157,6 +8156,7 @@ const gitCodeLayout = {
|
|
|
8157
8156
|
useAtomCode: "Use AtomCode…",
|
|
8158
8157
|
openInWorkbench: "Open in Dashboard",
|
|
8159
8158
|
contextHint: "Assisted by Agent for current task",
|
|
8159
|
+
atomCodeOfficial: "AtomCode Website",
|
|
8160
8160
|
downloadCli: "Download AtomCode CLI"
|
|
8161
8161
|
},
|
|
8162
8162
|
header: {
|
|
@@ -9110,21 +9110,21 @@ const currentHelpDocsAiCommunityUrl = () => {
|
|
|
9110
9110
|
const baseUrl = isGitCodeHost() ? HELP_DOCS_URL_GITCODE + "/docs/help/home/ai-community/" : HELP_DOCS_URL_ATOMGIT + "/docs/help/home/ai-community/";
|
|
9111
9111
|
return appendLangPathToHelpDocsUrl(baseUrl);
|
|
9112
9112
|
};
|
|
9113
|
-
const _hoisted_1$
|
|
9114
|
-
const _hoisted_2$
|
|
9115
|
-
const _hoisted_3$
|
|
9116
|
-
const _hoisted_4$
|
|
9113
|
+
const _hoisted_1$I = { class: "home-nav-right" };
|
|
9114
|
+
const _hoisted_2$w = { class: "home-nav-item" };
|
|
9115
|
+
const _hoisted_3$v = { class: "tooltip-sign" };
|
|
9116
|
+
const _hoisted_4$o = { class: "home-nav-tooltip-wrapper" };
|
|
9117
9117
|
const _hoisted_5$j = { class: "home-nav-text" };
|
|
9118
9118
|
const _hoisted_6$g = { class: "home-nav-tooltip-wrapper" };
|
|
9119
9119
|
const _hoisted_7$d = { class: "home-nav-text" };
|
|
9120
|
-
const _hoisted_8$
|
|
9120
|
+
const _hoisted_8$b = {
|
|
9121
9121
|
key: 2,
|
|
9122
9122
|
class: "tools-list"
|
|
9123
9123
|
};
|
|
9124
9124
|
const _hoisted_9$a = { class: "home-nav-tooltip-wrapper" };
|
|
9125
|
-
const _hoisted_10$
|
|
9126
|
-
const _hoisted_11$
|
|
9127
|
-
const _hoisted_12$
|
|
9125
|
+
const _hoisted_10$a = { class: "home-nav-text" };
|
|
9126
|
+
const _hoisted_11$8 = { class: "tools-float-feedback-sub" };
|
|
9127
|
+
const _hoisted_12$7 = { class: "qrcode-wrapper" };
|
|
9128
9128
|
const _hoisted_13$3 = { class: "qrcode-wrapper__title" };
|
|
9129
9129
|
const _hoisted_14$3 = { class: "tools-list-item" };
|
|
9130
9130
|
const _hoisted_15$3 = { class: "g-card tools-float-nps-card" };
|
|
@@ -9164,7 +9164,7 @@ const _hoisted_30$1 = { class: "tools-float-finish__text" };
|
|
|
9164
9164
|
const _hoisted_31$1 = { class: "home-nav-item collapse-tool" };
|
|
9165
9165
|
const _hoisted_32$1 = { class: "home-nav-item" };
|
|
9166
9166
|
const _hoisted_33$1 = ["src", "alt"];
|
|
9167
|
-
const _sfc_main$
|
|
9167
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
9168
9168
|
__name: "index",
|
|
9169
9169
|
props: {
|
|
9170
9170
|
sceneValue: { default: SceneValue.home },
|
|
@@ -9403,14 +9403,14 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
9403
9403
|
size: "18px"
|
|
9404
9404
|
})
|
|
9405
9405
|
])) : createCommentVNode("", true),
|
|
9406
|
-
createElementVNode("div", _hoisted_1$
|
|
9406
|
+
createElementVNode("div", _hoisted_1$I, [
|
|
9407
9407
|
inviteVisible.value && isModuleVisible(unref(ToolsFloatDisplayItem).INVITE) ? (openBlock(), createBlock(unref(Tooltip), {
|
|
9408
9408
|
key: 0,
|
|
9409
9409
|
position: "left",
|
|
9410
9410
|
"overlay-class": "tools-tag-tooltip"
|
|
9411
9411
|
}, {
|
|
9412
9412
|
content: withCtx(() => [
|
|
9413
|
-
createElementVNode("div", _hoisted_4$
|
|
9413
|
+
createElementVNode("div", _hoisted_4$o, [
|
|
9414
9414
|
createElementVNode("div", _hoisted_5$j, toDisplayString$1(unref(t2)("gitCodeLayout.growthCenter.invite")), 1)
|
|
9415
9415
|
])
|
|
9416
9416
|
]),
|
|
@@ -9419,13 +9419,13 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
9419
9419
|
class: "home-nav-link computing",
|
|
9420
9420
|
onClick: handleInvite
|
|
9421
9421
|
}, [
|
|
9422
|
-
createElementVNode("div", _hoisted_2$
|
|
9422
|
+
createElementVNode("div", _hoisted_2$w, [
|
|
9423
9423
|
_cache[5] || (_cache[5] = createElementVNode("img", {
|
|
9424
9424
|
class: "common-icon tools-float-icon",
|
|
9425
9425
|
src: "https://cdn-static.gitcode.com/static/images/homeweb/invite.svg",
|
|
9426
9426
|
alt: ""
|
|
9427
9427
|
}, null, -1)),
|
|
9428
|
-
createElementVNode("div", _hoisted_3$
|
|
9428
|
+
createElementVNode("div", _hoisted_3$v, toDisplayString$1(unref(t2)("gitCodeLayout.growthCenter.invite")), 1)
|
|
9429
9429
|
])
|
|
9430
9430
|
])
|
|
9431
9431
|
]),
|
|
@@ -9458,16 +9458,16 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
9458
9458
|
]),
|
|
9459
9459
|
_: 1
|
|
9460
9460
|
})) : createCommentVNode("", true),
|
|
9461
|
-
isModuleVisible(unref(ToolsFloatDisplayItem).ELSE) ? (openBlock(), createElementBlock("div", _hoisted_8$
|
|
9461
|
+
isModuleVisible(unref(ToolsFloatDisplayItem).ELSE) ? (openBlock(), createElementBlock("div", _hoisted_8$b, [
|
|
9462
9462
|
createVNode(unref(Tooltip), {
|
|
9463
9463
|
position: "left",
|
|
9464
9464
|
"overlay-class": "tools-tag-tooltip"
|
|
9465
9465
|
}, {
|
|
9466
9466
|
content: withCtx(() => [
|
|
9467
9467
|
createElementVNode("div", _hoisted_9$a, [
|
|
9468
|
-
createElementVNode("div", _hoisted_10$
|
|
9468
|
+
createElementVNode("div", _hoisted_10$a, [
|
|
9469
9469
|
createElementVNode("p", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.userFeedback01")), 1),
|
|
9470
|
-
createElementVNode("p", _hoisted_11$
|
|
9470
|
+
createElementVNode("p", _hoisted_11$8, toDisplayString$1(unref(t2)("gitCodeLayout.home.userFeedback02")), 1)
|
|
9471
9471
|
])
|
|
9472
9472
|
])
|
|
9473
9473
|
]),
|
|
@@ -9497,7 +9497,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
9497
9497
|
"overlay-class": "tools-tag-tooltip"
|
|
9498
9498
|
}, {
|
|
9499
9499
|
content: withCtx(() => [
|
|
9500
|
-
createElementVNode("div", _hoisted_12$
|
|
9500
|
+
createElementVNode("div", _hoisted_12$7, [
|
|
9501
9501
|
createElementVNode("div", _hoisted_13$3, toDisplayString$1(unref(t2)("gitCodeLayout.home.followUs")), 1),
|
|
9502
9502
|
_cache[8] || (_cache[8] = createElementVNode("img", {
|
|
9503
9503
|
class: "qrcode",
|
|
@@ -9707,7 +9707,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
9707
9707
|
};
|
|
9708
9708
|
}
|
|
9709
9709
|
});
|
|
9710
|
-
const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9710
|
+
const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
9711
9711
|
var repoTypeEnum = /* @__PURE__ */ ((repoTypeEnum2) => {
|
|
9712
9712
|
repoTypeEnum2["NORMAL"] = "0";
|
|
9713
9713
|
repoTypeEnum2["MODEL"] = "1";
|
|
@@ -9850,8 +9850,8 @@ const collectRegisterLoginEvent = ({ isRegister, registerLoginMethod, success, e
|
|
|
9850
9850
|
delete reportData["utm_source"];
|
|
9851
9851
|
window.collectEvent("beconEvent", isRegister ? "register" : "login", reportData);
|
|
9852
9852
|
};
|
|
9853
|
-
const _hoisted_1$
|
|
9854
|
-
const _sfc_main$
|
|
9853
|
+
const _hoisted_1$H = ["href", "target", "disabled"];
|
|
9854
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
9855
9855
|
...{
|
|
9856
9856
|
name: "GLink"
|
|
9857
9857
|
},
|
|
@@ -9896,11 +9896,11 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
9896
9896
|
disabled: _ctx.disabled || _ctx.noPointer
|
|
9897
9897
|
}, [
|
|
9898
9898
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
9899
|
-
], 10, _hoisted_1$
|
|
9899
|
+
], 10, _hoisted_1$H));
|
|
9900
9900
|
};
|
|
9901
9901
|
}
|
|
9902
9902
|
});
|
|
9903
|
-
const GLink = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9903
|
+
const GLink = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
9904
9904
|
const headerHeight = ref(56);
|
|
9905
9905
|
const useHeaderHeight = () => {
|
|
9906
9906
|
const setHeaderHeight = (height) => {
|
|
@@ -10536,7 +10536,7 @@ if (isBrowser) {
|
|
|
10536
10536
|
}
|
|
10537
10537
|
const sessionStorage$1 = sessionStorage;
|
|
10538
10538
|
const _imports_0 = "data:image/png;base64,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";
|
|
10539
|
-
const _sfc_main$
|
|
10539
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
10540
10540
|
...{
|
|
10541
10541
|
name: "GAvatar"
|
|
10542
10542
|
},
|
|
@@ -10582,8 +10582,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
10582
10582
|
};
|
|
10583
10583
|
}
|
|
10584
10584
|
});
|
|
10585
|
-
const _hoisted_1$
|
|
10586
|
-
const _sfc_main$
|
|
10585
|
+
const _hoisted_1$G = ["src"];
|
|
10586
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
10587
10587
|
...{ name: "FlashTag" },
|
|
10588
10588
|
__name: "FlashTag",
|
|
10589
10589
|
props: {
|
|
@@ -10628,7 +10628,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
10628
10628
|
key: 0,
|
|
10629
10629
|
class: "gc-flash-tag__icon",
|
|
10630
10630
|
src: iconUrl.value
|
|
10631
|
-
}, null, 8, _hoisted_1$
|
|
10631
|
+
}, null, 8, _hoisted_1$G)) : renderSlot(_ctx.$slots, "default", { key: 1 })
|
|
10632
10632
|
], 16)
|
|
10633
10633
|
]),
|
|
10634
10634
|
_: 3
|
|
@@ -10932,13 +10932,13 @@ const useTimeFormat = () => {
|
|
|
10932
10932
|
formatTime
|
|
10933
10933
|
};
|
|
10934
10934
|
};
|
|
10935
|
-
const _hoisted_1$
|
|
10935
|
+
const _hoisted_1$F = {
|
|
10936
10936
|
key: 0,
|
|
10937
10937
|
class: "org-layout-toolbar"
|
|
10938
10938
|
};
|
|
10939
|
-
const _hoisted_2$
|
|
10940
|
-
const _hoisted_3$
|
|
10941
|
-
const _hoisted_4$
|
|
10939
|
+
const _hoisted_2$v = { class: "org-layout-toolbar-title ellipsis-two-line" };
|
|
10940
|
+
const _hoisted_3$u = { class: "header-custom-btn-label" };
|
|
10941
|
+
const _hoisted_4$n = { class: "g-repo-breadcrumb-custom" };
|
|
10942
10942
|
const _hoisted_5$i = {
|
|
10943
10943
|
key: 1,
|
|
10944
10944
|
class: "header-custom-mirrors-avatar"
|
|
@@ -10955,14 +10955,14 @@ const _hoisted_7$c = {
|
|
|
10955
10955
|
alt: "mirrors-avatar",
|
|
10956
10956
|
class: "header-custom-mirrors-img-tall"
|
|
10957
10957
|
};
|
|
10958
|
-
const _hoisted_8$
|
|
10958
|
+
const _hoisted_8$a = { class: "g-repo-breadcrumb-container" };
|
|
10959
10959
|
const _hoisted_9$9 = {
|
|
10960
10960
|
key: 0,
|
|
10961
10961
|
class: "header-custom-breadcrumb-row"
|
|
10962
10962
|
};
|
|
10963
|
-
const _hoisted_10$
|
|
10964
|
-
const _hoisted_11$
|
|
10965
|
-
const _hoisted_12$
|
|
10963
|
+
const _hoisted_10$9 = ["title"];
|
|
10964
|
+
const _hoisted_11$7 = ["title"];
|
|
10965
|
+
const _hoisted_12$6 = {
|
|
10966
10966
|
key: 0,
|
|
10967
10967
|
class: "header-custom-tag-mb"
|
|
10968
10968
|
};
|
|
@@ -10991,7 +10991,7 @@ const _hoisted_20$2 = {
|
|
|
10991
10991
|
};
|
|
10992
10992
|
const _hoisted_21$2 = { class: "user-layout-toolbar-title ellipsis-two-line" };
|
|
10993
10993
|
const _hoisted_22$2 = { class: "header-custom-btn-label" };
|
|
10994
|
-
const _sfc_main$
|
|
10994
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
10995
10995
|
__name: "HeaderCustom",
|
|
10996
10996
|
props: {
|
|
10997
10997
|
scene: { default: SceneValue.home },
|
|
@@ -11109,7 +11109,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11109
11109
|
});
|
|
11110
11110
|
return (_ctx, _cache) => {
|
|
11111
11111
|
var _a, _b, _c;
|
|
11112
|
-
return _ctx.scene === unref(SceneValue).org && !_ctx.errorCode ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
11112
|
+
return _ctx.scene === unref(SceneValue).org && !_ctx.errorCode ? (openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
11113
11113
|
createVNode(GLink, {
|
|
11114
11114
|
href: ((_a = _ctx.orgProps) == null ? void 0 : _a.orgHomepageUrl) || "",
|
|
11115
11115
|
class: "header-custom-link"
|
|
@@ -11117,7 +11117,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11117
11117
|
default: withCtx(() => {
|
|
11118
11118
|
var _a2, _b2, _c2;
|
|
11119
11119
|
return [
|
|
11120
|
-
createVNode(_sfc_main$
|
|
11120
|
+
createVNode(_sfc_main$N, {
|
|
11121
11121
|
class: "g-border",
|
|
11122
11122
|
src: ((_a2 = unref(orgInfo)) == null ? void 0 : _a2.avatar) || "",
|
|
11123
11123
|
name: ((_b2 = unref(orgInfo)) == null ? void 0 : _b2.name) || "",
|
|
@@ -11125,7 +11125,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11125
11125
|
height: 28,
|
|
11126
11126
|
is_round: false
|
|
11127
11127
|
}, null, 8, ["src", "name"]),
|
|
11128
|
-
createElementVNode("div", _hoisted_2$
|
|
11128
|
+
createElementVNode("div", _hoisted_2$v, toDisplayString$1((_c2 = unref(orgInfo)) == null ? void 0 : _c2.name), 1)
|
|
11129
11129
|
];
|
|
11130
11130
|
}),
|
|
11131
11131
|
_: 1
|
|
@@ -11140,7 +11140,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11140
11140
|
default: withCtx(() => {
|
|
11141
11141
|
var _a2;
|
|
11142
11142
|
return [
|
|
11143
|
-
createElementVNode("span", _hoisted_3$
|
|
11143
|
+
createElementVNode("span", _hoisted_3$u, toDisplayString$1(((_a2 = _ctx.orgProps) == null ? void 0 : _a2.isOrgFollow) ? unref(t2)("gitCodeLayout.home.alreadyFollowed") : unref(t2)("gitCodeLayout.home.focusOn")), 1)
|
|
11144
11144
|
];
|
|
11145
11145
|
}),
|
|
11146
11146
|
_: 1
|
|
@@ -11162,7 +11162,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11162
11162
|
default: withCtx(() => {
|
|
11163
11163
|
var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
11164
11164
|
return [
|
|
11165
|
-
createElementVNode("h2", _hoisted_4$
|
|
11165
|
+
createElementVNode("h2", _hoisted_4$n, [
|
|
11166
11166
|
createVNode(GLink, {
|
|
11167
11167
|
href: (_a2 = unref(breadcrumb)[0]) == null ? void 0 : _a2.path,
|
|
11168
11168
|
class: "header-custom-avatar-link"
|
|
@@ -11170,7 +11170,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11170
11170
|
default: withCtx(() => {
|
|
11171
11171
|
var _a3, _b3, _c3, _d2;
|
|
11172
11172
|
return [
|
|
11173
|
-
!((_a3 = _ctx.repoProps) == null ? void 0 : _a3.isGhMirrors) ? (openBlock(), createBlock(_sfc_main$
|
|
11173
|
+
!((_a3 = _ctx.repoProps) == null ? void 0 : _a3.isGhMirrors) ? (openBlock(), createBlock(_sfc_main$N, {
|
|
11174
11174
|
key: 0,
|
|
11175
11175
|
class: normalizeClass({ "g-border": isOrg.value }),
|
|
11176
11176
|
src: ((_c3 = (_b3 = unref(repoInfo)) == null ? void 0 : _b3.namespace) == null ? void 0 : _c3.avatar_url) || "",
|
|
@@ -11185,7 +11185,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11185
11185
|
}),
|
|
11186
11186
|
_: 1
|
|
11187
11187
|
}, 8, ["href"]),
|
|
11188
|
-
createElementVNode("div", _hoisted_8$
|
|
11188
|
+
createElementVNode("div", _hoisted_8$a, [
|
|
11189
11189
|
!((_b2 = _ctx.repoProps) == null ? void 0 : _b2.isGhMirrors) ? (openBlock(), createElementBlock("div", {
|
|
11190
11190
|
key: 0,
|
|
11191
11191
|
ref_key: "breadcrumbRef",
|
|
@@ -11208,7 +11208,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11208
11208
|
ref: breadcrumbTextRef,
|
|
11209
11209
|
title: item.label,
|
|
11210
11210
|
class: normalizeClass(["linkTx", index2 === unref(breadcrumb).length - 1 ? "header-custom-bold" : ""])
|
|
11211
|
-
}, toDisplayString$1(item.label), 11, _hoisted_10$
|
|
11211
|
+
}, toDisplayString$1(item.label), 11, _hoisted_10$9)
|
|
11212
11212
|
]),
|
|
11213
11213
|
_: 2
|
|
11214
11214
|
}, 1032, ["href"]),
|
|
@@ -11233,12 +11233,12 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11233
11233
|
ref: breadcrumbNextTextRef,
|
|
11234
11234
|
title: unref(breadcrumb)[unref(breadcrumb).length - 1].label,
|
|
11235
11235
|
class: "linkTx header-custom-bold"
|
|
11236
|
-
}, toDisplayString$1(unref(breadcrumb)[unref(breadcrumb).length - 1].label), 9, _hoisted_11$
|
|
11236
|
+
}, toDisplayString$1(unref(breadcrumb)[unref(breadcrumb).length - 1].label), 9, _hoisted_11$7)
|
|
11237
11237
|
]),
|
|
11238
11238
|
_: 1
|
|
11239
11239
|
}, 8, ["href"]),
|
|
11240
|
-
unref(isGstarRepo)((_e = unref(repoInfo)) == null ? void 0 : _e.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_12$
|
|
11241
|
-
createVNode(_sfc_main$
|
|
11240
|
+
unref(isGstarRepo)((_e = unref(repoInfo)) == null ? void 0 : _e.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_12$6, [
|
|
11241
|
+
createVNode(_sfc_main$M, {
|
|
11242
11242
|
origin: "repo",
|
|
11243
11243
|
icon: "",
|
|
11244
11244
|
type: "gstar",
|
|
@@ -11251,7 +11251,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11251
11251
|
__: [2]
|
|
11252
11252
|
}, 8, ["message"])
|
|
11253
11253
|
])) : unref(isIncubationRepo)((_f = unref(repoInfo)) == null ? void 0 : _f.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_13$2, [
|
|
11254
|
-
createVNode(_sfc_main$
|
|
11254
|
+
createVNode(_sfc_main$M, {
|
|
11255
11255
|
origin: "repo",
|
|
11256
11256
|
icon: "",
|
|
11257
11257
|
type: "incubation",
|
|
@@ -11265,7 +11265,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11265
11265
|
}, 8, ["message"])
|
|
11266
11266
|
])) : createCommentVNode("", true),
|
|
11267
11267
|
unref(isTrustedRepo)((_g = unref(repoInfo)) == null ? void 0 : _g.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_14$2, [
|
|
11268
|
-
createVNode(_sfc_main$
|
|
11268
|
+
createVNode(_sfc_main$M, {
|
|
11269
11269
|
trusted: "",
|
|
11270
11270
|
message: unref(t2)("gitCodeLayout.trusted.title"),
|
|
11271
11271
|
icon: "",
|
|
@@ -11314,7 +11314,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11314
11314
|
default: withCtx(() => {
|
|
11315
11315
|
var _a2, _b2, _c2, _d, _e;
|
|
11316
11316
|
return [
|
|
11317
|
-
createVNode(_sfc_main$
|
|
11317
|
+
createVNode(_sfc_main$N, {
|
|
11318
11318
|
src: (_a2 = unref(otherUserInfo)) == null ? void 0 : _a2.avatarUrl,
|
|
11319
11319
|
name: ((_b2 = unref(otherUserInfo)) == null ? void 0 : _b2.name) || ((_c2 = unref(otherUserInfo)) == null ? void 0 : _c2.nickname),
|
|
11320
11320
|
width: 28,
|
|
@@ -11341,9 +11341,9 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11341
11341
|
};
|
|
11342
11342
|
}
|
|
11343
11343
|
});
|
|
11344
|
-
const HeaderCustom = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11345
|
-
const _hoisted_1$
|
|
11346
|
-
const _sfc_main$
|
|
11344
|
+
const HeaderCustom = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
11345
|
+
const _hoisted_1$E = ["src"];
|
|
11346
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
11347
11347
|
...{ name: "OperationEntry" },
|
|
11348
11348
|
__name: "OperationEntry",
|
|
11349
11349
|
setup(__props) {
|
|
@@ -11387,14 +11387,14 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
11387
11387
|
class: "operation-entry__img",
|
|
11388
11388
|
src: img.value,
|
|
11389
11389
|
alt: "operation-entry"
|
|
11390
|
-
}, null, 8, _hoisted_1$
|
|
11390
|
+
}, null, 8, _hoisted_1$E)
|
|
11391
11391
|
])) : createCommentVNode("", true);
|
|
11392
11392
|
};
|
|
11393
11393
|
}
|
|
11394
11394
|
});
|
|
11395
|
-
const OperationEntry = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11396
|
-
const _hoisted_1$
|
|
11397
|
-
const _sfc_main$
|
|
11395
|
+
const OperationEntry = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
11396
|
+
const _hoisted_1$D = ["src"];
|
|
11397
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
11398
11398
|
__name: "ClaimPower",
|
|
11399
11399
|
props: {
|
|
11400
11400
|
config: {}
|
|
@@ -11417,12 +11417,12 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
11417
11417
|
createElementVNode("img", {
|
|
11418
11418
|
src: _ctx.config.logo_url,
|
|
11419
11419
|
alt: "claim power"
|
|
11420
|
-
}, null, 8, _hoisted_1$
|
|
11420
|
+
}, null, 8, _hoisted_1$D)
|
|
11421
11421
|
])) : createCommentVNode("", true);
|
|
11422
11422
|
};
|
|
11423
11423
|
}
|
|
11424
11424
|
});
|
|
11425
|
-
const ClaimPower = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11425
|
+
const ClaimPower = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
11426
11426
|
const DEFAULT_APPLICATION_HOST = "https://gitcode.com";
|
|
11427
11427
|
function normalizeApplicationHost(host) {
|
|
11428
11428
|
return (host || DEFAULT_APPLICATION_HOST).replace(/\/+$/, "");
|
|
@@ -11457,20 +11457,19 @@ const HEADER_CREATE_MENU_PATHS = [
|
|
|
11457
11457
|
"/collections/create",
|
|
11458
11458
|
"/org/create"
|
|
11459
11459
|
];
|
|
11460
|
-
const _hoisted_1$
|
|
11461
|
-
const _hoisted_2$
|
|
11462
|
-
const _hoisted_3$
|
|
11463
|
-
const _hoisted_4$
|
|
11464
|
-
const _hoisted_5$h =
|
|
11465
|
-
const _hoisted_6$e = {
|
|
11460
|
+
const _hoisted_1$C = { class: "g-header-create dashboard-create-menu" };
|
|
11461
|
+
const _hoisted_2$u = ["title", "aria-label", "aria-expanded"];
|
|
11462
|
+
const _hoisted_3$t = { class: "dashboard-create-menu__trigger-text" };
|
|
11463
|
+
const _hoisted_4$m = ["aria-label"];
|
|
11464
|
+
const _hoisted_5$h = {
|
|
11466
11465
|
key: 0,
|
|
11467
11466
|
class: "dashboard-create-menu__divider",
|
|
11468
11467
|
role: "separator"
|
|
11469
11468
|
};
|
|
11470
|
-
const
|
|
11471
|
-
const
|
|
11469
|
+
const _hoisted_6$e = ["href", "onClick", "onKeydown"];
|
|
11470
|
+
const _hoisted_7$b = { class: "dashboard-create-menu__copy" };
|
|
11472
11471
|
const menuId = "gitcode-header-create-menu";
|
|
11473
|
-
const _sfc_main$
|
|
11472
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
11474
11473
|
...{
|
|
11475
11474
|
name: "HeaderCreateMenu"
|
|
11476
11475
|
},
|
|
@@ -11492,7 +11491,6 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
11492
11491
|
const triggerRef = ref(null);
|
|
11493
11492
|
const menuRef = ref(null);
|
|
11494
11493
|
const menuOpen = ref(false);
|
|
11495
|
-
const menuStyle = ref({});
|
|
11496
11494
|
const defaultMenuItems = computed(() => {
|
|
11497
11495
|
const [repoPath, importPath, modelPath, datasetPath, spacePath, collectionPath, orgPath] = HEADER_CREATE_MENU_PATHS;
|
|
11498
11496
|
return [
|
|
@@ -11558,63 +11556,33 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
11558
11556
|
(_a = items[safeIndex]) == null ? void 0 : _a.focus();
|
|
11559
11557
|
});
|
|
11560
11558
|
}
|
|
11561
|
-
function
|
|
11562
|
-
if (
|
|
11563
|
-
|
|
11564
|
-
|
|
11565
|
-
|
|
11566
|
-
const menuWidth = Math.min(
|
|
11567
|
-
(menu == null ? void 0 : menu.offsetWidth) || 240,
|
|
11568
|
-
Math.max(0, window.innerWidth - viewportPadding * 2)
|
|
11569
|
-
);
|
|
11570
|
-
const maxHeight = Math.max(180, window.innerHeight - viewportPadding * 2);
|
|
11571
|
-
const menuHeight = Math.min((menu == null ? void 0 : menu.scrollHeight) || maxHeight, maxHeight);
|
|
11572
|
-
const maxLeft = Math.max(viewportPadding, window.innerWidth - menuWidth - viewportPadding);
|
|
11573
|
-
const left = Math.min(triggerRect.right - menuWidth, maxLeft);
|
|
11574
|
-
let top = triggerRect.bottom + viewportPadding;
|
|
11575
|
-
if (top + menuHeight > window.innerHeight - viewportPadding) {
|
|
11576
|
-
const above = triggerRect.top - viewportPadding - menuHeight;
|
|
11577
|
-
top = above >= viewportPadding ? above : window.innerHeight - viewportPadding - menuHeight;
|
|
11578
|
-
}
|
|
11579
|
-
menuStyle.value = {
|
|
11580
|
-
top: `${Math.max(viewportPadding, top)}px`,
|
|
11581
|
-
left: `${Math.max(viewportPadding, left)}px`,
|
|
11582
|
-
maxHeight: `${maxHeight}px`
|
|
11583
|
-
};
|
|
11584
|
-
}
|
|
11585
|
-
function setMenuOpen(open, restoreFocus = false) {
|
|
11586
|
-
menuOpen.value = open;
|
|
11587
|
-
emit("update:dropdownVisible", open);
|
|
11588
|
-
if (open) {
|
|
11589
|
-
void nextTick(updateMenuPosition);
|
|
11590
|
-
} else if (restoreFocus) {
|
|
11559
|
+
function closeMenu(restoreFocus = false) {
|
|
11560
|
+
if (!menuOpen.value) return;
|
|
11561
|
+
menuOpen.value = false;
|
|
11562
|
+
emit("update:dropdownVisible", false);
|
|
11563
|
+
if (restoreFocus) {
|
|
11591
11564
|
void nextTick(() => {
|
|
11592
11565
|
var _a;
|
|
11593
11566
|
return (_a = triggerRef.value) == null ? void 0 : _a.focus();
|
|
11594
11567
|
});
|
|
11595
11568
|
}
|
|
11596
11569
|
}
|
|
11597
|
-
|
|
11598
|
-
|
|
11599
|
-
|
|
11600
|
-
|
|
11601
|
-
|
|
11602
|
-
if (focusIndex !== void 0) focusMenuItem(focusIndex);
|
|
11603
|
-
}
|
|
11604
|
-
function toggleMenu() {
|
|
11605
|
-
if (menuOpen.value) closeMenu();
|
|
11606
|
-
else openMenu();
|
|
11607
|
-
}
|
|
11570
|
+
const handleToggle = (value) => {
|
|
11571
|
+
if (menuOpen.value === value) return;
|
|
11572
|
+
menuOpen.value = value;
|
|
11573
|
+
emit("update:dropdownVisible", value);
|
|
11574
|
+
};
|
|
11608
11575
|
function onTriggerKeydown(event) {
|
|
11609
11576
|
if (event.key === "ArrowDown") {
|
|
11610
11577
|
event.preventDefault();
|
|
11611
|
-
|
|
11578
|
+
menuOpen.value = true;
|
|
11579
|
+
emit("update:dropdownVisible", true);
|
|
11580
|
+
focusMenuItem(0);
|
|
11612
11581
|
} else if (event.key === "ArrowUp") {
|
|
11613
11582
|
event.preventDefault();
|
|
11614
|
-
|
|
11615
|
-
|
|
11616
|
-
|
|
11617
|
-
toggleMenu();
|
|
11583
|
+
menuOpen.value = true;
|
|
11584
|
+
emit("update:dropdownVisible", true);
|
|
11585
|
+
focusMenuItem(menuItems.value.length - 1);
|
|
11618
11586
|
} else if (event.key === "Escape") {
|
|
11619
11587
|
event.preventDefault();
|
|
11620
11588
|
closeMenu(true);
|
|
@@ -11641,17 +11609,6 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
11641
11609
|
if (event.currentTarget instanceof HTMLElement) event.currentTarget.click();
|
|
11642
11610
|
}
|
|
11643
11611
|
}
|
|
11644
|
-
function onDocumentPointerDown(event) {
|
|
11645
|
-
var _a, _b;
|
|
11646
|
-
if (!menuOpen.value) return;
|
|
11647
|
-
const target = event.target;
|
|
11648
|
-
if (!(target instanceof Node)) return;
|
|
11649
|
-
if (((_a = triggerRef.value) == null ? void 0 : _a.contains(target)) || ((_b = menuRef.value) == null ? void 0 : _b.contains(target))) return;
|
|
11650
|
-
closeMenu();
|
|
11651
|
-
}
|
|
11652
|
-
function onWindowChange() {
|
|
11653
|
-
updateMenuPosition();
|
|
11654
|
-
}
|
|
11655
11612
|
function navigateTo(href) {
|
|
11656
11613
|
const applicationHref = toApplicationUrl(layoutConfig2.VITE_HOST, href);
|
|
11657
11614
|
const applicationRoute = toApplicationRoute(layoutConfig2.VITE_HOST, href);
|
|
@@ -11681,99 +11638,95 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
11681
11638
|
() => props.dropdownVisible,
|
|
11682
11639
|
(visible) => {
|
|
11683
11640
|
menuOpen.value = visible;
|
|
11684
|
-
if (visible) void nextTick(updateMenuPosition);
|
|
11685
11641
|
},
|
|
11686
11642
|
{ immediate: true }
|
|
11687
11643
|
);
|
|
11688
|
-
watch(menuOpen, (open) => {
|
|
11689
|
-
if (open) void nextTick(updateMenuPosition);
|
|
11690
|
-
});
|
|
11691
11644
|
watch(
|
|
11692
11645
|
() => route == null ? void 0 : route.fullPath,
|
|
11693
11646
|
() => closeMenu()
|
|
11694
11647
|
);
|
|
11695
|
-
onMounted(() => {
|
|
11696
|
-
document.addEventListener("pointerdown", onDocumentPointerDown, true);
|
|
11697
|
-
window.addEventListener("resize", onWindowChange);
|
|
11698
|
-
window.addEventListener("scroll", onWindowChange, true);
|
|
11699
|
-
});
|
|
11700
|
-
onBeforeUnmount(() => {
|
|
11701
|
-
document.removeEventListener("pointerdown", onDocumentPointerDown, true);
|
|
11702
|
-
window.removeEventListener("resize", onWindowChange);
|
|
11703
|
-
window.removeEventListener("scroll", onWindowChange, true);
|
|
11704
|
-
});
|
|
11705
11648
|
return (_ctx, _cache) => {
|
|
11706
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11707
|
-
|
|
11708
|
-
|
|
11709
|
-
|
|
11710
|
-
|
|
11711
|
-
|
|
11712
|
-
|
|
11713
|
-
|
|
11714
|
-
|
|
11715
|
-
|
|
11716
|
-
|
|
11717
|
-
|
|
11718
|
-
|
|
11719
|
-
|
|
11720
|
-
|
|
11721
|
-
|
|
11722
|
-
|
|
11723
|
-
|
|
11724
|
-
|
|
11725
|
-
|
|
11726
|
-
|
|
11727
|
-
|
|
11728
|
-
|
|
11729
|
-
|
|
11730
|
-
], 40, _hoisted_3$s)
|
|
11731
|
-
]),
|
|
11732
|
-
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
11733
|
-
menuOpen.value ? (openBlock(), createElementBlock("div", {
|
|
11734
|
-
key: 0,
|
|
11735
|
-
id: menuId,
|
|
11736
|
-
ref_key: "menuRef",
|
|
11737
|
-
ref: menuRef,
|
|
11738
|
-
class: "dashboard-create-menu__panel",
|
|
11739
|
-
style: normalizeStyle(menuStyle.value),
|
|
11740
|
-
role: "menu",
|
|
11741
|
-
"aria-label": unref(t2)("gitCodeLayout.header.create")
|
|
11742
|
-
}, [
|
|
11743
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(menuItems.value, (item, index2) => {
|
|
11744
|
-
return openBlock(), createElementBlock(Fragment, {
|
|
11745
|
-
key: item.key
|
|
11746
|
-
}, [
|
|
11747
|
-
item.dividerBefore ? (openBlock(), createElementBlock("div", _hoisted_6$e)) : createCommentVNode("", true),
|
|
11748
|
-
createElementVNode("a", {
|
|
11749
|
-
href: unref(toApplicationUrl)(unref(layoutConfig2).VITE_HOST, item.href),
|
|
11750
|
-
class: "dashboard-create-menu__item",
|
|
11751
|
-
role: "menuitem",
|
|
11752
|
-
tabindex: "-1",
|
|
11753
|
-
onClick: withModifiers(($event) => selectCreateItem(item), ["prevent"]),
|
|
11754
|
-
onKeydown: ($event) => onMenuItemKeydown($event, index2)
|
|
11649
|
+
return openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
11650
|
+
createVNode(unref(Dropdown), {
|
|
11651
|
+
position: ["bottom-start"],
|
|
11652
|
+
"destroy-on-hide": false,
|
|
11653
|
+
trigger: "hover",
|
|
11654
|
+
offset: { mainAxis: 8, crossAxis: 0 },
|
|
11655
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
11656
|
+
}, ["stop"])),
|
|
11657
|
+
"overlay-class": "g-user-dropdown",
|
|
11658
|
+
visible: menuOpen.value,
|
|
11659
|
+
onToggle: handleToggle
|
|
11660
|
+
}, {
|
|
11661
|
+
menu: withCtx(() => [
|
|
11662
|
+
createElementVNode("div", {
|
|
11663
|
+
id: menuId,
|
|
11664
|
+
ref_key: "menuRef",
|
|
11665
|
+
ref: menuRef,
|
|
11666
|
+
class: "dashboard-create-menu__panel",
|
|
11667
|
+
role: "menu",
|
|
11668
|
+
"aria-label": unref(t2)("gitCodeLayout.header.create")
|
|
11669
|
+
}, [
|
|
11670
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(menuItems.value, (item, index2) => {
|
|
11671
|
+
return openBlock(), createElementBlock(Fragment, {
|
|
11672
|
+
key: item.key
|
|
11755
11673
|
}, [
|
|
11756
|
-
|
|
11757
|
-
|
|
11758
|
-
|
|
11759
|
-
|
|
11760
|
-
|
|
11761
|
-
|
|
11762
|
-
|
|
11763
|
-
|
|
11764
|
-
|
|
11765
|
-
|
|
11766
|
-
|
|
11767
|
-
|
|
11768
|
-
|
|
11769
|
-
|
|
11770
|
-
|
|
11674
|
+
item.dividerBefore ? (openBlock(), createElementBlock("div", _hoisted_5$h)) : createCommentVNode("", true),
|
|
11675
|
+
createElementVNode("a", {
|
|
11676
|
+
href: unref(toApplicationUrl)(unref(layoutConfig2).VITE_HOST, item.href),
|
|
11677
|
+
class: "dashboard-create-menu__item",
|
|
11678
|
+
role: "menuitem",
|
|
11679
|
+
tabindex: "-1",
|
|
11680
|
+
onClick: withModifiers(($event) => selectCreateItem(item), ["prevent"]),
|
|
11681
|
+
onKeydown: ($event) => onMenuItemKeydown($event, index2)
|
|
11682
|
+
}, [
|
|
11683
|
+
createVNode(GIcon, {
|
|
11684
|
+
name: item.icon,
|
|
11685
|
+
size: "16px",
|
|
11686
|
+
color: "var(--dashboard-muted-text, var(--theme-aide-text, #707a87))",
|
|
11687
|
+
class: "dashboard-create-menu__icon",
|
|
11688
|
+
"aria-hidden": "true"
|
|
11689
|
+
}, null, 8, ["name"]),
|
|
11690
|
+
createElementVNode("span", _hoisted_7$b, [
|
|
11691
|
+
createElementVNode("strong", null, toDisplayString$1(item.label), 1)
|
|
11692
|
+
])
|
|
11693
|
+
], 40, _hoisted_6$e)
|
|
11694
|
+
], 64);
|
|
11695
|
+
}), 128))
|
|
11696
|
+
], 8, _hoisted_4$m)
|
|
11697
|
+
]),
|
|
11698
|
+
default: withCtx(() => [
|
|
11699
|
+
createElementVNode("button", {
|
|
11700
|
+
id: "guide-step3",
|
|
11701
|
+
ref_key: "triggerRef",
|
|
11702
|
+
ref: triggerRef,
|
|
11703
|
+
type: "button",
|
|
11704
|
+
class: "dashboard-create-menu__trigger dashboard-create-menu__trigger--header",
|
|
11705
|
+
title: unref(t2)("gitCodeLayout.header.create"),
|
|
11706
|
+
"aria-label": unref(t2)("gitCodeLayout.header.create"),
|
|
11707
|
+
"aria-expanded": menuOpen.value,
|
|
11708
|
+
"aria-controls": menuId,
|
|
11709
|
+
"aria-haspopup": "menu",
|
|
11710
|
+
onKeydown: onTriggerKeydown
|
|
11711
|
+
}, [
|
|
11712
|
+
createVNode(GIcon, {
|
|
11713
|
+
name: "gt-add",
|
|
11714
|
+
size: "16px",
|
|
11715
|
+
color: "var(--theme-light-text)",
|
|
11716
|
+
class: "dashboard-create-menu__trigger-icon",
|
|
11717
|
+
"aria-hidden": "true"
|
|
11718
|
+
}),
|
|
11719
|
+
createElementVNode("span", _hoisted_3$t, toDisplayString$1(unref(t2)("gitCodeLayout.header.create")), 1)
|
|
11720
|
+
], 40, _hoisted_2$u)
|
|
11721
|
+
]),
|
|
11722
|
+
_: 1
|
|
11723
|
+
}, 8, ["visible"])
|
|
11771
11724
|
]);
|
|
11772
11725
|
};
|
|
11773
11726
|
}
|
|
11774
11727
|
});
|
|
11775
|
-
const HeaderCreateMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11776
|
-
const _sfc_main$
|
|
11728
|
+
const HeaderCreateMenu = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
11729
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
11777
11730
|
...{
|
|
11778
11731
|
name: "DocumentCenter"
|
|
11779
11732
|
},
|
|
@@ -11798,7 +11751,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
11798
11751
|
};
|
|
11799
11752
|
}
|
|
11800
11753
|
});
|
|
11801
|
-
const DocumentCenter = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11754
|
+
const DocumentCenter = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
11802
11755
|
var aes = { exports: {} };
|
|
11803
11756
|
function commonjsRequire(path) {
|
|
11804
11757
|
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
@@ -14262,11 +14215,11 @@ function headRequest(request) {
|
|
|
14262
14215
|
}
|
|
14263
14216
|
};
|
|
14264
14217
|
}
|
|
14265
|
-
const _hoisted_1$
|
|
14218
|
+
const _hoisted_1$B = {
|
|
14266
14219
|
key: 1,
|
|
14267
14220
|
class: "g-text-all"
|
|
14268
14221
|
};
|
|
14269
|
-
const _sfc_main$
|
|
14222
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
14270
14223
|
...{ name: "GText" },
|
|
14271
14224
|
__name: "index",
|
|
14272
14225
|
props: {
|
|
@@ -14343,24 +14296,24 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
14343
14296
|
class: "watch-all",
|
|
14344
14297
|
onClick: onShowAll
|
|
14345
14298
|
}, toDisplayString$1(_ctx.$t("gitCodeLayout.notice.msg.viewAll")), 1)) : createCommentVNode("", true)
|
|
14346
|
-
], 6)) : showAllContent.value && finalConfig.value.showAll ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
14299
|
+
], 6)) : showAllContent.value && finalConfig.value.showAll ? (openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
14347
14300
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
14348
14301
|
])) : createCommentVNode("", true);
|
|
14349
14302
|
};
|
|
14350
14303
|
}
|
|
14351
14304
|
});
|
|
14352
|
-
const GText = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
14353
|
-
const _hoisted_1$
|
|
14354
|
-
const _hoisted_2$
|
|
14355
|
-
const _hoisted_3$
|
|
14356
|
-
const _hoisted_4$
|
|
14305
|
+
const GText = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
14306
|
+
const _hoisted_1$A = { class: "message-item" };
|
|
14307
|
+
const _hoisted_2$t = { class: "message-item-footer" };
|
|
14308
|
+
const _hoisted_3$s = ["title"];
|
|
14309
|
+
const _hoisted_4$l = ["href"];
|
|
14357
14310
|
const _hoisted_5$g = { class: "message-item-info-content" };
|
|
14358
14311
|
const _hoisted_6$d = { class: "message-item-body" };
|
|
14359
14312
|
const _hoisted_7$a = ["title", "innerHTML"];
|
|
14360
14313
|
const _hoisted_8$9 = ["title"];
|
|
14361
14314
|
const _hoisted_9$8 = { class: "message-item-info" };
|
|
14362
|
-
const _hoisted_10$
|
|
14363
|
-
const _sfc_main$
|
|
14315
|
+
const _hoisted_10$8 = { class: "message-item-rightTx message-item-date" };
|
|
14316
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
14364
14317
|
__name: "index",
|
|
14365
14318
|
props: {
|
|
14366
14319
|
data: { default: () => ({}) },
|
|
@@ -14372,8 +14325,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
14372
14325
|
const { formatTimeFromNow } = useTimeFormat();
|
|
14373
14326
|
return (_ctx, _cache) => {
|
|
14374
14327
|
var _a;
|
|
14375
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
14376
|
-
createElementVNode("div", _hoisted_2$
|
|
14328
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
14329
|
+
createElementVNode("div", _hoisted_2$t, [
|
|
14377
14330
|
createElementVNode("div", {
|
|
14378
14331
|
class: "message-item__avatar-wrap",
|
|
14379
14332
|
title: _ctx.data.nickname
|
|
@@ -14383,14 +14336,14 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
14383
14336
|
target: "_blank",
|
|
14384
14337
|
class: "user-info linktx message-item__user-info"
|
|
14385
14338
|
}, [
|
|
14386
|
-
createVNode(_sfc_main$
|
|
14339
|
+
createVNode(_sfc_main$N, {
|
|
14387
14340
|
name: _ctx.data.nickname,
|
|
14388
14341
|
src: _ctx.data.avatar,
|
|
14389
14342
|
width: 32,
|
|
14390
14343
|
height: 32
|
|
14391
14344
|
}, null, 8, ["name", "src"])
|
|
14392
|
-
], 8, _hoisted_4$
|
|
14393
|
-
], 8, _hoisted_3$
|
|
14345
|
+
], 8, _hoisted_4$l)
|
|
14346
|
+
], 8, _hoisted_3$s)
|
|
14394
14347
|
]),
|
|
14395
14348
|
createElementVNode("div", _hoisted_5$g, [
|
|
14396
14349
|
createElementVNode("div", _hoisted_6$d, [
|
|
@@ -14435,22 +14388,22 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
14435
14388
|
])
|
|
14436
14389
|
])
|
|
14437
14390
|
]),
|
|
14438
|
-
createElementVNode("div", _hoisted_10$
|
|
14391
|
+
createElementVNode("div", _hoisted_10$8, toDisplayString$1(unref(formatTimeFromNow)(_ctx.data.time)), 1)
|
|
14439
14392
|
]);
|
|
14440
14393
|
};
|
|
14441
14394
|
}
|
|
14442
14395
|
});
|
|
14443
|
-
const MessageItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
14444
|
-
const _hoisted_1$
|
|
14445
|
-
const _hoisted_2$
|
|
14396
|
+
const MessageItem = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
14397
|
+
const _hoisted_1$z = { class: "message-header-nav" };
|
|
14398
|
+
const _hoisted_2$s = {
|
|
14446
14399
|
key: 0,
|
|
14447
14400
|
class: "item-count-icon"
|
|
14448
14401
|
};
|
|
14449
|
-
const _hoisted_3$
|
|
14402
|
+
const _hoisted_3$r = {
|
|
14450
14403
|
key: 1,
|
|
14451
14404
|
class: "g-number"
|
|
14452
14405
|
};
|
|
14453
|
-
const _hoisted_4$
|
|
14406
|
+
const _hoisted_4$k = {
|
|
14454
14407
|
key: 0,
|
|
14455
14408
|
class: "g-number message-box__count"
|
|
14456
14409
|
};
|
|
@@ -14471,16 +14424,16 @@ const _hoisted_9$7 = {
|
|
|
14471
14424
|
key: 2,
|
|
14472
14425
|
class: "message-content-empty"
|
|
14473
14426
|
};
|
|
14474
|
-
const _hoisted_10$
|
|
14427
|
+
const _hoisted_10$7 = {
|
|
14475
14428
|
key: 3,
|
|
14476
14429
|
class: "loading-more"
|
|
14477
14430
|
};
|
|
14478
|
-
const _hoisted_11$
|
|
14431
|
+
const _hoisted_11$6 = {
|
|
14479
14432
|
key: 4,
|
|
14480
14433
|
class: "no-more"
|
|
14481
14434
|
};
|
|
14482
|
-
const _hoisted_12$
|
|
14483
|
-
const _sfc_main$
|
|
14435
|
+
const _hoisted_12$5 = { class: "message-footer-nav" };
|
|
14436
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
14484
14437
|
__name: "MessageBox",
|
|
14485
14438
|
setup(__props, { expose: __expose }) {
|
|
14486
14439
|
var _a;
|
|
@@ -14751,7 +14704,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
14751
14704
|
class: "message-box",
|
|
14752
14705
|
onClick: _cache[5] || (_cache[5] = withModifiers(($event) => console.log("stop"), ["stop"]))
|
|
14753
14706
|
}, [
|
|
14754
|
-
createElementVNode("div", _hoisted_1$
|
|
14707
|
+
createElementVNode("div", _hoisted_1$z, [
|
|
14755
14708
|
createVNode(unref(Tabs), {
|
|
14756
14709
|
modelValue: checkedId.value,
|
|
14757
14710
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => checkedId.value = $event),
|
|
@@ -14767,7 +14720,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
14767
14720
|
createElementVNode("div", {
|
|
14768
14721
|
class: normalizeClass(["message-header-nav-item", { "message-header-nav-item-active": item.messageType === checkedId.value }])
|
|
14769
14722
|
}, [
|
|
14770
|
-
item.icon ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
14723
|
+
item.icon ? (openBlock(), createElementBlock("div", _hoisted_2$s, [
|
|
14771
14724
|
createVNode(GIcon, {
|
|
14772
14725
|
name: item.icon,
|
|
14773
14726
|
size: "16px",
|
|
@@ -14780,7 +14733,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
14780
14733
|
}, null, 8, ["name"])
|
|
14781
14734
|
])) : createCommentVNode("", true),
|
|
14782
14735
|
createElementVNode("span", null, toDisplayString$1(item.text), 1),
|
|
14783
|
-
item.count > 0 ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
14736
|
+
item.count > 0 ? (openBlock(), createElementBlock("span", _hoisted_3$r, toDisplayString$1(item.count), 1)) : createCommentVNode("", true)
|
|
14784
14737
|
], 2)
|
|
14785
14738
|
]),
|
|
14786
14739
|
_: 2
|
|
@@ -14794,7 +14747,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
14794
14747
|
onClick: _cache[1] || (_cache[1] = ($event) => toPage("unread"))
|
|
14795
14748
|
}, [
|
|
14796
14749
|
createTextVNode(toDisplayString$1(unref(t2)("gitCodeLayout.notice.msg.allUnread")), 1),
|
|
14797
|
-
msgCount.value > 0 ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
14750
|
+
msgCount.value > 0 ? (openBlock(), createElementBlock("span", _hoisted_4$k, toDisplayString$1(msgCount.value), 1)) : createCommentVNode("", true)
|
|
14798
14751
|
])
|
|
14799
14752
|
]),
|
|
14800
14753
|
createElementVNode("div", {
|
|
@@ -14829,13 +14782,13 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
14829
14782
|
}), 128)) : (openBlock(), createElementBlock("div", _hoisted_9$7, [
|
|
14830
14783
|
createElementVNode("div", null, toDisplayString$1(unref(t2)("gitCodeLayout.notice.msg.noMessage")), 1)
|
|
14831
14784
|
])),
|
|
14832
|
-
loadingMore.value ? (openBlock(), createElementBlock("div", _hoisted_10$
|
|
14833
|
-
!hasMore.value && listData.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_11$
|
|
14785
|
+
loadingMore.value ? (openBlock(), createElementBlock("div", _hoisted_10$7, toDisplayString$1(unref(t2)("gitCodeLayout.notice.msg.loading")) + "... ", 1)) : createCommentVNode("", true),
|
|
14786
|
+
!hasMore.value && listData.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_11$6, toDisplayString$1(unref(t2)("gitCodeLayout.notice.msg.noMore")), 1)) : createCommentVNode("", true)
|
|
14834
14787
|
])), [
|
|
14835
14788
|
[_directive_loading, loading.value]
|
|
14836
14789
|
])
|
|
14837
14790
|
], 512),
|
|
14838
|
-
createElementVNode("div", _hoisted_12$
|
|
14791
|
+
createElementVNode("div", _hoisted_12$5, [
|
|
14839
14792
|
createElementVNode("div", { onClick: setPageRead }, toDisplayString$1(unref(t2)("gitCodeLayout.notice.msg.pageRead")), 1),
|
|
14840
14793
|
createElementVNode("div", {
|
|
14841
14794
|
onClick: _cache[4] || (_cache[4] = ($event) => toPage("all"))
|
|
@@ -14845,8 +14798,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
14845
14798
|
};
|
|
14846
14799
|
}
|
|
14847
14800
|
});
|
|
14848
|
-
const MessageBox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
14849
|
-
const _sfc_main$
|
|
14801
|
+
const MessageBox = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
14802
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
14850
14803
|
...{
|
|
14851
14804
|
name: "Notice"
|
|
14852
14805
|
},
|
|
@@ -14961,9 +14914,9 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
14961
14914
|
};
|
|
14962
14915
|
}
|
|
14963
14916
|
});
|
|
14964
|
-
const Notice = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
14965
|
-
const _hoisted_1$
|
|
14966
|
-
const _sfc_main$
|
|
14917
|
+
const Notice = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
14918
|
+
const _hoisted_1$y = { class: "devui-select__item g-option-link" };
|
|
14919
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
14967
14920
|
...{
|
|
14968
14921
|
name: "OptionLink"
|
|
14969
14922
|
},
|
|
@@ -14981,7 +14934,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
14981
14934
|
},
|
|
14982
14935
|
setup(__props) {
|
|
14983
14936
|
return (_ctx, _cache) => {
|
|
14984
|
-
return openBlock(), createElementBlock("li", _hoisted_1$
|
|
14937
|
+
return openBlock(), createElementBlock("li", _hoisted_1$y, [
|
|
14985
14938
|
createVNode(GLink, normalizeProps(guardReactiveProps(_ctx.$props)), {
|
|
14986
14939
|
default: withCtx(() => [
|
|
14987
14940
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
@@ -14992,7 +14945,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
14992
14945
|
};
|
|
14993
14946
|
}
|
|
14994
14947
|
});
|
|
14995
|
-
const OptionLink = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
14948
|
+
const OptionLink = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
14996
14949
|
function useCookie(key, defaultValue, options = COOKIE_OPTIONS) {
|
|
14997
14950
|
const allCookies = api.get() || {};
|
|
14998
14951
|
const storedValue = allCookies[key] || localStorage$2.getItem(key);
|
|
@@ -15016,10 +14969,10 @@ function useCookie(key, defaultValue, options = COOKIE_OPTIONS) {
|
|
|
15016
14969
|
);
|
|
15017
14970
|
return value;
|
|
15018
14971
|
}
|
|
15019
|
-
const _hoisted_1$
|
|
15020
|
-
const _hoisted_2$
|
|
15021
|
-
const _hoisted_3$
|
|
15022
|
-
const _sfc_main$
|
|
14972
|
+
const _hoisted_1$x = { class: "tools-item-wrapper" };
|
|
14973
|
+
const _hoisted_2$r = { class: "tools-item-wrapper-checkbox" };
|
|
14974
|
+
const _hoisted_3$q = ["onClick", "title"];
|
|
14975
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
15023
14976
|
__name: "Lang",
|
|
15024
14977
|
setup(__props) {
|
|
15025
14978
|
const lang = useCookie(LANG_KEY, LANG_ZH);
|
|
@@ -15041,9 +14994,9 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
15041
14994
|
window.location.reload();
|
|
15042
14995
|
};
|
|
15043
14996
|
return (_ctx, _cache) => {
|
|
15044
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
14997
|
+
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
15045
14998
|
createElementVNode("div", null, toDisplayString$1(unref(t2)("gitCodeLayout.common.footerSetting.lang")), 1),
|
|
15046
|
-
createElementVNode("div", _hoisted_2$
|
|
14999
|
+
createElementVNode("div", _hoisted_2$r, [
|
|
15047
15000
|
(openBlock(true), createElementBlock(Fragment, null, renderList(linkList.value, (item) => {
|
|
15048
15001
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
15049
15002
|
key: item.label
|
|
@@ -15058,26 +15011,26 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
15058
15011
|
color: "var(--theme-icon-fill-weak)",
|
|
15059
15012
|
class: "checkbox-item-icon"
|
|
15060
15013
|
}, null, 8, ["name"])
|
|
15061
|
-
], 16, _hoisted_3$
|
|
15014
|
+
], 16, _hoisted_3$q);
|
|
15062
15015
|
}), 128))
|
|
15063
15016
|
])
|
|
15064
15017
|
]);
|
|
15065
15018
|
};
|
|
15066
15019
|
}
|
|
15067
15020
|
});
|
|
15068
|
-
const _hoisted_1$
|
|
15021
|
+
const _hoisted_1$w = {
|
|
15069
15022
|
key: 0,
|
|
15070
15023
|
class: "user-level-avatar-badge"
|
|
15071
15024
|
};
|
|
15072
|
-
const _hoisted_2$
|
|
15073
|
-
const _hoisted_3$
|
|
15074
|
-
const _hoisted_4$
|
|
15025
|
+
const _hoisted_2$q = { class: "user-level__row" };
|
|
15026
|
+
const _hoisted_3$p = ["src"];
|
|
15027
|
+
const _hoisted_4$j = { class: "level-name" };
|
|
15075
15028
|
const _hoisted_5$e = { class: "level-icon" };
|
|
15076
15029
|
const _hoisted_6$b = ["src"];
|
|
15077
15030
|
const _hoisted_7$8 = { class: "custom-btn" };
|
|
15078
15031
|
const _hoisted_8$7 = { class: "user-level__btn-text" };
|
|
15079
15032
|
const maxLevel = 3;
|
|
15080
|
-
const _sfc_main$
|
|
15033
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
15081
15034
|
...{ name: "UserLevel" },
|
|
15082
15035
|
__name: "UserLevel",
|
|
15083
15036
|
props: ["accountInfo"],
|
|
@@ -15128,14 +15081,14 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
15128
15081
|
class: normalizeClass(["user-level", { [unref(ThemeType).BLACK]: unref(currentTheme) === unref(ThemeType).BLACK }]),
|
|
15129
15082
|
onClick: handleUpgrade
|
|
15130
15083
|
}, [
|
|
15131
|
-
__props.accountInfo.need_tips ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
15132
|
-
createElementVNode("div", _hoisted_2$
|
|
15084
|
+
__props.accountInfo.need_tips ? (openBlock(), createElementBlock("div", _hoisted_1$w)) : createCommentVNode("", true),
|
|
15085
|
+
createElementVNode("div", _hoisted_2$q, [
|
|
15133
15086
|
createElementVNode("img", {
|
|
15134
15087
|
class: "level-avatar",
|
|
15135
15088
|
src: levelInfo.value.avatar,
|
|
15136
15089
|
alt: ""
|
|
15137
|
-
}, null, 8, _hoisted_3$
|
|
15138
|
-
createElementVNode("div", _hoisted_4$
|
|
15090
|
+
}, null, 8, _hoisted_3$p),
|
|
15091
|
+
createElementVNode("div", _hoisted_4$j, [
|
|
15139
15092
|
createElementVNode("div", null, toDisplayString$1(levelInfo.value.name), 1),
|
|
15140
15093
|
createElementVNode("div", _hoisted_5$e, [
|
|
15141
15094
|
createElementVNode("img", {
|
|
@@ -15152,16 +15105,16 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
15152
15105
|
};
|
|
15153
15106
|
}
|
|
15154
15107
|
});
|
|
15155
|
-
const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15156
|
-
const _hoisted_1$
|
|
15157
|
-
const _hoisted_2$
|
|
15158
|
-
const _hoisted_3$
|
|
15159
|
-
const _hoisted_4$
|
|
15108
|
+
const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
15109
|
+
const _hoisted_1$v = { class: "g-user-drawer-info-list" };
|
|
15110
|
+
const _hoisted_2$p = { class: "g-user-drawer-info-list__name-wrap" };
|
|
15111
|
+
const _hoisted_3$o = ["title"];
|
|
15112
|
+
const _hoisted_4$i = ["title"];
|
|
15160
15113
|
const _hoisted_5$d = {
|
|
15161
15114
|
key: 0,
|
|
15162
15115
|
class: "g-user-drawer-lang-row"
|
|
15163
15116
|
};
|
|
15164
|
-
const _sfc_main$
|
|
15117
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
15165
15118
|
__name: "UserAvatarMenu",
|
|
15166
15119
|
props: {
|
|
15167
15120
|
isChatBot: { type: Boolean },
|
|
@@ -15303,7 +15256,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
15303
15256
|
});
|
|
15304
15257
|
const avatarLangBlock = {
|
|
15305
15258
|
id: "avatar-lang",
|
|
15306
|
-
component: markRaw(_sfc_main$
|
|
15259
|
+
component: markRaw(_sfc_main$B),
|
|
15307
15260
|
avatarLangRow: true
|
|
15308
15261
|
};
|
|
15309
15262
|
const shouldShowEnterpriseLang = computed(
|
|
@@ -15380,22 +15333,22 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
15380
15333
|
target: _ctx.isChatBot ? "_blank" : ""
|
|
15381
15334
|
}, {
|
|
15382
15335
|
default: withCtx(() => [
|
|
15383
|
-
createVNode(_sfc_main$
|
|
15336
|
+
createVNode(_sfc_main$N, {
|
|
15384
15337
|
name: _ctx.accountInfo.nickname || "",
|
|
15385
15338
|
src: _ctx.accountInfo.avatar || "",
|
|
15386
15339
|
width: 52,
|
|
15387
15340
|
height: 52
|
|
15388
15341
|
}, null, 8, ["name", "src"]),
|
|
15389
|
-
createElementVNode("div", _hoisted_1$
|
|
15390
|
-
createElementVNode("div", _hoisted_2$
|
|
15342
|
+
createElementVNode("div", _hoisted_1$v, [
|
|
15343
|
+
createElementVNode("div", _hoisted_2$p, [
|
|
15391
15344
|
createElementVNode("p", {
|
|
15392
15345
|
class: "g-user-drawer-info-list-name ellipsis",
|
|
15393
15346
|
title: _ctx.accountInfo.nickname
|
|
15394
|
-
}, toDisplayString$1(_ctx.accountInfo.nickname), 9, _hoisted_3$
|
|
15347
|
+
}, toDisplayString$1(_ctx.accountInfo.nickname), 9, _hoisted_3$o),
|
|
15395
15348
|
createElementVNode("p", {
|
|
15396
15349
|
class: "g-user-drawer-info-list-id ellipsis",
|
|
15397
15350
|
title: _ctx.accountInfo.username
|
|
15398
|
-
}, "@" + toDisplayString$1(_ctx.accountInfo.username), 9, _hoisted_4$
|
|
15351
|
+
}, "@" + toDisplayString$1(_ctx.accountInfo.username), 9, _hoisted_4$i)
|
|
15399
15352
|
]),
|
|
15400
15353
|
createVNode(GIcon, {
|
|
15401
15354
|
name: "gt-line-right",
|
|
@@ -15447,20 +15400,20 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
15447
15400
|
};
|
|
15448
15401
|
}
|
|
15449
15402
|
});
|
|
15450
|
-
const UserAvatarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15451
|
-
const _hoisted_1$
|
|
15452
|
-
const _hoisted_2$
|
|
15403
|
+
const UserAvatarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
15404
|
+
const _hoisted_1$u = { class: "g-user-avatar flex-center" };
|
|
15405
|
+
const _hoisted_2$o = {
|
|
15453
15406
|
key: 0,
|
|
15454
15407
|
class: "g-user-avatar__badge"
|
|
15455
15408
|
};
|
|
15456
|
-
const _hoisted_3$
|
|
15457
|
-
const _hoisted_4$
|
|
15409
|
+
const _hoisted_3$n = { class: "g-user-avatar flex-center" };
|
|
15410
|
+
const _hoisted_4$h = {
|
|
15458
15411
|
key: 0,
|
|
15459
15412
|
class: "g-user-avatar__badge"
|
|
15460
15413
|
};
|
|
15461
15414
|
const _hoisted_5$c = { class: "g-user-drawer" };
|
|
15462
15415
|
const _hoisted_6$a = { class: "user-avatar__drawer-header" };
|
|
15463
|
-
const _sfc_main$
|
|
15416
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
15464
15417
|
...{
|
|
15465
15418
|
name: "UserAvatar"
|
|
15466
15419
|
},
|
|
@@ -15599,12 +15552,12 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
15599
15552
|
key: 0,
|
|
15600
15553
|
onClick: _cache[0] || (_cache[0] = ($event) => drawerVisible.value = true)
|
|
15601
15554
|
}, [
|
|
15602
|
-
createElementVNode("div", _hoisted_1$
|
|
15603
|
-
createVNode(_sfc_main$
|
|
15555
|
+
createElementVNode("div", _hoisted_1$u, [
|
|
15556
|
+
createVNode(_sfc_main$N, {
|
|
15604
15557
|
name: accountInfo.value.nickname,
|
|
15605
15558
|
src: unref(transformUrl)(accountInfo.value.avatar)
|
|
15606
15559
|
}, null, 8, ["name", "src"]),
|
|
15607
|
-
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
15560
|
+
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_2$o, _cache[4] || (_cache[4] = [
|
|
15608
15561
|
createElementVNode("div", null, null, -1)
|
|
15609
15562
|
]))) : createCommentVNode("", true)
|
|
15610
15563
|
])
|
|
@@ -15631,12 +15584,12 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
15631
15584
|
])
|
|
15632
15585
|
]),
|
|
15633
15586
|
default: withCtx(() => [
|
|
15634
|
-
createElementVNode("div", _hoisted_3$
|
|
15635
|
-
createVNode(_sfc_main$
|
|
15587
|
+
createElementVNode("div", _hoisted_3$n, [
|
|
15588
|
+
createVNode(_sfc_main$N, {
|
|
15636
15589
|
name: accountInfo.value.nickname,
|
|
15637
15590
|
src: unref(transformUrl)(accountInfo.value.avatar)
|
|
15638
15591
|
}, null, 8, ["name", "src"]),
|
|
15639
|
-
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
15592
|
+
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_4$h, _cache[5] || (_cache[5] = [
|
|
15640
15593
|
createElementVNode("div", null, null, -1)
|
|
15641
15594
|
]))) : createCommentVNode("", true)
|
|
15642
15595
|
])
|
|
@@ -15679,7 +15632,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
15679
15632
|
};
|
|
15680
15633
|
}
|
|
15681
15634
|
});
|
|
15682
|
-
const UserAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15635
|
+
const UserAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
15683
15636
|
var EVENT_NAME = /* @__PURE__ */ ((EVENT_NAME2) => {
|
|
15684
15637
|
EVENT_NAME2["START_SEARCH"] = "开始搜索";
|
|
15685
15638
|
EVENT_NAME2["SEARCH"] = "搜索";
|
|
@@ -15915,16 +15868,16 @@ const buildQualifierPrefix = (info) => {
|
|
|
15915
15868
|
}
|
|
15916
15869
|
return `${key}:${info.searchScopeName} `;
|
|
15917
15870
|
};
|
|
15918
|
-
const _hoisted_1$
|
|
15871
|
+
const _hoisted_1$t = {
|
|
15919
15872
|
key: 0,
|
|
15920
15873
|
class: "devui-input-slot__prefix"
|
|
15921
15874
|
};
|
|
15922
|
-
const _hoisted_2$
|
|
15923
|
-
const _hoisted_3$
|
|
15875
|
+
const _hoisted_2$n = ["value"];
|
|
15876
|
+
const _hoisted_3$m = {
|
|
15924
15877
|
key: 1,
|
|
15925
15878
|
class: "devui-input-slot__suffix"
|
|
15926
15879
|
};
|
|
15927
|
-
const _sfc_main$
|
|
15880
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
15928
15881
|
...{
|
|
15929
15882
|
name: "HighlightInput",
|
|
15930
15883
|
inheritAttrs: false
|
|
@@ -16092,7 +16045,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
16092
16045
|
class: normalizeClass(["devui-input__wrapper devui-input--glow-style hl-search-input", [rootClass.value, { "devui-input--focus": isFocused.value }]]),
|
|
16093
16046
|
style: normalizeStyle(rootStyle.value)
|
|
16094
16047
|
}, [
|
|
16095
|
-
_ctx.$slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
16048
|
+
_ctx.$slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
16096
16049
|
renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
|
|
16097
16050
|
])) : createCommentVNode("", true),
|
|
16098
16051
|
createElementVNode("div", {
|
|
@@ -16118,16 +16071,16 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
16118
16071
|
ref: nativeRef,
|
|
16119
16072
|
class: "devui-input__inner hl-search-input__native",
|
|
16120
16073
|
value: _ctx.modelValue
|
|
16121
|
-
}, inputAttrs.value, { onInput }), null, 16, _hoisted_2$
|
|
16074
|
+
}, inputAttrs.value, { onInput }), null, 16, _hoisted_2$n)
|
|
16122
16075
|
], 512),
|
|
16123
|
-
_ctx.$slots.suffix ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
16076
|
+
_ctx.$slots.suffix ? (openBlock(), createElementBlock("div", _hoisted_3$m, [
|
|
16124
16077
|
renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
|
|
16125
16078
|
])) : createCommentVNode("", true)
|
|
16126
16079
|
], 6);
|
|
16127
16080
|
};
|
|
16128
16081
|
}
|
|
16129
16082
|
});
|
|
16130
|
-
const HighlightInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16083
|
+
const HighlightInput = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
16131
16084
|
const SEARCH_ROUTE_PATHS = /* @__PURE__ */ new Set(["/search", "/search/"]);
|
|
16132
16085
|
const SEARCH_SCOPE_QUERY_KEYS = ["scope", "repo", "org", "user", "namespace"];
|
|
16133
16086
|
const firstNonEmpty = (...values) => {
|
|
@@ -16178,10 +16131,10 @@ const normalizeSearchHotWordUrl = (original, defaultGlobalSearchType, sourceModu
|
|
|
16178
16131
|
}
|
|
16179
16132
|
return serializeHotWordUrl(url, original);
|
|
16180
16133
|
};
|
|
16181
|
-
const _hoisted_1$
|
|
16182
|
-
const _hoisted_2$
|
|
16183
|
-
const _hoisted_3$
|
|
16184
|
-
const _hoisted_4$
|
|
16134
|
+
const _hoisted_1$s = { class: "g-header-search-prefix" };
|
|
16135
|
+
const _hoisted_2$m = ["innerHTML"];
|
|
16136
|
+
const _hoisted_3$l = { class: "g-header-search-suffix-splitline" };
|
|
16137
|
+
const _hoisted_4$g = { class: "g-header-search-suffix-suffixIcon" };
|
|
16185
16138
|
const _hoisted_5$b = { class: "history-list" };
|
|
16186
16139
|
const _hoisted_6$9 = {
|
|
16187
16140
|
key: 1,
|
|
@@ -16189,7 +16142,7 @@ const _hoisted_6$9 = {
|
|
|
16189
16142
|
};
|
|
16190
16143
|
const RECOMMEND_RESERVE = 60;
|
|
16191
16144
|
const HISTORY_DISPLAY_COUNT = 3;
|
|
16192
|
-
const _sfc_main$
|
|
16145
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
16193
16146
|
__name: "index",
|
|
16194
16147
|
props: {
|
|
16195
16148
|
inAIHub: { type: Boolean },
|
|
@@ -16200,12 +16153,12 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
16200
16153
|
setup(__props) {
|
|
16201
16154
|
const layoutConfig2 = useLayoutConfig();
|
|
16202
16155
|
const { t: $t } = i18n.global;
|
|
16203
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
16204
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
16205
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
16206
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
16207
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
16208
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
16156
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-DiFQTudk.js"));
|
|
16157
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-B4UqFeav.js"));
|
|
16158
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-BToo63lN.js"));
|
|
16159
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-C4c8kz4W.js"));
|
|
16160
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-BSc_5zAp.js"));
|
|
16161
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-BZtERyjj.js"));
|
|
16209
16162
|
const props = __props;
|
|
16210
16163
|
const repoInfo = inject("repoInfo", computed(() => void 0));
|
|
16211
16164
|
const orgInfo = inject("orgInfo", computed(() => void 0));
|
|
@@ -16827,7 +16780,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
16827
16780
|
ref: inputRef
|
|
16828
16781
|
}, {
|
|
16829
16782
|
prefix: withCtx(() => [
|
|
16830
|
-
createElementVNode("div", _hoisted_1$
|
|
16783
|
+
createElementVNode("div", _hoisted_1$s, [
|
|
16831
16784
|
createVNode(GIcon, {
|
|
16832
16785
|
name: "gt-search",
|
|
16833
16786
|
class: "g-header-search-icon",
|
|
@@ -16851,7 +16804,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
16851
16804
|
class: "quick-tips",
|
|
16852
16805
|
innerHTML: unref(quickTips),
|
|
16853
16806
|
onClick: onInputClick
|
|
16854
|
-
}, null, 8, _hoisted_2$
|
|
16807
|
+
}, null, 8, _hoisted_2$m)), [
|
|
16855
16808
|
[vShow, placeholderVisible.value]
|
|
16856
16809
|
])
|
|
16857
16810
|
]),
|
|
@@ -16868,10 +16821,10 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
16868
16821
|
}, null, 512), [
|
|
16869
16822
|
[vShow, searchStr.value]
|
|
16870
16823
|
]),
|
|
16871
|
-
withDirectives(createElementVNode("span", _hoisted_3$
|
|
16824
|
+
withDirectives(createElementVNode("span", _hoisted_3$l, "|", 512), [
|
|
16872
16825
|
[vShow, searchStr.value]
|
|
16873
16826
|
]),
|
|
16874
|
-
createElementVNode("div", _hoisted_4$
|
|
16827
|
+
createElementVNode("div", _hoisted_4$g, [
|
|
16875
16828
|
createVNode(GIcon, {
|
|
16876
16829
|
name: "search",
|
|
16877
16830
|
class: "g-header-search-icon",
|
|
@@ -16909,16 +16862,16 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
16909
16862
|
};
|
|
16910
16863
|
}
|
|
16911
16864
|
});
|
|
16912
|
-
const Search = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16913
|
-
const _hoisted_1$
|
|
16914
|
-
const _hoisted_2$
|
|
16915
|
-
const _hoisted_3$
|
|
16916
|
-
const _hoisted_4$
|
|
16865
|
+
const Search = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
16866
|
+
const _hoisted_1$r = { class: "announce-mobile-top" };
|
|
16867
|
+
const _hoisted_2$l = { class: "announce-mobile-bottom" };
|
|
16868
|
+
const _hoisted_3$k = ["href"];
|
|
16869
|
+
const _hoisted_4$f = { class: "announce-content" };
|
|
16917
16870
|
const _hoisted_5$a = { class: "announce-content-inner" };
|
|
16918
16871
|
const _hoisted_6$8 = ["href"];
|
|
16919
16872
|
const _hoisted_7$7 = { class: "announce-handle-wrapper" };
|
|
16920
16873
|
const ANNOUNCE_STATUS_KEY = "site_announcement_status";
|
|
16921
|
-
const _sfc_main$
|
|
16874
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
16922
16875
|
...{ name: "SiteAnnouncement" },
|
|
16923
16876
|
__name: "SiteAnnouncement",
|
|
16924
16877
|
setup(__props) {
|
|
@@ -16966,7 +16919,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
16966
16919
|
class: normalizeClass(["announce-wrapper", { mobile: unref(isMobile) }])
|
|
16967
16920
|
}, [
|
|
16968
16921
|
unref(isMobile) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
16969
|
-
createElementVNode("div", _hoisted_1$
|
|
16922
|
+
createElementVNode("div", _hoisted_1$r, [
|
|
16970
16923
|
createElementVNode("div", null, [
|
|
16971
16924
|
createVNode(GIcon, {
|
|
16972
16925
|
name: "gt-plane-warningCircular-blue",
|
|
@@ -16976,18 +16929,18 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
16976
16929
|
]),
|
|
16977
16930
|
createElementVNode("div", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.content")), 1)
|
|
16978
16931
|
]),
|
|
16979
|
-
createElementVNode("div", _hoisted_2$
|
|
16932
|
+
createElementVNode("div", _hoisted_2$l, [
|
|
16980
16933
|
createElementVNode("a", {
|
|
16981
16934
|
class: "announce-detail",
|
|
16982
16935
|
href: migrationAnnounceUrl.value
|
|
16983
|
-
}, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.viewDetail_mobile")), 9, _hoisted_3$
|
|
16936
|
+
}, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.viewDetail_mobile")), 9, _hoisted_3$k),
|
|
16984
16937
|
createElementVNode("span", {
|
|
16985
16938
|
class: "announce-handle",
|
|
16986
16939
|
onClick: _cache[0] || (_cache[0] = ($event) => handleClose())
|
|
16987
16940
|
}, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.close")), 1)
|
|
16988
16941
|
])
|
|
16989
16942
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
16990
|
-
createElementVNode("div", _hoisted_4$
|
|
16943
|
+
createElementVNode("div", _hoisted_4$f, [
|
|
16991
16944
|
createElementVNode("div", _hoisted_5$a, [
|
|
16992
16945
|
createVNode(GIcon, {
|
|
16993
16946
|
name: "gt-plane-warningCircular-blue",
|
|
@@ -17012,7 +16965,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
17012
16965
|
};
|
|
17013
16966
|
}
|
|
17014
16967
|
});
|
|
17015
|
-
const SiteAnnouncement = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16968
|
+
const SiteAnnouncement = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
17016
16969
|
const DEFAULT_LOGIN_REDIRECT_STORAGE_KEY = "ag_login_pending_redirect";
|
|
17017
16970
|
function useLoginRedirect(options) {
|
|
17018
16971
|
const {
|
|
@@ -17132,12 +17085,12 @@ function resolveHomeHeaderActionUrls(items, fallbacks, transformers) {
|
|
|
17132
17085
|
workspace: resolve("workspace")
|
|
17133
17086
|
};
|
|
17134
17087
|
}
|
|
17135
|
-
const _hoisted_1$
|
|
17136
|
-
const _hoisted_2$
|
|
17137
|
-
const _hoisted_3$
|
|
17138
|
-
const _hoisted_4$
|
|
17088
|
+
const _hoisted_1$q = { class: "home-header-actions" };
|
|
17089
|
+
const _hoisted_2$k = { class: "home-header-actions__menu" };
|
|
17090
|
+
const _hoisted_3$j = ["href"];
|
|
17091
|
+
const _hoisted_4$e = ["href"];
|
|
17139
17092
|
const _hoisted_5$9 = { class: "home-header-actions__workspace-text" };
|
|
17140
|
-
const _sfc_main$
|
|
17093
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
17141
17094
|
...{
|
|
17142
17095
|
name: "HomeHeaderActions"
|
|
17143
17096
|
},
|
|
@@ -17191,10 +17144,6 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
17191
17144
|
workspace: fallbackUrls.value.workspace
|
|
17192
17145
|
}));
|
|
17193
17146
|
const discoverLinks = computed(() => [
|
|
17194
|
-
{
|
|
17195
|
-
label: t2("gitCodeLayout.home.atomCodeOfficial"),
|
|
17196
|
-
href: actionUrls.value.atomCode
|
|
17197
|
-
},
|
|
17198
17147
|
{
|
|
17199
17148
|
label: t2("gitCodeLayout.home.learnCenter"),
|
|
17200
17149
|
href: actionUrls.value.learn
|
|
@@ -17265,7 +17214,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
17265
17214
|
}
|
|
17266
17215
|
});
|
|
17267
17216
|
return (_ctx, _cache) => {
|
|
17268
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
17217
|
+
return openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
17269
17218
|
createVNode(unref(Dropdown), {
|
|
17270
17219
|
position: ["bottom-start"],
|
|
17271
17220
|
"destroy-on-hide": false,
|
|
@@ -17275,14 +17224,14 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
17275
17224
|
onToggle: handleDiscoverToggle
|
|
17276
17225
|
}, {
|
|
17277
17226
|
menu: withCtx(() => [
|
|
17278
|
-
createElementVNode("div", _hoisted_2$
|
|
17227
|
+
createElementVNode("div", _hoisted_2$k, [
|
|
17279
17228
|
(openBlock(true), createElementBlock(Fragment, null, renderList(discoverLinks.value, (item) => {
|
|
17280
17229
|
return openBlock(), createElementBlock("a", {
|
|
17281
17230
|
key: item.label,
|
|
17282
17231
|
href: item.href,
|
|
17283
17232
|
class: "home-header-actions__menu-item",
|
|
17284
17233
|
onClick: _cache[0] || (_cache[0] = ($event) => isDiscoverOpen.value = false)
|
|
17285
|
-
}, toDisplayString$1(item.label), 9, _hoisted_3$
|
|
17234
|
+
}, toDisplayString$1(item.label), 9, _hoisted_3$j);
|
|
17286
17235
|
}), 128))
|
|
17287
17236
|
])
|
|
17288
17237
|
]),
|
|
@@ -17314,20 +17263,20 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
17314
17263
|
color: "currentColor"
|
|
17315
17264
|
}),
|
|
17316
17265
|
createElementVNode("span", _hoisted_5$9, toDisplayString$1(unref(t2)("gitCodeLayout.header.myWorkbench")), 1)
|
|
17317
|
-
], 8, _hoisted_4$
|
|
17266
|
+
], 8, _hoisted_4$e)
|
|
17318
17267
|
]);
|
|
17319
17268
|
};
|
|
17320
17269
|
}
|
|
17321
17270
|
});
|
|
17322
|
-
const HomeHeaderActions = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17323
|
-
const _hoisted_1$
|
|
17324
|
-
const _hoisted_2$
|
|
17325
|
-
const _hoisted_3$
|
|
17271
|
+
const HomeHeaderActions = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
17272
|
+
const _hoisted_1$p = ["aria-label", "aria-expanded"];
|
|
17273
|
+
const _hoisted_2$j = { class: "atomcode-launcher-text" };
|
|
17274
|
+
const _hoisted_3$i = {
|
|
17326
17275
|
id: "atomCodeLaunchMenu",
|
|
17327
17276
|
class: "atomcode-launch-menu",
|
|
17328
17277
|
role: "menu"
|
|
17329
17278
|
};
|
|
17330
|
-
const _hoisted_4$
|
|
17279
|
+
const _hoisted_4$d = { class: "atomcode-launch-item__title-row" };
|
|
17331
17280
|
const _hoisted_5$8 = { class: "atomcode-launch-item__title" };
|
|
17332
17281
|
const _hoisted_6$7 = {
|
|
17333
17282
|
id: "atomCodeContextHint",
|
|
@@ -17336,7 +17285,10 @@ const _hoisted_6$7 = {
|
|
|
17336
17285
|
const _hoisted_7$6 = ["href"];
|
|
17337
17286
|
const _hoisted_8$6 = { class: "atomcode-launch-item__title-row" };
|
|
17338
17287
|
const _hoisted_9$6 = { class: "atomcode-launch-item__title" };
|
|
17339
|
-
const
|
|
17288
|
+
const _hoisted_10$6 = ["href"];
|
|
17289
|
+
const _hoisted_11$5 = { class: "atomcode-launch-item__title-row" };
|
|
17290
|
+
const _hoisted_12$4 = { class: "atomcode-launch-item__title" };
|
|
17291
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
17340
17292
|
...{
|
|
17341
17293
|
name: "AtomCodeLauncher"
|
|
17342
17294
|
},
|
|
@@ -17344,7 +17296,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
17344
17296
|
props: {
|
|
17345
17297
|
atomcodeLaunchQs: { default: "" },
|
|
17346
17298
|
isLogin: { type: Boolean, default: false },
|
|
17347
|
-
launchAtomCode: { type: Function, default: void 0 }
|
|
17299
|
+
launchAtomCode: { type: Function, default: void 0 },
|
|
17300
|
+
officialUrl: { default: "" },
|
|
17301
|
+
atomcodeOfficialUrl: { default: "" }
|
|
17348
17302
|
},
|
|
17349
17303
|
setup(__props) {
|
|
17350
17304
|
const props = __props;
|
|
@@ -17369,6 +17323,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
17369
17323
|
const separator = url.includes("?") ? "&" : "?";
|
|
17370
17324
|
return `${url}${separator}${qs}`;
|
|
17371
17325
|
});
|
|
17326
|
+
const resolvedOfficialUrl = computed(() => {
|
|
17327
|
+
return props.atomcodeOfficialUrl || props.officialUrl || "https://atomcode.atomgit.com/";
|
|
17328
|
+
});
|
|
17372
17329
|
const resolvedCliDownloadUrl = computed(() => {
|
|
17373
17330
|
return joinUrl(layoutConfig2.VITE_HOST, "/?tn=atomcode-coding-plan");
|
|
17374
17331
|
});
|
|
@@ -17415,7 +17372,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
17415
17372
|
onToggle: handleToggle
|
|
17416
17373
|
}, {
|
|
17417
17374
|
menu: withCtx(() => [
|
|
17418
|
-
createElementVNode("div", _hoisted_3$
|
|
17375
|
+
createElementVNode("div", _hoisted_3$i, [
|
|
17419
17376
|
createElementVNode("button", {
|
|
17420
17377
|
type: "button",
|
|
17421
17378
|
class: "atomcode-launch-item atomcode-launch-item--with-desc",
|
|
@@ -17423,7 +17380,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
17423
17380
|
"data-atomcode-open": "",
|
|
17424
17381
|
onClick: openAtomCode
|
|
17425
17382
|
}, [
|
|
17426
|
-
createElementVNode("div", _hoisted_4$
|
|
17383
|
+
createElementVNode("div", _hoisted_4$d, [
|
|
17427
17384
|
_cache[0] || (_cache[0] = createElementVNode("svg", {
|
|
17428
17385
|
"data-lucide": "arrow-up-right",
|
|
17429
17386
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -17446,15 +17403,49 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
17446
17403
|
createElementVNode("div", _hoisted_6$7, toDisplayString$1(contextHintText.value), 1)
|
|
17447
17404
|
]),
|
|
17448
17405
|
createElementVNode("a", {
|
|
17449
|
-
href:
|
|
17406
|
+
href: resolvedOfficialUrl.value,
|
|
17450
17407
|
target: "_blank",
|
|
17451
17408
|
rel: "noopener noreferrer",
|
|
17452
17409
|
class: "atomcode-launch-item",
|
|
17453
17410
|
role: "menuitem",
|
|
17454
|
-
"data-atomcode-
|
|
17411
|
+
"data-atomcode-official": ""
|
|
17455
17412
|
}, [
|
|
17456
17413
|
createElementVNode("div", _hoisted_8$6, [
|
|
17457
17414
|
_cache[1] || (_cache[1] = createElementVNode("svg", {
|
|
17415
|
+
"data-lucide": "globe",
|
|
17416
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
17417
|
+
width: "16",
|
|
17418
|
+
height: "16",
|
|
17419
|
+
viewBox: "0 0 24 24",
|
|
17420
|
+
fill: "none",
|
|
17421
|
+
stroke: "currentColor",
|
|
17422
|
+
"stroke-width": "2",
|
|
17423
|
+
"stroke-linecap": "round",
|
|
17424
|
+
"stroke-linejoin": "round",
|
|
17425
|
+
"aria-hidden": "true",
|
|
17426
|
+
class: "atomcode-item-icon"
|
|
17427
|
+
}, [
|
|
17428
|
+
createElementVNode("circle", {
|
|
17429
|
+
cx: "12",
|
|
17430
|
+
cy: "12",
|
|
17431
|
+
r: "10"
|
|
17432
|
+
}),
|
|
17433
|
+
createElementVNode("path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20" }),
|
|
17434
|
+
createElementVNode("path", { d: "M2 12h20" })
|
|
17435
|
+
], -1)),
|
|
17436
|
+
createElementVNode("span", _hoisted_9$6, toDisplayString$1(unref(t2)("gitCodeLayout.atomCode.atomCodeOfficial")), 1)
|
|
17437
|
+
])
|
|
17438
|
+
], 8, _hoisted_7$6),
|
|
17439
|
+
createElementVNode("a", {
|
|
17440
|
+
href: resolvedCliDownloadUrl.value,
|
|
17441
|
+
target: "_blank",
|
|
17442
|
+
rel: "noopener noreferrer",
|
|
17443
|
+
class: "atomcode-launch-item",
|
|
17444
|
+
role: "menuitem",
|
|
17445
|
+
"data-atomcode-cli": ""
|
|
17446
|
+
}, [
|
|
17447
|
+
createElementVNode("div", _hoisted_11$5, [
|
|
17448
|
+
_cache[2] || (_cache[2] = createElementVNode("svg", {
|
|
17458
17449
|
"data-lucide": "download",
|
|
17459
17450
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17460
17451
|
width: "16",
|
|
@@ -17477,9 +17468,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
17477
17468
|
y2: "3"
|
|
17478
17469
|
})
|
|
17479
17470
|
], -1)),
|
|
17480
|
-
createElementVNode("span",
|
|
17471
|
+
createElementVNode("span", _hoisted_12$4, toDisplayString$1(unref(t2)("gitCodeLayout.atomCode.downloadCli")), 1)
|
|
17481
17472
|
])
|
|
17482
|
-
], 8,
|
|
17473
|
+
], 8, _hoisted_10$6)
|
|
17483
17474
|
])
|
|
17484
17475
|
]),
|
|
17485
17476
|
default: withCtx(() => [
|
|
@@ -17502,7 +17493,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
17502
17493
|
size: "16px",
|
|
17503
17494
|
class: "atomcode-icon atomcode-icon--dark"
|
|
17504
17495
|
}),
|
|
17505
|
-
createElementVNode("span", _hoisted_2$
|
|
17496
|
+
createElementVNode("span", _hoisted_2$j, toDisplayString$1(unref(t2)("gitCodeLayout.atomCode.title")), 1),
|
|
17506
17497
|
createVNode(GIcon, {
|
|
17507
17498
|
name: "gt-line-down",
|
|
17508
17499
|
size: "16px",
|
|
@@ -17510,7 +17501,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
17510
17501
|
rotate: isOpen.value ? "180deg" : "0deg",
|
|
17511
17502
|
class: "atomcode-launcher-chevron"
|
|
17512
17503
|
}, null, 8, ["rotate"])
|
|
17513
|
-
], 8, _hoisted_1$
|
|
17504
|
+
], 8, _hoisted_1$p)
|
|
17514
17505
|
]),
|
|
17515
17506
|
_: 1
|
|
17516
17507
|
})
|
|
@@ -17518,7 +17509,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
17518
17509
|
};
|
|
17519
17510
|
}
|
|
17520
17511
|
});
|
|
17521
|
-
const AtomCodeLauncher = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17512
|
+
const AtomCodeLauncher = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
17522
17513
|
const vElementExposure = {
|
|
17523
17514
|
mounted(el, binding) {
|
|
17524
17515
|
const observer = new IntersectionObserver(function(entries2, observer2) {
|
|
@@ -17535,7 +17526,7 @@ const vElementExposure = {
|
|
|
17535
17526
|
beforeUnmount() {
|
|
17536
17527
|
}
|
|
17537
17528
|
};
|
|
17538
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
17529
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-CCYUf9Us.js"));
|
|
17539
17530
|
function clearNotice() {
|
|
17540
17531
|
if (localStorage$2.getItem("validator_email")) {
|
|
17541
17532
|
localStorage$2.removeItem("validator_email");
|
|
@@ -17562,13 +17553,13 @@ function useNotification() {
|
|
|
17562
17553
|
notice
|
|
17563
17554
|
};
|
|
17564
17555
|
}
|
|
17565
|
-
const _hoisted_1$
|
|
17566
|
-
const _hoisted_2$
|
|
17567
|
-
const _hoisted_3$
|
|
17556
|
+
const _hoisted_1$o = { class: "g-toolbar-left allow-click-stop" };
|
|
17557
|
+
const _hoisted_2$i = { key: 0 };
|
|
17558
|
+
const _hoisted_3$h = {
|
|
17568
17559
|
key: 1,
|
|
17569
17560
|
class: "search-avatar"
|
|
17570
17561
|
};
|
|
17571
|
-
const _hoisted_4$
|
|
17562
|
+
const _hoisted_4$c = { class: "g-toolbar-right__claim-row" };
|
|
17572
17563
|
const _hoisted_5$7 = {
|
|
17573
17564
|
key: 0,
|
|
17574
17565
|
class: "g-toolbar-right-divider"
|
|
@@ -17584,7 +17575,7 @@ const _hoisted_7$5 = {
|
|
|
17584
17575
|
const _hoisted_8$5 = { class: "g-header-body-left" };
|
|
17585
17576
|
const _hoisted_9$5 = { class: "g-header-body-right" };
|
|
17586
17577
|
const _hoisted_10$5 = { key: 2 };
|
|
17587
|
-
const _sfc_main$
|
|
17578
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
17588
17579
|
...{
|
|
17589
17580
|
name: "GitCodeHeader"
|
|
17590
17581
|
},
|
|
@@ -18027,7 +18018,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
18027
18018
|
class: "g-toolbar allow-click-stop",
|
|
18028
18019
|
onClick: withModifiers(handleToolbarClick, ["stop"])
|
|
18029
18020
|
}, [
|
|
18030
|
-
createElementVNode("div", _hoisted_1$
|
|
18021
|
+
createElementVNode("div", _hoisted_1$o, [
|
|
18031
18022
|
createElementVNode("div", {
|
|
18032
18023
|
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
18033
18024
|
}, ["stop"])),
|
|
@@ -18077,10 +18068,10 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
18077
18068
|
}, 8, ["scene", "isLogin", "errorCode", "orgProps", "repoProps", "userProps"])) : createCommentVNode("", true)
|
|
18078
18069
|
], 2)) : createCommentVNode("", true)
|
|
18079
18070
|
]),
|
|
18080
|
-
_ctx.$slots.headerMiddleRight ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
18071
|
+
_ctx.$slots.headerMiddleRight ? (openBlock(), createElementBlock("div", _hoisted_2$i, [
|
|
18081
18072
|
renderSlot(_ctx.$slots, "headerMiddleRight", {}, void 0, true)
|
|
18082
18073
|
])) : createCommentVNode("", true),
|
|
18083
|
-
!inAIHub.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
18074
|
+
!inAIHub.value ? (openBlock(), createElementBlock("div", _hoisted_3$h, [
|
|
18084
18075
|
isModuleVisible(unref(HeaderDisplayItem).SEARCH_BUTTON) ? renderSlot(_ctx.$slots, "search", { key: 0 }, () => [
|
|
18085
18076
|
(openBlock(), createBlock(Search, {
|
|
18086
18077
|
inAIHub: inAIHub.value,
|
|
@@ -18122,7 +18113,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
18122
18113
|
isLogin: props.isLogin
|
|
18123
18114
|
}, null, 8, ["workspace-navigate", "isLogin"])
|
|
18124
18115
|
], true) : createCommentVNode("", true),
|
|
18125
|
-
createElementVNode("div", _hoisted_4$
|
|
18116
|
+
createElementVNode("div", _hoisted_4$c, [
|
|
18126
18117
|
createVNode(ClaimPower, { config: claimPowerConfig.value }, null, 8, ["config"]),
|
|
18127
18118
|
isModuleVisible(unref(HeaderDisplayItem).OPERATION_ENTRY) ? (openBlock(), createBlock(OperationEntry, { key: 0 })) : createCommentVNode("", true)
|
|
18128
18119
|
]),
|
|
@@ -18204,11 +18195,11 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
18204
18195
|
};
|
|
18205
18196
|
}
|
|
18206
18197
|
});
|
|
18207
|
-
const GitCodeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18208
|
-
const _hoisted_1$
|
|
18209
|
-
const _hoisted_2$
|
|
18210
|
-
const _hoisted_3$
|
|
18211
|
-
const _sfc_main$
|
|
18198
|
+
const GitCodeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
18199
|
+
const _hoisted_1$n = { class: "tools-item-wrapper" };
|
|
18200
|
+
const _hoisted_2$h = { class: "tools-item-wrapper-checkbox" };
|
|
18201
|
+
const _hoisted_3$g = ["onClick", "title"];
|
|
18202
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
18212
18203
|
__name: "Theme",
|
|
18213
18204
|
setup(__props) {
|
|
18214
18205
|
const { t: t2 } = i18n.global;
|
|
@@ -18233,9 +18224,9 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
18233
18224
|
setTheme(activeTheme.value);
|
|
18234
18225
|
};
|
|
18235
18226
|
return (_ctx, _cache) => {
|
|
18236
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
18227
|
+
return openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
18237
18228
|
createElementVNode("div", null, toDisplayString$1(unref(t2)("gitCodeLayout.common.footerSetting.theme")), 1),
|
|
18238
|
-
createElementVNode("div", _hoisted_2$
|
|
18229
|
+
createElementVNode("div", _hoisted_2$h, [
|
|
18239
18230
|
(openBlock(true), createElementBlock(Fragment, null, renderList(themeList.value, (item) => {
|
|
18240
18231
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
18241
18232
|
key: item.value
|
|
@@ -18250,17 +18241,17 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
18250
18241
|
color: "var(--theme-icon-fill-weak)",
|
|
18251
18242
|
class: "checkbox-item-icon"
|
|
18252
18243
|
}, null, 8, ["name"])
|
|
18253
|
-
], 16, _hoisted_3$
|
|
18244
|
+
], 16, _hoisted_3$g);
|
|
18254
18245
|
}), 128))
|
|
18255
18246
|
])
|
|
18256
18247
|
]);
|
|
18257
18248
|
};
|
|
18258
18249
|
}
|
|
18259
18250
|
});
|
|
18260
|
-
const _hoisted_1$
|
|
18261
|
-
const _hoisted_2$
|
|
18262
|
-
const _hoisted_3$
|
|
18263
|
-
const _sfc_main$
|
|
18251
|
+
const _hoisted_1$m = { class: "aside-footer-tools-item" };
|
|
18252
|
+
const _hoisted_2$g = { class: "aside-footer-tools-item-dropdown-item" };
|
|
18253
|
+
const _hoisted_3$f = { class: "aside-footer-tools-item-dropdown-item" };
|
|
18254
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
18264
18255
|
...{ name: "AsideFooterTools" },
|
|
18265
18256
|
__name: "index",
|
|
18266
18257
|
props: {
|
|
@@ -18277,19 +18268,19 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
18277
18268
|
"overlay-class": "footer-tools-setting-dropdown"
|
|
18278
18269
|
}, {
|
|
18279
18270
|
menu: withCtx(() => [
|
|
18280
|
-
withDirectives(createElementVNode("div", _hoisted_2$
|
|
18281
|
-
createVNode(_sfc_main$
|
|
18271
|
+
withDirectives(createElementVNode("div", _hoisted_2$g, [
|
|
18272
|
+
createVNode(_sfc_main$r)
|
|
18282
18273
|
], 512), [
|
|
18283
18274
|
[vShow, _ctx.showThemeSetting]
|
|
18284
18275
|
]),
|
|
18285
|
-
withDirectives(createElementVNode("div", _hoisted_3$
|
|
18286
|
-
createVNode(_sfc_main$
|
|
18276
|
+
withDirectives(createElementVNode("div", _hoisted_3$f, [
|
|
18277
|
+
createVNode(_sfc_main$B)
|
|
18287
18278
|
], 512), [
|
|
18288
18279
|
[vShow, _ctx.showLangSetting]
|
|
18289
18280
|
])
|
|
18290
18281
|
]),
|
|
18291
18282
|
default: withCtx(() => [
|
|
18292
|
-
createElementVNode("div", _hoisted_1$
|
|
18283
|
+
createElementVNode("div", _hoisted_1$m, [
|
|
18293
18284
|
createVNode(GIcon, {
|
|
18294
18285
|
name: "gt-line-setting",
|
|
18295
18286
|
size: "16",
|
|
@@ -18308,8 +18299,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
18308
18299
|
};
|
|
18309
18300
|
}
|
|
18310
18301
|
});
|
|
18311
|
-
const AsideFooterTools = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18312
|
-
const _sfc_main$
|
|
18302
|
+
const AsideFooterTools = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
18303
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
18313
18304
|
...{
|
|
18314
18305
|
name: "ScrollActiveContainer",
|
|
18315
18306
|
inheritAttrs: false
|
|
@@ -18517,7 +18508,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
18517
18508
|
};
|
|
18518
18509
|
}
|
|
18519
18510
|
});
|
|
18520
|
-
const ScrollActiveContainer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18511
|
+
const ScrollActiveContainer = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
18521
18512
|
function asideV2Request(request) {
|
|
18522
18513
|
return {
|
|
18523
18514
|
/**
|
|
@@ -18622,18 +18613,18 @@ function mergeChannelsWithRecommendBlocks(originalChannels, blocks = []) {
|
|
|
18622
18613
|
}
|
|
18623
18614
|
const newTagImg = "data:image/png;base64,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";
|
|
18624
18615
|
const newTagDarkImg = "data:image/png;base64,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";
|
|
18625
|
-
const _hoisted_1$
|
|
18626
|
-
const _hoisted_2$
|
|
18616
|
+
const _hoisted_1$l = { class: "home-channel-side-nav" };
|
|
18617
|
+
const _hoisted_2$f = {
|
|
18627
18618
|
key: 0,
|
|
18628
18619
|
class: "home-channel-side-nav__list",
|
|
18629
18620
|
"aria-busy": "true",
|
|
18630
18621
|
"aria-label": "加载中"
|
|
18631
18622
|
};
|
|
18632
|
-
const _hoisted_3$
|
|
18623
|
+
const _hoisted_3$e = {
|
|
18633
18624
|
key: 0,
|
|
18634
18625
|
class: "home-channel-side-nav__group-title home-channel-side-nav__group-title--skeleton"
|
|
18635
18626
|
};
|
|
18636
|
-
const _hoisted_4$
|
|
18627
|
+
const _hoisted_4$b = { class: "home-channel-side-nav__info" };
|
|
18637
18628
|
const _hoisted_5$6 = { class: "home-channel-side-nav__label-row" };
|
|
18638
18629
|
const _hoisted_6$5 = {
|
|
18639
18630
|
key: 1,
|
|
@@ -18726,7 +18717,7 @@ const _hoisted_24$1 = {
|
|
|
18726
18717
|
class: "home-channel-side-nav__footer-tools-container"
|
|
18727
18718
|
};
|
|
18728
18719
|
const _hoisted_25$1 = { class: "home-channel-side-nav__footer-tools-inner" };
|
|
18729
|
-
const _sfc_main$
|
|
18720
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
18730
18721
|
...{ name: "AsideV2Content", inheritAttrs: false },
|
|
18731
18722
|
__name: "asideV2Content",
|
|
18732
18723
|
props: {
|
|
@@ -18940,7 +18931,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
18940
18931
|
return openBlock(), createElementBlock("div", {
|
|
18941
18932
|
class: normalizeClass(["gitcode-aside-v2-content home-channel-navigation", { "is-single-col": props.singleCol }])
|
|
18942
18933
|
}, [
|
|
18943
|
-
createElementVNode("div", _hoisted_1$
|
|
18934
|
+
createElementVNode("div", _hoisted_1$l, [
|
|
18944
18935
|
createVNode(ScrollActiveContainer, {
|
|
18945
18936
|
ref_key: "scrollContainerRef",
|
|
18946
18937
|
ref: scrollContainerRef,
|
|
@@ -18950,12 +18941,12 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
18950
18941
|
"aria-label": "首页频道"
|
|
18951
18942
|
}, {
|
|
18952
18943
|
default: withCtx(() => [
|
|
18953
|
-
loading.value && (!channelsList.value || channelsList.value.length === 0) ? (openBlock(), createElementBlock("ul", _hoisted_2$
|
|
18944
|
+
loading.value && (!channelsList.value || channelsList.value.length === 0) ? (openBlock(), createElementBlock("ul", _hoisted_2$f, [
|
|
18954
18945
|
(openBlock(), createElementBlock(Fragment, null, renderList(skeletonItems, (sk, idx) => {
|
|
18955
18946
|
return openBlock(), createElementBlock(Fragment, {
|
|
18956
18947
|
key: `skeleton-${idx}`
|
|
18957
18948
|
}, [
|
|
18958
|
-
sk.isGroupTitle ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
18949
|
+
sk.isGroupTitle ? (openBlock(), createElementBlock("div", _hoisted_3$e, [
|
|
18959
18950
|
createElementVNode("span", {
|
|
18960
18951
|
class: "home-channel-side-nav__skeleton-block home-channel-side-nav__group-skeleton",
|
|
18961
18952
|
style: normalizeStyle({ width: sk.width })
|
|
@@ -18968,7 +18959,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
18968
18959
|
class: normalizeClass(["home-channel-side-nav__item home-channel-side-nav__item--skeleton", { "has-desc": !!sk.descWidth }])
|
|
18969
18960
|
}, [
|
|
18970
18961
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "home-channel-side-nav__skeleton-block home-channel-side-nav__logo-skeleton" }, null, -1)),
|
|
18971
|
-
createElementVNode("div", _hoisted_4$
|
|
18962
|
+
createElementVNode("div", _hoisted_4$b, [
|
|
18972
18963
|
createElementVNode("span", _hoisted_5$6, [
|
|
18973
18964
|
createElementVNode("span", {
|
|
18974
18965
|
class: "home-channel-side-nav__skeleton-block home-channel-side-nav__label-skeleton",
|
|
@@ -19098,9 +19089,9 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
19098
19089
|
};
|
|
19099
19090
|
}
|
|
19100
19091
|
});
|
|
19101
|
-
const AsideV2Content = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19102
|
-
const _hoisted_1$
|
|
19103
|
-
const _sfc_main$
|
|
19092
|
+
const AsideV2Content = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
19093
|
+
const _hoisted_1$k = { class: "aside-drawer-header" };
|
|
19094
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
19104
19095
|
...{ name: "GitCodeAsideV2", inheritAttrs: false },
|
|
19105
19096
|
__name: "index",
|
|
19106
19097
|
props: {
|
|
@@ -19284,7 +19275,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
19284
19275
|
class: "draw-side-bar"
|
|
19285
19276
|
}, {
|
|
19286
19277
|
default: withCtx(() => [
|
|
19287
|
-
createElementVNode("div", _hoisted_1$
|
|
19278
|
+
createElementVNode("div", _hoisted_1$k, [
|
|
19288
19279
|
createVNode(GLink, {
|
|
19289
19280
|
class: "g-toolbar-left-logo",
|
|
19290
19281
|
style: normalizeStyle(logoStyle.value),
|
|
@@ -19315,11 +19306,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
19315
19306
|
};
|
|
19316
19307
|
}
|
|
19317
19308
|
});
|
|
19318
|
-
const GitCodeAsideV2 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19319
|
-
const _hoisted_1$
|
|
19320
|
-
const _hoisted_2$
|
|
19321
|
-
const _hoisted_3$
|
|
19322
|
-
const _hoisted_4$
|
|
19309
|
+
const GitCodeAsideV2 = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
19310
|
+
const _hoisted_1$j = { class: "g-toolbar allow-click-stop" };
|
|
19311
|
+
const _hoisted_2$e = { class: "g-toolbar-left allow-click-stop" };
|
|
19312
|
+
const _hoisted_3$d = { class: "g-toolbar-custom" };
|
|
19313
|
+
const _hoisted_4$a = { class: "enterprise-name" };
|
|
19323
19314
|
const _hoisted_5$5 = { class: "enterprise-flag" };
|
|
19324
19315
|
const _hoisted_6$4 = { class: "search-avatar" };
|
|
19325
19316
|
const _hoisted_7$3 = { class: "g-toolbar-right allow-click-stop" };
|
|
@@ -19330,7 +19321,7 @@ const _hoisted_8$3 = {
|
|
|
19330
19321
|
const _hoisted_9$3 = { class: "g-header-body-left" };
|
|
19331
19322
|
const _hoisted_10$3 = { class: "g-header-body-right" };
|
|
19332
19323
|
const _hoisted_11$3 = { key: 1 };
|
|
19333
|
-
const _sfc_main$
|
|
19324
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
19334
19325
|
...{
|
|
19335
19326
|
name: "EnterpriseHeader"
|
|
19336
19327
|
},
|
|
@@ -19552,8 +19543,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
19552
19543
|
class: normalizeClass(["g-header allow-click-stop", [showHeaderShadow.value ? "head-shadow" : "", _ctx.headerBorder ? "oldBorder" : "", headerClassName.value]])
|
|
19553
19544
|
}, [
|
|
19554
19545
|
createVNode(SiteAnnouncement),
|
|
19555
|
-
withDirectives((openBlock(), createElementBlock("div", _hoisted_1$
|
|
19556
|
-
createElementVNode("div", _hoisted_2$
|
|
19546
|
+
withDirectives((openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
19547
|
+
createElementVNode("div", _hoisted_2$e, [
|
|
19557
19548
|
isModuleVisible(unref(HeaderDisplayItem).ASIDE_BUTTON) ? (openBlock(), createBlock(GIcon, {
|
|
19558
19549
|
key: 0,
|
|
19559
19550
|
onClick: handleHamburgerClick,
|
|
@@ -19562,8 +19553,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
19562
19553
|
class: "g-toolbar-left-asideicon",
|
|
19563
19554
|
color: "var(--theme-aide-text)"
|
|
19564
19555
|
})) : createCommentVNode("", true),
|
|
19565
|
-
createElementVNode("div", _hoisted_3$
|
|
19566
|
-
createVNode(_sfc_main$
|
|
19556
|
+
createElementVNode("div", _hoisted_3$d, [
|
|
19557
|
+
createVNode(_sfc_main$N, {
|
|
19567
19558
|
src: (_a2 = _ctx.enterpriseInfo) == null ? void 0 : _a2.avatar,
|
|
19568
19559
|
name: (_b = _ctx.enterpriseInfo) == null ? void 0 : _b.name,
|
|
19569
19560
|
isRound: false,
|
|
@@ -19571,7 +19562,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
19571
19562
|
height: 32,
|
|
19572
19563
|
class: "enterprise-avatar"
|
|
19573
19564
|
}, null, 8, ["src", "name"]),
|
|
19574
|
-
createElementVNode("span", _hoisted_4$
|
|
19565
|
+
createElementVNode("span", _hoisted_4$a, toDisplayString$1((_c = _ctx.enterpriseInfo) == null ? void 0 : _c.name), 1),
|
|
19575
19566
|
createElementVNode("span", _hoisted_5$5, toDisplayString$1(unref(t2)("gitCodeLayout.header.enterpriseFlag")), 1)
|
|
19576
19567
|
])
|
|
19577
19568
|
]),
|
|
@@ -19710,7 +19701,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
19710
19701
|
};
|
|
19711
19702
|
}
|
|
19712
19703
|
});
|
|
19713
|
-
const EnterpriseHeader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19704
|
+
const EnterpriseHeader = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
19714
19705
|
const layoutConfig$2 = useLayoutConfig();
|
|
19715
19706
|
const useConfigSide = (request, sceneValue) => {
|
|
19716
19707
|
const API = asideRequest(request);
|
|
@@ -19916,9 +19907,9 @@ var SearchType = /* @__PURE__ */ ((SearchType2) => {
|
|
|
19916
19907
|
SearchType2[SearchType2["Enterprise"] = 3] = "Enterprise";
|
|
19917
19908
|
return SearchType2;
|
|
19918
19909
|
})(SearchType || {});
|
|
19919
|
-
const _hoisted_1$
|
|
19920
|
-
const _hoisted_2$
|
|
19921
|
-
const _sfc_main$
|
|
19910
|
+
const _hoisted_1$i = { class: "area" };
|
|
19911
|
+
const _hoisted_2$d = { class: "area__layout-slot" };
|
|
19912
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
19922
19913
|
__name: "Area",
|
|
19923
19914
|
props: {
|
|
19924
19915
|
list: {},
|
|
@@ -19931,9 +19922,9 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
19931
19922
|
const layoutConfig2 = useLayoutConfig();
|
|
19932
19923
|
const { t: t2 } = i18n.global;
|
|
19933
19924
|
const route = useRoute();
|
|
19934
|
-
const MenuItem = defineAsyncComponent(() => import("./MenuItem-
|
|
19935
|
-
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-
|
|
19936
|
-
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-
|
|
19925
|
+
const MenuItem = defineAsyncComponent(() => import("./MenuItem-CSUD9h9u.js"));
|
|
19926
|
+
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-Cri1p6cu.js"));
|
|
19927
|
+
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-BIfK-2PP.js"));
|
|
19937
19928
|
const props = __props;
|
|
19938
19929
|
const useReport2 = inject("useReport");
|
|
19939
19930
|
const userInfo = inject("userInfo");
|
|
@@ -20138,7 +20129,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
20138
20129
|
window.open(url, openMode);
|
|
20139
20130
|
};
|
|
20140
20131
|
return (_ctx, _cache) => {
|
|
20141
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20132
|
+
return openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
20142
20133
|
createVNode(unref(Menu), {
|
|
20143
20134
|
class: "menu",
|
|
20144
20135
|
onSelect: onMenuClick,
|
|
@@ -20164,7 +20155,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
20164
20155
|
return {
|
|
20165
20156
|
name: key,
|
|
20166
20157
|
fn: withCtx(() => [
|
|
20167
|
-
createElementVNode("div", _hoisted_2$
|
|
20158
|
+
createElementVNode("div", _hoisted_2$d, [
|
|
20168
20159
|
createVNode(unref(Menu), {
|
|
20169
20160
|
class: "menu",
|
|
20170
20161
|
onSelect: onMenuClick,
|
|
@@ -20192,11 +20183,11 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
20192
20183
|
};
|
|
20193
20184
|
}
|
|
20194
20185
|
});
|
|
20195
|
-
const Area = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20196
|
-
const _hoisted_1$
|
|
20197
|
-
const _hoisted_2$
|
|
20198
|
-
const _hoisted_3$
|
|
20199
|
-
const _sfc_main$
|
|
20186
|
+
const Area = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
20187
|
+
const _hoisted_1$h = { class: "settings__label" };
|
|
20188
|
+
const _hoisted_2$c = { class: "aside-footer-tools-item-dropdown-item" };
|
|
20189
|
+
const _hoisted_3$c = { class: "aside-footer-tools-item-dropdown-item" };
|
|
20190
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
20200
20191
|
__name: "Settings",
|
|
20201
20192
|
props: {
|
|
20202
20193
|
showThemeSetting: { type: Boolean },
|
|
@@ -20212,13 +20203,13 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
20212
20203
|
"overlay-class": "footer-tools-setting-dropdown"
|
|
20213
20204
|
}, {
|
|
20214
20205
|
menu: withCtx(() => [
|
|
20215
|
-
withDirectives(createElementVNode("div", _hoisted_2$
|
|
20216
|
-
createVNode(_sfc_main$
|
|
20206
|
+
withDirectives(createElementVNode("div", _hoisted_2$c, [
|
|
20207
|
+
createVNode(_sfc_main$r)
|
|
20217
20208
|
], 512), [
|
|
20218
20209
|
[vShow, _ctx.showThemeSetting]
|
|
20219
20210
|
]),
|
|
20220
|
-
withDirectives(createElementVNode("div", _hoisted_3$
|
|
20221
|
-
createVNode(_sfc_main$
|
|
20211
|
+
withDirectives(createElementVNode("div", _hoisted_3$c, [
|
|
20212
|
+
createVNode(_sfc_main$B)
|
|
20222
20213
|
], 512), [
|
|
20223
20214
|
[vShow, _ctx.showLangSetting]
|
|
20224
20215
|
])
|
|
@@ -20237,7 +20228,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
20237
20228
|
size: "16",
|
|
20238
20229
|
class: "active-icon settings__icon-min"
|
|
20239
20230
|
}),
|
|
20240
|
-
createElementVNode("span", _hoisted_1$
|
|
20231
|
+
createElementVNode("span", _hoisted_1$h, toDisplayString$1(unref(t2)("gitCodeLayout.common.footerSetting.preSettingLittle")), 1)
|
|
20241
20232
|
], 2)
|
|
20242
20233
|
]),
|
|
20243
20234
|
_: 1
|
|
@@ -20245,9 +20236,9 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
20245
20236
|
};
|
|
20246
20237
|
}
|
|
20247
20238
|
});
|
|
20248
|
-
const Settings = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20239
|
+
const Settings = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
20249
20240
|
const FEEDBACK_CENTER_URL = "https://gitcode.com/Gitcode-offical-team/GitCode-Docs/issues";
|
|
20250
|
-
const _sfc_main$
|
|
20241
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
20251
20242
|
__name: "SubMenuList",
|
|
20252
20243
|
setup(__props) {
|
|
20253
20244
|
const layoutConfig2 = useLayoutConfig();
|
|
@@ -20302,7 +20293,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
20302
20293
|
};
|
|
20303
20294
|
}
|
|
20304
20295
|
});
|
|
20305
|
-
const SubMenuList = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20296
|
+
const SubMenuList = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
20306
20297
|
const createSetting = () => {
|
|
20307
20298
|
const { t: t2 } = i18n.global;
|
|
20308
20299
|
const isGitCodeHost2 = typeof window !== "undefined" && window.location.hostname.includes("gitcode");
|
|
@@ -20342,10 +20333,10 @@ const createSetting = () => {
|
|
|
20342
20333
|
}
|
|
20343
20334
|
return settings;
|
|
20344
20335
|
};
|
|
20345
|
-
const _hoisted_1$
|
|
20346
|
-
const _hoisted_2$
|
|
20347
|
-
const _hoisted_3$
|
|
20348
|
-
const _hoisted_4$
|
|
20336
|
+
const _hoisted_1$g = { class: "aside-footer" };
|
|
20337
|
+
const _hoisted_2$b = { class: "remake-message" };
|
|
20338
|
+
const _hoisted_3$b = ["title"];
|
|
20339
|
+
const _hoisted_4$9 = { class: "remake-message__line" };
|
|
20349
20340
|
const _hoisted_5$4 = {
|
|
20350
20341
|
href: "https://beian.miit.gov.cn/#/Integrated/index",
|
|
20351
20342
|
target: "_blank"
|
|
@@ -20364,7 +20355,7 @@ const _hoisted_9$2 = { class: "contact-info__about-row" };
|
|
|
20364
20355
|
const _hoisted_10$2 = { class: "footer-work-info" };
|
|
20365
20356
|
const _hoisted_11$2 = { class: "footer-work-info__item footer-work-info__item--mt" };
|
|
20366
20357
|
const _hoisted_12$2 = { class: "" };
|
|
20367
|
-
const _sfc_main$
|
|
20358
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
20368
20359
|
__name: "ContactInfo",
|
|
20369
20360
|
setup(__props) {
|
|
20370
20361
|
const { t: t2 } = i18n.global;
|
|
@@ -20374,13 +20365,13 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
20374
20365
|
return getLocaleLang() === LANG_EN;
|
|
20375
20366
|
});
|
|
20376
20367
|
return (_ctx, _cache) => {
|
|
20377
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20378
|
-
createElementVNode("div", _hoisted_2$
|
|
20368
|
+
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
20369
|
+
createElementVNode("div", _hoisted_2$b, [
|
|
20379
20370
|
createElementVNode("p", {
|
|
20380
20371
|
class: "remake-message__line remake-message__line--break",
|
|
20381
20372
|
title: unref(copyright).digestAbbr
|
|
20382
|
-
}, " © " + toDisplayString$1(unref(copyright).digestAbbr), 9, _hoisted_3$
|
|
20383
|
-
createElementVNode("p", _hoisted_4$
|
|
20373
|
+
}, " © " + toDisplayString$1(unref(copyright).digestAbbr), 9, _hoisted_3$b),
|
|
20374
|
+
createElementVNode("p", _hoisted_4$9, [
|
|
20384
20375
|
createElementVNode("a", _hoisted_5$4, toDisplayString$1(unref(copyright).icp), 1)
|
|
20385
20376
|
]),
|
|
20386
20377
|
unref(copyright).publicSecurity_url ? (openBlock(), createElementBlock("p", _hoisted_6$3, [
|
|
@@ -20436,18 +20427,18 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
20436
20427
|
};
|
|
20437
20428
|
}
|
|
20438
20429
|
});
|
|
20439
|
-
const ContactInfo = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20440
|
-
const _hoisted_1$
|
|
20441
|
-
const _hoisted_2$
|
|
20442
|
-
const _hoisted_3$
|
|
20430
|
+
const ContactInfo = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
20431
|
+
const _hoisted_1$f = { class: "config-aside__main" };
|
|
20432
|
+
const _hoisted_2$a = { key: 0 };
|
|
20433
|
+
const _hoisted_3$a = {
|
|
20443
20434
|
key: 1,
|
|
20444
20435
|
class: "aside-menus"
|
|
20445
20436
|
};
|
|
20446
|
-
const _hoisted_4$
|
|
20437
|
+
const _hoisted_4$8 = {
|
|
20447
20438
|
key: 1,
|
|
20448
20439
|
class: "line line--mt"
|
|
20449
20440
|
};
|
|
20450
|
-
const _sfc_main$
|
|
20441
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
20451
20442
|
__name: "configAideContent",
|
|
20452
20443
|
props: {
|
|
20453
20444
|
sceneValue: { default: SceneValue.home },
|
|
@@ -20585,18 +20576,18 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
20585
20576
|
createElementVNode("div", {
|
|
20586
20577
|
class: normalizeClass(["config-aside__content", { "side-bar-content-shot": _ctx.asideSetShowLittle, "shot-isCh": !unref(isEn) }])
|
|
20587
20578
|
}, [
|
|
20588
|
-
withDirectives((openBlock(), createElementBlock("div", _hoisted_1$
|
|
20579
|
+
withDirectives((openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
20589
20580
|
createElementVNode("div", {
|
|
20590
20581
|
class: normalizeClass(["scroll-content config-aside__scroll", { scroll: isScroll.value }]),
|
|
20591
20582
|
onScroll: handleScroll,
|
|
20592
20583
|
onMouseleave: handleMouseLeave
|
|
20593
20584
|
}, [
|
|
20594
|
-
unref(sideLoading) ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
20585
|
+
unref(sideLoading) ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
|
|
20595
20586
|
createVNode(unref(Skeleton), {
|
|
20596
20587
|
loading: unref(sideLoading),
|
|
20597
20588
|
row: 4
|
|
20598
20589
|
}, null, 8, ["loading"])
|
|
20599
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_3$
|
|
20590
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_3$a, [
|
|
20600
20591
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayArea.value, (item, index2) => {
|
|
20601
20592
|
return openBlock(), createElementBlock(Fragment, {
|
|
20602
20593
|
key: item.id
|
|
@@ -20630,7 +20621,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
20630
20621
|
}, null, 8, ["name"]),
|
|
20631
20622
|
_cache[2] || (_cache[2] = createElementVNode("span", null, "群组讨论", -1))
|
|
20632
20623
|
], 32)) : createCommentVNode("", true),
|
|
20633
|
-
!_ctx.asideSetShowLittle && index2 !== displayArea.value.length - 1 ? (openBlock(), createElementBlock("hr", _hoisted_4$
|
|
20624
|
+
!_ctx.asideSetShowLittle && index2 !== displayArea.value.length - 1 ? (openBlock(), createElementBlock("hr", _hoisted_4$8)) : createCommentVNode("", true)
|
|
20634
20625
|
], 64);
|
|
20635
20626
|
}), 128)),
|
|
20636
20627
|
!_ctx.asideSetShowLittle && isModuleVisible(unref(AsideDisplayItem).LINK) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
@@ -20660,9 +20651,9 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
20660
20651
|
};
|
|
20661
20652
|
}
|
|
20662
20653
|
});
|
|
20663
|
-
const ConfigAideContent = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20664
|
-
const _hoisted_1$
|
|
20665
|
-
const _sfc_main$
|
|
20654
|
+
const ConfigAideContent = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
20655
|
+
const _hoisted_1$e = { class: "aside-drawer-header" };
|
|
20656
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
20666
20657
|
__name: "index",
|
|
20667
20658
|
props: {
|
|
20668
20659
|
sceneValue: { default: SceneValue.home },
|
|
@@ -20837,7 +20828,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
20837
20828
|
class: "draw-side-bar"
|
|
20838
20829
|
}, {
|
|
20839
20830
|
default: withCtx(() => [
|
|
20840
|
-
createElementVNode("div", _hoisted_1$
|
|
20831
|
+
createElementVNode("div", _hoisted_1$e, [
|
|
20841
20832
|
createVNode(GLink, {
|
|
20842
20833
|
class: "g-toolbar-left-logo",
|
|
20843
20834
|
style: normalizeStyle(logoStyle.value),
|
|
@@ -20868,7 +20859,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
20868
20859
|
};
|
|
20869
20860
|
}
|
|
20870
20861
|
});
|
|
20871
|
-
const GitCodeAside = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20862
|
+
const GitCodeAside = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
20872
20863
|
const repoInfoData = {
|
|
20873
20864
|
"star_count": 0,
|
|
20874
20865
|
"forks_count": 0,
|
|
@@ -21575,11 +21566,11 @@ const headerCustomPropsData = {
|
|
|
21575
21566
|
isOtherUser: true
|
|
21576
21567
|
}
|
|
21577
21568
|
};
|
|
21578
|
-
const _hoisted_1$
|
|
21579
|
-
const _hoisted_2$
|
|
21580
|
-
const _hoisted_3$
|
|
21581
|
-
const _hoisted_4$
|
|
21582
|
-
const _sfc_main$
|
|
21569
|
+
const _hoisted_1$d = { class: "home-wrapper" };
|
|
21570
|
+
const _hoisted_2$9 = { class: "home-content" };
|
|
21571
|
+
const _hoisted_3$9 = { class: "home-left-side" };
|
|
21572
|
+
const _hoisted_4$7 = { class: "home-main" };
|
|
21573
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
21583
21574
|
__name: "home",
|
|
21584
21575
|
setup(__props) {
|
|
21585
21576
|
const asideVersion = ref("v2");
|
|
@@ -21655,7 +21646,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
21655
21646
|
}
|
|
21656
21647
|
});
|
|
21657
21648
|
return (_ctx, _cache) => {
|
|
21658
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
21649
|
+
return openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
21659
21650
|
showCommonHeader.value ? (openBlock(), createBlock(GitCodeHeader, {
|
|
21660
21651
|
key: 0,
|
|
21661
21652
|
sceneValue: sceneSelected.value,
|
|
@@ -21688,8 +21679,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
21688
21679
|
openHarmonyGuide: true,
|
|
21689
21680
|
headerCustomProps: headerCustomProps.value
|
|
21690
21681
|
}, null, 8, ["independence", "isLogin", "request", "globalStore", "enterpriseInfo", "userInfo", "headerCustomProps"])),
|
|
21691
|
-
createElementVNode("div", _hoisted_2$
|
|
21692
|
-
createElementVNode("div", _hoisted_3$
|
|
21682
|
+
createElementVNode("div", _hoisted_2$9, [
|
|
21683
|
+
createElementVNode("div", _hoisted_3$9, [
|
|
21693
21684
|
asideVersion.value === "v2" ? (openBlock(), createBlock(GitCodeAsideV2, {
|
|
21694
21685
|
key: 0,
|
|
21695
21686
|
sceneValue: sceneSelected.value,
|
|
@@ -21722,7 +21713,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
21722
21713
|
_: 1
|
|
21723
21714
|
}, 8, ["sceneValue", "userInfo", "isLogin", "request", "globalStore", "independence", "collapseMode"]))
|
|
21724
21715
|
]),
|
|
21725
|
-
createElementVNode("div", _hoisted_4$
|
|
21716
|
+
createElementVNode("div", _hoisted_4$7, [
|
|
21726
21717
|
_cache[12] || (_cache[12] = createElementVNode("h1", null, "Aside 版本切换", -1)),
|
|
21727
21718
|
createVNode(unref(RadioGroup), {
|
|
21728
21719
|
direction: "row",
|
|
@@ -21850,8 +21841,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
21850
21841
|
};
|
|
21851
21842
|
}
|
|
21852
21843
|
});
|
|
21853
|
-
const _hoisted_1$
|
|
21854
|
-
const _sfc_main$
|
|
21844
|
+
const _hoisted_1$c = { class: "home-wrapper" };
|
|
21845
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
21855
21846
|
__name: "login",
|
|
21856
21847
|
setup(__props) {
|
|
21857
21848
|
const isLogin = ref(false);
|
|
@@ -21883,8 +21874,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
21883
21874
|
}
|
|
21884
21875
|
});
|
|
21885
21876
|
return (_ctx, _cache) => {
|
|
21886
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
21887
|
-
createVNode(_sfc_main, {
|
|
21877
|
+
return openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
21878
|
+
createVNode(_sfc_main$1, {
|
|
21888
21879
|
isLogin: isLogin.value,
|
|
21889
21880
|
request: unref(proxyService),
|
|
21890
21881
|
loginSuccess,
|
|
@@ -21901,7 +21892,7 @@ const routes = [
|
|
|
21901
21892
|
{
|
|
21902
21893
|
path: "/",
|
|
21903
21894
|
name: "home",
|
|
21904
|
-
component: _sfc_main$
|
|
21895
|
+
component: _sfc_main$f,
|
|
21905
21896
|
meta: {
|
|
21906
21897
|
// showBgColor: true,
|
|
21907
21898
|
asideMenu: "flat"
|
|
@@ -21910,52 +21901,52 @@ const routes = [
|
|
|
21910
21901
|
{
|
|
21911
21902
|
path: "/dashboard",
|
|
21912
21903
|
name: "dashboard",
|
|
21913
|
-
component: _sfc_main$
|
|
21904
|
+
component: _sfc_main$f
|
|
21914
21905
|
},
|
|
21915
21906
|
{
|
|
21916
21907
|
path: "/repoDashboard",
|
|
21917
21908
|
name: "repoDashboard",
|
|
21918
|
-
component: _sfc_main$
|
|
21909
|
+
component: _sfc_main$f
|
|
21919
21910
|
},
|
|
21920
21911
|
{
|
|
21921
21912
|
path: "/",
|
|
21922
21913
|
name: "homepage",
|
|
21923
|
-
component: _sfc_main$
|
|
21914
|
+
component: _sfc_main$f
|
|
21924
21915
|
},
|
|
21925
21916
|
{
|
|
21926
21917
|
path: "/settingOrganization",
|
|
21927
21918
|
name: "settingOrganization",
|
|
21928
|
-
component: _sfc_main$
|
|
21919
|
+
component: _sfc_main$f
|
|
21929
21920
|
},
|
|
21930
21921
|
{
|
|
21931
21922
|
path: "/settingRepo",
|
|
21932
21923
|
name: "settingRepo",
|
|
21933
|
-
component: _sfc_main$
|
|
21924
|
+
component: _sfc_main$f
|
|
21934
21925
|
},
|
|
21935
21926
|
{
|
|
21936
21927
|
path: "/myNotebook",
|
|
21937
21928
|
name: "myNotebook",
|
|
21938
|
-
component: _sfc_main$
|
|
21929
|
+
component: _sfc_main$f
|
|
21939
21930
|
},
|
|
21940
21931
|
{
|
|
21941
21932
|
path: "/userSpaces",
|
|
21942
21933
|
name: "userSpaces",
|
|
21943
|
-
component: _sfc_main$
|
|
21934
|
+
component: _sfc_main$f
|
|
21944
21935
|
},
|
|
21945
21936
|
{
|
|
21946
21937
|
path: "/userStars",
|
|
21947
21938
|
name: "userStars",
|
|
21948
|
-
component: _sfc_main$
|
|
21939
|
+
component: _sfc_main$f
|
|
21949
21940
|
},
|
|
21950
21941
|
{
|
|
21951
21942
|
path: "/setting",
|
|
21952
21943
|
name: "setting",
|
|
21953
|
-
component: _sfc_main$
|
|
21944
|
+
component: _sfc_main$f
|
|
21954
21945
|
},
|
|
21955
21946
|
{
|
|
21956
21947
|
path: "/login",
|
|
21957
21948
|
name: "/login",
|
|
21958
|
-
component: _sfc_main$
|
|
21949
|
+
component: _sfc_main$e
|
|
21959
21950
|
}
|
|
21960
21951
|
];
|
|
21961
21952
|
const router = createRouter({
|
|
@@ -22615,8 +22606,8 @@ function useModel(props, emits) {
|
|
|
22615
22606
|
vModels
|
|
22616
22607
|
};
|
|
22617
22608
|
}
|
|
22618
|
-
const _hoisted_1$
|
|
22619
|
-
const _sfc_main$
|
|
22609
|
+
const _hoisted_1$b = { class: "g-input-button-append__text" };
|
|
22610
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
22620
22611
|
__name: "inputButton",
|
|
22621
22612
|
props: {
|
|
22622
22613
|
modelValue: {},
|
|
@@ -22724,7 +22715,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
22724
22715
|
DisabledBtn.value || !_ctx.hasMobile ? "g-input-button-append-inactive" : "g-input-button-append-active"
|
|
22725
22716
|
])
|
|
22726
22717
|
}, [
|
|
22727
|
-
createElementVNode("span", _hoisted_1$
|
|
22718
|
+
createElementVNode("span", _hoisted_1$b, toDisplayString$1(BtnText.value), 1)
|
|
22728
22719
|
], 2)
|
|
22729
22720
|
]),
|
|
22730
22721
|
_: 1
|
|
@@ -22733,12 +22724,12 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
22733
22724
|
};
|
|
22734
22725
|
}
|
|
22735
22726
|
});
|
|
22736
|
-
const _hoisted_1$
|
|
22737
|
-
const _hoisted_2$
|
|
22738
|
-
const _hoisted_3$
|
|
22739
|
-
const _hoisted_4$
|
|
22727
|
+
const _hoisted_1$a = { class: "g-input-select" };
|
|
22728
|
+
const _hoisted_2$8 = { class: "login-phone" };
|
|
22729
|
+
const _hoisted_3$8 = { class: "g-input-select__option-row" };
|
|
22730
|
+
const _hoisted_4$6 = { class: "g-input-select__item-row" };
|
|
22740
22731
|
const _hoisted_5$3 = { class: "g-input-select__option-row" };
|
|
22741
|
-
const _sfc_main$
|
|
22732
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
22742
22733
|
__name: "inputSelect",
|
|
22743
22734
|
props: {
|
|
22744
22735
|
modelValue: {},
|
|
@@ -22816,8 +22807,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
22816
22807
|
}
|
|
22817
22808
|
});
|
|
22818
22809
|
return (_ctx, _cache) => {
|
|
22819
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22820
|
-
createElementVNode("div", _hoisted_2$
|
|
22810
|
+
return openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
22811
|
+
createElementVNode("div", _hoisted_2$8, [
|
|
22821
22812
|
(props == null ? void 0 : props.editableSelect) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
22822
22813
|
createVNode(unref(Select), {
|
|
22823
22814
|
class: "login-country-select",
|
|
@@ -22834,7 +22825,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
22834
22825
|
value: item.value
|
|
22835
22826
|
}, {
|
|
22836
22827
|
default: withCtx(() => [
|
|
22837
|
-
createElementVNode("div", _hoisted_3$
|
|
22828
|
+
createElementVNode("div", _hoisted_3$8, [
|
|
22838
22829
|
createElementVNode("span", null, toDisplayString$1(item.name), 1),
|
|
22839
22830
|
createElementVNode("span", null, toDisplayString$1(item.label), 1)
|
|
22840
22831
|
])
|
|
@@ -22858,7 +22849,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
22858
22849
|
class: "login-phone-select"
|
|
22859
22850
|
}), {
|
|
22860
22851
|
item: withCtx((slotProps) => [
|
|
22861
|
-
createElementVNode("div", _hoisted_4$
|
|
22852
|
+
createElementVNode("div", _hoisted_4$6, [
|
|
22862
22853
|
createElementVNode("div", null, toDisplayString$1(slotProps.option.label), 1),
|
|
22863
22854
|
createVNode(GIcon, {
|
|
22864
22855
|
name: "gt-line-delete",
|
|
@@ -22938,7 +22929,7 @@ function useNoSpaceInput(getter, setter) {
|
|
|
22938
22929
|
handleKeydown
|
|
22939
22930
|
};
|
|
22940
22931
|
}
|
|
22941
|
-
const _sfc_main$
|
|
22932
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
22942
22933
|
__name: "index",
|
|
22943
22934
|
props: {
|
|
22944
22935
|
DataList: {},
|
|
@@ -23193,7 +23184,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
23193
23184
|
autocomplete: autocompleteCalc((_a = formItem.props) == null ? void 0 : _a.autocomplete),
|
|
23194
23185
|
autofocus: formItem.key === "username",
|
|
23195
23186
|
spellcheck: false
|
|
23196
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange", "onKeydown", "autocomplete", "autofocus"])) : formItem.type === "inputButton" ? (openBlock(), createBlock(_sfc_main$
|
|
23187
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange", "onKeydown", "autocomplete", "autofocus"])) : formItem.type === "inputButton" ? (openBlock(), createBlock(_sfc_main$d, mergeProps({
|
|
23197
23188
|
key: 1,
|
|
23198
23189
|
modelValue: Data[formItem.key],
|
|
23199
23190
|
"onUpdate:modelValue": ($event) => Data[formItem.key] = $event,
|
|
@@ -23206,7 +23197,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
23206
23197
|
text: unref($t)("gitCodeLayout.userSetting.account.getVerificationCode"),
|
|
23207
23198
|
error: _ctx.errors.msgError,
|
|
23208
23199
|
autocomplete: autocompleteCalc((_c = formItem.props) == null ? void 0 : _c.autocomplete)
|
|
23209
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "onChange", "onClick", "onUpdate:countdown", "placeholder", "hasMobile", "text", "error", "autocomplete"])) : formItem.type === "inputSelect" ? (openBlock(), createBlock(_sfc_main$
|
|
23200
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "onChange", "onClick", "onUpdate:countdown", "placeholder", "hasMobile", "text", "error", "autocomplete"])) : formItem.type === "inputSelect" ? (openBlock(), createBlock(_sfc_main$c, mergeProps({
|
|
23210
23201
|
key: 2,
|
|
23211
23202
|
country: Data.country,
|
|
23212
23203
|
class: _ctx.formErrors["mobile"] ? "input-select-error" : "",
|
|
@@ -23239,13 +23230,13 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
23239
23230
|
}
|
|
23240
23231
|
});
|
|
23241
23232
|
const recentLoginImg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAoCAYAAAAIeF9DAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAfgSURBVHgB7ZtLbFRlFMfPnU4LhbaMgAJCdJpYImwoK7vgMSwkGDckQgwrARduJNREE4nykhhJMKGNblxIuzOEElcGAptiWeCKuoFIMYykCEoLpQ9eZWY8v9v52tvbOzP33mlLDPefTDtzn993/uf8z/nO3LGkDNxIphJPRVIxyW7MipXUTY0xySVyIgl5gWCJDOTESuu80yK532MS62xId3ZKCFgSAj3JVConuYOW5BpfNOMHQFrN21kp1uH6dGfa70mBCPkjmdqqJBxXL0hKhACw2v0S44sQlabkqOTalIiURAiLtNrv8Mp0V3uxg2JSAn8mN+x9JtnLERllI6n+33YtueF4sYOKRkhPcsNBzRGHJMI0w+pWCdukEjbg3lMwQiIyZhK5Rk0BP3vt8SQkImM2kEt5ydcUySJnZERaJMKsICu5T95Md43bexIhVFMk8GhtMasYqJRYvcknkyQLXYvImHUkRiV70HwYJ+RaMrWTZCP/E8TqaiQsyjl3htBMG4o38YltuYN+z56z+g1J7NouQTB4+ow8utQ9aVvliqWy7Ievpb+1TUbOXZy0D6NV5A0X1+M4Nr6c/8tkXlOjvS29/n0Z7b0z5V5Lju3zHMOj3y7LnFUN9vh7d+y1t720e7vEamvsMRTC/LfXSc3m9eIX/3z2jQTFU8k2679DNiHXk+u3ZgO0QzBW3bYtcv/EKckODpc8flHzLnl46fKU7RjzyZXr8qqSwiQGO86O70vs2mafZ8B9Mvri+KFzXWrcbvuzFyDLDUjMDA7J8PkuSezeJvM3r5MqJXfx/o+lv6UwGaBiQY3nNd2owmn0FYYQTeZ4yBghOYl9wN+gwCh+CCkGBj966/a4VztJeagR9a/ux/B+70MkDbSdmhRxRAGEPGjrsJ0AR8IJAGTca22339e9t0UJuzjlXozJOa5CWLh35yQnCogETds42qVJZauEwMK9u8omBNxraZfK5ctsSXLDS5KKoVYjd5GOi2siQxBEFECCuRYE1KoE4YIDShLAkBg089EXU+QTIHOlcg9yWg4ykmmM659UyC683NHB+zFYw40LJY8JE+ZegAic5OX9e2z5IDIYY9+R78ePYT85ZMVPrfaL3IaM3T3ynScZgIjyI1vlwUrF9YullIQEk5lJzFWvLHUPigW3nAyc6FAXs+zIABBQ33VyyrnG4yHDncPcuKEFRCmUKVmUvGs0h1hrguYPPCrtY4BOeCVgEmuFQwa4rok4jMU5zghEfqrV44fPTei8+7ocQ3Rw7RFN/v0qT8hNsblAOjkM2XRWW85Kzw9idbXjY3DOO4CsJ5SQnO+FIEmv3LBlcEa3a7ScrG5aa79nEnc+1QTfO+alGAIynFLG/SGkT6WlULlL9ce+vx25gMqsGPD+hc1j3k0OuqVyxjXclZ5fJB3RONhxRudw1O+pibhmj6Tf+Ihp+UfiqlHvY5JOo+CFGHW4gAYbOD3aOVC3pHCfx1d6JAhYZzy52mNLD8R4yZQXhjWS7mqOGdLzFqh8mXkNnT5rV5KFsFQdYLT3th2FThBZJiqeBSxK4kFaJWgzmNd0Uh4o8wzYAP2s2/bOtCVnCMZQQeDMASz2MAyJuhiQN5NL7OT/1UTyN8SweB3S+d7PR7YTHONe8L72y49KxG2N0i8lIAbiEhKvHNgjix3hbDSfKEkW8EzWFbfyK+RiMCXmk6vXpRwwnlLrB0rkYsDgLCYXH9hj54ipOaZ20mcIrgy5ONR8ng5NCBEycn5Cnsb0fa09AbySid5898Px/eg7XuMHtGW8PC8oKvIdhWLw09eilEaibYnSRSyybCKL4oG5Uu0RSWyjpC6Vt7yg3ZK/QhOSGxxxbZlYy+CVDJIEzHtTHfXvaCt53cr82sGr1RIUGKdQXysoKBBuXhlzsNdVkog+8gM5BNIpCkbyuSjoYtZALdgdmhAGMbdpojlMH8cUByQ0QhsvwsvxHL8eX5WXq3uuRBkUnG8kr9Bij6YhfSo/bRFAg5FciTpwfYgZqwSP2qVz1eoGKQc8YFfyqZNC6NMeEPnAvBgkMDU4BQChTYJjW7HcgRdTTtNzgrTefNlZLshFyIzXOgTSyYPVb5X+xoHoxuCQgaOx6neuLRgrY2Yb+bNUXiqANE87BiIEvWRVy2ToBWFIXhgdY2J43gOzqDIaXd3kPXGiiDKadQPg/EILqUGt6nrqN/omy2g/93CD8RLRxSLREMGLY8mJptJ0gzGxH8KQL4gplb8mw+rkbyDJmqfeNFcT92OdZMZuhw/ZxqP+Z5FHyDIoPATiOIbPEAlxNCOd/SIKAdO2YBvRseTY5/ZkMKSTGNN+B06iAWSyn3Mpvb1QqJ/mrgid3d/q/PcuzkWmqQDNy90pwAlYzxBNXh3sQsiIdZj/1rXkhuB9dw+YdQgELFePGtFSEW8yRiV6OAZdN14GUUiGs/EHMAQTp/vrLCs9J6LX78uvNTivssxOAo5gKiRDutMxcKIl3+4b316somIs/qLZal+ZvmDr3LQREiE00hmJbVqVf+43dFKPMF3IHV7leAg7IuT5otX98HVEyHOD1b0y/Wuze2tEyHOB/UOeTV57Qq/UI4SGytSF5kI7owiZJfA7RJ7j9ZIpJ6IImR20xiV2qMHj9yBuRITMEMYiQlqrJNZS74MIg4iQacCY8a0B1X9tZ2e1R1PRHfZn0f8BoszztTsf3m0AAAAASUVORK5CYII=";
|
|
23242
|
-
const _hoisted_1$
|
|
23243
|
-
const _hoisted_2$
|
|
23244
|
-
const _hoisted_3$
|
|
23245
|
-
const _hoisted_4$
|
|
23233
|
+
const _hoisted_1$9 = { class: "auth-container" };
|
|
23234
|
+
const _hoisted_2$7 = { class: "tips" };
|
|
23235
|
+
const _hoisted_3$7 = { class: "icons" };
|
|
23236
|
+
const _hoisted_4$5 = ["src", "alt", "onClick"];
|
|
23246
23237
|
const _hoisted_5$2 = { class: "recent-login-img" };
|
|
23247
23238
|
const _hoisted_6$2 = ["src"];
|
|
23248
|
-
const _sfc_main$
|
|
23239
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
23249
23240
|
__name: "auth",
|
|
23250
23241
|
props: {
|
|
23251
23242
|
logos: {},
|
|
@@ -23266,9 +23257,9 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
23266
23257
|
return loginMethodList.includes(props.recentLoginType);
|
|
23267
23258
|
};
|
|
23268
23259
|
return (_ctx, _cache) => {
|
|
23269
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23270
|
-
createElementVNode("div", _hoisted_2$
|
|
23271
|
-
createElementVNode("div", _hoisted_3$
|
|
23260
|
+
return openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
23261
|
+
createElementVNode("div", _hoisted_2$7, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.otherLogin")), 1),
|
|
23262
|
+
createElementVNode("div", _hoisted_3$7, [
|
|
23272
23263
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.logos, (icon) => {
|
|
23273
23264
|
return openBlock(), createElementBlock("div", {
|
|
23274
23265
|
key: icon.alt,
|
|
@@ -23285,7 +23276,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
23285
23276
|
src: icon.src,
|
|
23286
23277
|
alt: icon.alt,
|
|
23287
23278
|
onClick: withModifiers(($event) => handleClick(icon), ["stop"])
|
|
23288
|
-
}, null, 8, _hoisted_4$
|
|
23279
|
+
}, null, 8, _hoisted_4$5)
|
|
23289
23280
|
]),
|
|
23290
23281
|
_: 2
|
|
23291
23282
|
}, 1032, ["content", "disabled"]),
|
|
@@ -23303,7 +23294,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
23303
23294
|
};
|
|
23304
23295
|
}
|
|
23305
23296
|
});
|
|
23306
|
-
const GAuth = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
23297
|
+
const GAuth = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
23307
23298
|
const LOGIN_DECLARE_KEY = "g-login-declare-status";
|
|
23308
23299
|
const useDeclareStatus = () => {
|
|
23309
23300
|
const declareNotClicked = ref({
|
|
@@ -23345,11 +23336,11 @@ const useDeclareStatus = () => {
|
|
|
23345
23336
|
resetDeclareStatus
|
|
23346
23337
|
};
|
|
23347
23338
|
};
|
|
23348
|
-
const _hoisted_1$
|
|
23349
|
-
const _hoisted_2$
|
|
23350
|
-
const _hoisted_3$
|
|
23351
|
-
const _hoisted_4$
|
|
23352
|
-
const _sfc_main$
|
|
23339
|
+
const _hoisted_1$8 = { class: "agreement" };
|
|
23340
|
+
const _hoisted_2$6 = { class: "agreement__placeholder" };
|
|
23341
|
+
const _hoisted_3$6 = { class: "agreement__placeholder" };
|
|
23342
|
+
const _hoisted_4$4 = { class: "agreement__placeholder" };
|
|
23343
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
23353
23344
|
__name: "agreement",
|
|
23354
23345
|
props: {
|
|
23355
23346
|
modelValue: { type: Boolean },
|
|
@@ -23373,19 +23364,19 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
23373
23364
|
}
|
|
23374
23365
|
});
|
|
23375
23366
|
return (_ctx, _cache) => {
|
|
23376
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23367
|
+
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
23377
23368
|
createVNode(unref(Checkbox), {
|
|
23378
23369
|
"model-value": _ctx.modelValue,
|
|
23379
23370
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = (val) => emits("update:modelValue", val)),
|
|
23380
23371
|
size: "sm"
|
|
23381
23372
|
}, {
|
|
23382
23373
|
default: withCtx(() => [
|
|
23383
|
-
createElementVNode("span", _hoisted_2$
|
|
23374
|
+
createElementVNode("span", _hoisted_2$6, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.agree")), 1),
|
|
23384
23375
|
createElementVNode("span", {
|
|
23385
23376
|
class: normalizeClass(["agreement__link", unref(declareNotClicked)["agreement"] ? "badge-dot-item" : ""]),
|
|
23386
23377
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleClick("agreement"), ["stop"]))
|
|
23387
23378
|
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.agreement")), 3),
|
|
23388
|
-
createElementVNode("span", _hoisted_3$
|
|
23379
|
+
createElementVNode("span", _hoisted_3$6, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.and")), 1),
|
|
23389
23380
|
createElementVNode("span", {
|
|
23390
23381
|
class: normalizeClass(["agreement__link", unref(declareNotClicked)["privacy"] ? "badge-dot-item" : ""]),
|
|
23391
23382
|
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleClick("privacy"), ["stop"]))
|
|
@@ -23399,7 +23390,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
23399
23390
|
size: "sm"
|
|
23400
23391
|
}, {
|
|
23401
23392
|
default: withCtx(() => [
|
|
23402
|
-
createElementVNode("span", _hoisted_4$
|
|
23393
|
+
createElementVNode("span", _hoisted_4$4, [
|
|
23403
23394
|
createTextVNode(toDisplayString$1(dataShareName.value) + " ", 1),
|
|
23404
23395
|
createElementVNode("span", {
|
|
23405
23396
|
class: "agreement__link",
|
|
@@ -23413,11 +23404,11 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
23413
23404
|
};
|
|
23414
23405
|
}
|
|
23415
23406
|
});
|
|
23416
|
-
const GAgreement = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
23417
|
-
const _hoisted_1$
|
|
23418
|
-
const _hoisted_2$
|
|
23419
|
-
const _hoisted_3$
|
|
23420
|
-
const _sfc_main$
|
|
23407
|
+
const GAgreement = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
23408
|
+
const _hoisted_1$7 = { class: "agreements__hint" };
|
|
23409
|
+
const _hoisted_2$5 = { class: "agreements__hint-plain" };
|
|
23410
|
+
const _hoisted_3$5 = { class: "agreements__hint" };
|
|
23411
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
23421
23412
|
__name: "agreements",
|
|
23422
23413
|
props: {
|
|
23423
23414
|
modelValue: { type: Boolean },
|
|
@@ -23449,12 +23440,12 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
23449
23440
|
class: "agree-module agreements"
|
|
23450
23441
|
}, {
|
|
23451
23442
|
default: withCtx(() => [
|
|
23452
|
-
createElementVNode("span", _hoisted_1$
|
|
23443
|
+
createElementVNode("span", _hoisted_1$7, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.readAgree")), 1),
|
|
23453
23444
|
createElementVNode("a", {
|
|
23454
23445
|
class: normalizeClass(["agreements__link", unref(declareNotClicked)["agreement"] ? "badge-dot-item" : ""]),
|
|
23455
23446
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleClick("agreement"), ["stop"]))
|
|
23456
23447
|
}, toDisplayString$1("《" + unref($t)("gitCodeLayout.LoginModal.link.agreement") + "》"), 3),
|
|
23457
|
-
createElementVNode("span", _hoisted_2$
|
|
23448
|
+
createElementVNode("span", _hoisted_2$5, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.and")), 1),
|
|
23458
23449
|
createElementVNode("a", {
|
|
23459
23450
|
class: normalizeClass(["agreements__link", unref(declareNotClicked)["privacy"] ? "badge-dot-item" : ""]),
|
|
23460
23451
|
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleClick("privacy"), ["stop"]))
|
|
@@ -23470,7 +23461,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
23470
23461
|
class: "agreements__data-share"
|
|
23471
23462
|
}, {
|
|
23472
23463
|
default: withCtx(() => [
|
|
23473
|
-
createElementVNode("span", _hoisted_3$
|
|
23464
|
+
createElementVNode("span", _hoisted_3$5, toDisplayString$1(dataShareName.value), 1),
|
|
23474
23465
|
createElementVNode("span", {
|
|
23475
23466
|
class: "agreements__data-link",
|
|
23476
23467
|
onClick: _cache[3] || (_cache[3] = withModifiers(($event) => handleClick("dataShare"), ["stop"]))
|
|
@@ -23482,14 +23473,14 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
23482
23473
|
};
|
|
23483
23474
|
}
|
|
23484
23475
|
});
|
|
23485
|
-
const _hoisted_1$
|
|
23486
|
-
const _hoisted_2$
|
|
23487
|
-
const _hoisted_3$
|
|
23488
|
-
const _hoisted_4$
|
|
23476
|
+
const _hoisted_1$6 = { class: "g-title" };
|
|
23477
|
+
const _hoisted_2$4 = { class: "back-img" };
|
|
23478
|
+
const _hoisted_3$4 = ["src"];
|
|
23479
|
+
const _hoisted_4$3 = {
|
|
23489
23480
|
key: 0,
|
|
23490
23481
|
class: "g-title__text"
|
|
23491
23482
|
};
|
|
23492
|
-
const _sfc_main$
|
|
23483
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
23493
23484
|
__name: "title",
|
|
23494
23485
|
props: {
|
|
23495
23486
|
title: {},
|
|
@@ -23504,21 +23495,21 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23504
23495
|
emits("back");
|
|
23505
23496
|
};
|
|
23506
23497
|
return (_ctx, _cache) => {
|
|
23507
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23508
|
-
createElementVNode("div", _hoisted_2$
|
|
23498
|
+
return openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
23499
|
+
createElementVNode("div", _hoisted_2$4, [
|
|
23509
23500
|
_ctx.showBack ? (openBlock(), createElementBlock("img", {
|
|
23510
23501
|
key: 0,
|
|
23511
23502
|
src: _ctx.icon,
|
|
23512
23503
|
class: "g-title__back-img",
|
|
23513
23504
|
onClick: withModifiers(handleClick, ["stop"])
|
|
23514
|
-
}, null, 8, _hoisted_3$
|
|
23505
|
+
}, null, 8, _hoisted_3$4)) : createCommentVNode("", true)
|
|
23515
23506
|
]),
|
|
23516
|
-
_ctx.showTitle ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
23507
|
+
_ctx.showTitle ? (openBlock(), createElementBlock("span", _hoisted_4$3, toDisplayString$1(_ctx.title), 1)) : createCommentVNode("", true)
|
|
23517
23508
|
]);
|
|
23518
23509
|
};
|
|
23519
23510
|
}
|
|
23520
23511
|
});
|
|
23521
|
-
const GTitle = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
23512
|
+
const GTitle = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
23522
23513
|
const FindFileName = (path) => {
|
|
23523
23514
|
var _a;
|
|
23524
23515
|
const isName = /.*\/.*\/(.*\..*)/;
|
|
@@ -25834,10 +25825,10 @@ const getFormRules = () => ({
|
|
|
25834
25825
|
}
|
|
25835
25826
|
]
|
|
25836
25827
|
});
|
|
25837
|
-
const _hoisted_1$
|
|
25838
|
-
const _hoisted_2$
|
|
25839
|
-
const _hoisted_3$
|
|
25840
|
-
const _sfc_main$
|
|
25828
|
+
const _hoisted_1$5 = { class: "modal-body" };
|
|
25829
|
+
const _hoisted_2$3 = { class: "login-check-modal-text" };
|
|
25830
|
+
const _hoisted_3$3 = { class: "login-check-modal-footer" };
|
|
25831
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
25841
25832
|
__name: "loginCheckModal",
|
|
25842
25833
|
props: /* @__PURE__ */ mergeModels({
|
|
25843
25834
|
dataShareChecked: { type: Boolean }
|
|
@@ -25879,7 +25870,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
25879
25870
|
title: unref($t)("gitCodeLayout.LoginModal.subtitle.useAgrAndPriPolTip")
|
|
25880
25871
|
}, {
|
|
25881
25872
|
footer: withCtx(() => [
|
|
25882
|
-
createElementVNode("div", _hoisted_3$
|
|
25873
|
+
createElementVNode("div", _hoisted_3$3, [
|
|
25883
25874
|
createVNode(unref(Button), {
|
|
25884
25875
|
class: "login-check-modal-footer__btn-cancel",
|
|
25885
25876
|
onClick: close
|
|
@@ -25903,7 +25894,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
25903
25894
|
])
|
|
25904
25895
|
]),
|
|
25905
25896
|
default: withCtx(() => [
|
|
25906
|
-
createElementVNode("div", _hoisted_1$
|
|
25897
|
+
createElementVNode("div", _hoisted_1$5, [
|
|
25907
25898
|
createElementVNode("div", null, [
|
|
25908
25899
|
createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.youNeeToAgr")) + " ", 1),
|
|
25909
25900
|
createElementVNode("span", {
|
|
@@ -25927,7 +25918,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
25927
25918
|
class: "login-check-modal-data-share"
|
|
25928
25919
|
}, {
|
|
25929
25920
|
default: withCtx(() => [
|
|
25930
|
-
createElementVNode("span", _hoisted_2$
|
|
25921
|
+
createElementVNode("span", _hoisted_2$3, toDisplayString$1(dataShareName.value), 1),
|
|
25931
25922
|
createElementVNode("span", {
|
|
25932
25923
|
class: "login-check-modal-link login-check-modal-link--sm",
|
|
25933
25924
|
onClick: _cache[2] || (_cache[2] = withModifiers(($event) => handleClick("dataShare"), ["stop"]))
|
|
@@ -25942,10 +25933,10 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
25942
25933
|
};
|
|
25943
25934
|
}
|
|
25944
25935
|
});
|
|
25945
|
-
const _hoisted_1$
|
|
25946
|
-
const _hoisted_2$
|
|
25947
|
-
const _hoisted_3$
|
|
25948
|
-
const _hoisted_4$
|
|
25936
|
+
const _hoisted_1$4 = { class: "mfa" };
|
|
25937
|
+
const _hoisted_2$2 = ["src"];
|
|
25938
|
+
const _hoisted_3$2 = { class: "mfa__title" };
|
|
25939
|
+
const _hoisted_4$2 = { class: "mfa__desc" };
|
|
25949
25940
|
const _hoisted_5$1 = {
|
|
25950
25941
|
key: 0,
|
|
25951
25942
|
class: "input-list"
|
|
@@ -25969,7 +25960,7 @@ const _hoisted_9$1 = {
|
|
|
25969
25960
|
const _hoisted_10$1 = { class: "mfa__action" };
|
|
25970
25961
|
const _hoisted_11$1 = { class: "mfa__footer" };
|
|
25971
25962
|
const _hoisted_12$1 = { class: "mfa__back" };
|
|
25972
|
-
const _sfc_main$
|
|
25963
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
25973
25964
|
__name: "MFA",
|
|
25974
25965
|
props: {
|
|
25975
25966
|
mask: {},
|
|
@@ -26119,14 +26110,14 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
26119
26110
|
focusInput();
|
|
26120
26111
|
});
|
|
26121
26112
|
return (_ctx, _cache) => {
|
|
26122
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
26113
|
+
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
26123
26114
|
createElementVNode("img", {
|
|
26124
26115
|
class: "mfa__logo",
|
|
26125
26116
|
src: currentLogo.value,
|
|
26126
26117
|
alt: ""
|
|
26127
|
-
}, null, 8, _hoisted_2$
|
|
26128
|
-
createElementVNode("p", _hoisted_3$
|
|
26129
|
-
createElementVNode("p", _hoisted_4$
|
|
26118
|
+
}, null, 8, _hoisted_2$2),
|
|
26119
|
+
createElementVNode("p", _hoisted_3$2, toDisplayString$1(modeTitle.value), 1),
|
|
26120
|
+
createElementVNode("p", _hoisted_4$2, toDisplayString$1(unref(t2)("gitCodeLayout.LoginModal.mfatip5")), 1),
|
|
26130
26121
|
mode.value === "code" ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
26131
26122
|
(openBlock(true), createElementBlock(Fragment, null, renderList(inputList.value, (item, index2) => {
|
|
26132
26123
|
return openBlock(), createElementBlock("div", {
|
|
@@ -26199,7 +26190,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
26199
26190
|
};
|
|
26200
26191
|
}
|
|
26201
26192
|
});
|
|
26202
|
-
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
26193
|
+
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
26203
26194
|
const _SlidCaptchaManager = class _SlidCaptchaManager {
|
|
26204
26195
|
// eslint-disable-next-line no-useless-constructor
|
|
26205
26196
|
constructor() {
|
|
@@ -26387,7 +26378,7 @@ const _SlidCaptchaManager = class _SlidCaptchaManager {
|
|
|
26387
26378
|
__publicField(_SlidCaptchaManager, "instance");
|
|
26388
26379
|
let SlidCaptchaManager = _SlidCaptchaManager;
|
|
26389
26380
|
const slidCaptchaManager = SlidCaptchaManager.getInstance();
|
|
26390
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
26381
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-DIQGBKan.js"));
|
|
26391
26382
|
const useSlidCaptcha = () => {
|
|
26392
26383
|
const { mount, unMount, isMounted } = usePopup("slid-captcha-popup");
|
|
26393
26384
|
const open = (config) => {
|
|
@@ -26417,7 +26408,7 @@ const useSlidCaptcha = () => {
|
|
|
26417
26408
|
close
|
|
26418
26409
|
};
|
|
26419
26410
|
};
|
|
26420
|
-
const YunpianCaptcha = defineAsyncComponent(() => import("./index-
|
|
26411
|
+
const YunpianCaptcha = defineAsyncComponent(() => import("./index-BfbWU9zk.js"));
|
|
26421
26412
|
const useYunpianCaptcha = () => {
|
|
26422
26413
|
const { mount, unMount } = usePopup("yunpian-captcha-popup");
|
|
26423
26414
|
const open = (config) => {
|
|
@@ -26808,10 +26799,10 @@ const useYiDunCaptcha = () => {
|
|
|
26808
26799
|
close
|
|
26809
26800
|
};
|
|
26810
26801
|
};
|
|
26811
|
-
const _sfc_main$
|
|
26812
|
-
const _hoisted_1$
|
|
26802
|
+
const _sfc_main$4 = {};
|
|
26803
|
+
const _hoisted_1$3 = { class: "content-loading" };
|
|
26813
26804
|
function _sfc_render(_ctx, _cache) {
|
|
26814
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
26805
|
+
return openBlock(), createElementBlock("div", _hoisted_1$3, _cache[0] || (_cache[0] = [
|
|
26815
26806
|
createElementVNode("div", { class: "content-loading-title" }, [
|
|
26816
26807
|
createElementVNode("div", { class: "content-loading__row" }, [
|
|
26817
26808
|
createElementVNode("img", {
|
|
@@ -26824,8 +26815,8 @@ function _sfc_render(_ctx, _cache) {
|
|
|
26824
26815
|
], -1)
|
|
26825
26816
|
]));
|
|
26826
26817
|
}
|
|
26827
|
-
const ContentLoading = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
26828
|
-
const _sfc_main$
|
|
26818
|
+
const ContentLoading = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render], ["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
26819
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
26829
26820
|
__name: "index",
|
|
26830
26821
|
props: {
|
|
26831
26822
|
loading: { type: Boolean },
|
|
@@ -26856,7 +26847,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
26856
26847
|
};
|
|
26857
26848
|
}
|
|
26858
26849
|
});
|
|
26859
|
-
const DataPanel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
26850
|
+
const DataPanel = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
26860
26851
|
function useVisibilityPoll(pollFunction, options = {}, shouldPoll) {
|
|
26861
26852
|
const { interval = 1e4, immediate = true } = options;
|
|
26862
26853
|
const timer = ref(null);
|
|
@@ -26912,16 +26903,16 @@ function useVisibilityPoll(pollFunction, options = {}, shouldPoll) {
|
|
|
26912
26903
|
stopPoll
|
|
26913
26904
|
};
|
|
26914
26905
|
}
|
|
26915
|
-
const _hoisted_1$
|
|
26906
|
+
const _hoisted_1$2 = {
|
|
26916
26907
|
key: 0,
|
|
26917
26908
|
class: "login-modal-header"
|
|
26918
26909
|
};
|
|
26919
|
-
const _hoisted_2 = { class: "devui-icon__container devui-icon--operable devui-icon--no-slots login-modal-header__close-wrap" };
|
|
26920
|
-
const _hoisted_3 = {
|
|
26910
|
+
const _hoisted_2$1 = { class: "devui-icon__container devui-icon--operable devui-icon--no-slots login-modal-header__close-wrap" };
|
|
26911
|
+
const _hoisted_3$1 = {
|
|
26921
26912
|
key: 0,
|
|
26922
26913
|
class: "login-modal-content-left login-modal-content-left-register"
|
|
26923
26914
|
};
|
|
26924
|
-
const _hoisted_4 = { class: "login-modal-content-left-register-logo" };
|
|
26915
|
+
const _hoisted_4$1 = { class: "login-modal-content-left-register-logo" };
|
|
26925
26916
|
const _hoisted_5 = ["src"];
|
|
26926
26917
|
const _hoisted_6 = { class: "login-modal-logo-desc" };
|
|
26927
26918
|
const _hoisted_7 = { class: "login-modal-history" };
|
|
@@ -27011,7 +27002,7 @@ const _hoisted_69 = { key: 3 };
|
|
|
27011
27002
|
const _hoisted_70 = { class: "login-modal-error login-modal-error--register" };
|
|
27012
27003
|
const _hoisted_71 = { class: "login-modal-error__text" };
|
|
27013
27004
|
const _hoisted_72 = { class: "absolute-btn" };
|
|
27014
|
-
const _sfc_main$
|
|
27005
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
27015
27006
|
...{
|
|
27016
27007
|
name: "GLoginModal"
|
|
27017
27008
|
},
|
|
@@ -28686,7 +28677,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
28686
28677
|
onClose: onModalClose
|
|
28687
28678
|
}, {
|
|
28688
28679
|
header: withCtx(() => [
|
|
28689
|
-
!mfaCheck.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
28680
|
+
!mfaCheck.value ? (openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
28690
28681
|
createVNode(GTitle, {
|
|
28691
28682
|
icon: unref(IconB) || "",
|
|
28692
28683
|
title: FormConfig.value.title || "",
|
|
@@ -28695,7 +28686,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
28695
28686
|
"show-back": FormConfig.value.showBack,
|
|
28696
28687
|
class: "login-modal-title"
|
|
28697
28688
|
}, null, 8, ["icon", "title", "show-title", "show-back"]),
|
|
28698
|
-
createElementVNode("div", _hoisted_2, [
|
|
28689
|
+
createElementVNode("div", _hoisted_2$1, [
|
|
28699
28690
|
_ctx.showClose && !showProtoCheck.value ? (openBlock(), createBlock(GIcon, {
|
|
28700
28691
|
key: 0,
|
|
28701
28692
|
onClick: onClickModalClose,
|
|
@@ -28719,8 +28710,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
28719
28710
|
key: 1,
|
|
28720
28711
|
class: normalizeClass(["login-modal-content", { "login-modal-content--forget": formType.value === "forget" }])
|
|
28721
28712
|
}, [
|
|
28722
|
-
["register", "login", "bindPhone", "bindPhoneConflict"].includes(formType.value) ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
28723
|
-
createElementVNode("div", _hoisted_4, [
|
|
28713
|
+
["register", "login", "bindPhone", "bindPhoneConflict"].includes(formType.value) ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
|
|
28714
|
+
createElementVNode("div", _hoisted_4$1, [
|
|
28724
28715
|
createElementVNode("img", {
|
|
28725
28716
|
src: isAIHub.value ? AiLogoType[unref(currentTheme)] : logoType[unref(currentTheme)],
|
|
28726
28717
|
alt: "gitcode-logo",
|
|
@@ -28964,7 +28955,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
28964
28955
|
]),
|
|
28965
28956
|
_: 1
|
|
28966
28957
|
}, 8, ["loading"])) : createCommentVNode("", true),
|
|
28967
|
-
formType.value !== "bindPhoneConflict" ? (openBlock(), createBlock(unref(_sfc_main$
|
|
28958
|
+
formType.value !== "bindPhoneConflict" ? (openBlock(), createBlock(unref(_sfc_main$b), {
|
|
28968
28959
|
ref_key: "FormRef",
|
|
28969
28960
|
ref: FormRef,
|
|
28970
28961
|
key: formType.value === "forget" ? `${formType.value}-${forgetVerificationType.value}` : formType.value,
|
|
@@ -29079,7 +29070,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
29079
29070
|
createElementVNode("div", {
|
|
29080
29071
|
class: normalizeClass(["register-agree", [AgreementWarn.value ? "shaking-box" : ""]])
|
|
29081
29072
|
}, [
|
|
29082
|
-
createVNode(_sfc_main$
|
|
29073
|
+
createVNode(_sfc_main$8, {
|
|
29083
29074
|
modelValue: status.value,
|
|
29084
29075
|
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => status.value = $event),
|
|
29085
29076
|
dataShareChecked: dataShareChecked.value,
|
|
@@ -29136,7 +29127,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
29136
29127
|
}),
|
|
29137
29128
|
_: 3
|
|
29138
29129
|
}, 8, ["modelValue", "lock-scroll", "draggable", "escapable", "append-to-body", "class"]),
|
|
29139
|
-
showProtoCheck.value ? (openBlock(), createBlock(_sfc_main$
|
|
29130
|
+
showProtoCheck.value ? (openBlock(), createBlock(_sfc_main$6, {
|
|
29140
29131
|
key: 0,
|
|
29141
29132
|
visible: showProtoCheck.value,
|
|
29142
29133
|
"onUpdate:visible": _cache[19] || (_cache[19] = ($event) => showProtoCheck.value = $event),
|
|
@@ -29149,7 +29140,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
29149
29140
|
};
|
|
29150
29141
|
}
|
|
29151
29142
|
});
|
|
29152
|
-
const LoginModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
29143
|
+
const LoginModal = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
29153
29144
|
const { t } = i18n.global;
|
|
29154
29145
|
function useLogin(request, globalStore) {
|
|
29155
29146
|
const successMsg = t("gitCodeLayout.common.tips.welcome");
|
|
@@ -29253,8 +29244,8 @@ function useLogin(request, globalStore) {
|
|
|
29253
29244
|
isMounted
|
|
29254
29245
|
};
|
|
29255
29246
|
}
|
|
29256
|
-
const _hoisted_1 = { style: { "display": "none" } };
|
|
29257
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
29247
|
+
const _hoisted_1$1 = { style: { "display": "none" } };
|
|
29248
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
29258
29249
|
...{
|
|
29259
29250
|
name: "Login"
|
|
29260
29251
|
},
|
|
@@ -29373,10 +29364,93 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
29373
29364
|
offEvent("logout");
|
|
29374
29365
|
});
|
|
29375
29366
|
return (_ctx, _cache) => {
|
|
29376
|
-
return openBlock(), createElementBlock("div", _hoisted_1);
|
|
29367
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1);
|
|
29368
|
+
};
|
|
29369
|
+
}
|
|
29370
|
+
});
|
|
29371
|
+
const _hoisted_1 = { class: "g-header-skeleton__left" };
|
|
29372
|
+
const _hoisted_2 = { class: "g-header-skeleton__search-avatar" };
|
|
29373
|
+
const _hoisted_3 = { class: "g-header-skeleton__right" };
|
|
29374
|
+
const _hoisted_4 = {
|
|
29375
|
+
key: 0,
|
|
29376
|
+
class: "g-header-skeleton__body"
|
|
29377
|
+
};
|
|
29378
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
29379
|
+
...{
|
|
29380
|
+
name: "HeaderSkeleton"
|
|
29381
|
+
},
|
|
29382
|
+
__name: "HeaderSkeleton",
|
|
29383
|
+
props: {
|
|
29384
|
+
withBody: { type: Boolean, default: false },
|
|
29385
|
+
isLogin: { type: Boolean, default: true },
|
|
29386
|
+
position: { default: "sticky" },
|
|
29387
|
+
top: { default: 0 },
|
|
29388
|
+
zIndex: { default: 21 },
|
|
29389
|
+
height: { default: void 0 }
|
|
29390
|
+
},
|
|
29391
|
+
setup(__props) {
|
|
29392
|
+
const props = __props;
|
|
29393
|
+
const containerStyle = computed(() => {
|
|
29394
|
+
const style = {
|
|
29395
|
+
position: props.position,
|
|
29396
|
+
zIndex: props.zIndex
|
|
29397
|
+
};
|
|
29398
|
+
if (props.position === "sticky" || props.position === "fixed") {
|
|
29399
|
+
style.top = typeof props.top === "number" ? `${props.top}px` : props.top;
|
|
29400
|
+
}
|
|
29401
|
+
return style;
|
|
29402
|
+
});
|
|
29403
|
+
const toolbarStyle = computed(() => {
|
|
29404
|
+
if (!props.height) return {};
|
|
29405
|
+
const h2 = typeof props.height === "number" ? `${props.height}px` : props.height;
|
|
29406
|
+
return {
|
|
29407
|
+
height: h2,
|
|
29408
|
+
minHeight: h2,
|
|
29409
|
+
flexBasis: h2
|
|
29410
|
+
};
|
|
29411
|
+
});
|
|
29412
|
+
return (_ctx, _cache) => {
|
|
29413
|
+
return openBlock(), createElementBlock("div", {
|
|
29414
|
+
class: normalizeClass(["g-header-skeleton", [`g-header-skeleton--${_ctx.position}`]]),
|
|
29415
|
+
style: normalizeStyle(containerStyle.value),
|
|
29416
|
+
"aria-hidden": "true"
|
|
29417
|
+
}, [
|
|
29418
|
+
createElementVNode("div", {
|
|
29419
|
+
class: "g-header-skeleton__toolbar",
|
|
29420
|
+
style: normalizeStyle(toolbarStyle.value)
|
|
29421
|
+
}, [
|
|
29422
|
+
createElementVNode("div", _hoisted_1, [
|
|
29423
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "g-header-skeleton__block g-header-skeleton__hamburger" }, null, -1)),
|
|
29424
|
+
_cache[1] || (_cache[1] = createElementVNode("span", { class: "g-header-skeleton__block g-header-skeleton__logo" }, null, -1)),
|
|
29425
|
+
renderSlot(_ctx.$slots, "headerCustom", {}, void 0, true)
|
|
29426
|
+
]),
|
|
29427
|
+
createElementVNode("div", _hoisted_2, [
|
|
29428
|
+
renderSlot(_ctx.$slots, "search", {}, () => [
|
|
29429
|
+
_cache[2] || (_cache[2] = createElementVNode("span", { class: "g-header-skeleton__block g-header-skeleton__search" }, null, -1))
|
|
29430
|
+
], true)
|
|
29431
|
+
]),
|
|
29432
|
+
createElementVNode("div", _hoisted_3, [
|
|
29433
|
+
_ctx.isLogin ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
29434
|
+
_cache[3] || (_cache[3] = createStaticVNode('<span class="g-header-skeleton__block g-header-skeleton__atomcode" data-v-vue-layout-gitcode></span><span class="g-header-skeleton__block g-header-skeleton__discover" data-v-vue-layout-gitcode></span><span class="g-header-skeleton__block g-header-skeleton__workbench" data-v-vue-layout-gitcode></span><span class="g-header-skeleton__divider" data-v-vue-layout-gitcode></span><span class="g-header-skeleton__block g-header-skeleton__create-btn" data-v-vue-layout-gitcode></span><span class="g-header-skeleton__block g-header-skeleton__notice-btn" data-v-vue-layout-gitcode></span><span class="g-header-skeleton__block g-header-skeleton__avatar" data-v-vue-layout-gitcode></span>', 7))
|
|
29435
|
+
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
29436
|
+
_cache[4] || (_cache[4] = createElementVNode("span", { class: "g-header-skeleton__divider g-header-skeleton__divider--unlogin" }, null, -1)),
|
|
29437
|
+
_cache[5] || (_cache[5] = createElementVNode("span", { class: "g-header-skeleton__block g-header-skeleton__login-btn" }, null, -1)),
|
|
29438
|
+
_cache[6] || (_cache[6] = createElementVNode("span", { class: "g-header-skeleton__block g-header-skeleton__register-btn" }, null, -1))
|
|
29439
|
+
], 64)),
|
|
29440
|
+
renderSlot(_ctx.$slots, "rightExtra", {}, void 0, true)
|
|
29441
|
+
])
|
|
29442
|
+
], 4),
|
|
29443
|
+
_ctx.withBody ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
29444
|
+
renderSlot(_ctx.$slots, "body", {}, () => [
|
|
29445
|
+
_cache[7] || (_cache[7] = createStaticVNode('<div class="g-header-skeleton__body-left" data-v-vue-layout-gitcode><span class="g-header-skeleton__block g-header-skeleton__tab" data-v-vue-layout-gitcode></span><span class="g-header-skeleton__block g-header-skeleton__tab" data-v-vue-layout-gitcode></span><span class="g-header-skeleton__block g-header-skeleton__tab" data-v-vue-layout-gitcode></span><span class="g-header-skeleton__block g-header-skeleton__tab" data-v-vue-layout-gitcode></span></div>', 1))
|
|
29446
|
+
], true)
|
|
29447
|
+
])) : createCommentVNode("", true),
|
|
29448
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
29449
|
+
], 6);
|
|
29377
29450
|
};
|
|
29378
29451
|
}
|
|
29379
29452
|
});
|
|
29453
|
+
const HeaderSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
29380
29454
|
const GitCodeLayoutEmitter = emitter;
|
|
29381
29455
|
const index = {
|
|
29382
29456
|
install: (app) => {
|
|
@@ -29385,6 +29459,7 @@ const index = {
|
|
|
29385
29459
|
app.component("GitCodeAsideV2", GitCodeAsideV2);
|
|
29386
29460
|
app.component("ScrollActiveContainer", ScrollActiveContainer);
|
|
29387
29461
|
app.component("GitCodeHeader", GitCodeHeader);
|
|
29462
|
+
app.component("HeaderSkeleton", HeaderSkeleton);
|
|
29388
29463
|
app.component("HomeHeaderActions", HomeHeaderActions);
|
|
29389
29464
|
app.component("AtomCodeLauncher", AtomCodeLauncher);
|
|
29390
29465
|
app.component("HeaderCreateMenu", HeaderCreateMenu);
|
|
@@ -29392,7 +29467,7 @@ const index = {
|
|
|
29392
29467
|
}
|
|
29393
29468
|
};
|
|
29394
29469
|
export {
|
|
29395
|
-
|
|
29470
|
+
AtomCodeLauncher as $,
|
|
29396
29471
|
isZh as A,
|
|
29397
29472
|
ThemeType as B,
|
|
29398
29473
|
currentTheme as C,
|
|
@@ -29406,10 +29481,10 @@ export {
|
|
|
29406
29481
|
navigateWithMigrationGuard as K,
|
|
29407
29482
|
LANG_ZH as L,
|
|
29408
29483
|
asideRequest as M,
|
|
29409
|
-
_sfc_main$
|
|
29484
|
+
_sfc_main$N as N,
|
|
29410
29485
|
loadAsideData as O,
|
|
29411
29486
|
ToolsFloat as P,
|
|
29412
|
-
_sfc_main as Q,
|
|
29487
|
+
_sfc_main$1 as Q,
|
|
29413
29488
|
REPO_MODULE as R,
|
|
29414
29489
|
SceneValue as S,
|
|
29415
29490
|
TOPIC_TYPE as T,
|
|
@@ -29417,19 +29492,20 @@ export {
|
|
|
29417
29492
|
GitCodeAsideV2 as V,
|
|
29418
29493
|
ScrollActiveContainer as W,
|
|
29419
29494
|
GitCodeHeader as X,
|
|
29420
|
-
|
|
29421
|
-
|
|
29495
|
+
HeaderSkeleton as Y,
|
|
29496
|
+
HomeHeaderActions as Z,
|
|
29422
29497
|
_export_sfc as _,
|
|
29423
29498
|
i18n as a,
|
|
29424
|
-
|
|
29425
|
-
|
|
29426
|
-
|
|
29427
|
-
|
|
29428
|
-
|
|
29429
|
-
|
|
29430
|
-
|
|
29431
|
-
|
|
29432
|
-
|
|
29499
|
+
HeaderCreateMenu as a0,
|
|
29500
|
+
EnterpriseHeader as a1,
|
|
29501
|
+
SiteAnnouncement as a2,
|
|
29502
|
+
AsideFooterTools as a3,
|
|
29503
|
+
useLogin as a4,
|
|
29504
|
+
setLayoutConfig as a5,
|
|
29505
|
+
GitCodeLayoutEmitter as a6,
|
|
29506
|
+
setTheme as a7,
|
|
29507
|
+
HEADER_CREATE_MENU_PATHS as a8,
|
|
29508
|
+
index as a9,
|
|
29433
29509
|
REPO_EVENT as b,
|
|
29434
29510
|
REPO_TYPE as c,
|
|
29435
29511
|
transferNumber as d,
|
|
@@ -29443,7 +29519,7 @@ export {
|
|
|
29443
29519
|
localStorage$2 as l,
|
|
29444
29520
|
isGstarRepo as m,
|
|
29445
29521
|
normalizeSearchHistoryEntry as n,
|
|
29446
|
-
_sfc_main$
|
|
29522
|
+
_sfc_main$M as o,
|
|
29447
29523
|
isIncubationRepo as p,
|
|
29448
29524
|
highlightWords as q,
|
|
29449
29525
|
reqCatch as r,
|