vue-layout-gitcode 1.12.37 → 1.12.39
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-CbyaXQ9_.js → GloabarSearch-DDO1PY6e.js} +2 -2
- package/{MenuItem-CpNGRzXl.js → MenuItem-9_YDnl-1.js} +1 -1
- package/{ProjectMenuList-i-DG-Lp_.js → ProjectMenuList-CiTAu8At.js} +2 -2
- package/{ProjectMenuListV2-BWAcoaLB.js → ProjectMenuListV2-DKkAdHEv.js} +2 -2
- package/{ProjectSearch-BF6NwnUD.js → ProjectSearch-_5GDmfzm.js} +28 -7
- package/{SearchHistoryList-HPLScuap.js → SearchHistoryList-CLdymHCy.js} +1 -1
- package/{SearchRecommed-CfoABOec.js → SearchRecommed-DYCQOIyY.js} +2 -2
- package/{SearchScopeList-MDfy39Wg.js → SearchScopeList-Bm2E0v-n.js} +1 -1
- package/{UserSearch-B3OpNc8B.js → UserSearch-CfD2dGF1.js} +1 -1
- package/{index-BsMZ1sa2.js → index-DeMKkL5I.js} +1 -1
- package/{index-BOa97Aot.js → index-DopYJtUq.js} +1248 -1303
- package/{index-CDZJ6srp.js → index-agRGDsKS.js} +1 -1
- package/index.d.ts +6 -0
- package/index.js +14 -13
- package/{notice-wiD3_kEI.js → notice-DdOHHuSY.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/{transWebUrl-BjEWcV7K.js → transWebUrl-CFXr9rT4.js} +1 -1
- package/{useReportRepo-C61yRVsW.js → useReportRepo-DtcAFWsp.js} +2 -2
|
@@ -1,28 +1,26 @@
|
|
|
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 {
|
|
5
|
-
import { Button } from "vue-devui-lal/button";
|
|
6
|
-
import { Popover } from "vue-devui-lal/popover";
|
|
7
|
-
import { Tooltip } from "vue-devui-lal/tooltip";
|
|
8
|
-
import { Textarea } from "vue-devui-lal/textarea";
|
|
9
|
-
import "vue-devui-lal/button/style.css";
|
|
10
|
-
import "vue-devui-lal/popover/style.css";
|
|
11
|
-
import "vue-devui-lal/tooltip/style.css";
|
|
12
|
-
import "vue-devui-lal/textarea/style.css";
|
|
13
|
-
import { Icon } from "vue-devui-lal/icon";
|
|
14
|
-
import "vue-devui-lal/icon/style.css";
|
|
4
|
+
import { reactive, readonly, inject, effectScope, ref, shallowRef, computed, watch, isRef, defineComponent, getCurrentInstance, h, Fragment, onBeforeMount, onMounted, onUnmounted, createVNode, Text, provide, createElementBlock, openBlock, createCommentVNode, Transition, withCtx, unref, normalizeClass, createElementVNode, toDisplayString as toDisplayString$1, createStaticVNode, withModifiers, createBlock, normalizeProps, mergeProps, renderSlot, normalizeStyle, resolveComponent, watchEffect, renderList, createTextVNode, nextTick, resolveDirective, withDirectives, onBeforeUnmount, guardReactiveProps, markRaw, resolveDynamicComponent, useAttrs, defineAsyncComponent, vShow, withKeys, useCssVars, createSlots, render, toRaw, mergeModels, useModel as useModel$1, watchPostEffect, useSlots } from "vue";
|
|
15
5
|
import axios from "axios";
|
|
16
6
|
import { useRouter, useRoute, createRouter, createWebHistory, createMemoryHistory } from "vue-router";
|
|
7
|
+
import { Icon } from "vue-devui-lal/icon";
|
|
8
|
+
import "vue-devui-lal/icon/style.css";
|
|
9
|
+
import { Button } from "vue-devui-lal/button";
|
|
17
10
|
import { useWindowSize, useMutationObserver, useResizeObserver, useInfiniteScroll, useEventListener, useElementSize, useStorage, useDebounceFn } from "@vueuse/core";
|
|
18
11
|
import { Avatar } from "vue-devui-lal/avatar";
|
|
19
12
|
import "vue-devui-lal/avatar/style.css";
|
|
13
|
+
import { Tooltip } from "vue-devui-lal/tooltip";
|
|
14
|
+
import "vue-devui-lal/tooltip/style.css";
|
|
20
15
|
import "lodash/last";
|
|
21
16
|
import cloneDeep from "lodash/cloneDeep";
|
|
22
17
|
import dayjs from "dayjs";
|
|
23
18
|
import isDate$1 from "lodash/isDate";
|
|
24
19
|
import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";
|
|
20
|
+
import "vue-devui-lal/button/style.css";
|
|
25
21
|
import "vue-devui-lal/skeleton/style.css";
|
|
22
|
+
import { Dropdown } from "vue-devui-lal/dropdown";
|
|
23
|
+
import "vue-devui-lal/dropdown/style.css";
|
|
26
24
|
import debounce from "lodash/debounce";
|
|
27
25
|
import { Badge } from "vue-devui-lal/badge";
|
|
28
26
|
import "vue-devui-lal/badge/style.css";
|
|
@@ -30,8 +28,6 @@ import { Tabs, Tab } from "vue-devui-lal/tabs";
|
|
|
30
28
|
import "vue-devui-lal/tabs/style.css";
|
|
31
29
|
import "vue-devui-lal/loading/style.css";
|
|
32
30
|
import { LoadingDirective } from "vue-devui-lal/loading";
|
|
33
|
-
import { Dropdown } from "vue-devui-lal/dropdown";
|
|
34
|
-
import "vue-devui-lal/dropdown/style.css";
|
|
35
31
|
import { Drawer } from "vue-devui-lal/drawer";
|
|
36
32
|
import "vue-devui-lal/drawer/style.css";
|
|
37
33
|
import { Input } from "vue-devui-lal/input";
|
|
@@ -57,61 +53,6 @@ import { Checkbox } from "vue-devui-lal/checkbox";
|
|
|
57
53
|
import "vue-devui-lal/checkbox/style.css";
|
|
58
54
|
import { Modal } from "vue-devui-lal/modal";
|
|
59
55
|
import "vue-devui-lal/modal/style.css";
|
|
60
|
-
const _hoisted_1$I = ["xlink:href"];
|
|
61
|
-
const _hoisted_2$w = ["xlink:href"];
|
|
62
|
-
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
63
|
-
__name: "index",
|
|
64
|
-
props: {
|
|
65
|
-
name: { default: "gt-run" },
|
|
66
|
-
size: { default: "16px" },
|
|
67
|
-
color: { default: "var(--theme-icon-fill-weak)" },
|
|
68
|
-
rotate: { default: "0deg" },
|
|
69
|
-
operable: { type: Boolean, default: false },
|
|
70
|
-
disabled: { type: Boolean, default: false },
|
|
71
|
-
iconClass: {}
|
|
72
|
-
},
|
|
73
|
-
setup(__props) {
|
|
74
|
-
const props = __props;
|
|
75
|
-
const fontSize = computed(() => {
|
|
76
|
-
return /px$/i.test(props.size) ? props.size : `${props.size}px`;
|
|
77
|
-
});
|
|
78
|
-
return (_ctx, _cache) => {
|
|
79
|
-
return !_ctx.name.includes("gt-") ? (openBlock(), createBlock(unref(Icon), normalizeProps(mergeProps({ key: 0 }, props)), null, 16)) : _ctx.operable ? (openBlock(), createElementBlock("span", {
|
|
80
|
-
key: 1,
|
|
81
|
-
class: normalizeClass(["custom-icon-container", { disabled: _ctx.disabled }])
|
|
82
|
-
}, [
|
|
83
|
-
renderSlot(_ctx.$slots, "prefix", {}, void 0, true),
|
|
84
|
-
(openBlock(), createElementBlock("svg", {
|
|
85
|
-
class: normalizeClass(["icon gt-icon", _ctx.iconClass]),
|
|
86
|
-
"aria-hidden": "true",
|
|
87
|
-
style: normalizeStyle({ color: _ctx.color, fontSize: fontSize.value, transform: `rotate(${_ctx.rotate})` })
|
|
88
|
-
}, [
|
|
89
|
-
createElementVNode("use", {
|
|
90
|
-
"xlink:href": `#${_ctx.name}`
|
|
91
|
-
}, null, 8, _hoisted_1$I)
|
|
92
|
-
], 6)),
|
|
93
|
-
renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
|
|
94
|
-
], 2)) : (openBlock(), createElementBlock("svg", {
|
|
95
|
-
key: 2,
|
|
96
|
-
class: normalizeClass(["icon gt-icon", _ctx.iconClass]),
|
|
97
|
-
"aria-hidden": "true",
|
|
98
|
-
style: normalizeStyle(_ctx.iconClass ? {} : { color: _ctx.color, fontSize: fontSize.value, transform: `rotate(${_ctx.rotate})` })
|
|
99
|
-
}, [
|
|
100
|
-
createElementVNode("use", {
|
|
101
|
-
"xlink:href": `#${_ctx.name}`
|
|
102
|
-
}, null, 8, _hoisted_2$w)
|
|
103
|
-
], 6));
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
const _export_sfc = (sfc, props) => {
|
|
108
|
-
const target = sfc.__vccOpts || sfc;
|
|
109
|
-
for (const [key, val] of props) {
|
|
110
|
-
target[key] = val;
|
|
111
|
-
}
|
|
112
|
-
return target;
|
|
113
|
-
};
|
|
114
|
-
const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
115
56
|
const defaultConfig = {
|
|
116
57
|
VITE_ENV: "production",
|
|
117
58
|
VITE_HOST: "https://gitcode.com",
|
|
@@ -408,9 +349,10 @@ function udeskInit(config = {}, open = false) {
|
|
|
408
349
|
const userInfo = localStorage$2.getItem("userInfo") || "";
|
|
409
350
|
const cPhone = userInfo ? (_a = JSON.parse(userInfo)) == null ? void 0 : _a.mobile : "";
|
|
410
351
|
const cName = userInfo ? (_b = JSON.parse(userInfo)) == null ? void 0 : _b.username : "";
|
|
352
|
+
const cToken = cPhone ? cName + "_" + cPhone : "";
|
|
411
353
|
const cEmail = userInfo ? (_c = JSON.parse(userInfo)) == null ? void 0 : _c.email : "";
|
|
412
354
|
const imUserKey = "d7f63a098fcee3937b1534fa179861da";
|
|
413
|
-
const strSign = `nonce=${randomNum}×tamp=${nowTimeStr}&web_token=${
|
|
355
|
+
const strSign = `nonce=${randomNum}×tamp=${nowTimeStr}&web_token=${cToken}&${imUserKey}`;
|
|
414
356
|
const strSignature = sha1$1(strSign);
|
|
415
357
|
if (userInfo || open) {
|
|
416
358
|
(function(a, h2, c, b, f, g) {
|
|
@@ -434,7 +376,7 @@ function udeskInit(config = {}, open = false) {
|
|
|
434
376
|
// 自定义客户信息
|
|
435
377
|
nonce: randomNum,
|
|
436
378
|
timestamp: nowTimeStr,
|
|
437
|
-
web_token:
|
|
379
|
+
web_token: cToken,
|
|
438
380
|
c_name: cName,
|
|
439
381
|
c_phone: cPhone,
|
|
440
382
|
c_email: cEmail,
|
|
@@ -823,7 +765,7 @@ function createDOMPurify() {
|
|
|
823
765
|
const {
|
|
824
766
|
DocumentFragment,
|
|
825
767
|
HTMLTemplateElement,
|
|
826
|
-
Node
|
|
768
|
+
Node,
|
|
827
769
|
Element,
|
|
828
770
|
NodeFilter,
|
|
829
771
|
NamedNodeMap = window2.NamedNodeMap || window2.MozNamedAttrMap,
|
|
@@ -1224,7 +1166,7 @@ function createDOMPurify() {
|
|
|
1224
1166
|
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");
|
|
1225
1167
|
};
|
|
1226
1168
|
const _isNode = function _isNode2(value) {
|
|
1227
|
-
return typeof
|
|
1169
|
+
return typeof Node === "function" && value instanceof Node;
|
|
1228
1170
|
};
|
|
1229
1171
|
function _executeHooks(hooks2, currentNode, data) {
|
|
1230
1172
|
arrayForEach(hooks2, (hook) => {
|
|
@@ -1483,7 +1425,7 @@ function createDOMPurify() {
|
|
|
1483
1425
|
throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
|
|
1484
1426
|
}
|
|
1485
1427
|
}
|
|
1486
|
-
} else if (dirty instanceof
|
|
1428
|
+
} else if (dirty instanceof Node) {
|
|
1487
1429
|
body = _initDocument("<!---->");
|
|
1488
1430
|
importedNode = body.ownerDocument.importNode(dirty, true);
|
|
1489
1431
|
if (importedNode.nodeType === NODE_TYPE.element && importedNode.nodeName === "BODY") {
|
|
@@ -7724,9 +7666,11 @@ const gitCodeLayout$1 = {
|
|
|
7724
7666
|
Tianqi: "天启",
|
|
7725
7667
|
topic: "热门主题",
|
|
7726
7668
|
discoverMore: "探索更多",
|
|
7727
|
-
atomCodeOfficial: "AtomCode 官网",
|
|
7728
7669
|
competition: "大赛平台",
|
|
7729
7670
|
aiCommunity: "AI社区",
|
|
7671
|
+
learnCenter: "学习中心",
|
|
7672
|
+
space: "Space",
|
|
7673
|
+
schoolParty: "校源行",
|
|
7730
7674
|
copyright_atomgit: {
|
|
7731
7675
|
slogon: "共创AtomGit,开发者的代码家园",
|
|
7732
7676
|
digest: "深圳开源共创科技有限公司版权所有",
|
|
@@ -7742,6 +7686,7 @@ const gitCodeLayout$1 = {
|
|
|
7742
7686
|
useAtomCode: "使用 AtomCode…",
|
|
7743
7687
|
openInWorkbench: "在工作台中打开",
|
|
7744
7688
|
contextHint: "由 Agent 协助处理当前任务",
|
|
7689
|
+
atomCodeOfficial: "AtomCode 官网",
|
|
7745
7690
|
downloadCli: "下载 AtomCode CLI"
|
|
7746
7691
|
},
|
|
7747
7692
|
header: {
|
|
@@ -7757,6 +7702,7 @@ const gitCodeLayout$1 = {
|
|
|
7757
7702
|
createMenuSpace: "新建Space",
|
|
7758
7703
|
createMenuCollection: "新建合集",
|
|
7759
7704
|
createMenuOrganization: "新建组织",
|
|
7705
|
+
createMenuEnterprise: "新建企业",
|
|
7760
7706
|
home: "首页",
|
|
7761
7707
|
login: "登录",
|
|
7762
7708
|
register: "注册",
|
|
@@ -8052,6 +7998,11 @@ const gitCodeLayout$1 = {
|
|
|
8052
7998
|
receive: "领福利",
|
|
8053
7999
|
invite: "邀请"
|
|
8054
8000
|
},
|
|
8001
|
+
toolsFloat: {
|
|
8002
|
+
backToTop: "回到顶部",
|
|
8003
|
+
collapse: "收起",
|
|
8004
|
+
expand: "展开"
|
|
8005
|
+
},
|
|
8055
8006
|
notice: {
|
|
8056
8007
|
msg: {
|
|
8057
8008
|
type: "消息类型",
|
|
@@ -8142,9 +8093,11 @@ const gitCodeLayout = {
|
|
|
8142
8093
|
Tianqi: "Tianqi",
|
|
8143
8094
|
topic: "Hot topics",
|
|
8144
8095
|
discoverMore: "Discover More",
|
|
8145
|
-
atomCodeOfficial: "AtomCode Website",
|
|
8146
8096
|
competition: "Competition",
|
|
8147
8097
|
aiCommunity: "AI Hub",
|
|
8098
|
+
learnCenter: "Learning Center",
|
|
8099
|
+
space: "Space",
|
|
8100
|
+
schoolParty: "School Party",
|
|
8148
8101
|
copyright_atomgit: {
|
|
8149
8102
|
slogon: "Co-create AtomGit, the Code Home for Developers",
|
|
8150
8103
|
digest: "ShenZhenKaiYuanGongChuang Technology Co., Ltd. All Rights Reserved",
|
|
@@ -8160,6 +8113,7 @@ const gitCodeLayout = {
|
|
|
8160
8113
|
useAtomCode: "Use AtomCode…",
|
|
8161
8114
|
openInWorkbench: "Open in Dashboard",
|
|
8162
8115
|
contextHint: "Assisted by Agent for current task",
|
|
8116
|
+
atomCodeOfficial: "AtomCode Website",
|
|
8163
8117
|
downloadCli: "Download AtomCode CLI"
|
|
8164
8118
|
},
|
|
8165
8119
|
header: {
|
|
@@ -8175,6 +8129,7 @@ const gitCodeLayout = {
|
|
|
8175
8129
|
createMenuSpace: "New Space",
|
|
8176
8130
|
createMenuCollection: "New collection",
|
|
8177
8131
|
createMenuOrganization: "New organization",
|
|
8132
|
+
createMenuEnterprise: "New enterprise",
|
|
8178
8133
|
home: "Home",
|
|
8179
8134
|
login: "Login",
|
|
8180
8135
|
register: "Register",
|
|
@@ -8470,6 +8425,11 @@ const gitCodeLayout = {
|
|
|
8470
8425
|
receive: "Benefits",
|
|
8471
8426
|
invite: "Invite"
|
|
8472
8427
|
},
|
|
8428
|
+
toolsFloat: {
|
|
8429
|
+
backToTop: "Back to Top",
|
|
8430
|
+
collapse: "Collapse",
|
|
8431
|
+
expand: "Expand"
|
|
8432
|
+
},
|
|
8473
8433
|
notice: {
|
|
8474
8434
|
msg: {
|
|
8475
8435
|
type: "Message Type",
|
|
@@ -9113,61 +9073,26 @@ const currentHelpDocsAiCommunityUrl = () => {
|
|
|
9113
9073
|
const baseUrl = isGitCodeHost() ? HELP_DOCS_URL_GITCODE + "/docs/help/home/ai-community/" : HELP_DOCS_URL_ATOMGIT + "/docs/help/home/ai-community/";
|
|
9114
9074
|
return appendLangPathToHelpDocsUrl(baseUrl);
|
|
9115
9075
|
};
|
|
9116
|
-
const _hoisted_1$
|
|
9117
|
-
const _hoisted_2$
|
|
9118
|
-
const _hoisted_3$
|
|
9119
|
-
const _hoisted_4$
|
|
9120
|
-
const _hoisted_5$i = { class: "home-nav-text" };
|
|
9121
|
-
const _hoisted_6$g = { class: "home-nav-tooltip-wrapper" };
|
|
9122
|
-
const _hoisted_7$c = { class: "home-nav-text" };
|
|
9123
|
-
const _hoisted_8$a = {
|
|
9124
|
-
key: 2,
|
|
9125
|
-
class: "tools-list"
|
|
9126
|
-
};
|
|
9127
|
-
const _hoisted_9$8 = { class: "home-nav-tooltip-wrapper" };
|
|
9128
|
-
const _hoisted_10$8 = { class: "home-nav-text" };
|
|
9129
|
-
const _hoisted_11$7 = { class: "tools-float-feedback-sub" };
|
|
9130
|
-
const _hoisted_12$6 = { class: "qrcode-wrapper" };
|
|
9131
|
-
const _hoisted_13$3 = { class: "qrcode-wrapper__title" };
|
|
9132
|
-
const _hoisted_14$3 = { class: "tools-list-item" };
|
|
9133
|
-
const _hoisted_15$3 = { class: "g-card tools-float-nps-card" };
|
|
9134
|
-
const _hoisted_16$3 = {
|
|
9076
|
+
const _hoisted_1$J = { class: "gitcode-tools-float-root home-nav-right" };
|
|
9077
|
+
const _hoisted_2$x = { class: "float-tooltip" };
|
|
9078
|
+
const _hoisted_3$v = { class: "float-tooltip-content" };
|
|
9079
|
+
const _hoisted_4$o = {
|
|
9135
9080
|
key: 0,
|
|
9136
|
-
class: "
|
|
9081
|
+
class: "tools-float-bar"
|
|
9137
9082
|
};
|
|
9138
|
-
const
|
|
9139
|
-
const
|
|
9140
|
-
const
|
|
9141
|
-
|
|
9142
|
-
|
|
9143
|
-
};
|
|
9144
|
-
const
|
|
9145
|
-
|
|
9146
|
-
|
|
9147
|
-
};
|
|
9148
|
-
const
|
|
9149
|
-
const
|
|
9150
|
-
|
|
9151
|
-
const _hoisted_24$2 = {
|
|
9152
|
-
key: 1,
|
|
9153
|
-
class: "Opinion tools-float-stage"
|
|
9154
|
-
};
|
|
9155
|
-
const _hoisted_25$2 = {
|
|
9156
|
-
key: 0,
|
|
9157
|
-
class: "tools-float-stage__corner"
|
|
9158
|
-
};
|
|
9159
|
-
const _hoisted_26$1 = { class: "tools-float-stage__title" };
|
|
9160
|
-
const _hoisted_27$1 = { class: "tools-float-stage__textarea" };
|
|
9161
|
-
const _hoisted_28$1 = {
|
|
9162
|
-
key: 1,
|
|
9163
|
-
class: "finish tools-float-finish"
|
|
9164
|
-
};
|
|
9165
|
-
const _hoisted_29$1 = { class: "tools-float-finish__icon" };
|
|
9166
|
-
const _hoisted_30$1 = { class: "tools-float-finish__text" };
|
|
9167
|
-
const _hoisted_31$1 = { class: "home-nav-item collapse-tool" };
|
|
9168
|
-
const _hoisted_32$1 = { class: "home-nav-item" };
|
|
9169
|
-
const _hoisted_33$1 = ["src", "alt"];
|
|
9170
|
-
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
9083
|
+
const _hoisted_5$j = { class: "float-tooltip" };
|
|
9084
|
+
const _hoisted_6$h = { class: "float-tooltip-content" };
|
|
9085
|
+
const _hoisted_7$e = { class: "float-tooltip" };
|
|
9086
|
+
const _hoisted_8$c = { class: "float-tooltip-content" };
|
|
9087
|
+
const _hoisted_9$b = { class: "float-tooltip" };
|
|
9088
|
+
const _hoisted_10$a = { class: "float-tooltip-content" };
|
|
9089
|
+
const _hoisted_11$8 = { class: "float-tooltip" };
|
|
9090
|
+
const _hoisted_12$8 = { class: "float-tooltip-content" };
|
|
9091
|
+
const _hoisted_13$5 = { class: "float-tooltip" };
|
|
9092
|
+
const _hoisted_14$3 = { class: "float-tooltip-content" };
|
|
9093
|
+
const _hoisted_15$3 = ["src", "alt"];
|
|
9094
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
9095
|
+
...{ name: "ToolsFloat" },
|
|
9171
9096
|
__name: "index",
|
|
9172
9097
|
props: {
|
|
9173
9098
|
sceneValue: { default: SceneValue.home },
|
|
@@ -9183,7 +9108,10 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
9183
9108
|
const layoutConfig2 = useLayoutConfig();
|
|
9184
9109
|
const { t: t2 } = i18n.global;
|
|
9185
9110
|
const props = __props;
|
|
9186
|
-
provide(
|
|
9111
|
+
provide(
|
|
9112
|
+
"globalStore",
|
|
9113
|
+
computed(() => props.globalStore)
|
|
9114
|
+
);
|
|
9187
9115
|
const { useReport: useReport2 } = useRequestReport(props.request, props.globalStore);
|
|
9188
9116
|
provide("useReport", useReport2);
|
|
9189
9117
|
const visibleItems = computed(() => {
|
|
@@ -9197,22 +9125,29 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
9197
9125
|
case SceneValue.aiRepo:
|
|
9198
9126
|
case SceneValue.blog:
|
|
9199
9127
|
case SceneValue.active:
|
|
9200
|
-
return [
|
|
9128
|
+
return [
|
|
9129
|
+
ToolsFloatDisplayItem.GROWTH_CENTER,
|
|
9130
|
+
ToolsFloatDisplayItem.ELSE,
|
|
9131
|
+
ToolsFloatDisplayItem.AD,
|
|
9132
|
+
ToolsFloatDisplayItem.INVITE
|
|
9133
|
+
];
|
|
9201
9134
|
case SceneValue.enterprise:
|
|
9202
9135
|
return [ToolsFloatDisplayItem.ELSE];
|
|
9203
9136
|
default:
|
|
9204
|
-
return [
|
|
9137
|
+
return [
|
|
9138
|
+
ToolsFloatDisplayItem.GROWTH_CENTER,
|
|
9139
|
+
ToolsFloatDisplayItem.ELSE,
|
|
9140
|
+
ToolsFloatDisplayItem.AD,
|
|
9141
|
+
ToolsFloatDisplayItem.INVITE
|
|
9142
|
+
];
|
|
9205
9143
|
}
|
|
9206
9144
|
});
|
|
9207
|
-
const inviteVisible = computed(() => {
|
|
9208
|
-
return toolsFloatCollapseStatus.value === TOOLS_FLOAT_COLLAPSE_STATUS.EXPAND;
|
|
9209
|
-
});
|
|
9210
9145
|
const isModuleVisible = (auth) => {
|
|
9211
|
-
|
|
9212
|
-
return visibleItems.value.includes(auth);
|
|
9213
|
-
}
|
|
9214
|
-
return visibleItems.value.includes(auth) && toolsFloatCollapseStatus.value === TOOLS_FLOAT_COLLAPSE_STATUS.EXPAND;
|
|
9146
|
+
return visibleItems.value.includes(auth);
|
|
9215
9147
|
};
|
|
9148
|
+
const growthCenterTooltip = computed(() => {
|
|
9149
|
+
return props.isCannWhiteList ? t2("gitCodeLayout.userSetting.menu.cannTask") : t2("gitCodeLayout.userSetting.menu.growthCenter");
|
|
9150
|
+
});
|
|
9216
9151
|
const emits = __emit;
|
|
9217
9152
|
const toggleGrowthCenter = () => {
|
|
9218
9153
|
if (!props.isLogin) {
|
|
@@ -9240,59 +9175,10 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
9240
9175
|
}
|
|
9241
9176
|
}
|
|
9242
9177
|
};
|
|
9243
|
-
const npsPopVisible = ref(true);
|
|
9244
|
-
const opinionStepList = [{ index: 0, offset_x: -30 }, { index: 1, offset_x: -80 }];
|
|
9245
|
-
const opinionStep = ref(0);
|
|
9246
|
-
const rateNow = ref(null);
|
|
9247
|
-
const rateActive = ref(null);
|
|
9248
|
-
const process2 = ref(true);
|
|
9249
|
-
const opinionText = ref("");
|
|
9250
|
-
const rateIcon = [
|
|
9251
|
-
{ name: "gt-nps-1", title: t2("gitCodeLayout.home.veryGood"), index: 0 },
|
|
9252
|
-
{ name: "gt-nps-2", title: t2("gitCodeLayout.home.good"), index: 1 },
|
|
9253
|
-
{ name: "gt-nps-3", title: t2("gitCodeLayout.home.generally"), index: 2 },
|
|
9254
|
-
{ name: "gt-nps-4", title: t2("gitCodeLayout.home.bad"), index: 3 },
|
|
9255
|
-
{ name: "gt-nps-5", title: t2("gitCodeLayout.home.veryBad"), index: 4 }
|
|
9256
|
-
];
|
|
9257
|
-
const store = localStorage$2.getItem("spmStatus");
|
|
9258
|
-
const status = store ? JSON.parse(store) : null;
|
|
9259
|
-
if (status !== null) {
|
|
9260
|
-
const { nps_global } = status;
|
|
9261
|
-
npsPopVisible.value = nps_global.expire && nps_global.expire < Date.now();
|
|
9262
|
-
}
|
|
9263
|
-
const swTab = (item) => {
|
|
9264
|
-
if (rateNow.value === null && item.index === 1) return;
|
|
9265
|
-
NPSOffsetOptions.crossAxis = item.offset_x;
|
|
9266
|
-
opinionStep.value = item.index;
|
|
9267
|
-
window.dispatchEvent(new Event("resize"));
|
|
9268
|
-
};
|
|
9269
|
-
const activeOp = (index2) => {
|
|
9270
|
-
rateActive.value = index2;
|
|
9271
|
-
};
|
|
9272
|
-
const selectOpinion = (item) => {
|
|
9273
|
-
rateNow.value = item.index;
|
|
9274
|
-
swTab(opinionStepList[1]);
|
|
9275
|
-
};
|
|
9276
|
-
const NPSOffsetOptions = reactive({ mainAxis: 10, crossAxis: -30 });
|
|
9277
|
-
const handleNpsSubmit = () => {
|
|
9278
|
-
useReport2(ToolsFloatReportEvent.NPS, {
|
|
9279
|
-
nps_score: rateNow.value + 1,
|
|
9280
|
-
nps_comment: opinionText.value
|
|
9281
|
-
});
|
|
9282
|
-
process2.value = false;
|
|
9283
|
-
NPSOffsetOptions.crossAxis = 0;
|
|
9284
|
-
window.dispatchEvent(new Event("resize"));
|
|
9285
|
-
const nextStatus = status || {};
|
|
9286
|
-
nextStatus.nps_global = { expire: Date.now() + 864e5 * 15 };
|
|
9287
|
-
localStorage$2.setItem("spmStatus", JSON.stringify(nextStatus));
|
|
9288
|
-
setTimeout(() => {
|
|
9289
|
-
npsPopVisible.value = false;
|
|
9290
|
-
}, 500);
|
|
9291
|
-
};
|
|
9292
9178
|
const activeAdJson = ref();
|
|
9293
9179
|
const activeAdItem = computed(() => {
|
|
9294
|
-
var _a;
|
|
9295
|
-
if (((_a = activeAdJson.value) == null ? void 0 : _a.adList.length) > 0) {
|
|
9180
|
+
var _a, _b;
|
|
9181
|
+
if (((_b = (_a = activeAdJson.value) == null ? void 0 : _a.adList) == null ? void 0 : _b.length) > 0) {
|
|
9296
9182
|
return activeAdJson.value.adList.filter((item) => item.showThis)[0];
|
|
9297
9183
|
}
|
|
9298
9184
|
return {};
|
|
@@ -9305,8 +9191,11 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
9305
9191
|
return false;
|
|
9306
9192
|
}
|
|
9307
9193
|
const adLink = layoutConfig2.VITE_AD_LINK + "?timestamp=" + (/* @__PURE__ */ new Date()).getTime();
|
|
9308
|
-
|
|
9309
|
-
|
|
9194
|
+
try {
|
|
9195
|
+
const response = await fetch(adLink);
|
|
9196
|
+
activeAdJson.value = await response.json();
|
|
9197
|
+
} catch (e) {
|
|
9198
|
+
}
|
|
9310
9199
|
};
|
|
9311
9200
|
fetchAdList();
|
|
9312
9201
|
const handleLogin = (type) => {
|
|
@@ -9343,24 +9232,28 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
9343
9232
|
}
|
|
9344
9233
|
};
|
|
9345
9234
|
const toolsFloatCollapseStatus = ref(TOOLS_FLOAT_COLLAPSE_STATUS.EXPAND);
|
|
9346
|
-
const
|
|
9347
|
-
|
|
9235
|
+
const isCollapsed = computed(() => toolsFloatCollapseStatus.value === TOOLS_FLOAT_COLLAPSE_STATUS.COLLAPSE);
|
|
9236
|
+
const handleCollapseTool = (status) => {
|
|
9237
|
+
toolsFloatCollapseStatus.value = status;
|
|
9348
9238
|
if (props.isRepoPage) {
|
|
9349
|
-
localStorage$2.setItem(TOOLS_FLOAT_COLLAPSE_STATUS_KEY_FOR_REPO,
|
|
9239
|
+
localStorage$2.setItem(TOOLS_FLOAT_COLLAPSE_STATUS_KEY_FOR_REPO, status);
|
|
9350
9240
|
} else {
|
|
9351
|
-
localStorage$2.setItem(TOOLS_FLOAT_COLLAPSE_STATUS_KEY,
|
|
9241
|
+
localStorage$2.setItem(TOOLS_FLOAT_COLLAPSE_STATUS_KEY, status);
|
|
9352
9242
|
localStorage$2.setItem(TOOLS_FLOAT_COLLAPSE_DATE_KEY, (/* @__PURE__ */ new Date()).toLocaleDateString("zh-CN"));
|
|
9353
9243
|
}
|
|
9354
9244
|
};
|
|
9355
9245
|
__expose({
|
|
9356
9246
|
handleCollapseTool
|
|
9357
9247
|
});
|
|
9358
|
-
watch(
|
|
9359
|
-
|
|
9360
|
-
|
|
9248
|
+
watch(
|
|
9249
|
+
() => props.isWhiteListRepo,
|
|
9250
|
+
() => {
|
|
9251
|
+
initToolsFloatCollapse();
|
|
9252
|
+
}
|
|
9253
|
+
);
|
|
9361
9254
|
const initToolsFloatCollapse = () => {
|
|
9362
9255
|
const statusForRepo = localStorage$2.getItem(TOOLS_FLOAT_COLLAPSE_STATUS_KEY_FOR_REPO);
|
|
9363
|
-
const
|
|
9256
|
+
const status = localStorage$2.getItem(TOOLS_FLOAT_COLLAPSE_STATUS_KEY);
|
|
9364
9257
|
const statusDate = localStorage$2.getItem(TOOLS_FLOAT_COLLAPSE_DATE_KEY);
|
|
9365
9258
|
if (props.isRepoPage) {
|
|
9366
9259
|
if (statusForRepo) {
|
|
@@ -9369,8 +9262,8 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
9369
9262
|
toolsFloatCollapseStatus.value = props.isWhiteListRepo ? TOOLS_FLOAT_COLLAPSE_STATUS.COLLAPSE : TOOLS_FLOAT_COLLAPSE_STATUS.EXPAND;
|
|
9370
9263
|
}
|
|
9371
9264
|
} else {
|
|
9372
|
-
if (
|
|
9373
|
-
toolsFloatCollapseStatus.value =
|
|
9265
|
+
if (status && statusDate === (/* @__PURE__ */ new Date()).toLocaleDateString("zh-CN")) {
|
|
9266
|
+
toolsFloatCollapseStatus.value = status;
|
|
9374
9267
|
} else {
|
|
9375
9268
|
toolsFloatCollapseStatus.value = TOOLS_FLOAT_COLLAPSE_STATUS.EXPAND;
|
|
9376
9269
|
localStorage$2.removeItem(TOOLS_FLOAT_COLLAPSE_STATUS_KEY);
|
|
@@ -9381,11 +9274,14 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
9381
9274
|
udeskInit();
|
|
9382
9275
|
}
|
|
9383
9276
|
};
|
|
9384
|
-
watch(
|
|
9385
|
-
|
|
9386
|
-
|
|
9277
|
+
watch(
|
|
9278
|
+
() => toolsFloatCollapseStatus.value,
|
|
9279
|
+
(val) => {
|
|
9280
|
+
if (val === TOOLS_FLOAT_COLLAPSE_STATUS.EXPAND && visibleItems.value.includes(ToolsFloatDisplayItem.ELSE)) {
|
|
9281
|
+
udeskInit();
|
|
9282
|
+
}
|
|
9387
9283
|
}
|
|
9388
|
-
|
|
9284
|
+
);
|
|
9389
9285
|
onMounted(() => {
|
|
9390
9286
|
window.addEventListener("scroll", handleScroll);
|
|
9391
9287
|
initToolsFloatCollapse();
|
|
@@ -9394,321 +9290,167 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
9394
9290
|
window.removeEventListener("scroll", handleScroll);
|
|
9395
9291
|
});
|
|
9396
9292
|
return (_ctx, _cache) => {
|
|
9397
|
-
return openBlock(), createElementBlock("div",
|
|
9398
|
-
|
|
9399
|
-
|
|
9400
|
-
|
|
9401
|
-
|
|
9402
|
-
|
|
9403
|
-
|
|
9404
|
-
|
|
9405
|
-
|
|
9406
|
-
|
|
9407
|
-
|
|
9408
|
-
|
|
9409
|
-
|
|
9410
|
-
|
|
9411
|
-
|
|
9412
|
-
|
|
9413
|
-
|
|
9414
|
-
|
|
9415
|
-
|
|
9416
|
-
|
|
9417
|
-
|
|
9418
|
-
|
|
9419
|
-
|
|
9420
|
-
|
|
9421
|
-
|
|
9422
|
-
|
|
9423
|
-
|
|
9424
|
-
|
|
9425
|
-
createElementVNode("div", _hoisted_2$v, [
|
|
9426
|
-
_cache[5] || (_cache[5] = createElementVNode("img", {
|
|
9427
|
-
class: "common-icon tools-float-icon",
|
|
9428
|
-
src: "https://cdn-static.gitcode.com/static/images/homeweb/invite.svg",
|
|
9429
|
-
alt: ""
|
|
9430
|
-
}, null, -1)),
|
|
9431
|
-
createElementVNode("div", _hoisted_3$u, toDisplayString$1(unref(t2)("gitCodeLayout.growthCenter.invite")), 1)
|
|
9293
|
+
return openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
9294
|
+
createVNode(Transition, { name: "tools-float-fade" }, {
|
|
9295
|
+
default: withCtx(() => [
|
|
9296
|
+
showScrollToTopBtn.value ? (openBlock(), createElementBlock("div", {
|
|
9297
|
+
key: 0,
|
|
9298
|
+
class: normalizeClass(["tools-float-topping-btn", { "is-collapsed": isCollapsed.value }]),
|
|
9299
|
+
onClick: _cache[0] || (_cache[0] = //@ts-ignore
|
|
9300
|
+
(...args) => unref(scrollToTop) && unref(scrollToTop)(...args))
|
|
9301
|
+
}, [
|
|
9302
|
+
_cache[4] || (_cache[4] = createElementVNode("div", { class: "tools-float-item__icon" }, [
|
|
9303
|
+
createElementVNode("svg", {
|
|
9304
|
+
width: "16",
|
|
9305
|
+
height: "16",
|
|
9306
|
+
viewBox: "0 0 16 16",
|
|
9307
|
+
fill: "currentColor",
|
|
9308
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
9309
|
+
}, [
|
|
9310
|
+
createElementVNode("path", {
|
|
9311
|
+
"fill-rule": "evenodd",
|
|
9312
|
+
"clip-rule": "evenodd",
|
|
9313
|
+
d: "M7.5 4.91421L2.35355 10.0607L1.64645 9.35355L8 3L14.3536 9.35355L13.6464 10.0607L8.5 4.91421L8.49999 15H7.49999L7.5 4.91421Z"
|
|
9314
|
+
}),
|
|
9315
|
+
createElementVNode("rect", {
|
|
9316
|
+
x: "2",
|
|
9317
|
+
y: "1",
|
|
9318
|
+
width: "12",
|
|
9319
|
+
height: "1"
|
|
9320
|
+
})
|
|
9432
9321
|
])
|
|
9322
|
+
], -1)),
|
|
9323
|
+
createElementVNode("div", _hoisted_2$x, [
|
|
9324
|
+
createElementVNode("span", _hoisted_3$v, toDisplayString$1(unref(t2)("gitCodeLayout.toolsFloat.backToTop")), 1),
|
|
9325
|
+
_cache[3] || (_cache[3] = createElementVNode("span", { class: "float-tooltip-arrow" }, null, -1))
|
|
9433
9326
|
])
|
|
9434
|
-
]),
|
|
9435
|
-
|
|
9436
|
-
|
|
9437
|
-
|
|
9327
|
+
], 2)) : createCommentVNode("", true)
|
|
9328
|
+
]),
|
|
9329
|
+
_: 1
|
|
9330
|
+
}),
|
|
9331
|
+
!isCollapsed.value ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
|
|
9332
|
+
isModuleVisible(unref(ToolsFloatDisplayItem).GROWTH_CENTER) ? (openBlock(), createElementBlock("div", {
|
|
9333
|
+
key: 0,
|
|
9334
|
+
id: "guide-step4",
|
|
9335
|
+
class: "tools-float-item",
|
|
9336
|
+
onClick: toggleGrowthCenter
|
|
9337
|
+
}, [
|
|
9338
|
+
_cache[6] || (_cache[6] = createStaticVNode('<div class="tools-float-item__icon" data-v-vue-layout-gitcode><svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg" data-v-vue-layout-gitcode><g transform="translate(1, 0.26)" data-v-vue-layout-gitcode><path d="M6.37369 9.73359H7.67369V12.7336H6.37371L6.37369 9.73359Z" data-v-vue-layout-gitcode></path><path d="M9.8064 4.18587L8.34306 5.28613L8.88219 7.02454C8.88219 7.03555 8.89319 7.05755 8.89319 7.06855C8.89319 7.12357 8.87118 7.16758 8.82717 7.20058C8.79416 7.22259 8.76116 7.23359 8.72815 7.23359C8.69514 7.23359 8.66213 7.22259 8.64013 7.20058L7.12177 6.17734L5.61441 7.22259C5.5594 7.2666 5.48238 7.2666 5.42737 7.22259C5.38336 7.17858 5.36135 7.13457 5.36135 7.07956C5.36135 7.05755 5.36135 7.04655 5.37235 7.02454L5.90048 5.28613L4.43713 4.18587C4.38212 4.14186 4.36011 4.06484 4.38212 3.99883C4.40413 3.93281 4.47014 3.8888 4.53616 3.8888L6.37359 3.85579L6.97873 2.12838C7.00074 2.06237 7.06676 2.01836 7.13277 2.01836C7.19879 2.01836 7.2648 2.06237 7.28681 2.12838L7.89195 3.85579L9.72939 3.8888C10.7954 3.8888 10.8614 3.93281 10.8834 3.99883C10.8834 4.06484 10.8614 4.14186 10.8064 4.18587Z" data-v-vue-layout-gitcode></path><path d="M2.32766 2.22724V3.17963C2.26417 3.16693 2.18798 3.15423 2.11179 3.15423C2.0229 3.15423 1.94671 3.15423 1.87052 3.17963C1.10861 3.3701 0.727662 4.48756 1.01973 5.60502C2.2483 6.50661 1.88322 7.19232 2.53084 7.33201C2.53084 7.30661 2.87369 8.24629 2.87369 8.2209C2.8229 8.23359 2.75941 8.23359 2.70861 8.23359C1.60385 8.23359 0.511789 7.25582 0.130837 5.83359C-0.300909 4.2082 0.372107 2.6082 1.61655 2.27804C1.78163 2.23994 1.94671 2.21455 2.11179 2.21455C2.17528 2.21455 2.25147 2.21455 2.32766 2.22724Z" data-v-vue-layout-gitcode></path><path d="M11.6769 2.24629V3.19867C11.7403 3.18597 11.8165 3.17328 11.8927 3.17328C11.9816 3.17328 12.0578 3.17328 13.134 3.19867C12.8959 3.38915 13.2769 4.50661 12.9848 5.62407C12.7562 6.52566 12.1213 7.21137 12.4737 7.35105C12.4737 7.32566 11.1308 8.26534 11.1308 8.23994C11.1816 8.25264 11.2451 8.25264 11.2959 8.25264C12.4007 8.25264 13.4927 7.27486 14.8737 5.85264C14.3054 4.22724 13.6324 2.62724 12.388 2.29709C12.2229 2.25899 12.0578 2.23359 11.8927 2.23359C11.8292 2.23359 11.753 2.23359 11.6769 2.24629Z" data-v-vue-layout-gitcode></path><path d="M7.00412 10.236C6.20909 10.236 5.41406 10.0373 4.7184 9.73913C3.12834 9.24225 2.23393 7.75155 2.23393 6.06211V0.695656C2.23393 0.298125 2.53206 0 2.92959 0H11.178C11.5755 0 11.8737 0.298125 11.8737 0.695656V6.06211C11.8737 7.65217 10.8799 9.14286 9.38921 9.73914C8.59418 10.1366 7.79915 10.236 7.00412 10.236ZM3.22771 0.993781V6.06211C3.22771 7.25466 3.92337 8.34783 5.11592 8.84472C6.40785 9.34161 7.79915 9.34161 8.9917 8.84472C10.0849 8.34783 10.8799 7.25466 10.8799 6.06211V0.993781H3.22771Z" data-v-vue-layout-gitcode></path><path fill-rule="evenodd" clip-rule="evenodd" d="M9.191 13.4781H4.88525L4.71859 14.4781H9.35766L9.191 13.4781ZM4.88525 12.4781H9.191C9.67984 12.4781 10.097 12.8315 10.1774 13.3137L10.3441 14.3137C10.4456 14.9233 9.9756 15.4781 9.35766 15.4781H4.71859C4.10065 15.4781 3.6306 14.9233 3.73219 14.3137L3.89886 13.3137C3.97922 12.8315 4.39641 12.4781 4.88525 12.4781Z" data-v-vue-layout-gitcode></path></g></svg></div>', 1)),
|
|
9339
|
+
createElementVNode("div", _hoisted_5$j, [
|
|
9340
|
+
createElementVNode("span", _hoisted_6$h, toDisplayString$1(growthCenterTooltip.value), 1),
|
|
9341
|
+
_cache[5] || (_cache[5] = createElementVNode("span", { class: "float-tooltip-arrow" }, null, -1))
|
|
9342
|
+
])
|
|
9343
|
+
])) : createCommentVNode("", true),
|
|
9344
|
+
isModuleVisible(unref(ToolsFloatDisplayItem).INVITE) ? (openBlock(), createElementBlock("div", {
|
|
9438
9345
|
key: 1,
|
|
9439
|
-
|
|
9440
|
-
|
|
9441
|
-
},
|
|
9442
|
-
|
|
9443
|
-
|
|
9444
|
-
|
|
9346
|
+
class: "tools-float-item",
|
|
9347
|
+
onClick: handleInvite
|
|
9348
|
+
}, [
|
|
9349
|
+
_cache[8] || (_cache[8] = createStaticVNode('<div class="tools-float-item__icon" data-v-vue-layout-gitcode><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-vue-layout-gitcode><path d="M5.76106 0.835284V0.836261C6.72931 0.885228 7.49934 1.6864 7.49934 2.66732V4.49935H5.66731L5.56282 4.49642C4.68866 4.44778 3.97761 3.7865 3.85286 2.93489L3.83625 2.76107L3.83333 2.66732C3.83333 1.65629 4.65197 0.835756 5.66243 0.833331L5.76106 0.835284Z" stroke="currentColor" data-v-vue-layout-gitcode></path><path d="M10.2389 0.835284V0.836261C9.27067 0.885228 8.50064 1.6864 8.50064 2.66732V4.49935H10.3327L10.4372 4.49642C11.3113 4.44778 12.0224 3.7865 12.1471 2.93489L12.1637 2.76107L12.1667 2.66732C12.1667 1.65629 11.348 0.835756 10.3375 0.833331L10.2389 0.835284Z" stroke="currentColor" data-v-vue-layout-gitcode></path><path d="M2.50039 7.52441L2.02578 7.50098L1.90957 7.49512C1.49211 7.45034 1.16657 7.09627 1.16641 6.66699V5.33301L1.17031 5.24805C1.21307 4.82811 1.56865 4.5 2.00039 4.5H14.0004C14.4604 4.50019 14.8332 4.87305 14.8334 5.33301V6.66699L14.8295 6.74707C14.7918 7.14014 14.4809 7.4537 14.0893 7.49512L13.975 7.50098L13.5004 7.52441V14.333C13.5004 14.7932 13.1266 15.167 12.6664 15.167H3.3334C2.87364 15.167 2.50039 14.7937 2.50039 14.333V7.52441Z" stroke="currentColor" data-v-vue-layout-gitcode></path><rect x="5.25" y="12.25" width="5.5" height="0.5" rx="0.25" stroke="currentColor" stroke-width="0.5" stroke-linejoin="round" data-v-vue-layout-gitcode></rect><rect x="2.25" y="7.25" width="11.5" height="0.5" stroke="currentColor" stroke-width="0.5" data-v-vue-layout-gitcode></rect></svg></div>', 1)),
|
|
9350
|
+
createElementVNode("div", _hoisted_7$e, [
|
|
9351
|
+
createElementVNode("span", _hoisted_8$c, toDisplayString$1(unref(t2)("gitCodeLayout.growthCenter.invite")), 1),
|
|
9352
|
+
_cache[7] || (_cache[7] = createElementVNode("span", { class: "float-tooltip-arrow" }, null, -1))
|
|
9353
|
+
])
|
|
9354
|
+
])) : createCommentVNode("", true),
|
|
9355
|
+
isModuleVisible(unref(ToolsFloatDisplayItem).ELSE) ? (openBlock(), createElementBlock("div", {
|
|
9356
|
+
key: 2,
|
|
9357
|
+
id: "gitcode-desk-btn",
|
|
9358
|
+
class: "tools-float-item",
|
|
9359
|
+
onClick: showDesk
|
|
9360
|
+
}, [
|
|
9361
|
+
_cache[10] || (_cache[10] = createElementVNode("div", { class: "tools-float-item__icon" }, [
|
|
9362
|
+
createElementVNode("svg", {
|
|
9363
|
+
width: "16",
|
|
9364
|
+
height: "16",
|
|
9365
|
+
viewBox: "0 0 16 16",
|
|
9366
|
+
fill: "currentColor",
|
|
9367
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
9368
|
+
}, [
|
|
9369
|
+
createElementVNode("path", { d: "M14.6182 12.3893H12.2961C12.0184 12.3893 11.7934 12.1643 11.7934 11.8865L11.7881 5.96621C11.7564 3.89551 10.0742 2.31523 8 2.30469C5.92578 2.31523 4.24355 3.89551 4.21016 5.96621L4.20664 11.1025C4.20664 11.1025 4.85527 13.342 6.40039 13.0818C6.51816 12.6898 6.93301 12.5422 7.2002 12.5422H8.82793C9.3834 12.5422 9.8334 12.9922 9.8334 13.5477V13.8623C9.8334 14.4178 9.3834 14.8678 8.82793 14.8678H7.33027C6.90488 14.8678 6.54277 14.6006 6.39512 14.2262C6.37051 14.2121 6.17012 14.2297 5.97324 14.1875C4.44922 13.6426 3.78125 12.3822 3.78125 12.3822C3.75488 12.3875 3.72852 12.391 3.70215 12.391H1.38184C1.1041 12.391 0.879102 12.166 0.879102 11.8883V6.73437C0.879102 6.45664 1.1041 6.23164 1.38184 6.23164H3.04121C3.04121 5.80625 3.03945 5.96445 3.03945 5.96445C3.09922 1.1498 7.91738 1.13398 7.91738 1.13398C7.95605 1.13223 8.0457 1.13223 8.08262 1.13398C8.08262 1.13398 12.9008 1.15156 12.9605 5.96445C12.9605 5.96445 12.9605 5.80449 12.9588 6.23164H14.6182C14.8959 6.23164 15.1209 6.45664 15.1209 6.73437V11.8865C15.1209 12.1643 14.8959 12.3893 14.6182 12.3893ZM3.14492 7.70469C3.14492 7.53418 3.05352 7.39531 2.94102 7.39531H2.0832C1.9707 7.39531 1.8793 7.53418 1.8793 7.70469V10.8775C1.8793 11.0498 1.9707 11.1869 2.0832 11.1869H2.94102C3.05352 11.1869 3.14492 11.048 3.14492 10.8775V7.70469ZM14.1207 7.70469C14.1207 7.53418 14.0293 7.39531 13.9168 7.39531H13.0607C12.9482 7.39531 12.8551 7.53418 12.8551 7.70469V10.8775C12.8551 11.0498 12.9482 11.1869 13.0607 11.1869H13.9168C14.0293 11.1869 14.1207 11.048 14.1207 10.8775V7.70469Z" })
|
|
9445
9370
|
])
|
|
9446
|
-
]),
|
|
9447
|
-
|
|
9448
|
-
createElementVNode("
|
|
9449
|
-
|
|
9450
|
-
|
|
9451
|
-
onClick: toggleGrowthCenter
|
|
9452
|
-
}, _cache[6] || (_cache[6] = [
|
|
9453
|
-
createElementVNode("div", { class: "home-nav-item" }, [
|
|
9454
|
-
createElementVNode("img", {
|
|
9455
|
-
class: "common-icon tools-float-icon",
|
|
9456
|
-
src: "https://cdn-static.gitcode.com/static/images/homeweb/czzx.svg",
|
|
9457
|
-
alt: ""
|
|
9458
|
-
})
|
|
9459
|
-
], -1)
|
|
9460
|
-
]))
|
|
9461
|
-
]),
|
|
9462
|
-
_: 1
|
|
9463
|
-
})) : createCommentVNode("", true),
|
|
9464
|
-
isModuleVisible(unref(ToolsFloatDisplayItem).ELSE) ? (openBlock(), createElementBlock("div", _hoisted_8$a, [
|
|
9465
|
-
createVNode(unref(Tooltip), {
|
|
9466
|
-
position: "left",
|
|
9467
|
-
"overlay-class": "tools-tag-tooltip"
|
|
9468
|
-
}, {
|
|
9469
|
-
content: withCtx(() => [
|
|
9470
|
-
createElementVNode("div", _hoisted_9$8, [
|
|
9471
|
-
createElementVNode("div", _hoisted_10$8, [
|
|
9472
|
-
createElementVNode("p", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.userFeedback01")), 1),
|
|
9473
|
-
createElementVNode("p", _hoisted_11$7, toDisplayString$1(unref(t2)("gitCodeLayout.home.userFeedback02")), 1)
|
|
9474
|
-
])
|
|
9475
|
-
])
|
|
9476
|
-
]),
|
|
9477
|
-
default: withCtx(() => [
|
|
9478
|
-
createElementVNode("div", { class: "tools-list-item tools-list-item--gap" }, [
|
|
9479
|
-
createElementVNode("div", {
|
|
9480
|
-
id: "gitcode-desk-btn",
|
|
9481
|
-
class: "home-nav-item kefu",
|
|
9482
|
-
onClick: showDesk
|
|
9483
|
-
}, _cache[7] || (_cache[7] = [
|
|
9484
|
-
createElementVNode("img", {
|
|
9485
|
-
class: "tools-float-icon",
|
|
9486
|
-
src: "https://cdn-static.gitcode.com/static/images/desk/kefu.png",
|
|
9487
|
-
alt: ""
|
|
9488
|
-
}, null, -1),
|
|
9489
|
-
createElementVNode("div", null, [
|
|
9490
|
-
createElementVNode("div", null, "客"),
|
|
9491
|
-
createElementVNode("div", null, "服")
|
|
9492
|
-
], -1)
|
|
9493
|
-
]))
|
|
9494
|
-
])
|
|
9495
|
-
]),
|
|
9496
|
-
_: 1
|
|
9497
|
-
}),
|
|
9498
|
-
createVNode(unref(Tooltip), {
|
|
9499
|
-
position: "left",
|
|
9500
|
-
"overlay-class": "tools-tag-tooltip"
|
|
9501
|
-
}, {
|
|
9502
|
-
content: withCtx(() => [
|
|
9503
|
-
createElementVNode("div", _hoisted_12$6, [
|
|
9504
|
-
createElementVNode("div", _hoisted_13$3, toDisplayString$1(unref(t2)("gitCodeLayout.home.followUs")), 1),
|
|
9505
|
-
_cache[8] || (_cache[8] = createElementVNode("img", {
|
|
9506
|
-
class: "qrcode",
|
|
9507
|
-
src: "https://cdn-static.gitcode.com/static/images/points/wx_gitcode.png"
|
|
9508
|
-
}, null, -1))
|
|
9509
|
-
])
|
|
9510
|
-
]),
|
|
9511
|
-
default: withCtx(() => [
|
|
9512
|
-
_cache[9] || (_cache[9] = createElementVNode("a", { class: "home-nav-link tools-list-item" }, [
|
|
9513
|
-
createElementVNode("div", { class: "home-nav-item" }, [
|
|
9514
|
-
createElementVNode("img", {
|
|
9515
|
-
class: "common-icon tools-float-icon",
|
|
9516
|
-
src: "https://cdn-static.gitcode.com/static/images/desk/follow-us.svg",
|
|
9517
|
-
alt: ""
|
|
9518
|
-
}),
|
|
9519
|
-
createElementVNode("img", {
|
|
9520
|
-
class: "active-icon tools-float-icon",
|
|
9521
|
-
src: "https://cdn-static.gitcode.com/static/images/desk/follow-us-hover.svg",
|
|
9522
|
-
alt: ""
|
|
9523
|
-
})
|
|
9524
|
-
])
|
|
9525
|
-
], -1))
|
|
9526
|
-
]),
|
|
9527
|
-
_: 1
|
|
9528
|
-
}),
|
|
9529
|
-
npsPopVisible.value ? (openBlock(), createBlock(unref(Popover), {
|
|
9530
|
-
key: 0,
|
|
9531
|
-
trigger: "click",
|
|
9532
|
-
offset: NPSOffsetOptions,
|
|
9533
|
-
position: ["left"],
|
|
9534
|
-
class: "no-arrow",
|
|
9535
|
-
"is-open": npsPopVisible.value
|
|
9536
|
-
}, {
|
|
9537
|
-
content: withCtx(() => [
|
|
9538
|
-
createElementVNode("div", _hoisted_15$3, [
|
|
9539
|
-
process2.value ? (openBlock(), createElementBlock("div", _hoisted_16$3, [
|
|
9540
|
-
createElementVNode("div", _hoisted_17$3, [
|
|
9541
|
-
(openBlock(), createElementBlock(Fragment, null, renderList(opinionStepList, (item) => {
|
|
9542
|
-
return createElementVNode("div", {
|
|
9543
|
-
key: item.index,
|
|
9544
|
-
class: normalizeClass(["tab-item", opinionStep.value === item.index ? "tab-item--active" : "tab-item--inactive"]),
|
|
9545
|
-
onClick: ($event) => swTab(item)
|
|
9546
|
-
}, _cache[11] || (_cache[11] = [
|
|
9547
|
-
createElementVNode("span", { class: "tools-float-cursor-pointer" }, null, -1)
|
|
9548
|
-
]), 10, _hoisted_18$3);
|
|
9549
|
-
}), 64))
|
|
9550
|
-
]),
|
|
9551
|
-
createElementVNode("div", null, [
|
|
9552
|
-
opinionStep.value === 0 ? (openBlock(), createElementBlock("div", _hoisted_19$3, [
|
|
9553
|
-
rateActive.value !== null || rateNow.value !== null ? (openBlock(), createElementBlock("div", _hoisted_20$3, [
|
|
9554
|
-
createElementVNode("span", null, toDisplayString$1(rateIcon[rateActive.value === null ? rateNow.value : rateActive.value].title), 1)
|
|
9555
|
-
])) : createCommentVNode("", true),
|
|
9556
|
-
createElementVNode("div", _hoisted_21$3, [
|
|
9557
|
-
createElementVNode("span", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.rateExperience")), 1)
|
|
9558
|
-
]),
|
|
9559
|
-
createElementVNode("div", _hoisted_22$3, [
|
|
9560
|
-
(openBlock(), createElementBlock(Fragment, null, renderList(rateIcon, (ico) => {
|
|
9561
|
-
return createElementVNode("div", {
|
|
9562
|
-
key: ico.name,
|
|
9563
|
-
class: normalizeClass(["opinion-item", { active: rateNow.value === ico.index }]),
|
|
9564
|
-
onMouseover: ($event) => activeOp(ico.index),
|
|
9565
|
-
onMouseleave: _cache[1] || (_cache[1] = ($event) => activeOp(null)),
|
|
9566
|
-
onClick: ($event) => selectOpinion(ico)
|
|
9567
|
-
}, [
|
|
9568
|
-
createVNode(GIcon, {
|
|
9569
|
-
name: ico.name,
|
|
9570
|
-
size: "24px"
|
|
9571
|
-
}, null, 8, ["name"])
|
|
9572
|
-
], 42, _hoisted_23$2);
|
|
9573
|
-
}), 64))
|
|
9574
|
-
])
|
|
9575
|
-
])) : createCommentVNode("", true),
|
|
9576
|
-
opinionStep.value === 1 ? (openBlock(), createElementBlock("div", _hoisted_24$2, [
|
|
9577
|
-
rateNow.value !== null ? (openBlock(), createElementBlock("div", _hoisted_25$2, [
|
|
9578
|
-
createElementVNode("span", null, toDisplayString$1(rateIcon[rateNow.value].title), 1)
|
|
9579
|
-
])) : createCommentVNode("", true),
|
|
9580
|
-
createElementVNode("div", _hoisted_26$1, [
|
|
9581
|
-
createElementVNode("span", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.improveQuestion")) + "?", 1)
|
|
9582
|
-
]),
|
|
9583
|
-
createElementVNode("div", _hoisted_27$1, [
|
|
9584
|
-
createVNode(unref(Textarea), {
|
|
9585
|
-
modelValue: opinionText.value,
|
|
9586
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => opinionText.value = $event),
|
|
9587
|
-
rows: 4,
|
|
9588
|
-
placeholder: unref(t2)("gitCodeLayout.home.facebackPlaceholder"),
|
|
9589
|
-
"show-count": "",
|
|
9590
|
-
maxlength: "200"
|
|
9591
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
9592
|
-
]),
|
|
9593
|
-
createElementVNode("div", null, [
|
|
9594
|
-
createVNode(unref(Button), {
|
|
9595
|
-
color: "primary",
|
|
9596
|
-
variant: "solid",
|
|
9597
|
-
onClick: handleNpsSubmit
|
|
9598
|
-
}, {
|
|
9599
|
-
default: withCtx(() => [
|
|
9600
|
-
createTextVNode(toDisplayString$1(unref(t2)("gitCodeLayout.repo.pr.commit")), 1)
|
|
9601
|
-
]),
|
|
9602
|
-
_: 1
|
|
9603
|
-
})
|
|
9604
|
-
])
|
|
9605
|
-
])) : createCommentVNode("", true)
|
|
9606
|
-
])
|
|
9607
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_28$1, [
|
|
9608
|
-
createElementVNode("div", _hoisted_29$1, [
|
|
9609
|
-
createVNode(GIcon, {
|
|
9610
|
-
name: "gt-success",
|
|
9611
|
-
size: "14px",
|
|
9612
|
-
color: "#fff"
|
|
9613
|
-
})
|
|
9614
|
-
]),
|
|
9615
|
-
createElementVNode("div", _hoisted_30$1, [
|
|
9616
|
-
createElementVNode("span", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.thankFaceback")) + "!", 1)
|
|
9617
|
-
])
|
|
9618
|
-
]))
|
|
9619
|
-
])
|
|
9620
|
-
]),
|
|
9621
|
-
default: withCtx(() => [
|
|
9622
|
-
createElementVNode("div", _hoisted_14$3, [
|
|
9623
|
-
createVNode(unref(Popover), {
|
|
9624
|
-
class: "custom-popover-feedback",
|
|
9625
|
-
position: ["left"],
|
|
9626
|
-
content: unref(t2)("gitCodeLayout.home.userFeedbackProductRecommendations"),
|
|
9627
|
-
trigger: "hover",
|
|
9628
|
-
offset: { mainAxis: 22, crossAxis: 0 }
|
|
9629
|
-
}, {
|
|
9630
|
-
default: withCtx(() => _cache[10] || (_cache[10] = [
|
|
9631
|
-
createElementVNode("div", { class: "home-nav-item" }, [
|
|
9632
|
-
createElementVNode("img", {
|
|
9633
|
-
class: "common-icon tools-float-icon",
|
|
9634
|
-
src: "https://cdn-static.gitcode.com/static/images/desk/plane-smile.png",
|
|
9635
|
-
alt: ""
|
|
9636
|
-
}),
|
|
9637
|
-
createElementVNode("img", {
|
|
9638
|
-
class: "active-icon tools-float-icon",
|
|
9639
|
-
src: "https://cdn-static.gitcode.com/static/images/desk/plane-smile-hover.png",
|
|
9640
|
-
alt: ""
|
|
9641
|
-
})
|
|
9642
|
-
], -1)
|
|
9643
|
-
])),
|
|
9644
|
-
_: 1
|
|
9645
|
-
}, 8, ["content"])
|
|
9646
|
-
])
|
|
9647
|
-
]),
|
|
9648
|
-
_: 1
|
|
9649
|
-
}, 8, ["offset", "is-open"])) : createCommentVNode("", true),
|
|
9650
|
-
_cache[12] || (_cache[12] = createElementVNode("div", { class: "divider" }, null, -1)),
|
|
9651
|
-
createVNode(unref(Popover), {
|
|
9652
|
-
position: ["left"],
|
|
9653
|
-
content: "收起",
|
|
9654
|
-
trigger: "hover",
|
|
9655
|
-
class: "custom-popover-feedback"
|
|
9656
|
-
}, {
|
|
9657
|
-
default: withCtx(() => [
|
|
9658
|
-
createElementVNode("div", {
|
|
9659
|
-
class: "tools-list-item",
|
|
9660
|
-
onClick: _cache[3] || (_cache[3] = ($event) => handleCollapseTool(unref(TOOLS_FLOAT_COLLAPSE_STATUS).COLLAPSE))
|
|
9661
|
-
}, [
|
|
9662
|
-
createElementVNode("div", _hoisted_31$1, [
|
|
9663
|
-
createVNode(GIcon, {
|
|
9664
|
-
name: "gt-plane-skip",
|
|
9665
|
-
size: "18px"
|
|
9666
|
-
})
|
|
9667
|
-
])
|
|
9668
|
-
])
|
|
9669
|
-
]),
|
|
9670
|
-
_: 1
|
|
9671
|
-
})
|
|
9371
|
+
], -1)),
|
|
9372
|
+
createElementVNode("div", _hoisted_9$b, [
|
|
9373
|
+
createElementVNode("span", _hoisted_10$a, toDisplayString$1(unref(t2)("gitCodeLayout.home.userFeedback01")), 1),
|
|
9374
|
+
_cache[9] || (_cache[9] = createElementVNode("span", { class: "float-tooltip-arrow" }, null, -1))
|
|
9375
|
+
])
|
|
9672
9376
|
])) : createCommentVNode("", true),
|
|
9673
|
-
|
|
9674
|
-
|
|
9675
|
-
|
|
9676
|
-
|
|
9677
|
-
|
|
9678
|
-
|
|
9679
|
-
|
|
9377
|
+
_cache[13] || (_cache[13] = createElementVNode("div", { class: "tools-float-divider" }, null, -1)),
|
|
9378
|
+
createElementVNode("div", {
|
|
9379
|
+
class: "tools-float-item collapse-tool",
|
|
9380
|
+
onClick: _cache[1] || (_cache[1] = ($event) => handleCollapseTool(unref(TOOLS_FLOAT_COLLAPSE_STATUS).COLLAPSE))
|
|
9381
|
+
}, [
|
|
9382
|
+
_cache[12] || (_cache[12] = createElementVNode("div", { class: "tools-float-item__icon" }, [
|
|
9383
|
+
createElementVNode("svg", {
|
|
9384
|
+
width: "16",
|
|
9385
|
+
height: "16",
|
|
9386
|
+
viewBox: "0 0 16 16",
|
|
9387
|
+
fill: "currentColor",
|
|
9388
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
9680
9389
|
}, [
|
|
9681
|
-
createElementVNode("
|
|
9682
|
-
|
|
9683
|
-
|
|
9684
|
-
|
|
9685
|
-
|
|
9686
|
-
|
|
9687
|
-
|
|
9688
|
-
|
|
9689
|
-
|
|
9390
|
+
createElementVNode("path", {
|
|
9391
|
+
"fill-rule": "evenodd",
|
|
9392
|
+
"clip-rule": "evenodd",
|
|
9393
|
+
d: "M12.7929 7.5L7.64645 2.35355L8.35355 1.64645L14.7071 8L8.35355 14.3536L7.64645 13.6464L12.7929 8.5H2V7.5H12.7929Z"
|
|
9394
|
+
})
|
|
9395
|
+
])
|
|
9396
|
+
], -1)),
|
|
9397
|
+
createElementVNode("div", _hoisted_11$8, [
|
|
9398
|
+
createElementVNode("span", _hoisted_12$8, toDisplayString$1(unref(t2)("gitCodeLayout.toolsFloat.collapse")), 1),
|
|
9399
|
+
_cache[11] || (_cache[11] = createElementVNode("span", { class: "float-tooltip-arrow" }, null, -1))
|
|
9400
|
+
])
|
|
9401
|
+
])
|
|
9402
|
+
])) : (openBlock(), createElementBlock("div", {
|
|
9403
|
+
key: 1,
|
|
9404
|
+
class: "tools-float-collapsed-tab",
|
|
9405
|
+
onClick: _cache[2] || (_cache[2] = ($event) => handleCollapseTool(unref(TOOLS_FLOAT_COLLAPSE_STATUS).EXPAND))
|
|
9406
|
+
}, [
|
|
9407
|
+
_cache[15] || (_cache[15] = createElementVNode("div", { class: "tools-float-item__icon" }, [
|
|
9408
|
+
createElementVNode("svg", {
|
|
9409
|
+
width: "16",
|
|
9410
|
+
height: "16",
|
|
9411
|
+
viewBox: "0 0 16 16",
|
|
9412
|
+
fill: "currentColor",
|
|
9413
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
9414
|
+
}, [
|
|
9415
|
+
createElementVNode("path", {
|
|
9416
|
+
"fill-rule": "evenodd",
|
|
9417
|
+
"clip-rule": "evenodd",
|
|
9418
|
+
d: "M12.7929 7.5L7.64645 2.35355L8.35355 1.64645L14.7071 8L8.35355 14.3536L7.64645 13.6464L12.7929 8.5H2V7.5H12.7929Z"
|
|
9419
|
+
})
|
|
9420
|
+
])
|
|
9421
|
+
], -1)),
|
|
9422
|
+
createElementVNode("div", _hoisted_13$5, [
|
|
9423
|
+
createElementVNode("span", _hoisted_14$3, toDisplayString$1(unref(t2)("gitCodeLayout.toolsFloat.expand")), 1),
|
|
9424
|
+
_cache[14] || (_cache[14] = createElementVNode("span", { class: "float-tooltip-arrow" }, null, -1))
|
|
9425
|
+
])
|
|
9426
|
+
])),
|
|
9427
|
+
isModuleVisible(unref(ToolsFloatDisplayItem).AD) && activeAdItem.value && activeAdItem.value.imgUrl ? (openBlock(), createElementBlock("div", {
|
|
9428
|
+
key: 2,
|
|
9429
|
+
class: "active-tips",
|
|
9430
|
+
onClick: withModifiers(handleActive, ["stop"])
|
|
9431
|
+
}, [
|
|
9432
|
+
createElementVNode("div", {
|
|
9433
|
+
class: "close-btn",
|
|
9434
|
+
onClick: withModifiers(handleActiveClose, ["stop"])
|
|
9690
9435
|
}),
|
|
9691
|
-
|
|
9692
|
-
|
|
9693
|
-
|
|
9694
|
-
|
|
9695
|
-
},
|
|
9696
|
-
|
|
9697
|
-
class: "close-btn",
|
|
9698
|
-
onClick: handleActiveClose
|
|
9699
|
-
}),
|
|
9700
|
-
createElementVNode("img", {
|
|
9701
|
-
width: "200",
|
|
9702
|
-
src: activeAdItem.value.imgUrl,
|
|
9703
|
-
alt: activeAdItem.value.title
|
|
9704
|
-
}, null, 8, _hoisted_33$1)
|
|
9705
|
-
])) : createCommentVNode("", true)
|
|
9706
|
-
])
|
|
9436
|
+
createElementVNode("img", {
|
|
9437
|
+
width: "200",
|
|
9438
|
+
src: activeAdItem.value.imgUrl,
|
|
9439
|
+
alt: activeAdItem.value.title
|
|
9440
|
+
}, null, 8, _hoisted_15$3)
|
|
9441
|
+
])) : createCommentVNode("", true)
|
|
9707
9442
|
]);
|
|
9708
9443
|
};
|
|
9709
9444
|
}
|
|
9710
9445
|
});
|
|
9711
|
-
const
|
|
9446
|
+
const _export_sfc = (sfc, props) => {
|
|
9447
|
+
const target = sfc.__vccOpts || sfc;
|
|
9448
|
+
for (const [key, val] of props) {
|
|
9449
|
+
target[key] = val;
|
|
9450
|
+
}
|
|
9451
|
+
return target;
|
|
9452
|
+
};
|
|
9453
|
+
const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
9712
9454
|
var repoTypeEnum = /* @__PURE__ */ ((repoTypeEnum2) => {
|
|
9713
9455
|
repoTypeEnum2["NORMAL"] = "0";
|
|
9714
9456
|
repoTypeEnum2["MODEL"] = "1";
|
|
@@ -9851,8 +9593,56 @@ const collectRegisterLoginEvent = ({ isRegister, registerLoginMethod, success, e
|
|
|
9851
9593
|
delete reportData["utm_source"];
|
|
9852
9594
|
window.collectEvent("beconEvent", isRegister ? "register" : "login", reportData);
|
|
9853
9595
|
};
|
|
9854
|
-
const _hoisted_1$
|
|
9855
|
-
const
|
|
9596
|
+
const _hoisted_1$I = ["xlink:href"];
|
|
9597
|
+
const _hoisted_2$w = ["xlink:href"];
|
|
9598
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
9599
|
+
__name: "index",
|
|
9600
|
+
props: {
|
|
9601
|
+
name: { default: "gt-run" },
|
|
9602
|
+
size: { default: "16px" },
|
|
9603
|
+
color: { default: "var(--theme-icon-fill-weak)" },
|
|
9604
|
+
rotate: { default: "0deg" },
|
|
9605
|
+
operable: { type: Boolean, default: false },
|
|
9606
|
+
disabled: { type: Boolean, default: false },
|
|
9607
|
+
iconClass: {}
|
|
9608
|
+
},
|
|
9609
|
+
setup(__props) {
|
|
9610
|
+
const props = __props;
|
|
9611
|
+
const fontSize = computed(() => {
|
|
9612
|
+
return /px$/i.test(props.size) ? props.size : `${props.size}px`;
|
|
9613
|
+
});
|
|
9614
|
+
return (_ctx, _cache) => {
|
|
9615
|
+
return !_ctx.name.includes("gt-") ? (openBlock(), createBlock(unref(Icon), normalizeProps(mergeProps({ key: 0 }, props)), null, 16)) : _ctx.operable ? (openBlock(), createElementBlock("span", {
|
|
9616
|
+
key: 1,
|
|
9617
|
+
class: normalizeClass(["custom-icon-container", { disabled: _ctx.disabled }])
|
|
9618
|
+
}, [
|
|
9619
|
+
renderSlot(_ctx.$slots, "prefix", {}, void 0, true),
|
|
9620
|
+
(openBlock(), createElementBlock("svg", {
|
|
9621
|
+
class: normalizeClass(["icon gt-icon", _ctx.iconClass]),
|
|
9622
|
+
"aria-hidden": "true",
|
|
9623
|
+
style: normalizeStyle({ color: _ctx.color, fontSize: fontSize.value, transform: `rotate(${_ctx.rotate})` })
|
|
9624
|
+
}, [
|
|
9625
|
+
createElementVNode("use", {
|
|
9626
|
+
"xlink:href": `#${_ctx.name}`
|
|
9627
|
+
}, null, 8, _hoisted_1$I)
|
|
9628
|
+
], 6)),
|
|
9629
|
+
renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
|
|
9630
|
+
], 2)) : (openBlock(), createElementBlock("svg", {
|
|
9631
|
+
key: 2,
|
|
9632
|
+
class: normalizeClass(["icon gt-icon", _ctx.iconClass]),
|
|
9633
|
+
"aria-hidden": "true",
|
|
9634
|
+
style: normalizeStyle(_ctx.iconClass ? {} : { color: _ctx.color, fontSize: fontSize.value, transform: `rotate(${_ctx.rotate})` })
|
|
9635
|
+
}, [
|
|
9636
|
+
createElementVNode("use", {
|
|
9637
|
+
"xlink:href": `#${_ctx.name}`
|
|
9638
|
+
}, null, 8, _hoisted_2$w)
|
|
9639
|
+
], 6));
|
|
9640
|
+
};
|
|
9641
|
+
}
|
|
9642
|
+
});
|
|
9643
|
+
const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
9644
|
+
const _hoisted_1$H = ["href", "target", "disabled"];
|
|
9645
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
9856
9646
|
...{
|
|
9857
9647
|
name: "GLink"
|
|
9858
9648
|
},
|
|
@@ -9897,11 +9687,11 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
9897
9687
|
disabled: _ctx.disabled || _ctx.noPointer
|
|
9898
9688
|
}, [
|
|
9899
9689
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
9900
|
-
], 10, _hoisted_1$
|
|
9690
|
+
], 10, _hoisted_1$H));
|
|
9901
9691
|
};
|
|
9902
9692
|
}
|
|
9903
9693
|
});
|
|
9904
|
-
const GLink = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9694
|
+
const GLink = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
9905
9695
|
const headerHeight = ref(56);
|
|
9906
9696
|
const useHeaderHeight = () => {
|
|
9907
9697
|
const setHeaderHeight = (height) => {
|
|
@@ -10349,9 +10139,6 @@ watch(currentThemeStorage, (newValue) => {
|
|
|
10349
10139
|
const currentTheme = computed(() => {
|
|
10350
10140
|
return setThemeVal.value || currentThemeStorage.value || ThemeType.WHITE;
|
|
10351
10141
|
});
|
|
10352
|
-
const isWhiteTheme = () => {
|
|
10353
|
-
return currentTheme.value === ThemeType.WHITE;
|
|
10354
|
-
};
|
|
10355
10142
|
const setTheme = (theme2) => {
|
|
10356
10143
|
const themeValue = theme2 || api.get("gitcode_theme") || ThemeType.WHITE;
|
|
10357
10144
|
setThemeVal.value = themeValue;
|
|
@@ -10537,7 +10324,7 @@ if (isBrowser) {
|
|
|
10537
10324
|
}
|
|
10538
10325
|
const sessionStorage$1 = sessionStorage;
|
|
10539
10326
|
const _imports_0 = "data:image/png;base64,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";
|
|
10540
|
-
const _sfc_main$
|
|
10327
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
10541
10328
|
...{
|
|
10542
10329
|
name: "GAvatar"
|
|
10543
10330
|
},
|
|
@@ -10583,8 +10370,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
10583
10370
|
};
|
|
10584
10371
|
}
|
|
10585
10372
|
});
|
|
10586
|
-
const _hoisted_1$
|
|
10587
|
-
const _sfc_main$
|
|
10373
|
+
const _hoisted_1$G = ["src"];
|
|
10374
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
10588
10375
|
...{ name: "FlashTag" },
|
|
10589
10376
|
__name: "FlashTag",
|
|
10590
10377
|
props: {
|
|
@@ -10629,7 +10416,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
10629
10416
|
key: 0,
|
|
10630
10417
|
class: "gc-flash-tag__icon",
|
|
10631
10418
|
src: iconUrl.value
|
|
10632
|
-
}, null, 8, _hoisted_1$
|
|
10419
|
+
}, null, 8, _hoisted_1$G)) : renderSlot(_ctx.$slots, "default", { key: 1 })
|
|
10633
10420
|
], 16)
|
|
10634
10421
|
]),
|
|
10635
10422
|
_: 3
|
|
@@ -10933,41 +10720,41 @@ const useTimeFormat = () => {
|
|
|
10933
10720
|
formatTime
|
|
10934
10721
|
};
|
|
10935
10722
|
};
|
|
10936
|
-
const _hoisted_1$
|
|
10723
|
+
const _hoisted_1$F = {
|
|
10937
10724
|
key: 0,
|
|
10938
10725
|
class: "org-layout-toolbar"
|
|
10939
10726
|
};
|
|
10940
|
-
const _hoisted_2$
|
|
10941
|
-
const _hoisted_3$
|
|
10942
|
-
const _hoisted_4$
|
|
10943
|
-
const _hoisted_5$
|
|
10727
|
+
const _hoisted_2$v = { class: "org-layout-toolbar-title ellipsis-two-line" };
|
|
10728
|
+
const _hoisted_3$u = { class: "header-custom-btn-label" };
|
|
10729
|
+
const _hoisted_4$n = { class: "g-repo-breadcrumb-custom" };
|
|
10730
|
+
const _hoisted_5$i = {
|
|
10944
10731
|
key: 1,
|
|
10945
10732
|
class: "header-custom-mirrors-avatar"
|
|
10946
10733
|
};
|
|
10947
|
-
const _hoisted_6$
|
|
10734
|
+
const _hoisted_6$g = {
|
|
10948
10735
|
key: 0,
|
|
10949
10736
|
src: _imports_0,
|
|
10950
10737
|
alt: "mirrors-avatar-phone",
|
|
10951
10738
|
class: "header-custom-mirrors-img"
|
|
10952
10739
|
};
|
|
10953
|
-
const _hoisted_7$
|
|
10740
|
+
const _hoisted_7$d = {
|
|
10954
10741
|
key: 1,
|
|
10955
10742
|
src: "https://cdn-static.gitcode.com/static/images/mirrors-avata_20250411.gif",
|
|
10956
10743
|
alt: "mirrors-avatar",
|
|
10957
10744
|
class: "header-custom-mirrors-img-tall"
|
|
10958
10745
|
};
|
|
10959
|
-
const _hoisted_8$
|
|
10960
|
-
const _hoisted_9$
|
|
10746
|
+
const _hoisted_8$b = { class: "g-repo-breadcrumb-container" };
|
|
10747
|
+
const _hoisted_9$a = {
|
|
10961
10748
|
key: 0,
|
|
10962
10749
|
class: "header-custom-breadcrumb-row"
|
|
10963
10750
|
};
|
|
10964
|
-
const _hoisted_10$
|
|
10965
|
-
const _hoisted_11$
|
|
10966
|
-
const _hoisted_12$
|
|
10751
|
+
const _hoisted_10$9 = ["title"];
|
|
10752
|
+
const _hoisted_11$7 = ["title"];
|
|
10753
|
+
const _hoisted_12$7 = {
|
|
10967
10754
|
key: 0,
|
|
10968
10755
|
class: "header-custom-tag-mb"
|
|
10969
10756
|
};
|
|
10970
|
-
const _hoisted_13$
|
|
10757
|
+
const _hoisted_13$4 = {
|
|
10971
10758
|
key: 1,
|
|
10972
10759
|
class: "header-custom-tag-mb"
|
|
10973
10760
|
};
|
|
@@ -10992,7 +10779,7 @@ const _hoisted_20$2 = {
|
|
|
10992
10779
|
};
|
|
10993
10780
|
const _hoisted_21$2 = { class: "user-layout-toolbar-title ellipsis-two-line" };
|
|
10994
10781
|
const _hoisted_22$2 = { class: "header-custom-btn-label" };
|
|
10995
|
-
const _sfc_main$
|
|
10782
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
10996
10783
|
__name: "HeaderCustom",
|
|
10997
10784
|
props: {
|
|
10998
10785
|
scene: { default: SceneValue.home },
|
|
@@ -11110,7 +10897,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11110
10897
|
});
|
|
11111
10898
|
return (_ctx, _cache) => {
|
|
11112
10899
|
var _a, _b, _c;
|
|
11113
|
-
return _ctx.scene === unref(SceneValue).org && !_ctx.errorCode ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
10900
|
+
return _ctx.scene === unref(SceneValue).org && !_ctx.errorCode ? (openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
11114
10901
|
createVNode(GLink, {
|
|
11115
10902
|
href: ((_a = _ctx.orgProps) == null ? void 0 : _a.orgHomepageUrl) || "",
|
|
11116
10903
|
class: "header-custom-link"
|
|
@@ -11118,7 +10905,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11118
10905
|
default: withCtx(() => {
|
|
11119
10906
|
var _a2, _b2, _c2;
|
|
11120
10907
|
return [
|
|
11121
|
-
createVNode(_sfc_main$
|
|
10908
|
+
createVNode(_sfc_main$N, {
|
|
11122
10909
|
class: "g-border",
|
|
11123
10910
|
src: ((_a2 = unref(orgInfo)) == null ? void 0 : _a2.avatar) || "",
|
|
11124
10911
|
name: ((_b2 = unref(orgInfo)) == null ? void 0 : _b2.name) || "",
|
|
@@ -11126,7 +10913,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11126
10913
|
height: 28,
|
|
11127
10914
|
is_round: false
|
|
11128
10915
|
}, null, 8, ["src", "name"]),
|
|
11129
|
-
createElementVNode("div", _hoisted_2$
|
|
10916
|
+
createElementVNode("div", _hoisted_2$v, toDisplayString$1((_c2 = unref(orgInfo)) == null ? void 0 : _c2.name), 1)
|
|
11130
10917
|
];
|
|
11131
10918
|
}),
|
|
11132
10919
|
_: 1
|
|
@@ -11141,7 +10928,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11141
10928
|
default: withCtx(() => {
|
|
11142
10929
|
var _a2;
|
|
11143
10930
|
return [
|
|
11144
|
-
createElementVNode("span", _hoisted_3$
|
|
10931
|
+
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)
|
|
11145
10932
|
];
|
|
11146
10933
|
}),
|
|
11147
10934
|
_: 1
|
|
@@ -11163,7 +10950,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11163
10950
|
default: withCtx(() => {
|
|
11164
10951
|
var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
11165
10952
|
return [
|
|
11166
|
-
createElementVNode("h2", _hoisted_4$
|
|
10953
|
+
createElementVNode("h2", _hoisted_4$n, [
|
|
11167
10954
|
createVNode(GLink, {
|
|
11168
10955
|
href: (_a2 = unref(breadcrumb)[0]) == null ? void 0 : _a2.path,
|
|
11169
10956
|
class: "header-custom-avatar-link"
|
|
@@ -11171,7 +10958,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11171
10958
|
default: withCtx(() => {
|
|
11172
10959
|
var _a3, _b3, _c3, _d2;
|
|
11173
10960
|
return [
|
|
11174
|
-
!((_a3 = _ctx.repoProps) == null ? void 0 : _a3.isGhMirrors) ? (openBlock(), createBlock(_sfc_main$
|
|
10961
|
+
!((_a3 = _ctx.repoProps) == null ? void 0 : _a3.isGhMirrors) ? (openBlock(), createBlock(_sfc_main$N, {
|
|
11175
10962
|
key: 0,
|
|
11176
10963
|
class: normalizeClass({ "g-border": isOrg.value }),
|
|
11177
10964
|
src: ((_c3 = (_b3 = unref(repoInfo)) == null ? void 0 : _b3.namespace) == null ? void 0 : _c3.avatar_url) || "",
|
|
@@ -11179,14 +10966,14 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11179
10966
|
width: 28,
|
|
11180
10967
|
height: 28,
|
|
11181
10968
|
is_round: !isOrg.value
|
|
11182
|
-
}, null, 8, ["class", "src", "name", "is_round"])) : (openBlock(), createElementBlock("div", _hoisted_5$
|
|
11183
|
-
unref(isPhone)() ? (openBlock(), createElementBlock("img", _hoisted_6$
|
|
10969
|
+
}, null, 8, ["class", "src", "name", "is_round"])) : (openBlock(), createElementBlock("div", _hoisted_5$i, [
|
|
10970
|
+
unref(isPhone)() ? (openBlock(), createElementBlock("img", _hoisted_6$g)) : (openBlock(), createElementBlock("img", _hoisted_7$d))
|
|
11184
10971
|
]))
|
|
11185
10972
|
];
|
|
11186
10973
|
}),
|
|
11187
10974
|
_: 1
|
|
11188
10975
|
}, 8, ["href"]),
|
|
11189
|
-
createElementVNode("div", _hoisted_8$
|
|
10976
|
+
createElementVNode("div", _hoisted_8$b, [
|
|
11190
10977
|
!((_b2 = _ctx.repoProps) == null ? void 0 : _b2.isGhMirrors) ? (openBlock(), createElementBlock("div", {
|
|
11191
10978
|
key: 0,
|
|
11192
10979
|
ref_key: "breadcrumbRef",
|
|
@@ -11197,7 +10984,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11197
10984
|
return openBlock(), createElementBlock(Fragment, {
|
|
11198
10985
|
key: item.path
|
|
11199
10986
|
}, [
|
|
11200
|
-
index2 !== unref(breadcrumb).length - 1 ? (openBlock(), createElementBlock("span", _hoisted_9$
|
|
10987
|
+
index2 !== unref(breadcrumb).length - 1 ? (openBlock(), createElementBlock("span", _hoisted_9$a, [
|
|
11201
10988
|
createVNode(GLink, {
|
|
11202
10989
|
class: "linkTx",
|
|
11203
10990
|
href: item.path
|
|
@@ -11209,7 +10996,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11209
10996
|
ref: breadcrumbTextRef,
|
|
11210
10997
|
title: item.label,
|
|
11211
10998
|
class: normalizeClass(["linkTx", index2 === unref(breadcrumb).length - 1 ? "header-custom-bold" : ""])
|
|
11212
|
-
}, toDisplayString$1(item.label), 11, _hoisted_10$
|
|
10999
|
+
}, toDisplayString$1(item.label), 11, _hoisted_10$9)
|
|
11213
11000
|
]),
|
|
11214
11001
|
_: 2
|
|
11215
11002
|
}, 1032, ["href"]),
|
|
@@ -11234,12 +11021,12 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11234
11021
|
ref: breadcrumbNextTextRef,
|
|
11235
11022
|
title: unref(breadcrumb)[unref(breadcrumb).length - 1].label,
|
|
11236
11023
|
class: "linkTx header-custom-bold"
|
|
11237
|
-
}, toDisplayString$1(unref(breadcrumb)[unref(breadcrumb).length - 1].label), 9, _hoisted_11$
|
|
11024
|
+
}, toDisplayString$1(unref(breadcrumb)[unref(breadcrumb).length - 1].label), 9, _hoisted_11$7)
|
|
11238
11025
|
]),
|
|
11239
11026
|
_: 1
|
|
11240
11027
|
}, 8, ["href"]),
|
|
11241
|
-
unref(isGstarRepo)((_e = unref(repoInfo)) == null ? void 0 : _e.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_12$
|
|
11242
|
-
createVNode(_sfc_main$
|
|
11028
|
+
unref(isGstarRepo)((_e = unref(repoInfo)) == null ? void 0 : _e.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_12$7, [
|
|
11029
|
+
createVNode(_sfc_main$M, {
|
|
11243
11030
|
origin: "repo",
|
|
11244
11031
|
icon: "",
|
|
11245
11032
|
type: "gstar",
|
|
@@ -11250,8 +11037,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11250
11037
|
])),
|
|
11251
11038
|
_: 1
|
|
11252
11039
|
}, 8, ["message"])
|
|
11253
|
-
])) : unref(isIncubationRepo)((_f = unref(repoInfo)) == null ? void 0 : _f.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_13$
|
|
11254
|
-
createVNode(_sfc_main$
|
|
11040
|
+
])) : unref(isIncubationRepo)((_f = unref(repoInfo)) == null ? void 0 : _f.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_13$4, [
|
|
11041
|
+
createVNode(_sfc_main$M, {
|
|
11255
11042
|
origin: "repo",
|
|
11256
11043
|
icon: "",
|
|
11257
11044
|
type: "incubation",
|
|
@@ -11264,7 +11051,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11264
11051
|
}, 8, ["message"])
|
|
11265
11052
|
])) : createCommentVNode("", true),
|
|
11266
11053
|
unref(isTrustedRepo)((_g = unref(repoInfo)) == null ? void 0 : _g.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_14$2, [
|
|
11267
|
-
createVNode(_sfc_main$
|
|
11054
|
+
createVNode(_sfc_main$M, {
|
|
11268
11055
|
trusted: "",
|
|
11269
11056
|
message: unref(t2)("gitCodeLayout.trusted.title"),
|
|
11270
11057
|
icon: "",
|
|
@@ -11313,7 +11100,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11313
11100
|
default: withCtx(() => {
|
|
11314
11101
|
var _a2, _b2, _c2, _d, _e;
|
|
11315
11102
|
return [
|
|
11316
|
-
createVNode(_sfc_main$
|
|
11103
|
+
createVNode(_sfc_main$N, {
|
|
11317
11104
|
src: (_a2 = unref(otherUserInfo)) == null ? void 0 : _a2.avatarUrl,
|
|
11318
11105
|
name: ((_b2 = unref(otherUserInfo)) == null ? void 0 : _b2.name) || ((_c2 = unref(otherUserInfo)) == null ? void 0 : _c2.nickname),
|
|
11319
11106
|
width: 28,
|
|
@@ -11340,9 +11127,9 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
11340
11127
|
};
|
|
11341
11128
|
}
|
|
11342
11129
|
});
|
|
11343
|
-
const HeaderCustom = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11344
|
-
const _hoisted_1$
|
|
11345
|
-
const _sfc_main$
|
|
11130
|
+
const HeaderCustom = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
11131
|
+
const _hoisted_1$E = ["src"];
|
|
11132
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
11346
11133
|
...{ name: "OperationEntry" },
|
|
11347
11134
|
__name: "OperationEntry",
|
|
11348
11135
|
setup(__props) {
|
|
@@ -11386,14 +11173,14 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
11386
11173
|
class: "operation-entry__img",
|
|
11387
11174
|
src: img.value,
|
|
11388
11175
|
alt: "operation-entry"
|
|
11389
|
-
}, null, 8, _hoisted_1$
|
|
11176
|
+
}, null, 8, _hoisted_1$E)
|
|
11390
11177
|
])) : createCommentVNode("", true);
|
|
11391
11178
|
};
|
|
11392
11179
|
}
|
|
11393
11180
|
});
|
|
11394
|
-
const OperationEntry = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11395
|
-
const _hoisted_1$
|
|
11396
|
-
const _sfc_main$
|
|
11181
|
+
const OperationEntry = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
11182
|
+
const _hoisted_1$D = ["src"];
|
|
11183
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
11397
11184
|
__name: "ClaimPower",
|
|
11398
11185
|
props: {
|
|
11399
11186
|
config: {}
|
|
@@ -11416,12 +11203,12 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
11416
11203
|
createElementVNode("img", {
|
|
11417
11204
|
src: _ctx.config.logo_url,
|
|
11418
11205
|
alt: "claim power"
|
|
11419
|
-
}, null, 8, _hoisted_1$
|
|
11206
|
+
}, null, 8, _hoisted_1$D)
|
|
11420
11207
|
])) : createCommentVNode("", true);
|
|
11421
11208
|
};
|
|
11422
11209
|
}
|
|
11423
11210
|
});
|
|
11424
|
-
const ClaimPower = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11211
|
+
const ClaimPower = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
11425
11212
|
const DEFAULT_APPLICATION_HOST = "https://gitcode.com";
|
|
11426
11213
|
function normalizeApplicationHost(host) {
|
|
11427
11214
|
return (host || DEFAULT_APPLICATION_HOST).replace(/\/+$/, "");
|
|
@@ -11456,19 +11243,25 @@ const HEADER_CREATE_MENU_PATHS = [
|
|
|
11456
11243
|
"/collections/create",
|
|
11457
11244
|
"/org/create"
|
|
11458
11245
|
];
|
|
11459
|
-
const
|
|
11460
|
-
const
|
|
11461
|
-
const
|
|
11462
|
-
const
|
|
11463
|
-
const
|
|
11246
|
+
const HEADER_CREATE_ENTERPRISE_PATH = "/enterprises/new";
|
|
11247
|
+
const _hoisted_1$C = { class: "g-header-create dashboard-create-menu" };
|
|
11248
|
+
const _hoisted_2$u = ["title", "aria-label", "aria-expanded"];
|
|
11249
|
+
const _hoisted_3$t = { class: "dashboard-create-menu__trigger-text" };
|
|
11250
|
+
const _hoisted_4$m = ["aria-label"];
|
|
11251
|
+
const _hoisted_5$h = {
|
|
11464
11252
|
key: 0,
|
|
11465
11253
|
class: "dashboard-create-menu__divider",
|
|
11466
11254
|
role: "separator"
|
|
11467
11255
|
};
|
|
11468
|
-
const _hoisted_6$
|
|
11469
|
-
const _hoisted_7$
|
|
11256
|
+
const _hoisted_6$f = ["href", "onClick", "onKeydown"];
|
|
11257
|
+
const _hoisted_7$c = { class: "dashboard-create-menu__title-row" };
|
|
11258
|
+
const _hoisted_8$a = { class: "dashboard-create-menu__title" };
|
|
11259
|
+
const _hoisted_9$9 = {
|
|
11260
|
+
key: 0,
|
|
11261
|
+
class: "dashboard-create-menu__desc"
|
|
11262
|
+
};
|
|
11470
11263
|
const menuId = "gitcode-header-create-menu";
|
|
11471
|
-
const _sfc_main$
|
|
11264
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
11472
11265
|
...{
|
|
11473
11266
|
name: "HeaderCreateMenu"
|
|
11474
11267
|
},
|
|
@@ -11476,6 +11269,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
11476
11269
|
props: {
|
|
11477
11270
|
dropdownVisible: { type: Boolean, default: false },
|
|
11478
11271
|
isCreateOrg: { type: Boolean, default: true },
|
|
11272
|
+
isCreateEnterprise: { type: Boolean, default: false },
|
|
11479
11273
|
items: { default: void 0 },
|
|
11480
11274
|
onNavigate: { type: Function, default: void 0 }
|
|
11481
11275
|
},
|
|
@@ -11490,7 +11284,6 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
11490
11284
|
const triggerRef = ref(null);
|
|
11491
11285
|
const menuRef = ref(null);
|
|
11492
11286
|
const menuOpen = ref(false);
|
|
11493
|
-
const menuStyle = ref({});
|
|
11494
11287
|
const defaultMenuItems = computed(() => {
|
|
11495
11288
|
const [repoPath, importPath, modelPath, datasetPath, spacePath, collectionPath, orgPath] = HEADER_CREATE_MENU_PATHS;
|
|
11496
11289
|
return [
|
|
@@ -11539,9 +11332,16 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
11539
11332
|
}
|
|
11540
11333
|
];
|
|
11541
11334
|
});
|
|
11335
|
+
const enterpriseMenuItem = {
|
|
11336
|
+
key: "enterprise",
|
|
11337
|
+
icon: "gt-a-plane-enterprise",
|
|
11338
|
+
label: t2("gitCodeLayout.header.createMenuEnterprise"),
|
|
11339
|
+
href: toApplicationUrl(layoutConfig2.VITE_HOST, HEADER_CREATE_ENTERPRISE_PATH)
|
|
11340
|
+
};
|
|
11542
11341
|
const menuItems = computed(() => {
|
|
11543
|
-
const
|
|
11544
|
-
|
|
11342
|
+
const baseItems = props.items || defaultMenuItems.value;
|
|
11343
|
+
const items = props.isCreateOrg ? baseItems : baseItems.filter((item) => item.key !== "organization");
|
|
11344
|
+
return props.isCreateEnterprise ? [...items, enterpriseMenuItem] : items;
|
|
11545
11345
|
});
|
|
11546
11346
|
function getMenuItems() {
|
|
11547
11347
|
var _a;
|
|
@@ -11556,63 +11356,33 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
11556
11356
|
(_a = items[safeIndex]) == null ? void 0 : _a.focus();
|
|
11557
11357
|
});
|
|
11558
11358
|
}
|
|
11559
|
-
function
|
|
11560
|
-
if (
|
|
11561
|
-
|
|
11562
|
-
|
|
11563
|
-
|
|
11564
|
-
const menuWidth = Math.min(
|
|
11565
|
-
(menu == null ? void 0 : menu.offsetWidth) || 240,
|
|
11566
|
-
Math.max(0, window.innerWidth - viewportPadding * 2)
|
|
11567
|
-
);
|
|
11568
|
-
const maxHeight = Math.max(180, window.innerHeight - viewportPadding * 2);
|
|
11569
|
-
const menuHeight = Math.min((menu == null ? void 0 : menu.scrollHeight) || maxHeight, maxHeight);
|
|
11570
|
-
const maxLeft = Math.max(viewportPadding, window.innerWidth - menuWidth - viewportPadding);
|
|
11571
|
-
const left = Math.min(triggerRect.right - menuWidth, maxLeft);
|
|
11572
|
-
let top = triggerRect.bottom + viewportPadding;
|
|
11573
|
-
if (top + menuHeight > window.innerHeight - viewportPadding) {
|
|
11574
|
-
const above = triggerRect.top - viewportPadding - menuHeight;
|
|
11575
|
-
top = above >= viewportPadding ? above : window.innerHeight - viewportPadding - menuHeight;
|
|
11576
|
-
}
|
|
11577
|
-
menuStyle.value = {
|
|
11578
|
-
top: `${Math.max(viewportPadding, top)}px`,
|
|
11579
|
-
left: `${Math.max(viewportPadding, left)}px`,
|
|
11580
|
-
maxHeight: `${maxHeight}px`
|
|
11581
|
-
};
|
|
11582
|
-
}
|
|
11583
|
-
function setMenuOpen(open, restoreFocus = false) {
|
|
11584
|
-
menuOpen.value = open;
|
|
11585
|
-
emit("update:dropdownVisible", open);
|
|
11586
|
-
if (open) {
|
|
11587
|
-
void nextTick(updateMenuPosition);
|
|
11588
|
-
} else if (restoreFocus) {
|
|
11359
|
+
function closeMenu(restoreFocus = false) {
|
|
11360
|
+
if (!menuOpen.value) return;
|
|
11361
|
+
menuOpen.value = false;
|
|
11362
|
+
emit("update:dropdownVisible", false);
|
|
11363
|
+
if (restoreFocus) {
|
|
11589
11364
|
void nextTick(() => {
|
|
11590
11365
|
var _a;
|
|
11591
11366
|
return (_a = triggerRef.value) == null ? void 0 : _a.focus();
|
|
11592
11367
|
});
|
|
11593
11368
|
}
|
|
11594
11369
|
}
|
|
11595
|
-
|
|
11596
|
-
|
|
11597
|
-
|
|
11598
|
-
|
|
11599
|
-
|
|
11600
|
-
if (focusIndex !== void 0) focusMenuItem(focusIndex);
|
|
11601
|
-
}
|
|
11602
|
-
function toggleMenu() {
|
|
11603
|
-
if (menuOpen.value) closeMenu();
|
|
11604
|
-
else openMenu();
|
|
11605
|
-
}
|
|
11370
|
+
const handleToggle = (value) => {
|
|
11371
|
+
if (menuOpen.value === value) return;
|
|
11372
|
+
menuOpen.value = value;
|
|
11373
|
+
emit("update:dropdownVisible", value);
|
|
11374
|
+
};
|
|
11606
11375
|
function onTriggerKeydown(event) {
|
|
11607
11376
|
if (event.key === "ArrowDown") {
|
|
11608
11377
|
event.preventDefault();
|
|
11609
|
-
|
|
11378
|
+
menuOpen.value = true;
|
|
11379
|
+
emit("update:dropdownVisible", true);
|
|
11380
|
+
focusMenuItem(0);
|
|
11610
11381
|
} else if (event.key === "ArrowUp") {
|
|
11611
11382
|
event.preventDefault();
|
|
11612
|
-
|
|
11613
|
-
|
|
11614
|
-
|
|
11615
|
-
toggleMenu();
|
|
11383
|
+
menuOpen.value = true;
|
|
11384
|
+
emit("update:dropdownVisible", true);
|
|
11385
|
+
focusMenuItem(menuItems.value.length - 1);
|
|
11616
11386
|
} else if (event.key === "Escape") {
|
|
11617
11387
|
event.preventDefault();
|
|
11618
11388
|
closeMenu(true);
|
|
@@ -11639,17 +11409,6 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
11639
11409
|
if (event.currentTarget instanceof HTMLElement) event.currentTarget.click();
|
|
11640
11410
|
}
|
|
11641
11411
|
}
|
|
11642
|
-
function onDocumentPointerDown(event) {
|
|
11643
|
-
var _a, _b;
|
|
11644
|
-
if (!menuOpen.value) return;
|
|
11645
|
-
const target = event.target;
|
|
11646
|
-
if (!(target instanceof Node)) return;
|
|
11647
|
-
if (((_a = triggerRef.value) == null ? void 0 : _a.contains(target)) || ((_b = menuRef.value) == null ? void 0 : _b.contains(target))) return;
|
|
11648
|
-
closeMenu();
|
|
11649
|
-
}
|
|
11650
|
-
function onWindowChange() {
|
|
11651
|
-
updateMenuPosition();
|
|
11652
|
-
}
|
|
11653
11412
|
function navigateTo(href) {
|
|
11654
11413
|
const applicationHref = toApplicationUrl(layoutConfig2.VITE_HOST, href);
|
|
11655
11414
|
const applicationRoute = toApplicationRoute(layoutConfig2.VITE_HOST, href);
|
|
@@ -11679,99 +11438,96 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
11679
11438
|
() => props.dropdownVisible,
|
|
11680
11439
|
(visible) => {
|
|
11681
11440
|
menuOpen.value = visible;
|
|
11682
|
-
if (visible) void nextTick(updateMenuPosition);
|
|
11683
11441
|
},
|
|
11684
11442
|
{ immediate: true }
|
|
11685
11443
|
);
|
|
11686
|
-
watch(menuOpen, (open) => {
|
|
11687
|
-
if (open) void nextTick(updateMenuPosition);
|
|
11688
|
-
});
|
|
11689
11444
|
watch(
|
|
11690
11445
|
() => route == null ? void 0 : route.fullPath,
|
|
11691
11446
|
() => closeMenu()
|
|
11692
11447
|
);
|
|
11693
|
-
onMounted(() => {
|
|
11694
|
-
document.addEventListener("pointerdown", onDocumentPointerDown, true);
|
|
11695
|
-
window.addEventListener("resize", onWindowChange);
|
|
11696
|
-
window.addEventListener("scroll", onWindowChange, true);
|
|
11697
|
-
});
|
|
11698
|
-
onBeforeUnmount(() => {
|
|
11699
|
-
document.removeEventListener("pointerdown", onDocumentPointerDown, true);
|
|
11700
|
-
window.removeEventListener("resize", onWindowChange);
|
|
11701
|
-
window.removeEventListener("scroll", onWindowChange, true);
|
|
11702
|
-
});
|
|
11703
11448
|
return (_ctx, _cache) => {
|
|
11704
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11705
|
-
|
|
11706
|
-
|
|
11707
|
-
|
|
11708
|
-
|
|
11709
|
-
|
|
11710
|
-
|
|
11711
|
-
|
|
11712
|
-
|
|
11713
|
-
|
|
11714
|
-
|
|
11715
|
-
|
|
11716
|
-
|
|
11717
|
-
|
|
11718
|
-
|
|
11719
|
-
|
|
11720
|
-
|
|
11721
|
-
|
|
11722
|
-
|
|
11723
|
-
|
|
11724
|
-
|
|
11725
|
-
|
|
11726
|
-
|
|
11727
|
-
|
|
11728
|
-
], 40, _hoisted_3$s)
|
|
11729
|
-
]),
|
|
11730
|
-
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
11731
|
-
menuOpen.value ? (openBlock(), createElementBlock("div", {
|
|
11732
|
-
key: 0,
|
|
11733
|
-
id: menuId,
|
|
11734
|
-
ref_key: "menuRef",
|
|
11735
|
-
ref: menuRef,
|
|
11736
|
-
class: "dashboard-create-menu__panel",
|
|
11737
|
-
style: normalizeStyle(menuStyle.value),
|
|
11738
|
-
role: "menu",
|
|
11739
|
-
"aria-label": unref(t2)("gitCodeLayout.header.create")
|
|
11740
|
-
}, [
|
|
11741
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(menuItems.value, (item, index2) => {
|
|
11742
|
-
return openBlock(), createElementBlock(Fragment, {
|
|
11743
|
-
key: item.key
|
|
11744
|
-
}, [
|
|
11745
|
-
item.dividerBefore ? (openBlock(), createElementBlock("div", _hoisted_5$g)) : createCommentVNode("", true),
|
|
11746
|
-
createElementVNode("a", {
|
|
11747
|
-
href: unref(toApplicationUrl)(unref(layoutConfig2).VITE_HOST, item.href),
|
|
11748
|
-
class: "dashboard-create-menu__item",
|
|
11749
|
-
role: "menuitem",
|
|
11750
|
-
tabindex: "-1",
|
|
11751
|
-
onClick: withModifiers(($event) => selectCreateItem(item), ["prevent"]),
|
|
11752
|
-
onKeydown: ($event) => onMenuItemKeydown($event, index2)
|
|
11449
|
+
return openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
11450
|
+
createVNode(unref(Dropdown), {
|
|
11451
|
+
position: ["bottom-end", "bottom-start"],
|
|
11452
|
+
"destroy-on-hide": false,
|
|
11453
|
+
trigger: "hover",
|
|
11454
|
+
offset: { mainAxis: 4, crossAxis: 0 },
|
|
11455
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
11456
|
+
}, ["stop"])),
|
|
11457
|
+
"overlay-class": "dashboard-create-dropdown",
|
|
11458
|
+
visible: menuOpen.value,
|
|
11459
|
+
onToggle: handleToggle
|
|
11460
|
+
}, {
|
|
11461
|
+
menu: withCtx(() => [
|
|
11462
|
+
createElementVNode("div", {
|
|
11463
|
+
id: menuId,
|
|
11464
|
+
ref_key: "menuRef",
|
|
11465
|
+
ref: menuRef,
|
|
11466
|
+
class: "dashboard-create-menu__panel",
|
|
11467
|
+
role: "menu",
|
|
11468
|
+
"aria-label": unref(t2)("gitCodeLayout.header.create")
|
|
11469
|
+
}, [
|
|
11470
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(menuItems.value, (item, index2) => {
|
|
11471
|
+
return openBlock(), createElementBlock(Fragment, {
|
|
11472
|
+
key: item.key
|
|
11753
11473
|
}, [
|
|
11754
|
-
|
|
11755
|
-
|
|
11756
|
-
|
|
11757
|
-
|
|
11758
|
-
|
|
11759
|
-
|
|
11760
|
-
|
|
11761
|
-
|
|
11762
|
-
|
|
11763
|
-
|
|
11764
|
-
|
|
11765
|
-
|
|
11766
|
-
|
|
11767
|
-
|
|
11768
|
-
|
|
11474
|
+
item.dividerBefore ? (openBlock(), createElementBlock("div", _hoisted_5$h)) : createCommentVNode("", true),
|
|
11475
|
+
createElementVNode("a", {
|
|
11476
|
+
href: unref(toApplicationUrl)(unref(layoutConfig2).VITE_HOST, item.href),
|
|
11477
|
+
class: normalizeClass(["dashboard-create-menu__item", { "dashboard-create-menu__item--with-desc": Boolean(item.desc) }]),
|
|
11478
|
+
role: "menuitem",
|
|
11479
|
+
tabindex: "-1",
|
|
11480
|
+
onClick: withModifiers(($event) => selectCreateItem(item), ["prevent"]),
|
|
11481
|
+
onKeydown: ($event) => onMenuItemKeydown($event, index2)
|
|
11482
|
+
}, [
|
|
11483
|
+
createElementVNode("div", _hoisted_7$c, [
|
|
11484
|
+
createVNode(GIcon, {
|
|
11485
|
+
name: item.icon,
|
|
11486
|
+
size: "16px",
|
|
11487
|
+
color: "currentColor",
|
|
11488
|
+
class: "dashboard-create-menu__icon",
|
|
11489
|
+
"aria-hidden": "true"
|
|
11490
|
+
}, null, 8, ["name"]),
|
|
11491
|
+
createElementVNode("span", _hoisted_8$a, toDisplayString$1(item.label), 1)
|
|
11492
|
+
]),
|
|
11493
|
+
item.desc ? (openBlock(), createElementBlock("div", _hoisted_9$9, toDisplayString$1(item.desc), 1)) : createCommentVNode("", true)
|
|
11494
|
+
], 42, _hoisted_6$f)
|
|
11495
|
+
], 64);
|
|
11496
|
+
}), 128))
|
|
11497
|
+
], 8, _hoisted_4$m)
|
|
11498
|
+
]),
|
|
11499
|
+
default: withCtx(() => [
|
|
11500
|
+
createElementVNode("button", {
|
|
11501
|
+
id: "guide-step3",
|
|
11502
|
+
ref_key: "triggerRef",
|
|
11503
|
+
ref: triggerRef,
|
|
11504
|
+
type: "button",
|
|
11505
|
+
class: "dashboard-create-menu__trigger dashboard-create-menu__trigger--header",
|
|
11506
|
+
title: unref(t2)("gitCodeLayout.header.create"),
|
|
11507
|
+
"aria-label": unref(t2)("gitCodeLayout.header.create"),
|
|
11508
|
+
"aria-expanded": menuOpen.value,
|
|
11509
|
+
"aria-controls": menuId,
|
|
11510
|
+
"aria-haspopup": "menu",
|
|
11511
|
+
onKeydown: onTriggerKeydown
|
|
11512
|
+
}, [
|
|
11513
|
+
createVNode(GIcon, {
|
|
11514
|
+
name: "gt-add",
|
|
11515
|
+
size: "16px",
|
|
11516
|
+
color: "var(--theme-light-text)",
|
|
11517
|
+
class: "dashboard-create-menu__trigger-icon",
|
|
11518
|
+
"aria-hidden": "true"
|
|
11519
|
+
}),
|
|
11520
|
+
createElementVNode("span", _hoisted_3$t, toDisplayString$1(unref(t2)("gitCodeLayout.header.create")), 1)
|
|
11521
|
+
], 40, _hoisted_2$u)
|
|
11522
|
+
]),
|
|
11523
|
+
_: 1
|
|
11524
|
+
}, 8, ["visible"])
|
|
11769
11525
|
]);
|
|
11770
11526
|
};
|
|
11771
11527
|
}
|
|
11772
11528
|
});
|
|
11773
|
-
const HeaderCreateMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11774
|
-
const _sfc_main$
|
|
11529
|
+
const HeaderCreateMenu = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
11530
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
11775
11531
|
...{
|
|
11776
11532
|
name: "DocumentCenter"
|
|
11777
11533
|
},
|
|
@@ -11796,7 +11552,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
11796
11552
|
};
|
|
11797
11553
|
}
|
|
11798
11554
|
});
|
|
11799
|
-
const DocumentCenter = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11555
|
+
const DocumentCenter = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
11800
11556
|
var aes = { exports: {} };
|
|
11801
11557
|
function commonjsRequire(path) {
|
|
11802
11558
|
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.');
|
|
@@ -14256,11 +14012,11 @@ function headRequest(request) {
|
|
|
14256
14012
|
}
|
|
14257
14013
|
};
|
|
14258
14014
|
}
|
|
14259
|
-
const _hoisted_1$
|
|
14015
|
+
const _hoisted_1$B = {
|
|
14260
14016
|
key: 1,
|
|
14261
14017
|
class: "g-text-all"
|
|
14262
14018
|
};
|
|
14263
|
-
const _sfc_main$
|
|
14019
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
14264
14020
|
...{ name: "GText" },
|
|
14265
14021
|
__name: "index",
|
|
14266
14022
|
props: {
|
|
@@ -14337,24 +14093,24 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
14337
14093
|
class: "watch-all",
|
|
14338
14094
|
onClick: onShowAll
|
|
14339
14095
|
}, toDisplayString$1(_ctx.$t("gitCodeLayout.notice.msg.viewAll")), 1)) : createCommentVNode("", true)
|
|
14340
|
-
], 6)) : showAllContent.value && finalConfig.value.showAll ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
14096
|
+
], 6)) : showAllContent.value && finalConfig.value.showAll ? (openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
14341
14097
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
14342
14098
|
])) : createCommentVNode("", true);
|
|
14343
14099
|
};
|
|
14344
14100
|
}
|
|
14345
14101
|
});
|
|
14346
|
-
const GText = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
14347
|
-
const _hoisted_1$
|
|
14348
|
-
const _hoisted_2$
|
|
14349
|
-
const _hoisted_3$
|
|
14350
|
-
const _hoisted_4$
|
|
14351
|
-
const _hoisted_5$
|
|
14352
|
-
const _hoisted_6$
|
|
14353
|
-
const _hoisted_7$
|
|
14354
|
-
const _hoisted_8$
|
|
14355
|
-
const _hoisted_9$
|
|
14356
|
-
const _hoisted_10$
|
|
14357
|
-
const _sfc_main$
|
|
14102
|
+
const GText = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
14103
|
+
const _hoisted_1$A = { class: "message-item" };
|
|
14104
|
+
const _hoisted_2$t = { class: "message-item-footer" };
|
|
14105
|
+
const _hoisted_3$s = ["title"];
|
|
14106
|
+
const _hoisted_4$l = ["href"];
|
|
14107
|
+
const _hoisted_5$g = { class: "message-item-info-content" };
|
|
14108
|
+
const _hoisted_6$e = { class: "message-item-body" };
|
|
14109
|
+
const _hoisted_7$b = ["title", "innerHTML"];
|
|
14110
|
+
const _hoisted_8$9 = ["title"];
|
|
14111
|
+
const _hoisted_9$8 = { class: "message-item-info" };
|
|
14112
|
+
const _hoisted_10$8 = { class: "message-item-rightTx message-item-date" };
|
|
14113
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
14358
14114
|
__name: "index",
|
|
14359
14115
|
props: {
|
|
14360
14116
|
data: { default: () => ({}) },
|
|
@@ -14366,8 +14122,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
14366
14122
|
const { formatTimeFromNow } = useTimeFormat();
|
|
14367
14123
|
return (_ctx, _cache) => {
|
|
14368
14124
|
var _a;
|
|
14369
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
14370
|
-
createElementVNode("div", _hoisted_2$
|
|
14125
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
14126
|
+
createElementVNode("div", _hoisted_2$t, [
|
|
14371
14127
|
createElementVNode("div", {
|
|
14372
14128
|
class: "message-item__avatar-wrap",
|
|
14373
14129
|
title: _ctx.data.nickname
|
|
@@ -14377,17 +14133,17 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
14377
14133
|
target: "_blank",
|
|
14378
14134
|
class: "user-info linktx message-item__user-info"
|
|
14379
14135
|
}, [
|
|
14380
|
-
createVNode(_sfc_main$
|
|
14136
|
+
createVNode(_sfc_main$N, {
|
|
14381
14137
|
name: _ctx.data.nickname,
|
|
14382
14138
|
src: _ctx.data.avatar,
|
|
14383
14139
|
width: 32,
|
|
14384
14140
|
height: 32
|
|
14385
14141
|
}, null, 8, ["name", "src"])
|
|
14386
|
-
], 8, _hoisted_4$
|
|
14387
|
-
], 8, _hoisted_3$
|
|
14142
|
+
], 8, _hoisted_4$l)
|
|
14143
|
+
], 8, _hoisted_3$s)
|
|
14388
14144
|
]),
|
|
14389
|
-
createElementVNode("div", _hoisted_5$
|
|
14390
|
-
createElementVNode("div", _hoisted_6$
|
|
14145
|
+
createElementVNode("div", _hoisted_5$g, [
|
|
14146
|
+
createElementVNode("div", _hoisted_6$e, [
|
|
14391
14147
|
createVNode(GLink, {
|
|
14392
14148
|
href: unref(transformUrl)(_ctx.data.url),
|
|
14393
14149
|
target: "_blank",
|
|
@@ -14402,17 +14158,17 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
14402
14158
|
title: _ctx.data.title,
|
|
14403
14159
|
innerHTML: unref(xssPurify)(_ctx.data.title) || "",
|
|
14404
14160
|
class: "message-item__title"
|
|
14405
|
-
}, null, 8, _hoisted_7$
|
|
14161
|
+
}, null, 8, _hoisted_7$b)) : (openBlock(), createElementBlock("span", {
|
|
14406
14162
|
key: 1,
|
|
14407
14163
|
title: _ctx.data.title
|
|
14408
|
-
}, toDisplayString$1(_ctx.data.title || "-"), 9, _hoisted_8$
|
|
14164
|
+
}, toDisplayString$1(_ctx.data.title || "-"), 9, _hoisted_8$9))
|
|
14409
14165
|
]),
|
|
14410
14166
|
_: 1
|
|
14411
14167
|
})
|
|
14412
14168
|
]),
|
|
14413
14169
|
_: 1
|
|
14414
14170
|
}, 8, ["href", "class"]),
|
|
14415
|
-
createElementVNode("div", _hoisted_9$
|
|
14171
|
+
createElementVNode("div", _hoisted_9$8, [
|
|
14416
14172
|
createVNode(GText, null, {
|
|
14417
14173
|
default: withCtx(() => [
|
|
14418
14174
|
createTextVNode(toDisplayString$1(_ctx.data.repo), 1)
|
|
@@ -14429,52 +14185,52 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
14429
14185
|
])
|
|
14430
14186
|
])
|
|
14431
14187
|
]),
|
|
14432
|
-
createElementVNode("div", _hoisted_10$
|
|
14188
|
+
createElementVNode("div", _hoisted_10$8, toDisplayString$1(unref(formatTimeFromNow)(_ctx.data.time)), 1)
|
|
14433
14189
|
]);
|
|
14434
14190
|
};
|
|
14435
14191
|
}
|
|
14436
14192
|
});
|
|
14437
|
-
const MessageItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
14438
|
-
const _hoisted_1$
|
|
14439
|
-
const _hoisted_2$
|
|
14193
|
+
const MessageItem = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
14194
|
+
const _hoisted_1$z = { class: "message-header-nav" };
|
|
14195
|
+
const _hoisted_2$s = {
|
|
14440
14196
|
key: 0,
|
|
14441
14197
|
class: "item-count-icon"
|
|
14442
14198
|
};
|
|
14443
|
-
const _hoisted_3$
|
|
14199
|
+
const _hoisted_3$r = {
|
|
14444
14200
|
key: 1,
|
|
14445
14201
|
class: "g-number"
|
|
14446
14202
|
};
|
|
14447
|
-
const _hoisted_4$
|
|
14203
|
+
const _hoisted_4$k = {
|
|
14448
14204
|
key: 0,
|
|
14449
14205
|
class: "g-number message-box__count"
|
|
14450
14206
|
};
|
|
14451
|
-
const _hoisted_5$
|
|
14452
|
-
const _hoisted_6$
|
|
14207
|
+
const _hoisted_5$f = { class: "message-content-cover" };
|
|
14208
|
+
const _hoisted_6$d = {
|
|
14453
14209
|
key: 0,
|
|
14454
14210
|
class: "message-content-header"
|
|
14455
14211
|
};
|
|
14456
|
-
const _hoisted_7$
|
|
14212
|
+
const _hoisted_7$a = {
|
|
14457
14213
|
key: 0,
|
|
14458
14214
|
class: "g-number"
|
|
14459
14215
|
};
|
|
14460
|
-
const _hoisted_8$
|
|
14216
|
+
const _hoisted_8$8 = {
|
|
14461
14217
|
key: 0,
|
|
14462
14218
|
class: "g-number"
|
|
14463
14219
|
};
|
|
14464
|
-
const _hoisted_9$
|
|
14220
|
+
const _hoisted_9$7 = {
|
|
14465
14221
|
key: 2,
|
|
14466
14222
|
class: "message-content-empty"
|
|
14467
14223
|
};
|
|
14468
|
-
const _hoisted_10$
|
|
14224
|
+
const _hoisted_10$7 = {
|
|
14469
14225
|
key: 3,
|
|
14470
14226
|
class: "loading-more"
|
|
14471
14227
|
};
|
|
14472
|
-
const _hoisted_11$
|
|
14228
|
+
const _hoisted_11$6 = {
|
|
14473
14229
|
key: 4,
|
|
14474
14230
|
class: "no-more"
|
|
14475
14231
|
};
|
|
14476
|
-
const _hoisted_12$
|
|
14477
|
-
const _sfc_main$
|
|
14232
|
+
const _hoisted_12$6 = { class: "message-footer-nav" };
|
|
14233
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
14478
14234
|
__name: "MessageBox",
|
|
14479
14235
|
setup(__props, { expose: __expose }) {
|
|
14480
14236
|
var _a;
|
|
@@ -14745,7 +14501,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
14745
14501
|
class: "message-box",
|
|
14746
14502
|
onClick: _cache[5] || (_cache[5] = withModifiers(($event) => console.log("stop"), ["stop"]))
|
|
14747
14503
|
}, [
|
|
14748
|
-
createElementVNode("div", _hoisted_1$
|
|
14504
|
+
createElementVNode("div", _hoisted_1$z, [
|
|
14749
14505
|
createVNode(unref(Tabs), {
|
|
14750
14506
|
modelValue: checkedId.value,
|
|
14751
14507
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => checkedId.value = $event),
|
|
@@ -14761,7 +14517,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
14761
14517
|
createElementVNode("div", {
|
|
14762
14518
|
class: normalizeClass(["message-header-nav-item", { "message-header-nav-item-active": item.messageType === checkedId.value }])
|
|
14763
14519
|
}, [
|
|
14764
|
-
item.icon ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
14520
|
+
item.icon ? (openBlock(), createElementBlock("div", _hoisted_2$s, [
|
|
14765
14521
|
createVNode(GIcon, {
|
|
14766
14522
|
name: item.icon,
|
|
14767
14523
|
size: "16px",
|
|
@@ -14774,7 +14530,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
14774
14530
|
}, null, 8, ["name"])
|
|
14775
14531
|
])) : createCommentVNode("", true),
|
|
14776
14532
|
createElementVNode("span", null, toDisplayString$1(item.text), 1),
|
|
14777
|
-
item.count > 0 ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
14533
|
+
item.count > 0 ? (openBlock(), createElementBlock("span", _hoisted_3$r, toDisplayString$1(item.count), 1)) : createCommentVNode("", true)
|
|
14778
14534
|
], 2)
|
|
14779
14535
|
]),
|
|
14780
14536
|
_: 2
|
|
@@ -14788,7 +14544,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
14788
14544
|
onClick: _cache[1] || (_cache[1] = ($event) => toPage("unread"))
|
|
14789
14545
|
}, [
|
|
14790
14546
|
createTextVNode(toDisplayString$1(unref(t2)("gitCodeLayout.notice.msg.allUnread")), 1),
|
|
14791
|
-
msgCount.value > 0 ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
14547
|
+
msgCount.value > 0 ? (openBlock(), createElementBlock("span", _hoisted_4$k, toDisplayString$1(msgCount.value), 1)) : createCommentVNode("", true)
|
|
14792
14548
|
])
|
|
14793
14549
|
]),
|
|
14794
14550
|
createElementVNode("div", {
|
|
@@ -14796,21 +14552,21 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
14796
14552
|
ref: scrollContainer,
|
|
14797
14553
|
class: "message-content"
|
|
14798
14554
|
}, [
|
|
14799
|
-
withDirectives((openBlock(), createElementBlock("div", _hoisted_5$
|
|
14800
|
-
currentType.value === "mention" ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
14555
|
+
withDirectives((openBlock(), createElementBlock("div", _hoisted_5$f, [
|
|
14556
|
+
currentType.value === "mention" ? (openBlock(), createElementBlock("div", _hoisted_6$d, [
|
|
14801
14557
|
createElementVNode("div", {
|
|
14802
14558
|
class: normalizeClass(["message-content-header-item message-content-header-item--mr", { active: mentionSubTab.value === "project" }]),
|
|
14803
14559
|
onClick: _cache[2] || (_cache[2] = ($event) => switchMentionSubTab("project"))
|
|
14804
14560
|
}, [
|
|
14805
14561
|
_cache[6] || (_cache[6] = createTextVNode(" 项目相关 ")),
|
|
14806
|
-
mentionSubTabCount.value.project > 0 ? (openBlock(), createElementBlock("span", _hoisted_7$
|
|
14562
|
+
mentionSubTabCount.value.project > 0 ? (openBlock(), createElementBlock("span", _hoisted_7$a, toDisplayString$1(mentionSubTabCount.value.project), 1)) : createCommentVNode("", true)
|
|
14807
14563
|
], 2),
|
|
14808
14564
|
createElementVNode("div", {
|
|
14809
14565
|
class: normalizeClass(["message-content-header-item", { active: mentionSubTab.value === "discussion" }]),
|
|
14810
14566
|
onClick: _cache[3] || (_cache[3] = ($event) => switchMentionSubTab("discussion"))
|
|
14811
14567
|
}, [
|
|
14812
14568
|
_cache[7] || (_cache[7] = createTextVNode(" 在线讨论 ")),
|
|
14813
|
-
mentionSubTabCount.value.discussion > 0 ? (openBlock(), createElementBlock("span", _hoisted_8$
|
|
14569
|
+
mentionSubTabCount.value.discussion > 0 ? (openBlock(), createElementBlock("span", _hoisted_8$8, toDisplayString$1(mentionSubTabCount.value.discussion), 1)) : createCommentVNode("", true)
|
|
14814
14570
|
], 2)
|
|
14815
14571
|
])) : createCommentVNode("", true),
|
|
14816
14572
|
listData.value.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(listData.value, (item) => {
|
|
@@ -14820,16 +14576,16 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
14820
14576
|
data: item,
|
|
14821
14577
|
onTrigger: ($event) => handleMessageRead(item)
|
|
14822
14578
|
}, null, 8, ["type", "data", "onTrigger"]);
|
|
14823
|
-
}), 128)) : (openBlock(), createElementBlock("div", _hoisted_9$
|
|
14579
|
+
}), 128)) : (openBlock(), createElementBlock("div", _hoisted_9$7, [
|
|
14824
14580
|
createElementVNode("div", null, toDisplayString$1(unref(t2)("gitCodeLayout.notice.msg.noMessage")), 1)
|
|
14825
14581
|
])),
|
|
14826
|
-
loadingMore.value ? (openBlock(), createElementBlock("div", _hoisted_10$
|
|
14827
|
-
!hasMore.value && listData.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_11$
|
|
14582
|
+
loadingMore.value ? (openBlock(), createElementBlock("div", _hoisted_10$7, toDisplayString$1(unref(t2)("gitCodeLayout.notice.msg.loading")) + "... ", 1)) : createCommentVNode("", true),
|
|
14583
|
+
!hasMore.value && listData.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_11$6, toDisplayString$1(unref(t2)("gitCodeLayout.notice.msg.noMore")), 1)) : createCommentVNode("", true)
|
|
14828
14584
|
])), [
|
|
14829
14585
|
[_directive_loading, loading.value]
|
|
14830
14586
|
])
|
|
14831
14587
|
], 512),
|
|
14832
|
-
createElementVNode("div", _hoisted_12$
|
|
14588
|
+
createElementVNode("div", _hoisted_12$6, [
|
|
14833
14589
|
createElementVNode("div", { onClick: setPageRead }, toDisplayString$1(unref(t2)("gitCodeLayout.notice.msg.pageRead")), 1),
|
|
14834
14590
|
createElementVNode("div", {
|
|
14835
14591
|
onClick: _cache[4] || (_cache[4] = ($event) => toPage("all"))
|
|
@@ -14839,8 +14595,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
14839
14595
|
};
|
|
14840
14596
|
}
|
|
14841
14597
|
});
|
|
14842
|
-
const MessageBox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
14843
|
-
const _sfc_main$
|
|
14598
|
+
const MessageBox = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
14599
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
14844
14600
|
...{
|
|
14845
14601
|
name: "Notice"
|
|
14846
14602
|
},
|
|
@@ -14884,13 +14640,14 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
14884
14640
|
return (_ctx, _cache) => {
|
|
14885
14641
|
return unref(isMobile) ? (openBlock(), createBlock(GLink, {
|
|
14886
14642
|
key: 0,
|
|
14643
|
+
class: "g-notice-btn",
|
|
14887
14644
|
href: `${unref(transformUrl)(unref(layoutConfig2).VITE_HOST)}/notice?message_sate=countNotRead`
|
|
14888
14645
|
}, {
|
|
14889
14646
|
default: withCtx(() => [
|
|
14890
14647
|
createVNode(unref(Badge), {
|
|
14891
14648
|
class: "g-notice",
|
|
14892
14649
|
count: counts.value,
|
|
14893
|
-
offset: [-
|
|
14650
|
+
offset: [-2, -2],
|
|
14894
14651
|
hidden: !counts.value,
|
|
14895
14652
|
status: "danger"
|
|
14896
14653
|
}, {
|
|
@@ -14910,7 +14667,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
14910
14667
|
position: ["bottom-start"],
|
|
14911
14668
|
"destroy-on-hide": false,
|
|
14912
14669
|
trigger: "hover",
|
|
14913
|
-
offset: { mainAxis:
|
|
14670
|
+
offset: { mainAxis: 8, crossAxis: 0 },
|
|
14914
14671
|
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
14915
14672
|
}, ["stop"])),
|
|
14916
14673
|
"overlay-class": "g-user-dropdown",
|
|
@@ -14925,13 +14682,14 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
14925
14682
|
]),
|
|
14926
14683
|
default: withCtx(() => [
|
|
14927
14684
|
createVNode(GLink, {
|
|
14685
|
+
class: "g-notice-btn",
|
|
14928
14686
|
href: `${unref(transformUrl)(unref(layoutConfig2).VITE_HOST)}/notice?message_sate=countNotRead`
|
|
14929
14687
|
}, {
|
|
14930
14688
|
default: withCtx(() => [
|
|
14931
14689
|
createVNode(unref(Badge), {
|
|
14932
14690
|
class: "g-notice",
|
|
14933
14691
|
count: counts.value,
|
|
14934
|
-
offset: [-
|
|
14692
|
+
offset: [-2, -2],
|
|
14935
14693
|
hidden: !counts.value,
|
|
14936
14694
|
status: "danger"
|
|
14937
14695
|
}, {
|
|
@@ -14953,9 +14711,9 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
14953
14711
|
};
|
|
14954
14712
|
}
|
|
14955
14713
|
});
|
|
14956
|
-
const Notice = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
14957
|
-
const _hoisted_1$
|
|
14958
|
-
const _sfc_main$
|
|
14714
|
+
const Notice = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
14715
|
+
const _hoisted_1$y = { class: "devui-select__item g-option-link" };
|
|
14716
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
14959
14717
|
...{
|
|
14960
14718
|
name: "OptionLink"
|
|
14961
14719
|
},
|
|
@@ -14973,7 +14731,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
14973
14731
|
},
|
|
14974
14732
|
setup(__props) {
|
|
14975
14733
|
return (_ctx, _cache) => {
|
|
14976
|
-
return openBlock(), createElementBlock("li", _hoisted_1$
|
|
14734
|
+
return openBlock(), createElementBlock("li", _hoisted_1$y, [
|
|
14977
14735
|
createVNode(GLink, normalizeProps(guardReactiveProps(_ctx.$props)), {
|
|
14978
14736
|
default: withCtx(() => [
|
|
14979
14737
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
@@ -14984,7 +14742,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
14984
14742
|
};
|
|
14985
14743
|
}
|
|
14986
14744
|
});
|
|
14987
|
-
const OptionLink = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
14745
|
+
const OptionLink = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
14988
14746
|
function useCookie(key, defaultValue, options = COOKIE_OPTIONS) {
|
|
14989
14747
|
const allCookies = api.get() || {};
|
|
14990
14748
|
const storedValue = allCookies[key] || localStorage$2.getItem(key);
|
|
@@ -15008,10 +14766,10 @@ function useCookie(key, defaultValue, options = COOKIE_OPTIONS) {
|
|
|
15008
14766
|
);
|
|
15009
14767
|
return value;
|
|
15010
14768
|
}
|
|
15011
|
-
const _hoisted_1$
|
|
15012
|
-
const _hoisted_2$
|
|
15013
|
-
const _hoisted_3$
|
|
15014
|
-
const _sfc_main$
|
|
14769
|
+
const _hoisted_1$x = { class: "tools-item-wrapper" };
|
|
14770
|
+
const _hoisted_2$r = { class: "tools-item-wrapper-checkbox" };
|
|
14771
|
+
const _hoisted_3$q = ["onClick", "title"];
|
|
14772
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
15015
14773
|
__name: "Lang",
|
|
15016
14774
|
setup(__props) {
|
|
15017
14775
|
const lang = useCookie(LANG_KEY, LANG_ZH);
|
|
@@ -15033,9 +14791,9 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
15033
14791
|
window.location.reload();
|
|
15034
14792
|
};
|
|
15035
14793
|
return (_ctx, _cache) => {
|
|
15036
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
14794
|
+
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
15037
14795
|
createElementVNode("div", null, toDisplayString$1(unref(t2)("gitCodeLayout.common.footerSetting.lang")), 1),
|
|
15038
|
-
createElementVNode("div", _hoisted_2$
|
|
14796
|
+
createElementVNode("div", _hoisted_2$r, [
|
|
15039
14797
|
(openBlock(true), createElementBlock(Fragment, null, renderList(linkList.value, (item) => {
|
|
15040
14798
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
15041
14799
|
key: item.label,
|
|
@@ -15051,26 +14809,26 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
15051
14809
|
color: "var(--theme-icon-fill-weak)",
|
|
15052
14810
|
class: "checkbox-item-icon"
|
|
15053
14811
|
}, null, 8, ["name"])
|
|
15054
|
-
], 16, _hoisted_3$
|
|
14812
|
+
], 16, _hoisted_3$q);
|
|
15055
14813
|
}), 128))
|
|
15056
14814
|
])
|
|
15057
14815
|
]);
|
|
15058
14816
|
};
|
|
15059
14817
|
}
|
|
15060
14818
|
});
|
|
15061
|
-
const _hoisted_1$
|
|
14819
|
+
const _hoisted_1$w = {
|
|
15062
14820
|
key: 0,
|
|
15063
14821
|
class: "user-level-avatar-badge"
|
|
15064
14822
|
};
|
|
15065
|
-
const _hoisted_2$
|
|
15066
|
-
const _hoisted_3$
|
|
15067
|
-
const _hoisted_4$
|
|
15068
|
-
const _hoisted_5$
|
|
15069
|
-
const _hoisted_6$
|
|
15070
|
-
const _hoisted_7$
|
|
15071
|
-
const _hoisted_8$
|
|
14823
|
+
const _hoisted_2$q = { class: "user-level__row" };
|
|
14824
|
+
const _hoisted_3$p = ["src"];
|
|
14825
|
+
const _hoisted_4$j = { class: "level-name" };
|
|
14826
|
+
const _hoisted_5$e = { class: "level-icon" };
|
|
14827
|
+
const _hoisted_6$c = ["src"];
|
|
14828
|
+
const _hoisted_7$9 = { class: "custom-btn" };
|
|
14829
|
+
const _hoisted_8$7 = { class: "user-level__btn-text" };
|
|
15072
14830
|
const maxLevel = 3;
|
|
15073
|
-
const _sfc_main$
|
|
14831
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
15074
14832
|
...{ name: "UserLevel" },
|
|
15075
14833
|
__name: "UserLevel",
|
|
15076
14834
|
props: ["accountInfo"],
|
|
@@ -15121,40 +14879,40 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
15121
14879
|
class: normalizeClass(["user-level", { [unref(ThemeType).BLACK]: unref(currentTheme) === unref(ThemeType).BLACK }]),
|
|
15122
14880
|
onClick: handleUpgrade
|
|
15123
14881
|
}, [
|
|
15124
|
-
__props.accountInfo.need_tips ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
15125
|
-
createElementVNode("div", _hoisted_2$
|
|
14882
|
+
__props.accountInfo.need_tips ? (openBlock(), createElementBlock("div", _hoisted_1$w)) : createCommentVNode("", true),
|
|
14883
|
+
createElementVNode("div", _hoisted_2$q, [
|
|
15126
14884
|
createElementVNode("img", {
|
|
15127
14885
|
class: "level-avatar",
|
|
15128
14886
|
src: levelInfo.value.avatar,
|
|
15129
14887
|
alt: ""
|
|
15130
|
-
}, null, 8, _hoisted_3$
|
|
15131
|
-
createElementVNode("div", _hoisted_4$
|
|
14888
|
+
}, null, 8, _hoisted_3$p),
|
|
14889
|
+
createElementVNode("div", _hoisted_4$j, [
|
|
15132
14890
|
createElementVNode("div", null, toDisplayString$1(levelInfo.value.name), 1),
|
|
15133
|
-
createElementVNode("div", _hoisted_5$
|
|
14891
|
+
createElementVNode("div", _hoisted_5$e, [
|
|
15134
14892
|
createElementVNode("img", {
|
|
15135
14893
|
src: levelInfo.value.level,
|
|
15136
14894
|
alt: ""
|
|
15137
|
-
}, null, 8, _hoisted_6$
|
|
14895
|
+
}, null, 8, _hoisted_6$c)
|
|
15138
14896
|
])
|
|
15139
14897
|
])
|
|
15140
14898
|
]),
|
|
15141
|
-
createElementVNode("div", _hoisted_7$
|
|
15142
|
-
createElementVNode("div", _hoisted_8$
|
|
14899
|
+
createElementVNode("div", _hoisted_7$9, [
|
|
14900
|
+
createElementVNode("div", _hoisted_8$7, toDisplayString$1(unref(t2)("gitCodeLayout.userSetting.tips.getPoints")), 1)
|
|
15143
14901
|
])
|
|
15144
14902
|
], 2);
|
|
15145
14903
|
};
|
|
15146
14904
|
}
|
|
15147
14905
|
});
|
|
15148
|
-
const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15149
|
-
const _hoisted_1$
|
|
15150
|
-
const _hoisted_2$
|
|
15151
|
-
const _hoisted_3$
|
|
15152
|
-
const _hoisted_4$
|
|
15153
|
-
const _hoisted_5$
|
|
14906
|
+
const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
14907
|
+
const _hoisted_1$v = { class: "g-user-drawer-info-list" };
|
|
14908
|
+
const _hoisted_2$p = { class: "g-user-drawer-info-list__name-wrap" };
|
|
14909
|
+
const _hoisted_3$o = ["title"];
|
|
14910
|
+
const _hoisted_4$i = ["title"];
|
|
14911
|
+
const _hoisted_5$d = {
|
|
15154
14912
|
key: 0,
|
|
15155
14913
|
class: "g-user-drawer-lang-row"
|
|
15156
14914
|
};
|
|
15157
|
-
const _sfc_main$
|
|
14915
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
15158
14916
|
__name: "UserAvatarMenu",
|
|
15159
14917
|
props: {
|
|
15160
14918
|
isChatBot: { type: Boolean },
|
|
@@ -15296,7 +15054,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
15296
15054
|
});
|
|
15297
15055
|
const avatarLangBlock = {
|
|
15298
15056
|
id: "avatar-lang",
|
|
15299
|
-
component: markRaw(_sfc_main$
|
|
15057
|
+
component: markRaw(_sfc_main$B),
|
|
15300
15058
|
avatarLangRow: true
|
|
15301
15059
|
};
|
|
15302
15060
|
const shouldShowEnterpriseLang = computed(
|
|
@@ -15373,22 +15131,22 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
15373
15131
|
target: _ctx.isChatBot ? "_blank" : ""
|
|
15374
15132
|
}, {
|
|
15375
15133
|
default: withCtx(() => [
|
|
15376
|
-
createVNode(_sfc_main$
|
|
15134
|
+
createVNode(_sfc_main$N, {
|
|
15377
15135
|
name: _ctx.accountInfo.nickname || "",
|
|
15378
15136
|
src: _ctx.accountInfo.avatar || "",
|
|
15379
15137
|
width: 52,
|
|
15380
15138
|
height: 52
|
|
15381
15139
|
}, null, 8, ["name", "src"]),
|
|
15382
|
-
createElementVNode("div", _hoisted_1$
|
|
15383
|
-
createElementVNode("div", _hoisted_2$
|
|
15140
|
+
createElementVNode("div", _hoisted_1$v, [
|
|
15141
|
+
createElementVNode("div", _hoisted_2$p, [
|
|
15384
15142
|
createElementVNode("p", {
|
|
15385
15143
|
class: "g-user-drawer-info-list-name ellipsis",
|
|
15386
15144
|
title: _ctx.accountInfo.nickname
|
|
15387
|
-
}, toDisplayString$1(_ctx.accountInfo.nickname), 9, _hoisted_3$
|
|
15145
|
+
}, toDisplayString$1(_ctx.accountInfo.nickname), 9, _hoisted_3$o),
|
|
15388
15146
|
createElementVNode("p", {
|
|
15389
15147
|
class: "g-user-drawer-info-list-id ellipsis",
|
|
15390
15148
|
title: _ctx.accountInfo.username
|
|
15391
|
-
}, "@" + toDisplayString$1(_ctx.accountInfo.username), 9, _hoisted_4$
|
|
15149
|
+
}, "@" + toDisplayString$1(_ctx.accountInfo.username), 9, _hoisted_4$i)
|
|
15392
15150
|
]),
|
|
15393
15151
|
createVNode(GIcon, {
|
|
15394
15152
|
name: "gt-line-right",
|
|
@@ -15408,7 +15166,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
15408
15166
|
key: index2
|
|
15409
15167
|
}, [
|
|
15410
15168
|
block.component ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
15411
|
-
block.avatarLangRow ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
15169
|
+
block.avatarLangRow ? (openBlock(), createElementBlock("div", _hoisted_5$d, [
|
|
15412
15170
|
(openBlock(), createBlock(resolveDynamicComponent(block.component), {
|
|
15413
15171
|
key: block.id
|
|
15414
15172
|
}))
|
|
@@ -15441,20 +15199,20 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
15441
15199
|
};
|
|
15442
15200
|
}
|
|
15443
15201
|
});
|
|
15444
|
-
const UserAvatarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15445
|
-
const _hoisted_1$
|
|
15446
|
-
const _hoisted_2$
|
|
15202
|
+
const UserAvatarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
15203
|
+
const _hoisted_1$u = { class: "g-user-avatar flex-center" };
|
|
15204
|
+
const _hoisted_2$o = {
|
|
15447
15205
|
key: 0,
|
|
15448
15206
|
class: "g-user-avatar__badge"
|
|
15449
15207
|
};
|
|
15450
|
-
const _hoisted_3$
|
|
15451
|
-
const _hoisted_4$
|
|
15208
|
+
const _hoisted_3$n = { class: "g-user-avatar flex-center" };
|
|
15209
|
+
const _hoisted_4$h = {
|
|
15452
15210
|
key: 0,
|
|
15453
15211
|
class: "g-user-avatar__badge"
|
|
15454
15212
|
};
|
|
15455
|
-
const _hoisted_5$
|
|
15456
|
-
const _hoisted_6$
|
|
15457
|
-
const _sfc_main$
|
|
15213
|
+
const _hoisted_5$c = { class: "g-user-drawer" };
|
|
15214
|
+
const _hoisted_6$b = { class: "user-avatar__drawer-header" };
|
|
15215
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
15458
15216
|
...{
|
|
15459
15217
|
name: "UserAvatar"
|
|
15460
15218
|
},
|
|
@@ -15593,12 +15351,12 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
15593
15351
|
key: 0,
|
|
15594
15352
|
onClick: _cache[0] || (_cache[0] = ($event) => drawerVisible.value = true)
|
|
15595
15353
|
}, [
|
|
15596
|
-
createElementVNode("div", _hoisted_1$
|
|
15597
|
-
createVNode(_sfc_main$
|
|
15354
|
+
createElementVNode("div", _hoisted_1$u, [
|
|
15355
|
+
createVNode(_sfc_main$N, {
|
|
15598
15356
|
name: accountInfo.value.nickname,
|
|
15599
15357
|
src: unref(transformUrl)(accountInfo.value.avatar)
|
|
15600
15358
|
}, null, 8, ["name", "src"]),
|
|
15601
|
-
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
15359
|
+
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_2$o, _cache[4] || (_cache[4] = [
|
|
15602
15360
|
createElementVNode("div", null, null, -1)
|
|
15603
15361
|
]))) : createCommentVNode("", true)
|
|
15604
15362
|
])
|
|
@@ -15611,7 +15369,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
15611
15369
|
onToggle: handleToggle
|
|
15612
15370
|
}, {
|
|
15613
15371
|
menu: withCtx(() => [
|
|
15614
|
-
createElementVNode("div", _hoisted_5$
|
|
15372
|
+
createElementVNode("div", _hoisted_5$c, [
|
|
15615
15373
|
createVNode(UserAvatarMenu, {
|
|
15616
15374
|
independence: _ctx.independence,
|
|
15617
15375
|
loginOutFinish: _ctx.loginOutFinish,
|
|
@@ -15625,12 +15383,12 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
15625
15383
|
])
|
|
15626
15384
|
]),
|
|
15627
15385
|
default: withCtx(() => [
|
|
15628
|
-
createElementVNode("div", _hoisted_3$
|
|
15629
|
-
createVNode(_sfc_main$
|
|
15386
|
+
createElementVNode("div", _hoisted_3$n, [
|
|
15387
|
+
createVNode(_sfc_main$N, {
|
|
15630
15388
|
name: accountInfo.value.nickname,
|
|
15631
15389
|
src: unref(transformUrl)(accountInfo.value.avatar)
|
|
15632
15390
|
}, null, 8, ["name", "src"]),
|
|
15633
|
-
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
15391
|
+
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_4$h, _cache[5] || (_cache[5] = [
|
|
15634
15392
|
createElementVNode("div", null, null, -1)
|
|
15635
15393
|
]))) : createCommentVNode("", true)
|
|
15636
15394
|
])
|
|
@@ -15646,7 +15404,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
15646
15404
|
}, {
|
|
15647
15405
|
default: withCtx(() => [
|
|
15648
15406
|
createElementVNode("div", null, [
|
|
15649
|
-
createElementVNode("div", _hoisted_6$
|
|
15407
|
+
createElementVNode("div", _hoisted_6$b, [
|
|
15650
15408
|
createVNode(unref(Button), {
|
|
15651
15409
|
class: "draw-side-bar-close",
|
|
15652
15410
|
icon: "close",
|
|
@@ -15673,7 +15431,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
15673
15431
|
};
|
|
15674
15432
|
}
|
|
15675
15433
|
});
|
|
15676
|
-
const UserAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15434
|
+
const UserAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
15677
15435
|
var EVENT_NAME = /* @__PURE__ */ ((EVENT_NAME2) => {
|
|
15678
15436
|
EVENT_NAME2["START_SEARCH"] = "开始搜索";
|
|
15679
15437
|
EVENT_NAME2["SEARCH"] = "搜索";
|
|
@@ -15909,16 +15667,16 @@ const buildQualifierPrefix = (info) => {
|
|
|
15909
15667
|
}
|
|
15910
15668
|
return `${key}:${info.searchScopeName} `;
|
|
15911
15669
|
};
|
|
15912
|
-
const _hoisted_1$
|
|
15670
|
+
const _hoisted_1$t = {
|
|
15913
15671
|
key: 0,
|
|
15914
15672
|
class: "devui-input-slot__prefix"
|
|
15915
15673
|
};
|
|
15916
|
-
const _hoisted_2$
|
|
15917
|
-
const _hoisted_3$
|
|
15674
|
+
const _hoisted_2$n = ["value"];
|
|
15675
|
+
const _hoisted_3$m = {
|
|
15918
15676
|
key: 1,
|
|
15919
15677
|
class: "devui-input-slot__suffix"
|
|
15920
15678
|
};
|
|
15921
|
-
const _sfc_main$
|
|
15679
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
15922
15680
|
...{
|
|
15923
15681
|
name: "HighlightInput",
|
|
15924
15682
|
inheritAttrs: false
|
|
@@ -16086,7 +15844,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
16086
15844
|
class: normalizeClass(["devui-input__wrapper devui-input--glow-style hl-search-input", [rootClass.value, { "devui-input--focus": isFocused.value }]]),
|
|
16087
15845
|
style: normalizeStyle(rootStyle.value)
|
|
16088
15846
|
}, [
|
|
16089
|
-
_ctx.$slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
15847
|
+
_ctx.$slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
16090
15848
|
renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
|
|
16091
15849
|
])) : createCommentVNode("", true),
|
|
16092
15850
|
createElementVNode("div", {
|
|
@@ -16112,16 +15870,16 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
16112
15870
|
ref: nativeRef,
|
|
16113
15871
|
class: "devui-input__inner hl-search-input__native",
|
|
16114
15872
|
value: _ctx.modelValue
|
|
16115
|
-
}, inputAttrs.value, { onInput }), null, 16, _hoisted_2$
|
|
15873
|
+
}, inputAttrs.value, { onInput }), null, 16, _hoisted_2$n)
|
|
16116
15874
|
], 512),
|
|
16117
|
-
_ctx.$slots.suffix ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
15875
|
+
_ctx.$slots.suffix ? (openBlock(), createElementBlock("div", _hoisted_3$m, [
|
|
16118
15876
|
renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
|
|
16119
15877
|
])) : createCommentVNode("", true)
|
|
16120
15878
|
], 6);
|
|
16121
15879
|
};
|
|
16122
15880
|
}
|
|
16123
15881
|
});
|
|
16124
|
-
const HighlightInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15882
|
+
const HighlightInput = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
16125
15883
|
const SEARCH_ROUTE_PATHS = /* @__PURE__ */ new Set(["/search", "/search/"]);
|
|
16126
15884
|
const SEARCH_SCOPE_QUERY_KEYS = ["scope", "repo", "org", "user", "namespace"];
|
|
16127
15885
|
const firstNonEmpty = (...values) => {
|
|
@@ -16172,18 +15930,18 @@ const normalizeSearchHotWordUrl = (original, defaultGlobalSearchType, sourceModu
|
|
|
16172
15930
|
}
|
|
16173
15931
|
return serializeHotWordUrl(url, original);
|
|
16174
15932
|
};
|
|
16175
|
-
const _hoisted_1$
|
|
16176
|
-
const _hoisted_2$
|
|
16177
|
-
const _hoisted_3$
|
|
16178
|
-
const _hoisted_4$
|
|
16179
|
-
const _hoisted_5$
|
|
16180
|
-
const _hoisted_6$
|
|
15933
|
+
const _hoisted_1$s = { class: "g-header-search-prefix" };
|
|
15934
|
+
const _hoisted_2$m = ["innerHTML"];
|
|
15935
|
+
const _hoisted_3$l = { class: "g-header-search-suffix-splitline" };
|
|
15936
|
+
const _hoisted_4$g = { class: "g-header-search-suffix-suffixIcon" };
|
|
15937
|
+
const _hoisted_5$b = { class: "history-list" };
|
|
15938
|
+
const _hoisted_6$a = {
|
|
16181
15939
|
key: 1,
|
|
16182
15940
|
class: "aireposearch aireposearch--flex"
|
|
16183
15941
|
};
|
|
16184
15942
|
const RECOMMEND_RESERVE = 60;
|
|
16185
15943
|
const HISTORY_DISPLAY_COUNT = 3;
|
|
16186
|
-
const _sfc_main$
|
|
15944
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
16187
15945
|
__name: "index",
|
|
16188
15946
|
props: {
|
|
16189
15947
|
inAIHub: { type: Boolean },
|
|
@@ -16194,12 +15952,12 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
16194
15952
|
setup(__props) {
|
|
16195
15953
|
const layoutConfig2 = useLayoutConfig();
|
|
16196
15954
|
const { t: $t } = i18n.global;
|
|
16197
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
16198
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
16199
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
16200
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
16201
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
16202
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
15955
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-_5GDmfzm.js"));
|
|
15956
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-CfD2dGF1.js"));
|
|
15957
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-DDO1PY6e.js"));
|
|
15958
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-CLdymHCy.js"));
|
|
15959
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-Bm2E0v-n.js"));
|
|
15960
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-DYCQOIyY.js"));
|
|
16203
15961
|
const props = __props;
|
|
16204
15962
|
const repoInfo = inject("repoInfo", computed(() => void 0));
|
|
16205
15963
|
const orgInfo = inject("orgInfo", computed(() => void 0));
|
|
@@ -16753,7 +16511,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
16753
16511
|
}, {
|
|
16754
16512
|
menu: withCtx(() => [
|
|
16755
16513
|
createElementVNode("div", null, [
|
|
16756
|
-
withDirectives(createElementVNode("div", _hoisted_5$
|
|
16514
|
+
withDirectives(createElementVNode("div", _hoisted_5$b, [
|
|
16757
16515
|
createVNode(unref(SearchScopeList), {
|
|
16758
16516
|
searchScopeList: searchScopeList.value,
|
|
16759
16517
|
onScopeSearch
|
|
@@ -16821,7 +16579,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
16821
16579
|
ref: inputRef
|
|
16822
16580
|
}, {
|
|
16823
16581
|
prefix: withCtx(() => [
|
|
16824
|
-
createElementVNode("div", _hoisted_1$
|
|
16582
|
+
createElementVNode("div", _hoisted_1$s, [
|
|
16825
16583
|
createVNode(GIcon, {
|
|
16826
16584
|
name: "gt-search",
|
|
16827
16585
|
class: "g-header-search-icon",
|
|
@@ -16845,7 +16603,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
16845
16603
|
class: "quick-tips",
|
|
16846
16604
|
innerHTML: unref(quickTips),
|
|
16847
16605
|
onClick: onInputClick
|
|
16848
|
-
}, null, 8, _hoisted_2$
|
|
16606
|
+
}, null, 8, _hoisted_2$m)), [
|
|
16849
16607
|
[vShow, placeholderVisible.value]
|
|
16850
16608
|
])
|
|
16851
16609
|
]),
|
|
@@ -16862,10 +16620,10 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
16862
16620
|
}, null, 512), [
|
|
16863
16621
|
[vShow, searchStr.value]
|
|
16864
16622
|
]),
|
|
16865
|
-
withDirectives(createElementVNode("span", _hoisted_3$
|
|
16623
|
+
withDirectives(createElementVNode("span", _hoisted_3$l, "|", 512), [
|
|
16866
16624
|
[vShow, searchStr.value]
|
|
16867
16625
|
]),
|
|
16868
|
-
createElementVNode("div", _hoisted_4$
|
|
16626
|
+
createElementVNode("div", _hoisted_4$g, [
|
|
16869
16627
|
createVNode(GIcon, {
|
|
16870
16628
|
name: "search",
|
|
16871
16629
|
class: "g-header-search-icon",
|
|
@@ -16883,7 +16641,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
16883
16641
|
_: 3
|
|
16884
16642
|
}, 8, ["overlay-class", "visible"])
|
|
16885
16643
|
], 2)) : createCommentVNode("", true),
|
|
16886
|
-
_ctx.inAIHub ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
16644
|
+
_ctx.inAIHub ? (openBlock(), createElementBlock("div", _hoisted_6$a, [
|
|
16887
16645
|
createVNode(unref(Input), {
|
|
16888
16646
|
placeholder: unref($t)("gitCodeLayout.home.searchPlaceholder"),
|
|
16889
16647
|
onKeydown: withKeys(searchResult, ["enter"]),
|
|
@@ -16903,16 +16661,16 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
16903
16661
|
};
|
|
16904
16662
|
}
|
|
16905
16663
|
});
|
|
16906
|
-
const Search = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16907
|
-
const _hoisted_1$
|
|
16908
|
-
const _hoisted_2$
|
|
16909
|
-
const _hoisted_3$
|
|
16910
|
-
const _hoisted_4$
|
|
16911
|
-
const _hoisted_5$
|
|
16912
|
-
const _hoisted_6$
|
|
16913
|
-
const _hoisted_7$
|
|
16664
|
+
const Search = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
16665
|
+
const _hoisted_1$r = { class: "announce-mobile-top" };
|
|
16666
|
+
const _hoisted_2$l = { class: "announce-mobile-bottom" };
|
|
16667
|
+
const _hoisted_3$k = ["href"];
|
|
16668
|
+
const _hoisted_4$f = { class: "announce-content" };
|
|
16669
|
+
const _hoisted_5$a = { class: "announce-content-inner" };
|
|
16670
|
+
const _hoisted_6$9 = ["href"];
|
|
16671
|
+
const _hoisted_7$8 = { class: "announce-handle-wrapper" };
|
|
16914
16672
|
const ANNOUNCE_STATUS_KEY = "site_announcement_status";
|
|
16915
|
-
const _sfc_main$
|
|
16673
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
16916
16674
|
...{ name: "SiteAnnouncement" },
|
|
16917
16675
|
__name: "SiteAnnouncement",
|
|
16918
16676
|
setup(__props) {
|
|
@@ -16960,7 +16718,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
16960
16718
|
class: normalizeClass(["announce-wrapper", { mobile: unref(isMobile) }])
|
|
16961
16719
|
}, [
|
|
16962
16720
|
unref(isMobile) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
16963
|
-
createElementVNode("div", _hoisted_1$
|
|
16721
|
+
createElementVNode("div", _hoisted_1$r, [
|
|
16964
16722
|
createElementVNode("div", null, [
|
|
16965
16723
|
createVNode(GIcon, {
|
|
16966
16724
|
name: "gt-plane-warningCircular-blue",
|
|
@@ -16970,19 +16728,19 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
16970
16728
|
]),
|
|
16971
16729
|
createElementVNode("div", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.content")), 1)
|
|
16972
16730
|
]),
|
|
16973
|
-
createElementVNode("div", _hoisted_2$
|
|
16731
|
+
createElementVNode("div", _hoisted_2$l, [
|
|
16974
16732
|
createElementVNode("a", {
|
|
16975
16733
|
class: "announce-detail",
|
|
16976
16734
|
href: migrationAnnounceUrl.value
|
|
16977
|
-
}, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.viewDetail_mobile")), 9, _hoisted_3$
|
|
16735
|
+
}, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.viewDetail_mobile")), 9, _hoisted_3$k),
|
|
16978
16736
|
createElementVNode("span", {
|
|
16979
16737
|
class: "announce-handle",
|
|
16980
16738
|
onClick: _cache[0] || (_cache[0] = ($event) => handleClose())
|
|
16981
16739
|
}, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.close")), 1)
|
|
16982
16740
|
])
|
|
16983
16741
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
16984
|
-
createElementVNode("div", _hoisted_4$
|
|
16985
|
-
createElementVNode("div", _hoisted_5$
|
|
16742
|
+
createElementVNode("div", _hoisted_4$f, [
|
|
16743
|
+
createElementVNode("div", _hoisted_5$a, [
|
|
16986
16744
|
createVNode(GIcon, {
|
|
16987
16745
|
name: "gt-plane-warningCircular-blue",
|
|
16988
16746
|
size: "16",
|
|
@@ -16992,10 +16750,10 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
16992
16750
|
createElementVNode("a", {
|
|
16993
16751
|
class: "announce-detail",
|
|
16994
16752
|
href: migrationAnnounceUrl.value
|
|
16995
|
-
}, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.viewDetail")), 9, _hoisted_6$
|
|
16753
|
+
}, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.viewDetail")), 9, _hoisted_6$9)
|
|
16996
16754
|
])
|
|
16997
16755
|
]),
|
|
16998
|
-
createElementVNode("div", _hoisted_7$
|
|
16756
|
+
createElementVNode("div", _hoisted_7$8, [
|
|
16999
16757
|
createElementVNode("span", {
|
|
17000
16758
|
class: "announce-handle",
|
|
17001
16759
|
onClick: _cache[1] || (_cache[1] = ($event) => handleClose())
|
|
@@ -17006,7 +16764,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
17006
16764
|
};
|
|
17007
16765
|
}
|
|
17008
16766
|
});
|
|
17009
|
-
const SiteAnnouncement = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16767
|
+
const SiteAnnouncement = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
17010
16768
|
const DEFAULT_LOGIN_REDIRECT_STORAGE_KEY = "ag_login_pending_redirect";
|
|
17011
16769
|
function useLoginRedirect(options) {
|
|
17012
16770
|
const {
|
|
@@ -17076,8 +16834,10 @@ function useLoginRedirect(options) {
|
|
|
17076
16834
|
}
|
|
17077
16835
|
const actionMenuNames = {
|
|
17078
16836
|
atomCode: ["AtomCode"],
|
|
17079
|
-
|
|
17080
|
-
|
|
16837
|
+
learn: ["学习中心"],
|
|
16838
|
+
space: ["Space"],
|
|
16839
|
+
schoolParty: ["校源行"],
|
|
16840
|
+
competition: ["大赛平台", "大赛"],
|
|
17081
16841
|
marketplace: ["应用市场"],
|
|
17082
16842
|
workspace: ["工作台"]
|
|
17083
16843
|
};
|
|
@@ -17109,6 +16869,14 @@ function transformHomeSidebarUrl(url, transformers) {
|
|
|
17109
16869
|
customHost: transformers.aiHost
|
|
17110
16870
|
});
|
|
17111
16871
|
}
|
|
16872
|
+
if (/^https?:\/\/activity\./i.test(url)) {
|
|
16873
|
+
return (transformers.transformUrl || transformUrl)(
|
|
16874
|
+
replaceHost({
|
|
16875
|
+
url,
|
|
16876
|
+
customHost: "https://activity.gitcode.com"
|
|
16877
|
+
})
|
|
16878
|
+
);
|
|
16879
|
+
}
|
|
17112
16880
|
return (transformers.transformUrl || transformUrl)(url);
|
|
17113
16881
|
}
|
|
17114
16882
|
function resolveHomeHeaderActionUrls(items, fallbacks, transformers) {
|
|
@@ -17118,17 +16886,31 @@ function resolveHomeHeaderActionUrls(items, fallbacks, transformers) {
|
|
|
17118
16886
|
};
|
|
17119
16887
|
return {
|
|
17120
16888
|
atomCode: resolve("atomCode"),
|
|
17121
|
-
|
|
16889
|
+
learn: resolve("learn"),
|
|
16890
|
+
space: resolve("space"),
|
|
16891
|
+
schoolParty: resolve("schoolParty"),
|
|
17122
16892
|
competition: resolve("competition"),
|
|
17123
16893
|
marketplace: resolve("marketplace"),
|
|
17124
16894
|
workspace: resolve("workspace")
|
|
17125
16895
|
};
|
|
17126
16896
|
}
|
|
17127
|
-
const _hoisted_1$
|
|
17128
|
-
const _hoisted_2$
|
|
17129
|
-
const _hoisted_3$
|
|
17130
|
-
const _hoisted_4$
|
|
17131
|
-
|
|
16897
|
+
const _hoisted_1$q = { class: "home-header-actions" };
|
|
16898
|
+
const _hoisted_2$k = { class: "home-header-actions__menu" };
|
|
16899
|
+
const _hoisted_3$j = ["href"];
|
|
16900
|
+
const _hoisted_4$e = {
|
|
16901
|
+
key: 0,
|
|
16902
|
+
class: "home-header-actions__menu-icon",
|
|
16903
|
+
width: "16",
|
|
16904
|
+
height: "16",
|
|
16905
|
+
viewBox: "0 0 16 16",
|
|
16906
|
+
fill: "none",
|
|
16907
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
16908
|
+
"aria-hidden": "true"
|
|
16909
|
+
};
|
|
16910
|
+
const _hoisted_5$9 = { class: "home-header-actions__menu-text" };
|
|
16911
|
+
const _hoisted_6$8 = ["href"];
|
|
16912
|
+
const _hoisted_7$7 = { class: "home-header-actions__workspace-text" };
|
|
16913
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
17132
16914
|
...{
|
|
17133
16915
|
name: "HomeHeaderActions"
|
|
17134
16916
|
},
|
|
@@ -17137,7 +16919,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
17137
16919
|
customItems: { default: void 0 },
|
|
17138
16920
|
fallbacks: { default: () => ({}) },
|
|
17139
16921
|
workspaceNavigate: { type: Function, default: void 0 },
|
|
17140
|
-
isLogin: { type: Boolean, default: false }
|
|
16922
|
+
isLogin: { type: Boolean, default: false },
|
|
16923
|
+
independence: { type: Boolean, default: false }
|
|
17141
16924
|
},
|
|
17142
16925
|
setup(__props) {
|
|
17143
16926
|
const props = __props;
|
|
@@ -17162,10 +16945,9 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
17162
16945
|
);
|
|
17163
16946
|
const fallbackUrls = computed(() => ({
|
|
17164
16947
|
atomCode: "https://atomcode.atomgit.com/",
|
|
17165
|
-
|
|
17166
|
-
|
|
17167
|
-
|
|
17168
|
-
),
|
|
16948
|
+
learn: "/learn",
|
|
16949
|
+
space: "/space",
|
|
16950
|
+
schoolParty: transformUrl("https://activity.gitcode.com/schoolparty?utm_source=homepage"),
|
|
17169
16951
|
competition: joinUrl(
|
|
17170
16952
|
layoutConfig2.VITE_COMPETITION_HOST || "https://competition.gitcode.com",
|
|
17171
16953
|
"/competition?utm_source=toolbar"
|
|
@@ -17185,20 +16967,29 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
17185
16967
|
}));
|
|
17186
16968
|
const discoverLinks = computed(() => [
|
|
17187
16969
|
{
|
|
17188
|
-
label: t2("gitCodeLayout.home.
|
|
17189
|
-
href: actionUrls.value.
|
|
16970
|
+
label: t2("gitCodeLayout.home.learnCenter"),
|
|
16971
|
+
href: actionUrls.value.learn,
|
|
16972
|
+
icon: "gt-plane-knowledgeBase"
|
|
17190
16973
|
},
|
|
17191
16974
|
{
|
|
17192
|
-
label: t2("gitCodeLayout.home.
|
|
17193
|
-
href: actionUrls.value.
|
|
16975
|
+
label: t2("gitCodeLayout.home.space"),
|
|
16976
|
+
href: actionUrls.value.space,
|
|
16977
|
+
icon: "gt-plane-Space"
|
|
16978
|
+
},
|
|
16979
|
+
{
|
|
16980
|
+
label: t2("gitCodeLayout.home.schoolParty"),
|
|
16981
|
+
href: actionUrls.value.schoolParty,
|
|
16982
|
+
icon: "gt-plane-activity"
|
|
17194
16983
|
},
|
|
17195
16984
|
{
|
|
17196
16985
|
label: t2("gitCodeLayout.home.competition"),
|
|
17197
|
-
href: actionUrls.value.competition
|
|
16986
|
+
href: actionUrls.value.competition,
|
|
16987
|
+
customIcon: "growthCenter"
|
|
17198
16988
|
},
|
|
17199
16989
|
{
|
|
17200
16990
|
label: t2("gitCodeLayout.header.applicationMarket"),
|
|
17201
|
-
href: actionUrls.value.marketplace
|
|
16991
|
+
href: actionUrls.value.marketplace,
|
|
16992
|
+
icon: "gt-plane-application"
|
|
17202
16993
|
}
|
|
17203
16994
|
]);
|
|
17204
16995
|
function onWorkspaceClick(event) {
|
|
@@ -17221,7 +17012,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
17221
17012
|
});
|
|
17222
17013
|
return;
|
|
17223
17014
|
}
|
|
17224
|
-
if (typeof window !== "undefined" && new URL(href).origin !== window.location.origin) {
|
|
17015
|
+
if (typeof window !== "undefined" && (props.independence || new URL(href).origin !== window.location.origin)) {
|
|
17225
17016
|
window.location.href = href;
|
|
17226
17017
|
return;
|
|
17227
17018
|
}
|
|
@@ -17254,7 +17045,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
17254
17045
|
}
|
|
17255
17046
|
});
|
|
17256
17047
|
return (_ctx, _cache) => {
|
|
17257
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
17048
|
+
return openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
17258
17049
|
createVNode(unref(Dropdown), {
|
|
17259
17050
|
position: ["bottom-start"],
|
|
17260
17051
|
"destroy-on-hide": false,
|
|
@@ -17264,14 +17055,32 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
17264
17055
|
onToggle: handleDiscoverToggle
|
|
17265
17056
|
}, {
|
|
17266
17057
|
menu: withCtx(() => [
|
|
17267
|
-
createElementVNode("div", _hoisted_2$
|
|
17058
|
+
createElementVNode("div", _hoisted_2$k, [
|
|
17268
17059
|
(openBlock(true), createElementBlock(Fragment, null, renderList(discoverLinks.value, (item) => {
|
|
17269
17060
|
return openBlock(), createElementBlock("a", {
|
|
17270
17061
|
key: item.label,
|
|
17271
17062
|
href: item.href,
|
|
17272
17063
|
class: "home-header-actions__menu-item",
|
|
17273
17064
|
onClick: _cache[0] || (_cache[0] = ($event) => isDiscoverOpen.value = false)
|
|
17274
|
-
},
|
|
17065
|
+
}, [
|
|
17066
|
+
item.customIcon === "growthCenter" ? (openBlock(), createElementBlock("svg", _hoisted_4$e, _cache[1] || (_cache[1] = [
|
|
17067
|
+
createElementVNode("path", {
|
|
17068
|
+
d: "M13.8286 2.4381C13.6889 2.4 13.5238 2.3746 13.346 2.3746C13.2698 2.3746 13.1937 2.3746 13.1302 2.3873V0.850794C13.1302 0.546032 12.8889 0.304762 12.5968 0.304762H3.41587C3.11111 0.304762 2.86984 0.546032 2.86984 0.850794V2.3873C2.79365 2.3746 2.71746 2.3746 2.65397 2.3746C2.48889 2.3746 2.32381 2.4 2.15873 2.4381C0.914286 2.76825 0.24127 4.36825 0.673016 5.99365C1.05397 7.41587 2.14603 8.39365 3.25079 8.39365C3.30159 8.39365 3.36508 8.39365 3.41587 8.38095C3.46667 8.48254 3.51746 8.59683 3.58095 8.69841C3.56825 8.68571 3.56825 8.68571 3.58095 8.69841C3.59365 8.73651 3.61905 8.76191 3.63175 8.7873C3.64444 8.8 3.64444 8.8127 3.65714 8.8254C3.70794 8.91429 3.77143 9.01587 3.83492 9.10476C3.82222 9.10476 3.82222 9.09206 3.83492 9.10476C3.84762 9.11746 3.84762 9.13016 3.86032 9.14286C3.91111 9.21905 3.9619 9.29524 4.0127 9.35873C4.0381 9.38413 4.05079 9.42222 4.07619 9.44762L4.08889 9.46032C4.26667 9.70159 4.46984 9.91746 4.68571 10.1206L4.69841 10.1333C4.8 10.2349 4.91429 10.3238 5.02857 10.4127L5.04127 10.4254C5.51111 10.7937 6.04444 11.073 6.61587 11.2381C6.75556 11.2762 6.90794 11.3143 7.04762 11.3524V12.9778H5.82857C5.5746 12.9778 5.34603 13.1556 5.26984 13.3968L4.8381 14.9587C4.7873 15.1365 4.8254 15.3143 4.93968 15.4667C5.05397 15.6063 5.21905 15.6952 5.39683 15.6952H10.5905C10.9079 15.6952 11.1619 15.4413 11.1619 15.1238C11.1619 15.0476 11.1492 14.9714 11.1238 14.8952L10.7048 13.4095C10.6413 13.1556 10.4127 12.9905 10.146 12.9905H8.92698V11.3524C9.09206 11.3143 9.24444 11.2762 9.40952 11.2254L9.39683 11.2381C9.46032 11.2254 9.51111 11.2 9.5746 11.1746C9.5873 11.1746 9.5873 11.1746 9.6 11.1619C9.67619 11.1365 9.75238 11.0984 9.82857 11.073C9.89206 11.0476 9.95556 11.0222 10.019 10.9841L10.1714 10.9079C10.1587 10.9206 10.1333 10.9206 10.1206 10.9333C10.4127 10.781 10.7048 10.6159 10.9587 10.4127L10.9714 10.4C11.0857 10.3111 11.2 10.2222 11.3016 10.1206L11.3143 10.1079C11.5302 9.90476 11.7333 9.68889 11.9238 9.44762L11.9365 9.43492C12.0254 9.32063 12.1016 9.20635 12.1905 9.07936C12.2032 9.06667 12.2032 9.05397 12.2159 9.04127C12.3429 8.85079 12.4444 8.66032 12.546 8.45714C12.5587 8.44444 12.5587 8.43175 12.5714 8.41905C12.5968 8.36825 12.7238 8.38095 12.7619 8.38095C13.8667 8.38095 14.9714 7.40317 15.3397 5.98095C15.7587 4.36825 15.0857 2.78095 13.8286 2.4381ZM1.5619 5.76508C1.26984 4.64762 1.65079 3.53016 2.4127 3.33968C2.48889 3.31429 2.56508 3.31429 2.65397 3.31429C2.73016 3.31429 2.80635 3.32698 2.86984 3.33968V5.90476C2.86984 6.05714 2.88254 6.20952 2.89524 6.3619V6.4254C2.90794 6.56508 2.92063 6.71746 2.94603 6.85714C2.94603 6.88254 2.95873 6.90794 2.95873 6.93333C2.98413 7.07302 3.00952 7.2127 3.04762 7.35238C3.04762 7.37778 3.06032 7.39048 3.06032 7.41587C3.06032 7.44127 3.07302 7.46667 3.07302 7.49206C2.4254 7.35238 1.79048 6.66667 1.5619 5.76508ZM11.0984 4.72381L9.40952 5.99365L10.0317 8C10.0317 8.0127 10.0444 8.0381 10.0444 8.05079C10.0444 8.11429 10.019 8.16508 9.96825 8.20317C9.93016 8.22857 9.89206 8.24127 9.85397 8.24127C9.81587 8.24127 9.77778 8.22857 9.75238 8.20317L8 7.02222L6.26032 8.22857C6.19683 8.27937 6.10794 8.27937 6.04444 8.22857C5.99365 8.17778 5.96825 8.12698 5.96825 8.06349C5.96825 8.0381 5.96825 8.0254 5.98095 8L6.59048 5.99365L4.90159 4.72381C4.8381 4.67302 4.8127 4.58413 4.8381 4.50794C4.86349 4.43175 4.93968 4.38095 5.01587 4.38095L7.13651 4.34286L7.83492 2.34921C7.86032 2.27302 7.93651 2.22222 8.0127 2.22222C8.08889 2.22222 8.16508 2.27302 8.19048 2.34921L8.88889 4.34286L11.0095 4.38095C11.0857 4.38095 11.1619 4.43175 11.1873 4.50794C11.1873 4.58413 11.1619 4.67302 11.0984 4.72381ZM14.4381 5.76508C14.1968 6.66667 13.5619 7.36508 12.9143 7.46667C12.927 7.44127 12.927 7.41587 12.927 7.39048C12.927 7.36508 12.9397 7.35238 12.9397 7.32698C12.9778 7.1746 13.0159 7.00952 13.0413 6.84444C13.0413 6.83175 13.054 6.70476 13.1048 6.13333C13.1048 6.33651 13.0794 6.53968 13.054 6.73016C13.0794 6.59048 13.0921 6.45079 13.0921 6.29841C13.0921 6.24762 13.1048 6.14603 13.1048 5.95556V3.32698C13.181 3.31429 13.2571 3.30159 13.3206 3.30159C13.3968 3.30159 13.4857 3.31429 13.5619 3.32698C14.3492 3.53016 14.7429 4.64762 14.4381 5.76508Z",
|
|
17069
|
+
fill: "#BCBCD0"
|
|
17070
|
+
}, null, -1),
|
|
17071
|
+
createElementVNode("path", {
|
|
17072
|
+
d: "M13.1048 6.34921C13.1048 6.28571 13.1175 6.20952 13.1175 6.14603C13.1175 6.19683 13.1048 6.26032 13.1048 6.31111V6.34921Z",
|
|
17073
|
+
fill: "#333333"
|
|
17074
|
+
}, null, -1)
|
|
17075
|
+
]))) : item.icon ? (openBlock(), createBlock(GIcon, {
|
|
17076
|
+
key: 1,
|
|
17077
|
+
name: item.icon,
|
|
17078
|
+
size: "16px",
|
|
17079
|
+
color: "currentColor",
|
|
17080
|
+
class: "home-header-actions__menu-icon"
|
|
17081
|
+
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
17082
|
+
createElementVNode("span", _hoisted_5$9, toDisplayString$1(item.label), 1)
|
|
17083
|
+
], 8, _hoisted_3$j);
|
|
17275
17084
|
}), 128))
|
|
17276
17085
|
])
|
|
17277
17086
|
]),
|
|
@@ -17296,25 +17105,49 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
17296
17105
|
class: "home-header-actions__button home-header-actions__workspace",
|
|
17297
17106
|
onClick: onWorkspaceClick
|
|
17298
17107
|
}, [
|
|
17299
|
-
|
|
17300
|
-
|
|
17301
|
-
|
|
17108
|
+
createVNode(GIcon, {
|
|
17109
|
+
class: "home-header-actions__icon",
|
|
17110
|
+
name: "gt-line-work",
|
|
17111
|
+
size: "16px",
|
|
17112
|
+
color: "currentColor"
|
|
17113
|
+
}),
|
|
17114
|
+
createElementVNode("span", _hoisted_7$7, toDisplayString$1(unref(t2)("gitCodeLayout.header.myWorkbench")), 1)
|
|
17115
|
+
], 8, _hoisted_6$8)
|
|
17302
17116
|
]);
|
|
17303
17117
|
};
|
|
17304
17118
|
}
|
|
17305
17119
|
});
|
|
17306
|
-
const HomeHeaderActions = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17307
|
-
const _hoisted_1$
|
|
17308
|
-
const _hoisted_2$
|
|
17309
|
-
const _hoisted_3$
|
|
17120
|
+
const HomeHeaderActions = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
17121
|
+
const _hoisted_1$p = ["aria-label", "aria-expanded"];
|
|
17122
|
+
const _hoisted_2$j = { class: "atomcode-launcher-text" };
|
|
17123
|
+
const _hoisted_3$i = {
|
|
17310
17124
|
id: "atomCodeLaunchMenu",
|
|
17311
17125
|
class: "atomcode-launch-menu",
|
|
17312
17126
|
role: "menu"
|
|
17313
17127
|
};
|
|
17314
|
-
const _hoisted_4$
|
|
17315
|
-
const _hoisted_5$8 = {
|
|
17316
|
-
const _hoisted_6$7 =
|
|
17317
|
-
|
|
17128
|
+
const _hoisted_4$d = { class: "atomcode-launch-item__title-row" };
|
|
17129
|
+
const _hoisted_5$8 = { class: "atomcode-launch-item__title" };
|
|
17130
|
+
const _hoisted_6$7 = {
|
|
17131
|
+
id: "atomCodeContextHint",
|
|
17132
|
+
class: "atomcode-launch-item__desc"
|
|
17133
|
+
};
|
|
17134
|
+
const _hoisted_7$6 = ["href"];
|
|
17135
|
+
const _hoisted_8$6 = { class: "atomcode-launch-item__title-row" };
|
|
17136
|
+
const _hoisted_9$6 = { class: "atomcode-launch-item__title" };
|
|
17137
|
+
const _hoisted_10$6 = ["href"];
|
|
17138
|
+
const _hoisted_11$5 = { class: "atomcode-launch-item__title-row" };
|
|
17139
|
+
const _hoisted_12$5 = {
|
|
17140
|
+
class: "atomcode-item-icon",
|
|
17141
|
+
width: "16",
|
|
17142
|
+
height: "16",
|
|
17143
|
+
viewBox: "0 0 16 16",
|
|
17144
|
+
fill: "none",
|
|
17145
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
17146
|
+
style: { "transform": "scaleY(-1)" },
|
|
17147
|
+
"aria-hidden": "true"
|
|
17148
|
+
};
|
|
17149
|
+
const _hoisted_13$3 = { class: "atomcode-launch-item__title" };
|
|
17150
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
17318
17151
|
...{
|
|
17319
17152
|
name: "AtomCodeLauncher"
|
|
17320
17153
|
},
|
|
@@ -17322,7 +17155,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
17322
17155
|
props: {
|
|
17323
17156
|
atomcodeLaunchQs: { default: "" },
|
|
17324
17157
|
isLogin: { type: Boolean, default: false },
|
|
17325
|
-
launchAtomCode: { type: Function, default: void 0 }
|
|
17158
|
+
launchAtomCode: { type: Function, default: void 0 },
|
|
17159
|
+
officialUrl: { default: "" },
|
|
17160
|
+
atomcodeOfficialUrl: { default: "" }
|
|
17326
17161
|
},
|
|
17327
17162
|
setup(__props) {
|
|
17328
17163
|
const props = __props;
|
|
@@ -17347,6 +17182,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
17347
17182
|
const separator = url.includes("?") ? "&" : "?";
|
|
17348
17183
|
return `${url}${separator}${qs}`;
|
|
17349
17184
|
});
|
|
17185
|
+
const resolvedOfficialUrl = computed(() => {
|
|
17186
|
+
return props.atomcodeOfficialUrl || props.officialUrl || "https://atomcode.atomgit.com/";
|
|
17187
|
+
});
|
|
17350
17188
|
const resolvedCliDownloadUrl = computed(() => {
|
|
17351
17189
|
return joinUrl(layoutConfig2.VITE_HOST, "/?tn=atomcode-coding-plan");
|
|
17352
17190
|
});
|
|
@@ -17384,16 +17222,6 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
17384
17222
|
id: "atomCodeLauncher",
|
|
17385
17223
|
class: normalizeClass(["atomcode-launcher", { open: isOpen.value }])
|
|
17386
17224
|
}, [
|
|
17387
|
-
createElementVNode("button", {
|
|
17388
|
-
id: "atomCodeLaunchMain",
|
|
17389
|
-
class: "atomcode-launch-main",
|
|
17390
|
-
type: "button",
|
|
17391
|
-
"aria-label": unref(t2)("gitCodeLayout.atomCode.openAtomCode"),
|
|
17392
|
-
onClick: handleLaunchMain
|
|
17393
|
-
}, [
|
|
17394
|
-
_cache[0] || (_cache[0] = createStaticVNode('<svg data-lucide="sparkles" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" data-v-vue-layout-gitcode><path d="m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z" data-v-vue-layout-gitcode></path><path d="M5 3v4" data-v-vue-layout-gitcode></path><path d="M19 17v4" data-v-vue-layout-gitcode></path><path d="M3 5h4" data-v-vue-layout-gitcode></path><path d="M17 19h4" data-v-vue-layout-gitcode></path></svg>', 1)),
|
|
17395
|
-
createElementVNode("span", null, toDisplayString$1(unref(t2)("gitCodeLayout.atomCode.title")), 1)
|
|
17396
|
-
], 8, _hoisted_1$o),
|
|
17397
17225
|
createVNode(unref(Dropdown), {
|
|
17398
17226
|
position: ["bottom-end", "bottom-start"],
|
|
17399
17227
|
"destroy-on-hide": false,
|
|
@@ -17403,112 +17231,99 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
17403
17231
|
onToggle: handleToggle
|
|
17404
17232
|
}, {
|
|
17405
17233
|
menu: withCtx(() => [
|
|
17406
|
-
createElementVNode("div", _hoisted_3$
|
|
17407
|
-
createElementVNode("div", _hoisted_4$c, toDisplayString$1(unref(t2)("gitCodeLayout.atomCode.useAtomCode")), 1),
|
|
17234
|
+
createElementVNode("div", _hoisted_3$i, [
|
|
17408
17235
|
createElementVNode("button", {
|
|
17409
17236
|
type: "button",
|
|
17237
|
+
class: "atomcode-launch-item atomcode-launch-item--with-desc",
|
|
17410
17238
|
role: "menuitem",
|
|
17411
17239
|
"data-atomcode-open": "",
|
|
17412
17240
|
onClick: openAtomCode
|
|
17413
17241
|
}, [
|
|
17414
|
-
|
|
17415
|
-
|
|
17416
|
-
|
|
17417
|
-
|
|
17418
|
-
|
|
17419
|
-
|
|
17420
|
-
|
|
17421
|
-
|
|
17422
|
-
|
|
17423
|
-
|
|
17424
|
-
"stroke-linejoin": "round",
|
|
17425
|
-
"aria-hidden": "true"
|
|
17426
|
-
}, [
|
|
17427
|
-
createElementVNode("path", { d: "M7 7h10v10" }),
|
|
17428
|
-
createElementVNode("path", { d: "M7 17 17 7" })
|
|
17429
|
-
], -1)),
|
|
17430
|
-
createElementVNode("span", null, [
|
|
17431
|
-
createElementVNode("strong", null, toDisplayString$1(unref(t2)("gitCodeLayout.atomCode.openInWorkbench")), 1),
|
|
17432
|
-
createElementVNode("small", _hoisted_5$8, toDisplayString$1(contextHintText.value), 1)
|
|
17433
|
-
])
|
|
17242
|
+
createElementVNode("div", _hoisted_4$d, [
|
|
17243
|
+
createVNode(GIcon, {
|
|
17244
|
+
name: "gt-plane-share",
|
|
17245
|
+
size: "16px",
|
|
17246
|
+
color: "currentColor",
|
|
17247
|
+
class: "atomcode-item-icon"
|
|
17248
|
+
}),
|
|
17249
|
+
createElementVNode("span", _hoisted_5$8, toDisplayString$1(unref(t2)("gitCodeLayout.atomCode.openInWorkbench")), 1)
|
|
17250
|
+
]),
|
|
17251
|
+
createElementVNode("div", _hoisted_6$7, toDisplayString$1(contextHintText.value), 1)
|
|
17434
17252
|
]),
|
|
17435
|
-
|
|
17253
|
+
createElementVNode("a", {
|
|
17254
|
+
href: resolvedOfficialUrl.value,
|
|
17255
|
+
target: "_blank",
|
|
17256
|
+
rel: "noopener noreferrer",
|
|
17257
|
+
class: "atomcode-launch-item",
|
|
17258
|
+
role: "menuitem",
|
|
17259
|
+
"data-atomcode-official": ""
|
|
17260
|
+
}, [
|
|
17261
|
+
createElementVNode("div", _hoisted_8$6, [
|
|
17262
|
+
createVNode(GIcon, {
|
|
17263
|
+
name: "gt-plane-consulting",
|
|
17264
|
+
size: "16px",
|
|
17265
|
+
color: "currentColor",
|
|
17266
|
+
class: "atomcode-item-icon"
|
|
17267
|
+
}),
|
|
17268
|
+
createElementVNode("span", _hoisted_9$6, toDisplayString$1(unref(t2)("gitCodeLayout.atomCode.atomCodeOfficial")), 1)
|
|
17269
|
+
])
|
|
17270
|
+
], 8, _hoisted_7$6),
|
|
17436
17271
|
createElementVNode("a", {
|
|
17437
17272
|
href: resolvedCliDownloadUrl.value,
|
|
17438
17273
|
target: "_blank",
|
|
17439
17274
|
rel: "noopener noreferrer",
|
|
17275
|
+
class: "atomcode-launch-item",
|
|
17440
17276
|
role: "menuitem",
|
|
17441
17277
|
"data-atomcode-cli": ""
|
|
17442
17278
|
}, [
|
|
17443
|
-
|
|
17444
|
-
|
|
17445
|
-
|
|
17446
|
-
|
|
17447
|
-
|
|
17448
|
-
|
|
17449
|
-
|
|
17450
|
-
|
|
17451
|
-
|
|
17452
|
-
|
|
17453
|
-
|
|
17454
|
-
|
|
17455
|
-
|
|
17456
|
-
|
|
17457
|
-
createElementVNode("
|
|
17458
|
-
|
|
17459
|
-
|
|
17460
|
-
x2: "12",
|
|
17461
|
-
y1: "15",
|
|
17462
|
-
y2: "3"
|
|
17463
|
-
})
|
|
17464
|
-
], -1)),
|
|
17465
|
-
createElementVNode("span", null, [
|
|
17466
|
-
createElementVNode("strong", null, toDisplayString$1(unref(t2)("gitCodeLayout.atomCode.downloadCli")), 1)
|
|
17467
|
-
]),
|
|
17468
|
-
_cache[4] || (_cache[4] = createElementVNode("svg", {
|
|
17469
|
-
"data-lucide": "arrow-up-right",
|
|
17470
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
17471
|
-
width: "15",
|
|
17472
|
-
height: "15",
|
|
17473
|
-
viewBox: "0 0 24 24",
|
|
17474
|
-
fill: "none",
|
|
17475
|
-
stroke: "currentColor",
|
|
17476
|
-
"stroke-width": "2",
|
|
17477
|
-
"stroke-linecap": "round",
|
|
17478
|
-
"stroke-linejoin": "round",
|
|
17479
|
-
"aria-hidden": "true"
|
|
17480
|
-
}, [
|
|
17481
|
-
createElementVNode("path", { d: "M7 7h10v10" }),
|
|
17482
|
-
createElementVNode("path", { d: "M7 17 17 7" })
|
|
17483
|
-
], -1))
|
|
17484
|
-
], 8, _hoisted_6$7)
|
|
17279
|
+
createElementVNode("div", _hoisted_11$5, [
|
|
17280
|
+
(openBlock(), createElementBlock("svg", _hoisted_12$5, _cache[0] || (_cache[0] = [
|
|
17281
|
+
createElementVNode("rect", {
|
|
17282
|
+
opacity: "0.5",
|
|
17283
|
+
x: "2",
|
|
17284
|
+
width: "12",
|
|
17285
|
+
height: "2",
|
|
17286
|
+
fill: "#BCBCD0"
|
|
17287
|
+
}, null, -1),
|
|
17288
|
+
createElementVNode("path", {
|
|
17289
|
+
d: "M14.707 9.79282L13.2929 11.2069L8.99992 6.91391V15.9998H6.99992V6.91391L2.70696 11.2069L1.29289 9.79282L7.99992 3.08579L14.707 9.79282Z",
|
|
17290
|
+
fill: "#BCBCD0"
|
|
17291
|
+
}, null, -1)
|
|
17292
|
+
]))),
|
|
17293
|
+
createElementVNode("span", _hoisted_13$3, toDisplayString$1(unref(t2)("gitCodeLayout.atomCode.downloadCli")), 1)
|
|
17294
|
+
])
|
|
17295
|
+
], 8, _hoisted_10$6)
|
|
17485
17296
|
])
|
|
17486
17297
|
]),
|
|
17487
17298
|
default: withCtx(() => [
|
|
17488
17299
|
createElementVNode("button", {
|
|
17489
|
-
id: "
|
|
17490
|
-
class: "atomcode-
|
|
17300
|
+
id: "atomCodeLaunchMain",
|
|
17301
|
+
class: "atomcode-launcher-btn",
|
|
17491
17302
|
type: "button",
|
|
17492
|
-
"aria-label": unref(t2)("gitCodeLayout.atomCode.
|
|
17303
|
+
"aria-label": unref(t2)("gitCodeLayout.atomCode.openAtomCode"),
|
|
17493
17304
|
"aria-haspopup": "menu",
|
|
17494
|
-
"aria-expanded": isOpen.value
|
|
17495
|
-
|
|
17496
|
-
|
|
17497
|
-
|
|
17498
|
-
|
|
17499
|
-
|
|
17500
|
-
|
|
17501
|
-
|
|
17502
|
-
|
|
17503
|
-
|
|
17504
|
-
|
|
17505
|
-
"
|
|
17506
|
-
|
|
17507
|
-
|
|
17508
|
-
|
|
17509
|
-
|
|
17510
|
-
|
|
17511
|
-
|
|
17305
|
+
"aria-expanded": isOpen.value,
|
|
17306
|
+
onClick: handleLaunchMain
|
|
17307
|
+
}, [
|
|
17308
|
+
createVNode(GIcon, {
|
|
17309
|
+
name: "gt-line-copilot-light",
|
|
17310
|
+
size: "16px",
|
|
17311
|
+
class: "atomcode-icon atomcode-icon--light"
|
|
17312
|
+
}),
|
|
17313
|
+
createVNode(GIcon, {
|
|
17314
|
+
name: "gt-line-copilot-dark",
|
|
17315
|
+
size: "16px",
|
|
17316
|
+
class: "atomcode-icon atomcode-icon--dark"
|
|
17317
|
+
}),
|
|
17318
|
+
createElementVNode("span", _hoisted_2$j, toDisplayString$1(unref(t2)("gitCodeLayout.atomCode.title")), 1),
|
|
17319
|
+
createVNode(GIcon, {
|
|
17320
|
+
name: "gt-line-down",
|
|
17321
|
+
size: "16px",
|
|
17322
|
+
color: "currentColor",
|
|
17323
|
+
rotate: isOpen.value ? "180deg" : "0deg",
|
|
17324
|
+
class: "atomcode-launcher-chevron"
|
|
17325
|
+
}, null, 8, ["rotate"])
|
|
17326
|
+
], 8, _hoisted_1$p)
|
|
17512
17327
|
]),
|
|
17513
17328
|
_: 1
|
|
17514
17329
|
})
|
|
@@ -17516,7 +17331,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
17516
17331
|
};
|
|
17517
17332
|
}
|
|
17518
17333
|
});
|
|
17519
|
-
const AtomCodeLauncher = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17334
|
+
const AtomCodeLauncher = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
17520
17335
|
const vElementExposure = {
|
|
17521
17336
|
mounted(el, binding) {
|
|
17522
17337
|
const observer = new IntersectionObserver(function(entries2, observer2) {
|
|
@@ -17533,7 +17348,7 @@ const vElementExposure = {
|
|
|
17533
17348
|
beforeUnmount() {
|
|
17534
17349
|
}
|
|
17535
17350
|
};
|
|
17536
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
17351
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-DdOHHuSY.js"));
|
|
17537
17352
|
function clearNotice() {
|
|
17538
17353
|
if (localStorage$2.getItem("validator_email")) {
|
|
17539
17354
|
localStorage$2.removeItem("validator_email");
|
|
@@ -17560,21 +17375,32 @@ function useNotification() {
|
|
|
17560
17375
|
notice
|
|
17561
17376
|
};
|
|
17562
17377
|
}
|
|
17563
|
-
const _hoisted_1$
|
|
17564
|
-
const _hoisted_2$
|
|
17565
|
-
const _hoisted_3$
|
|
17378
|
+
const _hoisted_1$o = { class: "g-toolbar-left allow-click-stop" };
|
|
17379
|
+
const _hoisted_2$i = { key: 0 };
|
|
17380
|
+
const _hoisted_3$h = {
|
|
17566
17381
|
key: 1,
|
|
17567
17382
|
class: "search-avatar"
|
|
17568
17383
|
};
|
|
17569
|
-
const _hoisted_4$
|
|
17384
|
+
const _hoisted_4$c = {
|
|
17385
|
+
key: 2,
|
|
17386
|
+
class: "g-toolbar-right__claim-row"
|
|
17387
|
+
};
|
|
17570
17388
|
const _hoisted_5$7 = {
|
|
17389
|
+
key: 0,
|
|
17390
|
+
class: "g-toolbar-right-divider"
|
|
17391
|
+
};
|
|
17392
|
+
const _hoisted_6$6 = {
|
|
17393
|
+
key: 0,
|
|
17394
|
+
class: "g-toolbar-right-divider"
|
|
17395
|
+
};
|
|
17396
|
+
const _hoisted_7$5 = {
|
|
17571
17397
|
key: 1,
|
|
17572
17398
|
class: "g-header-body"
|
|
17573
17399
|
};
|
|
17574
|
-
const
|
|
17575
|
-
const
|
|
17576
|
-
const
|
|
17577
|
-
const _sfc_main$
|
|
17400
|
+
const _hoisted_8$5 = { class: "g-header-body-left" };
|
|
17401
|
+
const _hoisted_9$5 = { class: "g-header-body-right" };
|
|
17402
|
+
const _hoisted_10$5 = { key: 2 };
|
|
17403
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
17578
17404
|
...{
|
|
17579
17405
|
name: "GitCodeHeader"
|
|
17580
17406
|
},
|
|
@@ -17901,6 +17727,10 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
17901
17727
|
});
|
|
17902
17728
|
claimPowerConfig.value = (res == null ? void 0 : res.data) || {};
|
|
17903
17729
|
};
|
|
17730
|
+
const isClaimRowVisible = computed(() => {
|
|
17731
|
+
var _a2;
|
|
17732
|
+
return Boolean(((_a2 = claimPowerConfig.value) == null ? void 0 : _a2.visible) || isModuleVisible(HeaderDisplayItem.OPERATION_ENTRY));
|
|
17733
|
+
});
|
|
17904
17734
|
onMounted(() => {
|
|
17905
17735
|
getClaimPowerConfig();
|
|
17906
17736
|
toNotice();
|
|
@@ -18017,7 +17847,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
18017
17847
|
class: "g-toolbar allow-click-stop",
|
|
18018
17848
|
onClick: withModifiers(handleToolbarClick, ["stop"])
|
|
18019
17849
|
}, [
|
|
18020
|
-
createElementVNode("div", _hoisted_1$
|
|
17850
|
+
createElementVNode("div", _hoisted_1$o, [
|
|
18021
17851
|
createElementVNode("div", {
|
|
18022
17852
|
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
18023
17853
|
}, ["stop"])),
|
|
@@ -18067,10 +17897,10 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
18067
17897
|
}, 8, ["scene", "isLogin", "errorCode", "orgProps", "repoProps", "userProps"])) : createCommentVNode("", true)
|
|
18068
17898
|
], 2)) : createCommentVNode("", true)
|
|
18069
17899
|
]),
|
|
18070
|
-
_ctx.$slots.headerMiddleRight ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
17900
|
+
_ctx.$slots.headerMiddleRight ? (openBlock(), createElementBlock("div", _hoisted_2$i, [
|
|
18071
17901
|
renderSlot(_ctx.$slots, "headerMiddleRight", {}, void 0, true)
|
|
18072
17902
|
])) : createCommentVNode("", true),
|
|
18073
|
-
!inAIHub.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
17903
|
+
!inAIHub.value ? (openBlock(), createElementBlock("div", _hoisted_3$h, [
|
|
18074
17904
|
isModuleVisible(unref(HeaderDisplayItem).SEARCH_BUTTON) ? renderSlot(_ctx.$slots, "search", { key: 0 }, () => [
|
|
18075
17905
|
(openBlock(), createBlock(Search, {
|
|
18076
17906
|
inAIHub: inAIHub.value,
|
|
@@ -18109,15 +17939,17 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
18109
17939
|
!inAIHub.value ? renderSlot(_ctx.$slots, "headerActions", { key: 1 }, () => [
|
|
18110
17940
|
createVNode(HomeHeaderActions, {
|
|
18111
17941
|
"workspace-navigate": props.workspaceNavigate,
|
|
18112
|
-
isLogin: props.isLogin
|
|
18113
|
-
|
|
17942
|
+
isLogin: props.isLogin,
|
|
17943
|
+
independence: props.independence
|
|
17944
|
+
}, null, 8, ["workspace-navigate", "isLogin", "independence"])
|
|
18114
17945
|
], true) : createCommentVNode("", true),
|
|
18115
|
-
|
|
17946
|
+
isClaimRowVisible.value ? (openBlock(), createElementBlock("div", _hoisted_4$c, [
|
|
18116
17947
|
createVNode(ClaimPower, { config: claimPowerConfig.value }, null, 8, ["config"]),
|
|
18117
17948
|
isModuleVisible(unref(HeaderDisplayItem).OPERATION_ENTRY) ? (openBlock(), createBlock(OperationEntry, { key: 0 })) : createCommentVNode("", true)
|
|
18118
|
-
]),
|
|
18119
|
-
!_ctx.isLogin ? (openBlock(), createElementBlock(Fragment, { key:
|
|
18120
|
-
|
|
17949
|
+
])) : createCommentVNode("", true),
|
|
17950
|
+
!_ctx.isLogin ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
17951
|
+
!unref(isMobile) ? (openBlock(), createElementBlock("div", _hoisted_5$7)) : createCommentVNode("", true),
|
|
17952
|
+
isModuleVisible(unref(HeaderDisplayItem).LOGIN_AND_AVATAR) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
18121
17953
|
unref(isMobile) ? (openBlock(), createElementBlock("section", {
|
|
18122
17954
|
key: 0,
|
|
18123
17955
|
class: "app-login-warp login-icon",
|
|
@@ -18151,18 +17983,19 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
18151
17983
|
})
|
|
18152
17984
|
], 64)) : createCommentVNode("", true)
|
|
18153
17985
|
], 64)) : createCommentVNode("", true)
|
|
18154
|
-
], 64)) : (openBlock(), createElementBlock(Fragment, { key:
|
|
17986
|
+
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 4 }, [
|
|
17987
|
+
!["sm"].includes(unref(widthType)) ? (openBlock(), createElementBlock("div", _hoisted_6$6)) : createCommentVNode("", true),
|
|
18155
17988
|
!["sm"].includes(unref(widthType)) && isModuleVisible(unref(HeaderDisplayItem).NEW_BUTTON) ? (openBlock(), createBlock(HeaderCreateMenu, {
|
|
18156
|
-
key:
|
|
17989
|
+
key: 1,
|
|
18157
17990
|
dropdownVisible: props.openCreateDropdown,
|
|
18158
17991
|
items: props.createMenuItems,
|
|
18159
17992
|
onNavigate: props.createMenuNavigate,
|
|
18160
17993
|
"onUpdate:dropdownVisible": _cache[6] || (_cache[6] = ($event) => emit("update:openCreateDropdown", $event))
|
|
18161
17994
|
}, null, 8, ["dropdownVisible", "items", "onNavigate"])) : createCommentVNode("", true),
|
|
18162
|
-
isModuleVisible(unref(HeaderDisplayItem).DOCUMENT_CENTER) ? (openBlock(), createBlock(DocumentCenter, { key:
|
|
18163
|
-
isModuleVisible(unref(HeaderDisplayItem).MESSAGE_CENTER) ? (openBlock(), createBlock(Notice, { key:
|
|
17995
|
+
isModuleVisible(unref(HeaderDisplayItem).DOCUMENT_CENTER) ? (openBlock(), createBlock(DocumentCenter, { key: 2 })) : createCommentVNode("", true),
|
|
17996
|
+
isModuleVisible(unref(HeaderDisplayItem).MESSAGE_CENTER) ? (openBlock(), createBlock(Notice, { key: 3 })) : createCommentVNode("", true),
|
|
18164
17997
|
isModuleVisible(unref(HeaderDisplayItem).LOGIN_AND_AVATAR) ? (openBlock(), createBlock(UserAvatar, {
|
|
18165
|
-
key:
|
|
17998
|
+
key: 4,
|
|
18166
17999
|
isChatBot: isChatBot.value,
|
|
18167
18000
|
loginOutFinish: _ctx.loginOutFinish,
|
|
18168
18001
|
inAIHub: inAIHub.value,
|
|
@@ -18174,17 +18007,17 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
18174
18007
|
])), [
|
|
18175
18008
|
[unref(vElementExposure), { trigger: () => handleToolbarExpo() }]
|
|
18176
18009
|
]),
|
|
18177
|
-
_ctx.$slots.info || _ctx.$slots.menu || _ctx.$slots.bodyHeader ? (openBlock(), createElementBlock("div",
|
|
18010
|
+
_ctx.$slots.info || _ctx.$slots.menu || _ctx.$slots.bodyHeader ? (openBlock(), createElementBlock("div", _hoisted_7$5, [
|
|
18178
18011
|
renderSlot(_ctx.$slots, "bodyHeader", {}, () => [
|
|
18179
|
-
createElementVNode("div",
|
|
18012
|
+
createElementVNode("div", _hoisted_8$5, [
|
|
18180
18013
|
renderSlot(_ctx.$slots, "info", {}, void 0, true)
|
|
18181
18014
|
]),
|
|
18182
|
-
createElementVNode("div",
|
|
18015
|
+
createElementVNode("div", _hoisted_9$5, [
|
|
18183
18016
|
renderSlot(_ctx.$slots, "menu", {}, void 0, true)
|
|
18184
18017
|
])
|
|
18185
18018
|
], true)
|
|
18186
18019
|
])) : createCommentVNode("", true),
|
|
18187
|
-
_ctx.$slots.headerBottom ? (openBlock(), createElementBlock("div",
|
|
18020
|
+
_ctx.$slots.headerBottom ? (openBlock(), createElementBlock("div", _hoisted_10$5, [
|
|
18188
18021
|
renderSlot(_ctx.$slots, "headerBottom", {}, void 0, true)
|
|
18189
18022
|
])) : createCommentVNode("", true)
|
|
18190
18023
|
], 6)
|
|
@@ -18192,11 +18025,11 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
18192
18025
|
};
|
|
18193
18026
|
}
|
|
18194
18027
|
});
|
|
18195
|
-
const GitCodeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18196
|
-
const _hoisted_1$
|
|
18197
|
-
const _hoisted_2$
|
|
18198
|
-
const _hoisted_3$
|
|
18199
|
-
const _sfc_main$
|
|
18028
|
+
const GitCodeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
18029
|
+
const _hoisted_1$n = { class: "tools-item-wrapper" };
|
|
18030
|
+
const _hoisted_2$h = { class: "tools-item-wrapper-checkbox" };
|
|
18031
|
+
const _hoisted_3$g = ["onClick", "title"];
|
|
18032
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
18200
18033
|
__name: "Theme",
|
|
18201
18034
|
setup(__props) {
|
|
18202
18035
|
const { t: t2 } = i18n.global;
|
|
@@ -18221,9 +18054,9 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
18221
18054
|
setTheme(activeTheme.value);
|
|
18222
18055
|
};
|
|
18223
18056
|
return (_ctx, _cache) => {
|
|
18224
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
18057
|
+
return openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
18225
18058
|
createElementVNode("div", null, toDisplayString$1(unref(t2)("gitCodeLayout.common.footerSetting.theme")), 1),
|
|
18226
|
-
createElementVNode("div", _hoisted_2$
|
|
18059
|
+
createElementVNode("div", _hoisted_2$h, [
|
|
18227
18060
|
(openBlock(true), createElementBlock(Fragment, null, renderList(themeList.value, (item) => {
|
|
18228
18061
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
18229
18062
|
key: item.value,
|
|
@@ -18239,17 +18072,17 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
18239
18072
|
color: "var(--theme-icon-fill-weak)",
|
|
18240
18073
|
class: "checkbox-item-icon"
|
|
18241
18074
|
}, null, 8, ["name"])
|
|
18242
|
-
], 16, _hoisted_3$
|
|
18075
|
+
], 16, _hoisted_3$g);
|
|
18243
18076
|
}), 128))
|
|
18244
18077
|
])
|
|
18245
18078
|
]);
|
|
18246
18079
|
};
|
|
18247
18080
|
}
|
|
18248
18081
|
});
|
|
18249
|
-
const _hoisted_1$
|
|
18250
|
-
const _hoisted_2$
|
|
18251
|
-
const _hoisted_3$
|
|
18252
|
-
const _sfc_main$
|
|
18082
|
+
const _hoisted_1$m = { class: "aside-footer-tools-item" };
|
|
18083
|
+
const _hoisted_2$g = { class: "aside-footer-tools-item-dropdown-item" };
|
|
18084
|
+
const _hoisted_3$f = { class: "aside-footer-tools-item-dropdown-item" };
|
|
18085
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
18253
18086
|
...{ name: "AsideFooterTools" },
|
|
18254
18087
|
__name: "index",
|
|
18255
18088
|
props: {
|
|
@@ -18266,19 +18099,19 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
18266
18099
|
"overlay-class": "footer-tools-setting-dropdown"
|
|
18267
18100
|
}, {
|
|
18268
18101
|
menu: withCtx(() => [
|
|
18269
|
-
withDirectives(createElementVNode("div", _hoisted_2$
|
|
18270
|
-
createVNode(_sfc_main$
|
|
18102
|
+
withDirectives(createElementVNode("div", _hoisted_2$g, [
|
|
18103
|
+
createVNode(_sfc_main$r)
|
|
18271
18104
|
], 512), [
|
|
18272
18105
|
[vShow, _ctx.showThemeSetting]
|
|
18273
18106
|
]),
|
|
18274
|
-
withDirectives(createElementVNode("div", _hoisted_3$
|
|
18275
|
-
createVNode(_sfc_main$
|
|
18107
|
+
withDirectives(createElementVNode("div", _hoisted_3$f, [
|
|
18108
|
+
createVNode(_sfc_main$B)
|
|
18276
18109
|
], 512), [
|
|
18277
18110
|
[vShow, _ctx.showLangSetting]
|
|
18278
18111
|
])
|
|
18279
18112
|
]),
|
|
18280
18113
|
default: withCtx(() => [
|
|
18281
|
-
createElementVNode("div", _hoisted_1$
|
|
18114
|
+
createElementVNode("div", _hoisted_1$m, [
|
|
18282
18115
|
createVNode(GIcon, {
|
|
18283
18116
|
name: "gt-line-setting",
|
|
18284
18117
|
size: "16",
|
|
@@ -18297,8 +18130,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
18297
18130
|
};
|
|
18298
18131
|
}
|
|
18299
18132
|
});
|
|
18300
|
-
const AsideFooterTools = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18301
|
-
const _sfc_main$
|
|
18133
|
+
const AsideFooterTools = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
18134
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
18302
18135
|
...{
|
|
18303
18136
|
name: "ScrollActiveContainer",
|
|
18304
18137
|
inheritAttrs: false
|
|
@@ -18506,7 +18339,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
18506
18339
|
};
|
|
18507
18340
|
}
|
|
18508
18341
|
});
|
|
18509
|
-
const ScrollActiveContainer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18342
|
+
const ScrollActiveContainer = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
18510
18343
|
function asideV2Request(request) {
|
|
18511
18344
|
return {
|
|
18512
18345
|
/**
|
|
@@ -18611,18 +18444,18 @@ function mergeChannelsWithRecommendBlocks(originalChannels, blocks = []) {
|
|
|
18611
18444
|
}
|
|
18612
18445
|
const newTagImg = "data:image/png;base64,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";
|
|
18613
18446
|
const newTagDarkImg = "data:image/png;base64,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";
|
|
18614
|
-
const _hoisted_1$
|
|
18615
|
-
const _hoisted_2$
|
|
18447
|
+
const _hoisted_1$l = { class: "home-channel-side-nav" };
|
|
18448
|
+
const _hoisted_2$f = {
|
|
18616
18449
|
key: 0,
|
|
18617
18450
|
class: "home-channel-side-nav__list",
|
|
18618
18451
|
"aria-busy": "true",
|
|
18619
18452
|
"aria-label": "加载中"
|
|
18620
18453
|
};
|
|
18621
|
-
const _hoisted_3$
|
|
18454
|
+
const _hoisted_3$e = {
|
|
18622
18455
|
key: 0,
|
|
18623
18456
|
class: "home-channel-side-nav__group-title home-channel-side-nav__group-title--skeleton"
|
|
18624
18457
|
};
|
|
18625
|
-
const _hoisted_4$
|
|
18458
|
+
const _hoisted_4$b = { class: "home-channel-side-nav__info" };
|
|
18626
18459
|
const _hoisted_5$6 = { class: "home-channel-side-nav__label-row" };
|
|
18627
18460
|
const _hoisted_6$5 = {
|
|
18628
18461
|
key: 1,
|
|
@@ -18636,8 +18469,8 @@ const _hoisted_8$4 = ["aria-current", "title", "onClick"];
|
|
|
18636
18469
|
const _hoisted_9$4 = ["src", "alt", "onClick"];
|
|
18637
18470
|
const _hoisted_10$4 = { class: "home-channel-side-nav__info" };
|
|
18638
18471
|
const _hoisted_11$4 = { class: "home-channel-side-nav__label-row" };
|
|
18639
|
-
const _hoisted_12$
|
|
18640
|
-
const _hoisted_13$
|
|
18472
|
+
const _hoisted_12$4 = { class: "home-channel-side-nav__label" };
|
|
18473
|
+
const _hoisted_13$2 = ["src"];
|
|
18641
18474
|
const _hoisted_14$1 = ["title"];
|
|
18642
18475
|
const _hoisted_15$1 = {
|
|
18643
18476
|
key: 3,
|
|
@@ -18715,7 +18548,7 @@ const _hoisted_24$1 = {
|
|
|
18715
18548
|
class: "home-channel-side-nav__footer-tools-container"
|
|
18716
18549
|
};
|
|
18717
18550
|
const _hoisted_25$1 = { class: "home-channel-side-nav__footer-tools-inner" };
|
|
18718
|
-
const _sfc_main$
|
|
18551
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
18719
18552
|
...{ name: "AsideV2Content", inheritAttrs: false },
|
|
18720
18553
|
__name: "asideV2Content",
|
|
18721
18554
|
props: {
|
|
@@ -18929,7 +18762,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
18929
18762
|
return openBlock(), createElementBlock("div", {
|
|
18930
18763
|
class: normalizeClass(["gitcode-aside-v2-content home-channel-navigation", { "is-single-col": props.singleCol }])
|
|
18931
18764
|
}, [
|
|
18932
|
-
createElementVNode("div", _hoisted_1$
|
|
18765
|
+
createElementVNode("div", _hoisted_1$l, [
|
|
18933
18766
|
createVNode(ScrollActiveContainer, {
|
|
18934
18767
|
ref_key: "scrollContainerRef",
|
|
18935
18768
|
ref: scrollContainerRef,
|
|
@@ -18939,12 +18772,12 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
18939
18772
|
"aria-label": "首页频道"
|
|
18940
18773
|
}, {
|
|
18941
18774
|
default: withCtx(() => [
|
|
18942
|
-
loading.value && (!channelsList.value || channelsList.value.length === 0) ? (openBlock(), createElementBlock("ul", _hoisted_2$
|
|
18775
|
+
loading.value && (!channelsList.value || channelsList.value.length === 0) ? (openBlock(), createElementBlock("ul", _hoisted_2$f, [
|
|
18943
18776
|
(openBlock(), createElementBlock(Fragment, null, renderList(skeletonItems, (sk, idx) => {
|
|
18944
18777
|
return openBlock(), createElementBlock(Fragment, {
|
|
18945
18778
|
key: `skeleton-${idx}`
|
|
18946
18779
|
}, [
|
|
18947
|
-
sk.isGroupTitle ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
18780
|
+
sk.isGroupTitle ? (openBlock(), createElementBlock("div", _hoisted_3$e, [
|
|
18948
18781
|
createElementVNode("span", {
|
|
18949
18782
|
class: "home-channel-side-nav__skeleton-block home-channel-side-nav__group-skeleton",
|
|
18950
18783
|
style: normalizeStyle({ width: sk.width })
|
|
@@ -18957,7 +18790,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
18957
18790
|
class: normalizeClass(["home-channel-side-nav__item home-channel-side-nav__item--skeleton", { "has-desc": !!sk.descWidth }])
|
|
18958
18791
|
}, [
|
|
18959
18792
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "home-channel-side-nav__skeleton-block home-channel-side-nav__logo-skeleton" }, null, -1)),
|
|
18960
|
-
createElementVNode("div", _hoisted_4$
|
|
18793
|
+
createElementVNode("div", _hoisted_4$b, [
|
|
18961
18794
|
createElementVNode("span", _hoisted_5$6, [
|
|
18962
18795
|
createElementVNode("span", {
|
|
18963
18796
|
class: "home-channel-side-nav__skeleton-block home-channel-side-nav__label-skeleton",
|
|
@@ -19014,13 +18847,13 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
19014
18847
|
}, null, 8, ["name", "onClick"])) : createCommentVNode("", true),
|
|
19015
18848
|
createElementVNode("div", _hoisted_10$4, [
|
|
19016
18849
|
createElementVNode("span", _hoisted_11$4, [
|
|
19017
|
-
createElementVNode("span", _hoisted_12$
|
|
18850
|
+
createElementVNode("span", _hoisted_12$4, toDisplayString$1(getItemName(item)), 1),
|
|
19018
18851
|
item.is_new ? (openBlock(), createElementBlock("img", {
|
|
19019
18852
|
key: 0,
|
|
19020
18853
|
src: newTagSrc.value,
|
|
19021
18854
|
alt: "New",
|
|
19022
18855
|
class: "home-channel-side-nav__new-tag"
|
|
19023
|
-
}, null, 8, _hoisted_13$
|
|
18856
|
+
}, null, 8, _hoisted_13$2)) : createCommentVNode("", true)
|
|
19024
18857
|
]),
|
|
19025
18858
|
getItemDesc(item) ? (openBlock(), createElementBlock("span", {
|
|
19026
18859
|
key: 0,
|
|
@@ -19087,9 +18920,9 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
19087
18920
|
};
|
|
19088
18921
|
}
|
|
19089
18922
|
});
|
|
19090
|
-
const AsideV2Content = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19091
|
-
const _hoisted_1$
|
|
19092
|
-
const _sfc_main$
|
|
18923
|
+
const AsideV2Content = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
18924
|
+
const _hoisted_1$k = { class: "aside-drawer-header" };
|
|
18925
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
19093
18926
|
...{ name: "GitCodeAsideV2", inheritAttrs: false },
|
|
19094
18927
|
__name: "index",
|
|
19095
18928
|
props: {
|
|
@@ -19273,7 +19106,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
19273
19106
|
class: "draw-side-bar"
|
|
19274
19107
|
}, {
|
|
19275
19108
|
default: withCtx(() => [
|
|
19276
|
-
createElementVNode("div", _hoisted_1$
|
|
19109
|
+
createElementVNode("div", _hoisted_1$k, [
|
|
19277
19110
|
createVNode(GLink, {
|
|
19278
19111
|
class: "g-toolbar-left-logo",
|
|
19279
19112
|
style: normalizeStyle(logoStyle.value),
|
|
@@ -19304,22 +19137,33 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
19304
19137
|
};
|
|
19305
19138
|
}
|
|
19306
19139
|
});
|
|
19307
|
-
const GitCodeAsideV2 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19308
|
-
const _hoisted_1$
|
|
19309
|
-
const _hoisted_2$
|
|
19310
|
-
const _hoisted_3$
|
|
19311
|
-
|
|
19140
|
+
const GitCodeAsideV2 = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
19141
|
+
const _hoisted_1$j = { class: "g-toolbar allow-click-stop" };
|
|
19142
|
+
const _hoisted_2$e = { class: "g-toolbar-left allow-click-stop" };
|
|
19143
|
+
const _hoisted_3$d = {
|
|
19144
|
+
key: 1,
|
|
19145
|
+
class: "g-toolbar-custom"
|
|
19146
|
+
};
|
|
19147
|
+
const _hoisted_4$a = { class: "enterprise-name" };
|
|
19312
19148
|
const _hoisted_5$5 = { class: "enterprise-flag" };
|
|
19313
19149
|
const _hoisted_6$4 = { class: "search-avatar" };
|
|
19314
19150
|
const _hoisted_7$3 = { class: "g-toolbar-right allow-click-stop" };
|
|
19315
19151
|
const _hoisted_8$3 = {
|
|
19152
|
+
key: 0,
|
|
19153
|
+
class: "g-toolbar-right-divider"
|
|
19154
|
+
};
|
|
19155
|
+
const _hoisted_9$3 = {
|
|
19156
|
+
key: 0,
|
|
19157
|
+
class: "g-toolbar-right-divider"
|
|
19158
|
+
};
|
|
19159
|
+
const _hoisted_10$3 = {
|
|
19316
19160
|
key: 0,
|
|
19317
19161
|
class: "g-header-body"
|
|
19318
19162
|
};
|
|
19319
|
-
const
|
|
19320
|
-
const
|
|
19321
|
-
const
|
|
19322
|
-
const _sfc_main$
|
|
19163
|
+
const _hoisted_11$3 = { class: "g-header-body-left" };
|
|
19164
|
+
const _hoisted_12$3 = { class: "g-header-body-right" };
|
|
19165
|
+
const _hoisted_13$1 = { key: 1 };
|
|
19166
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
19323
19167
|
...{
|
|
19324
19168
|
name: "EnterpriseHeader"
|
|
19325
19169
|
},
|
|
@@ -19350,9 +19194,12 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
19350
19194
|
atomcodeLaunchQs: { default: "" },
|
|
19351
19195
|
showAtomCodeLauncher: { type: Boolean, default: false },
|
|
19352
19196
|
launchAtomCode: { type: Function, default: void 0 },
|
|
19353
|
-
defaultGlobalSearchType: { default: "repo" }
|
|
19197
|
+
defaultGlobalSearchType: { default: "repo" },
|
|
19198
|
+
openCreateDropdown: { type: Boolean, default: false },
|
|
19199
|
+
createMenuItems: {},
|
|
19200
|
+
createMenuNavigate: {}
|
|
19354
19201
|
},
|
|
19355
|
-
emits: ["followDevCommunity", "followUser", "resetPwdDirectlySuccess"],
|
|
19202
|
+
emits: ["followDevCommunity", "followUser", "resetPwdDirectlySuccess", "update:openCreateDropdown"],
|
|
19356
19203
|
setup(__props, { emit: __emit }) {
|
|
19357
19204
|
var _a;
|
|
19358
19205
|
const route = useRoute();
|
|
@@ -19419,6 +19266,21 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
19419
19266
|
}
|
|
19420
19267
|
return "";
|
|
19421
19268
|
});
|
|
19269
|
+
const hasEnterpriseInfo = computed(() => {
|
|
19270
|
+
var _a2, _b;
|
|
19271
|
+
return Boolean(((_a2 = props.enterpriseInfo) == null ? void 0 : _a2.name) || ((_b = props.enterpriseInfo) == null ? void 0 : _b.avatar));
|
|
19272
|
+
});
|
|
19273
|
+
const logoConfig = getCurrentLogoMap();
|
|
19274
|
+
const logoStyle = computed(() => {
|
|
19275
|
+
const isBlackTheme = currentTheme.value === ThemeType.BLACK;
|
|
19276
|
+
const logoUrl = isBlackTheme ? logoConfig.siteLogoWhite : logoConfig.siteLogoDark;
|
|
19277
|
+
return {
|
|
19278
|
+
backgroundImage: `url(${logoUrl})`,
|
|
19279
|
+
backgroundRepeat: "no-repeat",
|
|
19280
|
+
backgroundPosition: "0 center",
|
|
19281
|
+
backgroundSize: isMobile.value ? "cover" : "contain"
|
|
19282
|
+
};
|
|
19283
|
+
});
|
|
19422
19284
|
if (!((_a = route == null ? void 0 : route.meta) == null ? void 0 : _a.hiddenThemeSetting)) {
|
|
19423
19285
|
theme.initAutoTheme();
|
|
19424
19286
|
}
|
|
@@ -19461,13 +19323,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
19461
19323
|
emitEvent("toggleAsideMenuByHamburger");
|
|
19462
19324
|
useReport2(REPO_EVENT.CLICK, { module_name: ASIDE_MENU_REPO.ASIDEBTNCLICK });
|
|
19463
19325
|
};
|
|
19464
|
-
const handleThemeChange = () => {
|
|
19465
|
-
setTheme(currentTheme.value === ThemeType.WHITE ? ThemeType.BLACK : ThemeType.WHITE);
|
|
19466
|
-
};
|
|
19467
19326
|
const layoutConfig2 = useLayoutConfig();
|
|
19468
|
-
const handleNewRepo = () => {
|
|
19469
|
-
window.open(`${layoutConfig2.VITE_HOST}/create?position=nav_top`, "_blank");
|
|
19470
|
-
};
|
|
19471
19327
|
const loginDataFormat = (options) => {
|
|
19472
19328
|
return {
|
|
19473
19329
|
...options || {},
|
|
@@ -19541,8 +19397,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
19541
19397
|
class: normalizeClass(["g-header allow-click-stop", [showHeaderShadow.value ? "head-shadow" : "", _ctx.headerBorder ? "oldBorder" : "", headerClassName.value]])
|
|
19542
19398
|
}, [
|
|
19543
19399
|
createVNode(SiteAnnouncement),
|
|
19544
|
-
withDirectives((openBlock(), createElementBlock("div", _hoisted_1$
|
|
19545
|
-
createElementVNode("div", _hoisted_2$
|
|
19400
|
+
withDirectives((openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
19401
|
+
createElementVNode("div", _hoisted_2$e, [
|
|
19546
19402
|
isModuleVisible(unref(HeaderDisplayItem).ASIDE_BUTTON) ? (openBlock(), createBlock(GIcon, {
|
|
19547
19403
|
key: 0,
|
|
19548
19404
|
onClick: handleHamburgerClick,
|
|
@@ -19551,8 +19407,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
19551
19407
|
class: "g-toolbar-left-asideicon",
|
|
19552
19408
|
color: "var(--theme-aide-text)"
|
|
19553
19409
|
})) : createCommentVNode("", true),
|
|
19554
|
-
|
|
19555
|
-
createVNode(_sfc_main$
|
|
19410
|
+
hasEnterpriseInfo.value ? (openBlock(), createElementBlock("div", _hoisted_3$d, [
|
|
19411
|
+
createVNode(_sfc_main$N, {
|
|
19556
19412
|
src: (_a2 = _ctx.enterpriseInfo) == null ? void 0 : _a2.avatar,
|
|
19557
19413
|
name: (_b = _ctx.enterpriseInfo) == null ? void 0 : _b.name,
|
|
19558
19414
|
isRound: false,
|
|
@@ -19560,9 +19416,21 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
19560
19416
|
height: 32,
|
|
19561
19417
|
class: "enterprise-avatar"
|
|
19562
19418
|
}, null, 8, ["src", "name"]),
|
|
19563
|
-
createElementVNode("span", _hoisted_4$
|
|
19419
|
+
createElementVNode("span", _hoisted_4$a, toDisplayString$1((_c = _ctx.enterpriseInfo) == null ? void 0 : _c.name), 1),
|
|
19564
19420
|
createElementVNode("span", _hoisted_5$5, toDisplayString$1(unref(t2)("gitCodeLayout.header.enterpriseFlag")), 1)
|
|
19565
|
-
])
|
|
19421
|
+
])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
19422
|
+
_ctx.independence ? (openBlock(), createBlock(GLink, {
|
|
19423
|
+
key: 0,
|
|
19424
|
+
class: "g-toolbar-left-logo",
|
|
19425
|
+
style: normalizeStyle(logoStyle.value),
|
|
19426
|
+
href: `${unref(layoutConfig2).VITE_HOST}?p=seo`
|
|
19427
|
+
}, null, 8, ["style", "href"])) : (openBlock(), createBlock(GLink, {
|
|
19428
|
+
key: 1,
|
|
19429
|
+
class: "g-toolbar-left-logo",
|
|
19430
|
+
style: normalizeStyle(logoStyle.value),
|
|
19431
|
+
to: { name: "home" }
|
|
19432
|
+
}, null, 8, ["style"]))
|
|
19433
|
+
], 64))
|
|
19566
19434
|
]),
|
|
19567
19435
|
createElementVNode("div", _hoisted_6$4, [
|
|
19568
19436
|
isModuleVisible(unref(HeaderDisplayItem).SEARCH_BUTTON) ? renderSlot(_ctx.$slots, "search", { key: 0 }, () => [
|
|
@@ -19591,15 +19459,20 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
19591
19459
|
], true) : createCommentVNode("", true)
|
|
19592
19460
|
]),
|
|
19593
19461
|
createElementVNode("div", _hoisted_7$3, [
|
|
19594
|
-
_ctx.showAtomCodeLauncher ? (
|
|
19595
|
-
|
|
19596
|
-
|
|
19462
|
+
_ctx.showAtomCodeLauncher ? renderSlot(_ctx.$slots, "atomCodeLauncher", { key: 0 }, () => [
|
|
19463
|
+
createVNode(AtomCodeLauncher, {
|
|
19464
|
+
atomcodeLaunchQs: _ctx.atomcodeLaunchQs,
|
|
19465
|
+
isLogin: _ctx.isLogin,
|
|
19466
|
+
launchAtomCode: _ctx.launchAtomCode
|
|
19467
|
+
}, null, 8, ["atomcodeLaunchQs", "isLogin", "launchAtomCode"])
|
|
19468
|
+
], true) : createCommentVNode("", true),
|
|
19469
|
+
createVNode(HomeHeaderActions, {
|
|
19597
19470
|
isLogin: _ctx.isLogin,
|
|
19598
|
-
|
|
19599
|
-
}, null, 8, ["
|
|
19600
|
-
createVNode(HomeHeaderActions),
|
|
19471
|
+
independence: _ctx.independence
|
|
19472
|
+
}, null, 8, ["isLogin", "independence"]),
|
|
19601
19473
|
!_ctx.isLogin ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
19602
|
-
|
|
19474
|
+
!unref(isMobile) ? (openBlock(), createElementBlock("div", _hoisted_8$3)) : createCommentVNode("", true),
|
|
19475
|
+
isModuleVisible(unref(HeaderDisplayItem).LOGIN_AND_AVATAR) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
19603
19476
|
unref(isMobile) ? (openBlock(), createElementBlock("section", {
|
|
19604
19477
|
key: 0,
|
|
19605
19478
|
class: "app-login-warp login-icon",
|
|
@@ -19633,31 +19506,18 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
19633
19506
|
], 64))
|
|
19634
19507
|
], 64)) : createCommentVNode("", true)
|
|
19635
19508
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
19636
|
-
!["sm"].includes(unref(widthType))
|
|
19637
|
-
|
|
19638
|
-
|
|
19639
|
-
|
|
19640
|
-
|
|
19641
|
-
|
|
19642
|
-
|
|
19643
|
-
|
|
19644
|
-
|
|
19645
|
-
|
|
19646
|
-
class: "btn-add-icon"
|
|
19647
|
-
}),
|
|
19648
|
-
createTextVNode(toDisplayString$1(unref(t2)("gitCodeLayout.header.create")), 1)
|
|
19649
|
-
]),
|
|
19650
|
-
_: 1
|
|
19651
|
-
})) : createCommentVNode("", true),
|
|
19652
|
-
isModuleVisible(unref(HeaderDisplayItem).MESSAGE_CENTER) ? (openBlock(), createBlock(Notice, { key: 1 })) : createCommentVNode("", true),
|
|
19653
|
-
createVNode(GIcon, {
|
|
19654
|
-
name: unref(isWhiteTheme)() ? "gt-line-light" : "gt-line-dark",
|
|
19655
|
-
size: "16px",
|
|
19656
|
-
onClick: handleThemeChange,
|
|
19657
|
-
class: "theme-toggle-icon"
|
|
19658
|
-
}, null, 8, ["name"]),
|
|
19509
|
+
!["sm"].includes(unref(widthType)) ? (openBlock(), createElementBlock("div", _hoisted_9$3)) : createCommentVNode("", true),
|
|
19510
|
+
!["sm"].includes(unref(widthType)) && isModuleVisible(unref(HeaderDisplayItem).NEW_BUTTON) ? (openBlock(), createBlock(HeaderCreateMenu, {
|
|
19511
|
+
key: 1,
|
|
19512
|
+
dropdownVisible: _ctx.openCreateDropdown,
|
|
19513
|
+
items: _ctx.createMenuItems,
|
|
19514
|
+
onNavigate: _ctx.createMenuNavigate,
|
|
19515
|
+
"is-create-enterprise": "",
|
|
19516
|
+
"onUpdate:dropdownVisible": _cache[3] || (_cache[3] = ($event) => emit("update:openCreateDropdown", $event))
|
|
19517
|
+
}, null, 8, ["dropdownVisible", "items", "onNavigate"])) : createCommentVNode("", true),
|
|
19518
|
+
isModuleVisible(unref(HeaderDisplayItem).MESSAGE_CENTER) ? (openBlock(), createBlock(Notice, { key: 2 })) : createCommentVNode("", true),
|
|
19659
19519
|
isModuleVisible(unref(HeaderDisplayItem).LOGIN_AND_AVATAR) ? (openBlock(), createBlock(UserAvatar, {
|
|
19660
|
-
key:
|
|
19520
|
+
key: 3,
|
|
19661
19521
|
isChatBot: false,
|
|
19662
19522
|
loginOutFinish: _ctx.loginOutFinish,
|
|
19663
19523
|
inAIHub: false,
|
|
@@ -19670,17 +19530,17 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
19670
19530
|
])), [
|
|
19671
19531
|
[unref(vElementExposure), { trigger: (type) => handleToolbarExpo() }]
|
|
19672
19532
|
]),
|
|
19673
|
-
_ctx.$slots.info || _ctx.$slots.menu || _ctx.$slots.bodyHeader ? (openBlock(), createElementBlock("div",
|
|
19533
|
+
_ctx.$slots.info || _ctx.$slots.menu || _ctx.$slots.bodyHeader ? (openBlock(), createElementBlock("div", _hoisted_10$3, [
|
|
19674
19534
|
renderSlot(_ctx.$slots, "bodyHeader", {}, () => [
|
|
19675
|
-
createElementVNode("div",
|
|
19535
|
+
createElementVNode("div", _hoisted_11$3, [
|
|
19676
19536
|
renderSlot(_ctx.$slots, "info", {}, void 0, true)
|
|
19677
19537
|
]),
|
|
19678
|
-
createElementVNode("div",
|
|
19538
|
+
createElementVNode("div", _hoisted_12$3, [
|
|
19679
19539
|
renderSlot(_ctx.$slots, "menu", {}, void 0, true)
|
|
19680
19540
|
])
|
|
19681
19541
|
], true)
|
|
19682
19542
|
])) : createCommentVNode("", true),
|
|
19683
|
-
_ctx.$slots.headerBottom ? (openBlock(), createElementBlock("div",
|
|
19543
|
+
_ctx.$slots.headerBottom ? (openBlock(), createElementBlock("div", _hoisted_13$1, [
|
|
19684
19544
|
renderSlot(_ctx.$slots, "headerBottom", {}, void 0, true)
|
|
19685
19545
|
])) : createCommentVNode("", true)
|
|
19686
19546
|
], 2),
|
|
@@ -19699,7 +19559,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
19699
19559
|
};
|
|
19700
19560
|
}
|
|
19701
19561
|
});
|
|
19702
|
-
const EnterpriseHeader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19562
|
+
const EnterpriseHeader = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
19703
19563
|
const layoutConfig$2 = useLayoutConfig();
|
|
19704
19564
|
const useConfigSide = (request, sceneValue) => {
|
|
19705
19565
|
const API = asideRequest(request);
|
|
@@ -19905,9 +19765,9 @@ var SearchType = /* @__PURE__ */ ((SearchType2) => {
|
|
|
19905
19765
|
SearchType2[SearchType2["Enterprise"] = 3] = "Enterprise";
|
|
19906
19766
|
return SearchType2;
|
|
19907
19767
|
})(SearchType || {});
|
|
19908
|
-
const _hoisted_1$
|
|
19909
|
-
const _hoisted_2$
|
|
19910
|
-
const _sfc_main$
|
|
19768
|
+
const _hoisted_1$i = { class: "area" };
|
|
19769
|
+
const _hoisted_2$d = { class: "area__layout-slot" };
|
|
19770
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
19911
19771
|
__name: "Area",
|
|
19912
19772
|
props: {
|
|
19913
19773
|
list: {},
|
|
@@ -19920,9 +19780,9 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
19920
19780
|
const layoutConfig2 = useLayoutConfig();
|
|
19921
19781
|
const { t: t2 } = i18n.global;
|
|
19922
19782
|
const route = useRoute();
|
|
19923
|
-
const MenuItem = defineAsyncComponent(() => import("./MenuItem-
|
|
19924
|
-
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-
|
|
19925
|
-
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-
|
|
19783
|
+
const MenuItem = defineAsyncComponent(() => import("./MenuItem-9_YDnl-1.js"));
|
|
19784
|
+
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-DKkAdHEv.js"));
|
|
19785
|
+
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-CiTAu8At.js"));
|
|
19926
19786
|
const props = __props;
|
|
19927
19787
|
const useReport2 = inject("useReport");
|
|
19928
19788
|
const userInfo = inject("userInfo");
|
|
@@ -20127,7 +19987,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
20127
19987
|
window.open(url, openMode);
|
|
20128
19988
|
};
|
|
20129
19989
|
return (_ctx, _cache) => {
|
|
20130
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19990
|
+
return openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
20131
19991
|
createVNode(unref(Menu), {
|
|
20132
19992
|
class: "menu",
|
|
20133
19993
|
onSelect: onMenuClick,
|
|
@@ -20154,7 +20014,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
20154
20014
|
return {
|
|
20155
20015
|
name: key,
|
|
20156
20016
|
fn: withCtx(() => [
|
|
20157
|
-
createElementVNode("div", _hoisted_2$
|
|
20017
|
+
createElementVNode("div", _hoisted_2$d, [
|
|
20158
20018
|
createVNode(unref(Menu), {
|
|
20159
20019
|
class: "menu",
|
|
20160
20020
|
onSelect: onMenuClick,
|
|
@@ -20182,11 +20042,11 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
20182
20042
|
};
|
|
20183
20043
|
}
|
|
20184
20044
|
});
|
|
20185
|
-
const Area = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20186
|
-
const _hoisted_1$
|
|
20187
|
-
const _hoisted_2$
|
|
20188
|
-
const _hoisted_3$
|
|
20189
|
-
const _sfc_main$
|
|
20045
|
+
const Area = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
20046
|
+
const _hoisted_1$h = { class: "settings__label" };
|
|
20047
|
+
const _hoisted_2$c = { class: "aside-footer-tools-item-dropdown-item" };
|
|
20048
|
+
const _hoisted_3$c = { class: "aside-footer-tools-item-dropdown-item" };
|
|
20049
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
20190
20050
|
__name: "Settings",
|
|
20191
20051
|
props: {
|
|
20192
20052
|
showThemeSetting: { type: Boolean },
|
|
@@ -20202,13 +20062,13 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
20202
20062
|
"overlay-class": "footer-tools-setting-dropdown"
|
|
20203
20063
|
}, {
|
|
20204
20064
|
menu: withCtx(() => [
|
|
20205
|
-
withDirectives(createElementVNode("div", _hoisted_2$
|
|
20206
|
-
createVNode(_sfc_main$
|
|
20065
|
+
withDirectives(createElementVNode("div", _hoisted_2$c, [
|
|
20066
|
+
createVNode(_sfc_main$r)
|
|
20207
20067
|
], 512), [
|
|
20208
20068
|
[vShow, _ctx.showThemeSetting]
|
|
20209
20069
|
]),
|
|
20210
|
-
withDirectives(createElementVNode("div", _hoisted_3$
|
|
20211
|
-
createVNode(_sfc_main$
|
|
20070
|
+
withDirectives(createElementVNode("div", _hoisted_3$c, [
|
|
20071
|
+
createVNode(_sfc_main$B)
|
|
20212
20072
|
], 512), [
|
|
20213
20073
|
[vShow, _ctx.showLangSetting]
|
|
20214
20074
|
])
|
|
@@ -20227,7 +20087,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
20227
20087
|
size: "16",
|
|
20228
20088
|
class: "active-icon settings__icon-min"
|
|
20229
20089
|
}),
|
|
20230
|
-
createElementVNode("span", _hoisted_1$
|
|
20090
|
+
createElementVNode("span", _hoisted_1$h, toDisplayString$1(unref(t2)("gitCodeLayout.common.footerSetting.preSettingLittle")), 1)
|
|
20231
20091
|
], 2)
|
|
20232
20092
|
]),
|
|
20233
20093
|
_: 1
|
|
@@ -20235,9 +20095,9 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
20235
20095
|
};
|
|
20236
20096
|
}
|
|
20237
20097
|
});
|
|
20238
|
-
const Settings = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20098
|
+
const Settings = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
20239
20099
|
const FEEDBACK_CENTER_URL = "https://gitcode.com/Gitcode-offical-team/GitCode-Docs/issues";
|
|
20240
|
-
const _sfc_main$
|
|
20100
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
20241
20101
|
__name: "SubMenuList",
|
|
20242
20102
|
setup(__props) {
|
|
20243
20103
|
const layoutConfig2 = useLayoutConfig();
|
|
@@ -20292,7 +20152,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
20292
20152
|
};
|
|
20293
20153
|
}
|
|
20294
20154
|
});
|
|
20295
|
-
const SubMenuList = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20155
|
+
const SubMenuList = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
20296
20156
|
const createSetting = () => {
|
|
20297
20157
|
const { t: t2 } = i18n.global;
|
|
20298
20158
|
const isGitCodeHost2 = typeof window !== "undefined" && window.location.hostname.includes("gitcode");
|
|
@@ -20332,10 +20192,10 @@ const createSetting = () => {
|
|
|
20332
20192
|
}
|
|
20333
20193
|
return settings;
|
|
20334
20194
|
};
|
|
20335
|
-
const _hoisted_1$
|
|
20336
|
-
const _hoisted_2$
|
|
20337
|
-
const _hoisted_3$
|
|
20338
|
-
const _hoisted_4$
|
|
20195
|
+
const _hoisted_1$g = { class: "aside-footer" };
|
|
20196
|
+
const _hoisted_2$b = { class: "remake-message" };
|
|
20197
|
+
const _hoisted_3$b = ["title"];
|
|
20198
|
+
const _hoisted_4$9 = { class: "remake-message__line" };
|
|
20339
20199
|
const _hoisted_5$4 = {
|
|
20340
20200
|
href: "https://beian.miit.gov.cn/#/Integrated/index",
|
|
20341
20201
|
target: "_blank"
|
|
@@ -20354,7 +20214,7 @@ const _hoisted_9$2 = { class: "contact-info__about-row" };
|
|
|
20354
20214
|
const _hoisted_10$2 = { class: "footer-work-info" };
|
|
20355
20215
|
const _hoisted_11$2 = { class: "footer-work-info__item footer-work-info__item--mt" };
|
|
20356
20216
|
const _hoisted_12$2 = { class: "" };
|
|
20357
|
-
const _sfc_main$
|
|
20217
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
20358
20218
|
__name: "ContactInfo",
|
|
20359
20219
|
setup(__props) {
|
|
20360
20220
|
const { t: t2 } = i18n.global;
|
|
@@ -20364,13 +20224,13 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
20364
20224
|
return getLocaleLang() === LANG_EN;
|
|
20365
20225
|
});
|
|
20366
20226
|
return (_ctx, _cache) => {
|
|
20367
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20368
|
-
createElementVNode("div", _hoisted_2$
|
|
20227
|
+
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
20228
|
+
createElementVNode("div", _hoisted_2$b, [
|
|
20369
20229
|
createElementVNode("p", {
|
|
20370
20230
|
class: "remake-message__line remake-message__line--break",
|
|
20371
20231
|
title: unref(copyright).digestAbbr
|
|
20372
|
-
}, " © " + toDisplayString$1(unref(copyright).digestAbbr), 9, _hoisted_3$
|
|
20373
|
-
createElementVNode("p", _hoisted_4$
|
|
20232
|
+
}, " © " + toDisplayString$1(unref(copyright).digestAbbr), 9, _hoisted_3$b),
|
|
20233
|
+
createElementVNode("p", _hoisted_4$9, [
|
|
20374
20234
|
createElementVNode("a", _hoisted_5$4, toDisplayString$1(unref(copyright).icp), 1)
|
|
20375
20235
|
]),
|
|
20376
20236
|
unref(copyright).publicSecurity_url ? (openBlock(), createElementBlock("p", _hoisted_6$3, [
|
|
@@ -20426,18 +20286,18 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
20426
20286
|
};
|
|
20427
20287
|
}
|
|
20428
20288
|
});
|
|
20429
|
-
const ContactInfo = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20430
|
-
const _hoisted_1$
|
|
20431
|
-
const _hoisted_2$
|
|
20432
|
-
const _hoisted_3$
|
|
20289
|
+
const ContactInfo = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
20290
|
+
const _hoisted_1$f = { class: "config-aside__main" };
|
|
20291
|
+
const _hoisted_2$a = { key: 0 };
|
|
20292
|
+
const _hoisted_3$a = {
|
|
20433
20293
|
key: 1,
|
|
20434
20294
|
class: "aside-menus"
|
|
20435
20295
|
};
|
|
20436
|
-
const _hoisted_4$
|
|
20296
|
+
const _hoisted_4$8 = {
|
|
20437
20297
|
key: 1,
|
|
20438
20298
|
class: "line line--mt"
|
|
20439
20299
|
};
|
|
20440
|
-
const _sfc_main$
|
|
20300
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
20441
20301
|
__name: "configAideContent",
|
|
20442
20302
|
props: {
|
|
20443
20303
|
sceneValue: { default: SceneValue.home },
|
|
@@ -20575,18 +20435,18 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
20575
20435
|
createElementVNode("div", {
|
|
20576
20436
|
class: normalizeClass(["config-aside__content", { "side-bar-content-shot": _ctx.asideSetShowLittle, "shot-isCh": !unref(isEn) }])
|
|
20577
20437
|
}, [
|
|
20578
|
-
withDirectives((openBlock(), createElementBlock("div", _hoisted_1$
|
|
20438
|
+
withDirectives((openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
20579
20439
|
createElementVNode("div", {
|
|
20580
20440
|
class: normalizeClass(["scroll-content config-aside__scroll", { scroll: isScroll.value }]),
|
|
20581
20441
|
onScroll: handleScroll,
|
|
20582
20442
|
onMouseleave: handleMouseLeave
|
|
20583
20443
|
}, [
|
|
20584
|
-
unref(sideLoading) ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
20444
|
+
unref(sideLoading) ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
|
|
20585
20445
|
createVNode(unref(Skeleton), {
|
|
20586
20446
|
loading: unref(sideLoading),
|
|
20587
20447
|
row: 4
|
|
20588
20448
|
}, null, 8, ["loading"])
|
|
20589
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_3$
|
|
20449
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_3$a, [
|
|
20590
20450
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayArea.value, (item, index2) => {
|
|
20591
20451
|
return openBlock(), createElementBlock(Fragment, {
|
|
20592
20452
|
key: item.id
|
|
@@ -20620,7 +20480,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
20620
20480
|
}, null, 8, ["name"]),
|
|
20621
20481
|
_cache[2] || (_cache[2] = createElementVNode("span", null, "群组讨论", -1))
|
|
20622
20482
|
], 32)) : createCommentVNode("", true),
|
|
20623
|
-
!_ctx.asideSetShowLittle && index2 !== displayArea.value.length - 1 ? (openBlock(), createElementBlock("hr", _hoisted_4$
|
|
20483
|
+
!_ctx.asideSetShowLittle && index2 !== displayArea.value.length - 1 ? (openBlock(), createElementBlock("hr", _hoisted_4$8)) : createCommentVNode("", true)
|
|
20624
20484
|
], 64);
|
|
20625
20485
|
}), 128)),
|
|
20626
20486
|
!_ctx.asideSetShowLittle && isModuleVisible(unref(AsideDisplayItem).LINK) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
@@ -20650,9 +20510,9 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
20650
20510
|
};
|
|
20651
20511
|
}
|
|
20652
20512
|
});
|
|
20653
|
-
const ConfigAideContent = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20654
|
-
const _hoisted_1$
|
|
20655
|
-
const _sfc_main$
|
|
20513
|
+
const ConfigAideContent = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
20514
|
+
const _hoisted_1$e = { class: "aside-drawer-header" };
|
|
20515
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
20656
20516
|
__name: "index",
|
|
20657
20517
|
props: {
|
|
20658
20518
|
sceneValue: { default: SceneValue.home },
|
|
@@ -20827,7 +20687,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
20827
20687
|
class: "draw-side-bar"
|
|
20828
20688
|
}, {
|
|
20829
20689
|
default: withCtx(() => [
|
|
20830
|
-
createElementVNode("div", _hoisted_1$
|
|
20690
|
+
createElementVNode("div", _hoisted_1$e, [
|
|
20831
20691
|
createVNode(GLink, {
|
|
20832
20692
|
class: "g-toolbar-left-logo",
|
|
20833
20693
|
style: normalizeStyle(logoStyle.value),
|
|
@@ -20858,7 +20718,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
20858
20718
|
};
|
|
20859
20719
|
}
|
|
20860
20720
|
});
|
|
20861
|
-
const GitCodeAside = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20721
|
+
const GitCodeAside = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
20862
20722
|
const repoInfoData = {
|
|
20863
20723
|
"star_count": 0,
|
|
20864
20724
|
"forks_count": 0,
|
|
@@ -21565,11 +21425,11 @@ const headerCustomPropsData = {
|
|
|
21565
21425
|
isOtherUser: true
|
|
21566
21426
|
}
|
|
21567
21427
|
};
|
|
21568
|
-
const _hoisted_1$
|
|
21569
|
-
const _hoisted_2$
|
|
21570
|
-
const _hoisted_3$
|
|
21571
|
-
const _hoisted_4$
|
|
21572
|
-
const _sfc_main$
|
|
21428
|
+
const _hoisted_1$d = { class: "home-wrapper" };
|
|
21429
|
+
const _hoisted_2$9 = { class: "home-content" };
|
|
21430
|
+
const _hoisted_3$9 = { class: "home-left-side" };
|
|
21431
|
+
const _hoisted_4$7 = { class: "home-main" };
|
|
21432
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
21573
21433
|
__name: "home",
|
|
21574
21434
|
setup(__props) {
|
|
21575
21435
|
const asideVersion = ref("v2");
|
|
@@ -21645,7 +21505,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
21645
21505
|
}
|
|
21646
21506
|
});
|
|
21647
21507
|
return (_ctx, _cache) => {
|
|
21648
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
21508
|
+
return openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
21649
21509
|
showCommonHeader.value ? (openBlock(), createBlock(GitCodeHeader, {
|
|
21650
21510
|
key: 0,
|
|
21651
21511
|
sceneValue: sceneSelected.value,
|
|
@@ -21678,8 +21538,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
21678
21538
|
openHarmonyGuide: true,
|
|
21679
21539
|
headerCustomProps: headerCustomProps.value
|
|
21680
21540
|
}, null, 8, ["independence", "isLogin", "request", "globalStore", "enterpriseInfo", "userInfo", "headerCustomProps"])),
|
|
21681
|
-
createElementVNode("div", _hoisted_2$
|
|
21682
|
-
createElementVNode("div", _hoisted_3$
|
|
21541
|
+
createElementVNode("div", _hoisted_2$9, [
|
|
21542
|
+
createElementVNode("div", _hoisted_3$9, [
|
|
21683
21543
|
asideVersion.value === "v2" ? (openBlock(), createBlock(GitCodeAsideV2, {
|
|
21684
21544
|
key: 0,
|
|
21685
21545
|
sceneValue: sceneSelected.value,
|
|
@@ -21712,7 +21572,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
21712
21572
|
_: 1
|
|
21713
21573
|
}, 8, ["sceneValue", "userInfo", "isLogin", "request", "globalStore", "independence", "collapseMode"]))
|
|
21714
21574
|
]),
|
|
21715
|
-
createElementVNode("div", _hoisted_4$
|
|
21575
|
+
createElementVNode("div", _hoisted_4$7, [
|
|
21716
21576
|
_cache[12] || (_cache[12] = createElementVNode("h1", null, "Aside 版本切换", -1)),
|
|
21717
21577
|
createVNode(unref(RadioGroup), {
|
|
21718
21578
|
direction: "row",
|
|
@@ -21834,8 +21694,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
21834
21694
|
};
|
|
21835
21695
|
}
|
|
21836
21696
|
});
|
|
21837
|
-
const _hoisted_1$
|
|
21838
|
-
const _sfc_main$
|
|
21697
|
+
const _hoisted_1$c = { class: "home-wrapper" };
|
|
21698
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
21839
21699
|
__name: "login",
|
|
21840
21700
|
setup(__props) {
|
|
21841
21701
|
const isLogin = ref(false);
|
|
@@ -21867,8 +21727,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
21867
21727
|
}
|
|
21868
21728
|
});
|
|
21869
21729
|
return (_ctx, _cache) => {
|
|
21870
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
21871
|
-
createVNode(_sfc_main, {
|
|
21730
|
+
return openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
21731
|
+
createVNode(_sfc_main$1, {
|
|
21872
21732
|
isLogin: isLogin.value,
|
|
21873
21733
|
request: unref(proxyService),
|
|
21874
21734
|
loginSuccess,
|
|
@@ -21885,7 +21745,7 @@ const routes = [
|
|
|
21885
21745
|
{
|
|
21886
21746
|
path: "/",
|
|
21887
21747
|
name: "home",
|
|
21888
|
-
component: _sfc_main$
|
|
21748
|
+
component: _sfc_main$f,
|
|
21889
21749
|
meta: {
|
|
21890
21750
|
// showBgColor: true,
|
|
21891
21751
|
asideMenu: "flat"
|
|
@@ -21894,52 +21754,52 @@ const routes = [
|
|
|
21894
21754
|
{
|
|
21895
21755
|
path: "/dashboard",
|
|
21896
21756
|
name: "dashboard",
|
|
21897
|
-
component: _sfc_main$
|
|
21757
|
+
component: _sfc_main$f
|
|
21898
21758
|
},
|
|
21899
21759
|
{
|
|
21900
21760
|
path: "/repoDashboard",
|
|
21901
21761
|
name: "repoDashboard",
|
|
21902
|
-
component: _sfc_main$
|
|
21762
|
+
component: _sfc_main$f
|
|
21903
21763
|
},
|
|
21904
21764
|
{
|
|
21905
21765
|
path: "/",
|
|
21906
21766
|
name: "homepage",
|
|
21907
|
-
component: _sfc_main$
|
|
21767
|
+
component: _sfc_main$f
|
|
21908
21768
|
},
|
|
21909
21769
|
{
|
|
21910
21770
|
path: "/settingOrganization",
|
|
21911
21771
|
name: "settingOrganization",
|
|
21912
|
-
component: _sfc_main$
|
|
21772
|
+
component: _sfc_main$f
|
|
21913
21773
|
},
|
|
21914
21774
|
{
|
|
21915
21775
|
path: "/settingRepo",
|
|
21916
21776
|
name: "settingRepo",
|
|
21917
|
-
component: _sfc_main$
|
|
21777
|
+
component: _sfc_main$f
|
|
21918
21778
|
},
|
|
21919
21779
|
{
|
|
21920
21780
|
path: "/myNotebook",
|
|
21921
21781
|
name: "myNotebook",
|
|
21922
|
-
component: _sfc_main$
|
|
21782
|
+
component: _sfc_main$f
|
|
21923
21783
|
},
|
|
21924
21784
|
{
|
|
21925
21785
|
path: "/userSpaces",
|
|
21926
21786
|
name: "userSpaces",
|
|
21927
|
-
component: _sfc_main$
|
|
21787
|
+
component: _sfc_main$f
|
|
21928
21788
|
},
|
|
21929
21789
|
{
|
|
21930
21790
|
path: "/userStars",
|
|
21931
21791
|
name: "userStars",
|
|
21932
|
-
component: _sfc_main$
|
|
21792
|
+
component: _sfc_main$f
|
|
21933
21793
|
},
|
|
21934
21794
|
{
|
|
21935
21795
|
path: "/setting",
|
|
21936
21796
|
name: "setting",
|
|
21937
|
-
component: _sfc_main$
|
|
21797
|
+
component: _sfc_main$f
|
|
21938
21798
|
},
|
|
21939
21799
|
{
|
|
21940
21800
|
path: "/login",
|
|
21941
21801
|
name: "/login",
|
|
21942
|
-
component: _sfc_main$
|
|
21802
|
+
component: _sfc_main$e
|
|
21943
21803
|
}
|
|
21944
21804
|
];
|
|
21945
21805
|
const router = createRouter({
|
|
@@ -22599,8 +22459,8 @@ function useModel(props, emits) {
|
|
|
22599
22459
|
vModels
|
|
22600
22460
|
};
|
|
22601
22461
|
}
|
|
22602
|
-
const _hoisted_1$
|
|
22603
|
-
const _sfc_main$
|
|
22462
|
+
const _hoisted_1$b = { class: "g-input-button-append__text" };
|
|
22463
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
22604
22464
|
__name: "inputButton",
|
|
22605
22465
|
props: {
|
|
22606
22466
|
modelValue: {},
|
|
@@ -22708,7 +22568,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
22708
22568
|
DisabledBtn.value || !_ctx.hasMobile ? "g-input-button-append-inactive" : "g-input-button-append-active"
|
|
22709
22569
|
])
|
|
22710
22570
|
}, [
|
|
22711
|
-
createElementVNode("span", _hoisted_1$
|
|
22571
|
+
createElementVNode("span", _hoisted_1$b, toDisplayString$1(BtnText.value), 1)
|
|
22712
22572
|
], 2)
|
|
22713
22573
|
]),
|
|
22714
22574
|
_: 1
|
|
@@ -22717,12 +22577,12 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
22717
22577
|
};
|
|
22718
22578
|
}
|
|
22719
22579
|
});
|
|
22720
|
-
const _hoisted_1$
|
|
22721
|
-
const _hoisted_2$
|
|
22722
|
-
const _hoisted_3$
|
|
22723
|
-
const _hoisted_4$
|
|
22580
|
+
const _hoisted_1$a = { class: "g-input-select" };
|
|
22581
|
+
const _hoisted_2$8 = { class: "login-phone" };
|
|
22582
|
+
const _hoisted_3$8 = { class: "g-input-select__option-row" };
|
|
22583
|
+
const _hoisted_4$6 = { class: "g-input-select__item-row" };
|
|
22724
22584
|
const _hoisted_5$3 = { class: "g-input-select__option-row" };
|
|
22725
|
-
const _sfc_main$
|
|
22585
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
22726
22586
|
__name: "inputSelect",
|
|
22727
22587
|
props: {
|
|
22728
22588
|
modelValue: {},
|
|
@@ -22800,8 +22660,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
22800
22660
|
}
|
|
22801
22661
|
});
|
|
22802
22662
|
return (_ctx, _cache) => {
|
|
22803
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22804
|
-
createElementVNode("div", _hoisted_2$
|
|
22663
|
+
return openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
22664
|
+
createElementVNode("div", _hoisted_2$8, [
|
|
22805
22665
|
(props == null ? void 0 : props.editableSelect) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
22806
22666
|
createVNode(unref(Select), {
|
|
22807
22667
|
class: "login-country-select",
|
|
@@ -22818,7 +22678,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
22818
22678
|
value: item.value
|
|
22819
22679
|
}, {
|
|
22820
22680
|
default: withCtx(() => [
|
|
22821
|
-
createElementVNode("div", _hoisted_3$
|
|
22681
|
+
createElementVNode("div", _hoisted_3$8, [
|
|
22822
22682
|
createElementVNode("span", null, toDisplayString$1(item.name), 1),
|
|
22823
22683
|
createElementVNode("span", null, toDisplayString$1(item.label), 1)
|
|
22824
22684
|
])
|
|
@@ -22842,7 +22702,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
22842
22702
|
class: "login-phone-select"
|
|
22843
22703
|
}), {
|
|
22844
22704
|
item: withCtx((slotProps) => [
|
|
22845
|
-
createElementVNode("div", _hoisted_4$
|
|
22705
|
+
createElementVNode("div", _hoisted_4$6, [
|
|
22846
22706
|
createElementVNode("div", null, toDisplayString$1(slotProps.option.label), 1),
|
|
22847
22707
|
createVNode(GIcon, {
|
|
22848
22708
|
name: "gt-line-delete",
|
|
@@ -22922,7 +22782,7 @@ function useNoSpaceInput(getter, setter) {
|
|
|
22922
22782
|
handleKeydown
|
|
22923
22783
|
};
|
|
22924
22784
|
}
|
|
22925
|
-
const _sfc_main$
|
|
22785
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
22926
22786
|
__name: "index",
|
|
22927
22787
|
props: {
|
|
22928
22788
|
DataList: {},
|
|
@@ -23178,7 +23038,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
23178
23038
|
autocomplete: autocompleteCalc((_a = formItem.props) == null ? void 0 : _a.autocomplete),
|
|
23179
23039
|
autofocus: formItem.key === "username",
|
|
23180
23040
|
spellcheck: false
|
|
23181
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange", "onKeydown", "autocomplete", "autofocus"])) : formItem.type === "inputButton" ? (openBlock(), createBlock(_sfc_main$
|
|
23041
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange", "onKeydown", "autocomplete", "autofocus"])) : formItem.type === "inputButton" ? (openBlock(), createBlock(_sfc_main$d, mergeProps({
|
|
23182
23042
|
key: 1,
|
|
23183
23043
|
modelValue: Data[formItem.key],
|
|
23184
23044
|
"onUpdate:modelValue": ($event) => Data[formItem.key] = $event,
|
|
@@ -23192,7 +23052,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
23192
23052
|
text: unref($t)("gitCodeLayout.userSetting.account.getVerificationCode"),
|
|
23193
23053
|
error: _ctx.errors.msgError,
|
|
23194
23054
|
autocomplete: autocompleteCalc((_c = formItem.props) == null ? void 0 : _c.autocomplete)
|
|
23195
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "onChange", "onClick", "onUpdate:countdown", "placeholder", "hasMobile", "text", "error", "autocomplete"])) : formItem.type === "inputSelect" ? (openBlock(), createBlock(_sfc_main$
|
|
23055
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "onChange", "onClick", "onUpdate:countdown", "placeholder", "hasMobile", "text", "error", "autocomplete"])) : formItem.type === "inputSelect" ? (openBlock(), createBlock(_sfc_main$c, mergeProps({
|
|
23196
23056
|
key: 2,
|
|
23197
23057
|
country: Data.country,
|
|
23198
23058
|
class: _ctx.formErrors["mobile"] ? "input-select-error" : "",
|
|
@@ -23227,13 +23087,13 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
23227
23087
|
}
|
|
23228
23088
|
});
|
|
23229
23089
|
const recentLoginImg = "data:image/png;base64,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";
|
|
23230
|
-
const _hoisted_1$
|
|
23231
|
-
const _hoisted_2$
|
|
23232
|
-
const _hoisted_3$
|
|
23233
|
-
const _hoisted_4$
|
|
23090
|
+
const _hoisted_1$9 = { class: "auth-container" };
|
|
23091
|
+
const _hoisted_2$7 = { class: "tips" };
|
|
23092
|
+
const _hoisted_3$7 = { class: "icons" };
|
|
23093
|
+
const _hoisted_4$5 = ["src", "alt", "onClick"];
|
|
23234
23094
|
const _hoisted_5$2 = { class: "recent-login-img" };
|
|
23235
23095
|
const _hoisted_6$2 = ["src"];
|
|
23236
|
-
const _sfc_main$
|
|
23096
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
23237
23097
|
__name: "auth",
|
|
23238
23098
|
props: {
|
|
23239
23099
|
logos: {},
|
|
@@ -23254,9 +23114,9 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
23254
23114
|
return loginMethodList.includes(props.recentLoginType);
|
|
23255
23115
|
};
|
|
23256
23116
|
return (_ctx, _cache) => {
|
|
23257
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23258
|
-
createElementVNode("div", _hoisted_2$
|
|
23259
|
-
createElementVNode("div", _hoisted_3$
|
|
23117
|
+
return openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
23118
|
+
createElementVNode("div", _hoisted_2$7, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.otherLogin")), 1),
|
|
23119
|
+
createElementVNode("div", _hoisted_3$7, [
|
|
23260
23120
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.logos, (icon) => {
|
|
23261
23121
|
return openBlock(), createElementBlock("div", {
|
|
23262
23122
|
key: icon.alt,
|
|
@@ -23273,7 +23133,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
23273
23133
|
src: icon.src,
|
|
23274
23134
|
alt: icon.alt,
|
|
23275
23135
|
onClick: withModifiers(($event) => handleClick(icon), ["stop"])
|
|
23276
|
-
}, null, 8, _hoisted_4$
|
|
23136
|
+
}, null, 8, _hoisted_4$5)
|
|
23277
23137
|
]),
|
|
23278
23138
|
_: 2
|
|
23279
23139
|
}, 1032, ["content", "disabled"]),
|
|
@@ -23291,7 +23151,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
23291
23151
|
};
|
|
23292
23152
|
}
|
|
23293
23153
|
});
|
|
23294
|
-
const GAuth = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
23154
|
+
const GAuth = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
23295
23155
|
const LOGIN_DECLARE_KEY = "g-login-declare-status";
|
|
23296
23156
|
const useDeclareStatus = () => {
|
|
23297
23157
|
const declareNotClicked = ref({
|
|
@@ -23333,11 +23193,11 @@ const useDeclareStatus = () => {
|
|
|
23333
23193
|
resetDeclareStatus
|
|
23334
23194
|
};
|
|
23335
23195
|
};
|
|
23336
|
-
const _hoisted_1$
|
|
23337
|
-
const _hoisted_2$
|
|
23338
|
-
const _hoisted_3$
|
|
23339
|
-
const _hoisted_4$
|
|
23340
|
-
const _sfc_main$
|
|
23196
|
+
const _hoisted_1$8 = { class: "agreement" };
|
|
23197
|
+
const _hoisted_2$6 = { class: "agreement__placeholder" };
|
|
23198
|
+
const _hoisted_3$6 = { class: "agreement__placeholder" };
|
|
23199
|
+
const _hoisted_4$4 = { class: "agreement__placeholder" };
|
|
23200
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
23341
23201
|
__name: "agreement",
|
|
23342
23202
|
props: {
|
|
23343
23203
|
modelValue: { type: Boolean },
|
|
@@ -23361,19 +23221,19 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
23361
23221
|
}
|
|
23362
23222
|
});
|
|
23363
23223
|
return (_ctx, _cache) => {
|
|
23364
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23224
|
+
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
23365
23225
|
createVNode(unref(Checkbox), {
|
|
23366
23226
|
"model-value": _ctx.modelValue,
|
|
23367
23227
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = (val) => emits("update:modelValue", val)),
|
|
23368
23228
|
size: "sm"
|
|
23369
23229
|
}, {
|
|
23370
23230
|
default: withCtx(() => [
|
|
23371
|
-
createElementVNode("span", _hoisted_2$
|
|
23231
|
+
createElementVNode("span", _hoisted_2$6, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.agree")), 1),
|
|
23372
23232
|
createElementVNode("span", {
|
|
23373
23233
|
class: normalizeClass(["agreement__link", unref(declareNotClicked)["agreement"] ? "badge-dot-item" : ""]),
|
|
23374
23234
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleClick("agreement"), ["stop"]))
|
|
23375
23235
|
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.agreement")), 3),
|
|
23376
|
-
createElementVNode("span", _hoisted_3$
|
|
23236
|
+
createElementVNode("span", _hoisted_3$6, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.and")), 1),
|
|
23377
23237
|
createElementVNode("span", {
|
|
23378
23238
|
class: normalizeClass(["agreement__link", unref(declareNotClicked)["privacy"] ? "badge-dot-item" : ""]),
|
|
23379
23239
|
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleClick("privacy"), ["stop"]))
|
|
@@ -23387,7 +23247,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
23387
23247
|
size: "sm"
|
|
23388
23248
|
}, {
|
|
23389
23249
|
default: withCtx(() => [
|
|
23390
|
-
createElementVNode("span", _hoisted_4$
|
|
23250
|
+
createElementVNode("span", _hoisted_4$4, [
|
|
23391
23251
|
createTextVNode(toDisplayString$1(dataShareName.value) + " ", 1),
|
|
23392
23252
|
createElementVNode("span", {
|
|
23393
23253
|
class: "agreement__link",
|
|
@@ -23401,11 +23261,11 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
23401
23261
|
};
|
|
23402
23262
|
}
|
|
23403
23263
|
});
|
|
23404
|
-
const GAgreement = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
23405
|
-
const _hoisted_1$
|
|
23406
|
-
const _hoisted_2$
|
|
23407
|
-
const _hoisted_3$
|
|
23408
|
-
const _sfc_main$
|
|
23264
|
+
const GAgreement = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
23265
|
+
const _hoisted_1$7 = { class: "agreements__hint" };
|
|
23266
|
+
const _hoisted_2$5 = { class: "agreements__hint-plain" };
|
|
23267
|
+
const _hoisted_3$5 = { class: "agreements__hint" };
|
|
23268
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
23409
23269
|
__name: "agreements",
|
|
23410
23270
|
props: {
|
|
23411
23271
|
modelValue: { type: Boolean },
|
|
@@ -23437,12 +23297,12 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
23437
23297
|
class: "agree-module agreements"
|
|
23438
23298
|
}, {
|
|
23439
23299
|
default: withCtx(() => [
|
|
23440
|
-
createElementVNode("span", _hoisted_1$
|
|
23300
|
+
createElementVNode("span", _hoisted_1$7, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.readAgree")), 1),
|
|
23441
23301
|
createElementVNode("a", {
|
|
23442
23302
|
class: normalizeClass(["agreements__link", unref(declareNotClicked)["agreement"] ? "badge-dot-item" : ""]),
|
|
23443
23303
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleClick("agreement"), ["stop"]))
|
|
23444
23304
|
}, toDisplayString$1("《" + unref($t)("gitCodeLayout.LoginModal.link.agreement") + "》"), 3),
|
|
23445
|
-
createElementVNode("span", _hoisted_2$
|
|
23305
|
+
createElementVNode("span", _hoisted_2$5, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.and")), 1),
|
|
23446
23306
|
createElementVNode("a", {
|
|
23447
23307
|
class: normalizeClass(["agreements__link", unref(declareNotClicked)["privacy"] ? "badge-dot-item" : ""]),
|
|
23448
23308
|
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleClick("privacy"), ["stop"]))
|
|
@@ -23458,7 +23318,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
23458
23318
|
class: "agreements__data-share"
|
|
23459
23319
|
}, {
|
|
23460
23320
|
default: withCtx(() => [
|
|
23461
|
-
createElementVNode("span", _hoisted_3$
|
|
23321
|
+
createElementVNode("span", _hoisted_3$5, toDisplayString$1(dataShareName.value), 1),
|
|
23462
23322
|
createElementVNode("span", {
|
|
23463
23323
|
class: "agreements__data-link",
|
|
23464
23324
|
onClick: _cache[3] || (_cache[3] = withModifiers(($event) => handleClick("dataShare"), ["stop"]))
|
|
@@ -23470,14 +23330,14 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
23470
23330
|
};
|
|
23471
23331
|
}
|
|
23472
23332
|
});
|
|
23473
|
-
const _hoisted_1$
|
|
23474
|
-
const _hoisted_2$
|
|
23475
|
-
const _hoisted_3$
|
|
23476
|
-
const _hoisted_4$
|
|
23333
|
+
const _hoisted_1$6 = { class: "g-title" };
|
|
23334
|
+
const _hoisted_2$4 = { class: "back-img" };
|
|
23335
|
+
const _hoisted_3$4 = ["src"];
|
|
23336
|
+
const _hoisted_4$3 = {
|
|
23477
23337
|
key: 0,
|
|
23478
23338
|
class: "g-title__text"
|
|
23479
23339
|
};
|
|
23480
|
-
const _sfc_main$
|
|
23340
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
23481
23341
|
__name: "title",
|
|
23482
23342
|
props: {
|
|
23483
23343
|
title: {},
|
|
@@ -23492,21 +23352,21 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
23492
23352
|
emits("back");
|
|
23493
23353
|
};
|
|
23494
23354
|
return (_ctx, _cache) => {
|
|
23495
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23496
|
-
createElementVNode("div", _hoisted_2$
|
|
23355
|
+
return openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
23356
|
+
createElementVNode("div", _hoisted_2$4, [
|
|
23497
23357
|
_ctx.showBack ? (openBlock(), createElementBlock("img", {
|
|
23498
23358
|
key: 0,
|
|
23499
23359
|
src: _ctx.icon,
|
|
23500
23360
|
class: "g-title__back-img",
|
|
23501
23361
|
onClick: withModifiers(handleClick, ["stop"])
|
|
23502
|
-
}, null, 8, _hoisted_3$
|
|
23362
|
+
}, null, 8, _hoisted_3$4)) : createCommentVNode("", true)
|
|
23503
23363
|
]),
|
|
23504
|
-
_ctx.showTitle ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
23364
|
+
_ctx.showTitle ? (openBlock(), createElementBlock("span", _hoisted_4$3, toDisplayString$1(_ctx.title), 1)) : createCommentVNode("", true)
|
|
23505
23365
|
]);
|
|
23506
23366
|
};
|
|
23507
23367
|
}
|
|
23508
23368
|
});
|
|
23509
|
-
const GTitle = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
23369
|
+
const GTitle = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
23510
23370
|
const FindFileName = (path) => {
|
|
23511
23371
|
var _a;
|
|
23512
23372
|
const isName = /.*\/.*\/(.*\..*)/;
|
|
@@ -25822,10 +25682,10 @@ const getFormRules = () => ({
|
|
|
25822
25682
|
}
|
|
25823
25683
|
]
|
|
25824
25684
|
});
|
|
25825
|
-
const _hoisted_1$
|
|
25826
|
-
const _hoisted_2$
|
|
25827
|
-
const _hoisted_3$
|
|
25828
|
-
const _sfc_main$
|
|
25685
|
+
const _hoisted_1$5 = { class: "modal-body" };
|
|
25686
|
+
const _hoisted_2$3 = { class: "login-check-modal-text" };
|
|
25687
|
+
const _hoisted_3$3 = { class: "login-check-modal-footer" };
|
|
25688
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
25829
25689
|
__name: "loginCheckModal",
|
|
25830
25690
|
props: /* @__PURE__ */ mergeModels({
|
|
25831
25691
|
dataShareChecked: { type: Boolean }
|
|
@@ -25867,7 +25727,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
25867
25727
|
title: unref($t)("gitCodeLayout.LoginModal.subtitle.useAgrAndPriPolTip")
|
|
25868
25728
|
}, {
|
|
25869
25729
|
footer: withCtx(() => [
|
|
25870
|
-
createElementVNode("div", _hoisted_3$
|
|
25730
|
+
createElementVNode("div", _hoisted_3$3, [
|
|
25871
25731
|
createVNode(unref(Button), {
|
|
25872
25732
|
class: "login-check-modal-footer__btn-cancel",
|
|
25873
25733
|
onClick: close
|
|
@@ -25891,7 +25751,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
25891
25751
|
])
|
|
25892
25752
|
]),
|
|
25893
25753
|
default: withCtx(() => [
|
|
25894
|
-
createElementVNode("div", _hoisted_1$
|
|
25754
|
+
createElementVNode("div", _hoisted_1$5, [
|
|
25895
25755
|
createElementVNode("div", null, [
|
|
25896
25756
|
createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.youNeeToAgr")) + " ", 1),
|
|
25897
25757
|
createElementVNode("span", {
|
|
@@ -25915,7 +25775,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
25915
25775
|
class: "login-check-modal-data-share"
|
|
25916
25776
|
}, {
|
|
25917
25777
|
default: withCtx(() => [
|
|
25918
|
-
createElementVNode("span", _hoisted_2$
|
|
25778
|
+
createElementVNode("span", _hoisted_2$3, toDisplayString$1(dataShareName.value), 1),
|
|
25919
25779
|
createElementVNode("span", {
|
|
25920
25780
|
class: "login-check-modal-link login-check-modal-link--sm",
|
|
25921
25781
|
onClick: _cache[2] || (_cache[2] = withModifiers(($event) => handleClick("dataShare"), ["stop"]))
|
|
@@ -25930,10 +25790,10 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
25930
25790
|
};
|
|
25931
25791
|
}
|
|
25932
25792
|
});
|
|
25933
|
-
const _hoisted_1$
|
|
25934
|
-
const _hoisted_2$
|
|
25935
|
-
const _hoisted_3$
|
|
25936
|
-
const _hoisted_4$
|
|
25793
|
+
const _hoisted_1$4 = { class: "mfa" };
|
|
25794
|
+
const _hoisted_2$2 = ["src"];
|
|
25795
|
+
const _hoisted_3$2 = { class: "mfa__title" };
|
|
25796
|
+
const _hoisted_4$2 = { class: "mfa__desc" };
|
|
25937
25797
|
const _hoisted_5$1 = {
|
|
25938
25798
|
key: 0,
|
|
25939
25799
|
class: "input-list"
|
|
@@ -25957,7 +25817,7 @@ const _hoisted_9$1 = {
|
|
|
25957
25817
|
const _hoisted_10$1 = { class: "mfa__action" };
|
|
25958
25818
|
const _hoisted_11$1 = { class: "mfa__footer" };
|
|
25959
25819
|
const _hoisted_12$1 = { class: "mfa__back" };
|
|
25960
|
-
const _sfc_main$
|
|
25820
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
25961
25821
|
__name: "MFA",
|
|
25962
25822
|
props: {
|
|
25963
25823
|
mask: {},
|
|
@@ -26107,14 +25967,14 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
26107
25967
|
focusInput();
|
|
26108
25968
|
});
|
|
26109
25969
|
return (_ctx, _cache) => {
|
|
26110
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
25970
|
+
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
26111
25971
|
createElementVNode("img", {
|
|
26112
25972
|
class: "mfa__logo",
|
|
26113
25973
|
src: currentLogo.value,
|
|
26114
25974
|
alt: ""
|
|
26115
|
-
}, null, 8, _hoisted_2$
|
|
26116
|
-
createElementVNode("p", _hoisted_3$
|
|
26117
|
-
createElementVNode("p", _hoisted_4$
|
|
25975
|
+
}, null, 8, _hoisted_2$2),
|
|
25976
|
+
createElementVNode("p", _hoisted_3$2, toDisplayString$1(modeTitle.value), 1),
|
|
25977
|
+
createElementVNode("p", _hoisted_4$2, toDisplayString$1(unref(t2)("gitCodeLayout.LoginModal.mfatip5")), 1),
|
|
26118
25978
|
mode.value === "code" ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
26119
25979
|
(openBlock(true), createElementBlock(Fragment, null, renderList(inputList.value, (item, index2) => {
|
|
26120
25980
|
return openBlock(), createElementBlock("div", {
|
|
@@ -26187,7 +26047,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
26187
26047
|
};
|
|
26188
26048
|
}
|
|
26189
26049
|
});
|
|
26190
|
-
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
26050
|
+
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
26191
26051
|
const _SlidCaptchaManager = class _SlidCaptchaManager {
|
|
26192
26052
|
// eslint-disable-next-line no-useless-constructor
|
|
26193
26053
|
constructor() {
|
|
@@ -26375,7 +26235,7 @@ const _SlidCaptchaManager = class _SlidCaptchaManager {
|
|
|
26375
26235
|
__publicField(_SlidCaptchaManager, "instance");
|
|
26376
26236
|
let SlidCaptchaManager = _SlidCaptchaManager;
|
|
26377
26237
|
const slidCaptchaManager = SlidCaptchaManager.getInstance();
|
|
26378
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
26238
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-agRGDsKS.js"));
|
|
26379
26239
|
const useSlidCaptcha = () => {
|
|
26380
26240
|
const { mount, unMount, isMounted } = usePopup("slid-captcha-popup");
|
|
26381
26241
|
const open = (config) => {
|
|
@@ -26405,7 +26265,7 @@ const useSlidCaptcha = () => {
|
|
|
26405
26265
|
close
|
|
26406
26266
|
};
|
|
26407
26267
|
};
|
|
26408
|
-
const YunpianCaptcha = defineAsyncComponent(() => import("./index-
|
|
26268
|
+
const YunpianCaptcha = defineAsyncComponent(() => import("./index-DeMKkL5I.js"));
|
|
26409
26269
|
const useYunpianCaptcha = () => {
|
|
26410
26270
|
const { mount, unMount } = usePopup("yunpian-captcha-popup");
|
|
26411
26271
|
const open = (config) => {
|
|
@@ -26796,10 +26656,10 @@ const useYiDunCaptcha = () => {
|
|
|
26796
26656
|
close
|
|
26797
26657
|
};
|
|
26798
26658
|
};
|
|
26799
|
-
const _sfc_main$
|
|
26800
|
-
const _hoisted_1$
|
|
26659
|
+
const _sfc_main$4 = {};
|
|
26660
|
+
const _hoisted_1$3 = { class: "content-loading" };
|
|
26801
26661
|
function _sfc_render(_ctx, _cache) {
|
|
26802
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
26662
|
+
return openBlock(), createElementBlock("div", _hoisted_1$3, _cache[0] || (_cache[0] = [
|
|
26803
26663
|
createElementVNode("div", { class: "content-loading-title" }, [
|
|
26804
26664
|
createElementVNode("div", { class: "content-loading__row" }, [
|
|
26805
26665
|
createElementVNode("img", {
|
|
@@ -26812,8 +26672,8 @@ function _sfc_render(_ctx, _cache) {
|
|
|
26812
26672
|
], -1)
|
|
26813
26673
|
]));
|
|
26814
26674
|
}
|
|
26815
|
-
const ContentLoading = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
26816
|
-
const _sfc_main$
|
|
26675
|
+
const ContentLoading = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render], ["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
26676
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
26817
26677
|
__name: "index",
|
|
26818
26678
|
props: {
|
|
26819
26679
|
loading: { type: Boolean },
|
|
@@ -26844,7 +26704,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
26844
26704
|
};
|
|
26845
26705
|
}
|
|
26846
26706
|
});
|
|
26847
|
-
const DataPanel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
26707
|
+
const DataPanel = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
26848
26708
|
function useVisibilityPoll(pollFunction, options = {}, shouldPoll) {
|
|
26849
26709
|
const { interval = 1e4, immediate = true } = options;
|
|
26850
26710
|
const timer = ref(null);
|
|
@@ -26900,16 +26760,16 @@ function useVisibilityPoll(pollFunction, options = {}, shouldPoll) {
|
|
|
26900
26760
|
stopPoll
|
|
26901
26761
|
};
|
|
26902
26762
|
}
|
|
26903
|
-
const _hoisted_1$
|
|
26763
|
+
const _hoisted_1$2 = {
|
|
26904
26764
|
key: 0,
|
|
26905
26765
|
class: "login-modal-header"
|
|
26906
26766
|
};
|
|
26907
|
-
const _hoisted_2 = { class: "devui-icon__container devui-icon--operable devui-icon--no-slots login-modal-header__close-wrap" };
|
|
26908
|
-
const _hoisted_3 = {
|
|
26767
|
+
const _hoisted_2$1 = { class: "devui-icon__container devui-icon--operable devui-icon--no-slots login-modal-header__close-wrap" };
|
|
26768
|
+
const _hoisted_3$1 = {
|
|
26909
26769
|
key: 0,
|
|
26910
26770
|
class: "login-modal-content-left login-modal-content-left-register"
|
|
26911
26771
|
};
|
|
26912
|
-
const _hoisted_4 = { class: "login-modal-content-left-register-logo" };
|
|
26772
|
+
const _hoisted_4$1 = { class: "login-modal-content-left-register-logo" };
|
|
26913
26773
|
const _hoisted_5 = ["src"];
|
|
26914
26774
|
const _hoisted_6 = { class: "login-modal-logo-desc" };
|
|
26915
26775
|
const _hoisted_7 = { class: "login-modal-history" };
|
|
@@ -26999,7 +26859,7 @@ const _hoisted_69 = { key: 3 };
|
|
|
26999
26859
|
const _hoisted_70 = { class: "login-modal-error login-modal-error--register" };
|
|
27000
26860
|
const _hoisted_71 = { class: "login-modal-error__text" };
|
|
27001
26861
|
const _hoisted_72 = { class: "absolute-btn" };
|
|
27002
|
-
const _sfc_main$
|
|
26862
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
27003
26863
|
...{
|
|
27004
26864
|
name: "GLoginModal"
|
|
27005
26865
|
},
|
|
@@ -28674,7 +28534,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
28674
28534
|
onClose: onModalClose
|
|
28675
28535
|
}, {
|
|
28676
28536
|
header: withCtx(() => [
|
|
28677
|
-
!mfaCheck.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
28537
|
+
!mfaCheck.value ? (openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
28678
28538
|
createVNode(GTitle, {
|
|
28679
28539
|
icon: unref(IconB) || "",
|
|
28680
28540
|
title: FormConfig.value.title || "",
|
|
@@ -28683,7 +28543,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
28683
28543
|
"show-back": FormConfig.value.showBack,
|
|
28684
28544
|
class: "login-modal-title"
|
|
28685
28545
|
}, null, 8, ["icon", "title", "show-title", "show-back"]),
|
|
28686
|
-
createElementVNode("div", _hoisted_2, [
|
|
28546
|
+
createElementVNode("div", _hoisted_2$1, [
|
|
28687
28547
|
_ctx.showClose && !showProtoCheck.value ? (openBlock(), createBlock(GIcon, {
|
|
28688
28548
|
key: 0,
|
|
28689
28549
|
onClick: onClickModalClose,
|
|
@@ -28707,8 +28567,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
28707
28567
|
key: 1,
|
|
28708
28568
|
class: normalizeClass(["login-modal-content", { "login-modal-content--forget": formType.value === "forget" }])
|
|
28709
28569
|
}, [
|
|
28710
|
-
["register", "login", "bindPhone", "bindPhoneConflict"].includes(formType.value) ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
28711
|
-
createElementVNode("div", _hoisted_4, [
|
|
28570
|
+
["register", "login", "bindPhone", "bindPhoneConflict"].includes(formType.value) ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
|
|
28571
|
+
createElementVNode("div", _hoisted_4$1, [
|
|
28712
28572
|
createElementVNode("img", {
|
|
28713
28573
|
src: isAIHub.value ? AiLogoType[unref(currentTheme)] : logoType[unref(currentTheme)],
|
|
28714
28574
|
alt: "gitcode-logo",
|
|
@@ -28952,7 +28812,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
28952
28812
|
]),
|
|
28953
28813
|
_: 1
|
|
28954
28814
|
}, 8, ["loading"])) : createCommentVNode("", true),
|
|
28955
|
-
formType.value !== "bindPhoneConflict" ? (openBlock(), createBlock(unref(_sfc_main$
|
|
28815
|
+
formType.value !== "bindPhoneConflict" ? (openBlock(), createBlock(unref(_sfc_main$b), {
|
|
28956
28816
|
ref_key: "FormRef",
|
|
28957
28817
|
ref: FormRef,
|
|
28958
28818
|
key: formType.value === "forget" ? `${formType.value}-${forgetVerificationType.value}` : formType.value,
|
|
@@ -29067,7 +28927,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
29067
28927
|
createElementVNode("div", {
|
|
29068
28928
|
class: normalizeClass(["register-agree", [AgreementWarn.value ? "shaking-box" : ""]])
|
|
29069
28929
|
}, [
|
|
29070
|
-
createVNode(_sfc_main$
|
|
28930
|
+
createVNode(_sfc_main$8, {
|
|
29071
28931
|
modelValue: status.value,
|
|
29072
28932
|
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => status.value = $event),
|
|
29073
28933
|
dataShareChecked: dataShareChecked.value,
|
|
@@ -29124,7 +28984,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
29124
28984
|
}),
|
|
29125
28985
|
_: 3
|
|
29126
28986
|
}, 8, ["modelValue", "lock-scroll", "draggable", "escapable", "append-to-body", "class"]),
|
|
29127
|
-
showProtoCheck.value ? (openBlock(), createBlock(_sfc_main$
|
|
28987
|
+
showProtoCheck.value ? (openBlock(), createBlock(_sfc_main$6, {
|
|
29128
28988
|
key: 0,
|
|
29129
28989
|
visible: showProtoCheck.value,
|
|
29130
28990
|
"onUpdate:visible": _cache[19] || (_cache[19] = ($event) => showProtoCheck.value = $event),
|
|
@@ -29137,7 +28997,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
29137
28997
|
};
|
|
29138
28998
|
}
|
|
29139
28999
|
});
|
|
29140
|
-
const LoginModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
29000
|
+
const LoginModal = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
29141
29001
|
const { t } = i18n.global;
|
|
29142
29002
|
function useLogin(request, globalStore) {
|
|
29143
29003
|
const successMsg = t("gitCodeLayout.common.tips.welcome");
|
|
@@ -29241,8 +29101,8 @@ function useLogin(request, globalStore) {
|
|
|
29241
29101
|
isMounted
|
|
29242
29102
|
};
|
|
29243
29103
|
}
|
|
29244
|
-
const _hoisted_1 = { style: { "display": "none" } };
|
|
29245
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
29104
|
+
const _hoisted_1$1 = { style: { "display": "none" } };
|
|
29105
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
29246
29106
|
...{
|
|
29247
29107
|
name: "Login"
|
|
29248
29108
|
},
|
|
@@ -29361,10 +29221,93 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
29361
29221
|
offEvent("logout");
|
|
29362
29222
|
});
|
|
29363
29223
|
return (_ctx, _cache) => {
|
|
29364
|
-
return openBlock(), createElementBlock("div", _hoisted_1);
|
|
29224
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1);
|
|
29225
|
+
};
|
|
29226
|
+
}
|
|
29227
|
+
});
|
|
29228
|
+
const _hoisted_1 = { class: "g-header-skeleton__left" };
|
|
29229
|
+
const _hoisted_2 = { class: "g-header-skeleton__search-avatar" };
|
|
29230
|
+
const _hoisted_3 = { class: "g-header-skeleton__right" };
|
|
29231
|
+
const _hoisted_4 = {
|
|
29232
|
+
key: 0,
|
|
29233
|
+
class: "g-header-skeleton__body"
|
|
29234
|
+
};
|
|
29235
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
29236
|
+
...{
|
|
29237
|
+
name: "HeaderSkeleton"
|
|
29238
|
+
},
|
|
29239
|
+
__name: "HeaderSkeleton",
|
|
29240
|
+
props: {
|
|
29241
|
+
withBody: { type: Boolean, default: false },
|
|
29242
|
+
isLogin: { type: Boolean, default: true },
|
|
29243
|
+
position: { default: "sticky" },
|
|
29244
|
+
top: { default: 0 },
|
|
29245
|
+
zIndex: { default: 21 },
|
|
29246
|
+
height: { default: void 0 }
|
|
29247
|
+
},
|
|
29248
|
+
setup(__props) {
|
|
29249
|
+
const props = __props;
|
|
29250
|
+
const containerStyle = computed(() => {
|
|
29251
|
+
const style = {
|
|
29252
|
+
position: props.position,
|
|
29253
|
+
zIndex: props.zIndex
|
|
29254
|
+
};
|
|
29255
|
+
if (props.position === "sticky" || props.position === "fixed") {
|
|
29256
|
+
style.top = typeof props.top === "number" ? `${props.top}px` : props.top;
|
|
29257
|
+
}
|
|
29258
|
+
return style;
|
|
29259
|
+
});
|
|
29260
|
+
const toolbarStyle = computed(() => {
|
|
29261
|
+
if (!props.height) return {};
|
|
29262
|
+
const h2 = typeof props.height === "number" ? `${props.height}px` : props.height;
|
|
29263
|
+
return {
|
|
29264
|
+
height: h2,
|
|
29265
|
+
minHeight: h2,
|
|
29266
|
+
flexBasis: h2
|
|
29267
|
+
};
|
|
29268
|
+
});
|
|
29269
|
+
return (_ctx, _cache) => {
|
|
29270
|
+
return openBlock(), createElementBlock("div", {
|
|
29271
|
+
class: normalizeClass(["g-header-skeleton", [`g-header-skeleton--${_ctx.position}`]]),
|
|
29272
|
+
style: normalizeStyle(containerStyle.value),
|
|
29273
|
+
"aria-hidden": "true"
|
|
29274
|
+
}, [
|
|
29275
|
+
createElementVNode("div", {
|
|
29276
|
+
class: "g-header-skeleton__toolbar",
|
|
29277
|
+
style: normalizeStyle(toolbarStyle.value)
|
|
29278
|
+
}, [
|
|
29279
|
+
createElementVNode("div", _hoisted_1, [
|
|
29280
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "g-header-skeleton__block g-header-skeleton__hamburger" }, null, -1)),
|
|
29281
|
+
_cache[1] || (_cache[1] = createElementVNode("span", { class: "g-header-skeleton__block g-header-skeleton__logo" }, null, -1)),
|
|
29282
|
+
renderSlot(_ctx.$slots, "headerCustom", {}, void 0, true)
|
|
29283
|
+
]),
|
|
29284
|
+
createElementVNode("div", _hoisted_2, [
|
|
29285
|
+
renderSlot(_ctx.$slots, "search", {}, () => [
|
|
29286
|
+
_cache[2] || (_cache[2] = createElementVNode("span", { class: "g-header-skeleton__block g-header-skeleton__search" }, null, -1))
|
|
29287
|
+
], true)
|
|
29288
|
+
]),
|
|
29289
|
+
createElementVNode("div", _hoisted_3, [
|
|
29290
|
+
_ctx.isLogin ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
29291
|
+
_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))
|
|
29292
|
+
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
29293
|
+
_cache[4] || (_cache[4] = createElementVNode("span", { class: "g-header-skeleton__divider g-header-skeleton__divider--unlogin" }, null, -1)),
|
|
29294
|
+
_cache[5] || (_cache[5] = createElementVNode("span", { class: "g-header-skeleton__block g-header-skeleton__login-btn" }, null, -1)),
|
|
29295
|
+
_cache[6] || (_cache[6] = createElementVNode("span", { class: "g-header-skeleton__block g-header-skeleton__register-btn" }, null, -1))
|
|
29296
|
+
], 64)),
|
|
29297
|
+
renderSlot(_ctx.$slots, "rightExtra", {}, void 0, true)
|
|
29298
|
+
])
|
|
29299
|
+
], 4),
|
|
29300
|
+
_ctx.withBody ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
29301
|
+
renderSlot(_ctx.$slots, "body", {}, () => [
|
|
29302
|
+
_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))
|
|
29303
|
+
], true)
|
|
29304
|
+
])) : createCommentVNode("", true),
|
|
29305
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
29306
|
+
], 6);
|
|
29365
29307
|
};
|
|
29366
29308
|
}
|
|
29367
29309
|
});
|
|
29310
|
+
const HeaderSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
29368
29311
|
const GitCodeLayoutEmitter = emitter;
|
|
29369
29312
|
const index = {
|
|
29370
29313
|
install: (app) => {
|
|
@@ -29373,6 +29316,7 @@ const index = {
|
|
|
29373
29316
|
app.component("GitCodeAsideV2", GitCodeAsideV2);
|
|
29374
29317
|
app.component("ScrollActiveContainer", ScrollActiveContainer);
|
|
29375
29318
|
app.component("GitCodeHeader", GitCodeHeader);
|
|
29319
|
+
app.component("HeaderSkeleton", HeaderSkeleton);
|
|
29376
29320
|
app.component("HomeHeaderActions", HomeHeaderActions);
|
|
29377
29321
|
app.component("AtomCodeLauncher", AtomCodeLauncher);
|
|
29378
29322
|
app.component("HeaderCreateMenu", HeaderCreateMenu);
|
|
@@ -29380,7 +29324,7 @@ const index = {
|
|
|
29380
29324
|
}
|
|
29381
29325
|
};
|
|
29382
29326
|
export {
|
|
29383
|
-
|
|
29327
|
+
AtomCodeLauncher as $,
|
|
29384
29328
|
isZh as A,
|
|
29385
29329
|
ThemeType as B,
|
|
29386
29330
|
currentTheme as C,
|
|
@@ -29394,10 +29338,10 @@ export {
|
|
|
29394
29338
|
navigateWithMigrationGuard as K,
|
|
29395
29339
|
LANG_ZH as L,
|
|
29396
29340
|
asideRequest as M,
|
|
29397
|
-
_sfc_main$
|
|
29341
|
+
_sfc_main$N as N,
|
|
29398
29342
|
loadAsideData as O,
|
|
29399
29343
|
ToolsFloat as P,
|
|
29400
|
-
_sfc_main as Q,
|
|
29344
|
+
_sfc_main$1 as Q,
|
|
29401
29345
|
REPO_MODULE as R,
|
|
29402
29346
|
SceneValue as S,
|
|
29403
29347
|
TOPIC_TYPE as T,
|
|
@@ -29405,19 +29349,20 @@ export {
|
|
|
29405
29349
|
GitCodeAsideV2 as V,
|
|
29406
29350
|
ScrollActiveContainer as W,
|
|
29407
29351
|
GitCodeHeader as X,
|
|
29408
|
-
|
|
29409
|
-
|
|
29352
|
+
HeaderSkeleton as Y,
|
|
29353
|
+
HomeHeaderActions as Z,
|
|
29410
29354
|
_export_sfc as _,
|
|
29411
29355
|
i18n as a,
|
|
29412
|
-
|
|
29413
|
-
|
|
29414
|
-
|
|
29415
|
-
|
|
29416
|
-
|
|
29417
|
-
|
|
29418
|
-
|
|
29419
|
-
|
|
29420
|
-
|
|
29356
|
+
HeaderCreateMenu as a0,
|
|
29357
|
+
EnterpriseHeader as a1,
|
|
29358
|
+
SiteAnnouncement as a2,
|
|
29359
|
+
AsideFooterTools as a3,
|
|
29360
|
+
useLogin as a4,
|
|
29361
|
+
setLayoutConfig as a5,
|
|
29362
|
+
GitCodeLayoutEmitter as a6,
|
|
29363
|
+
setTheme as a7,
|
|
29364
|
+
HEADER_CREATE_MENU_PATHS as a8,
|
|
29365
|
+
index as a9,
|
|
29421
29366
|
REPO_EVENT as b,
|
|
29422
29367
|
REPO_TYPE as c,
|
|
29423
29368
|
transferNumber as d,
|
|
@@ -29431,7 +29376,7 @@ export {
|
|
|
29431
29376
|
localStorage$2 as l,
|
|
29432
29377
|
isGstarRepo as m,
|
|
29433
29378
|
normalizeSearchHistoryEntry as n,
|
|
29434
|
-
_sfc_main$
|
|
29379
|
+
_sfc_main$M as o,
|
|
29435
29380
|
isIncubationRepo as p,
|
|
29436
29381
|
highlightWords as q,
|
|
29437
29382
|
reqCatch as r,
|