vue-layout-gitcode 1.12.60-multiple-account → 1.12.66
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-d9jVn7yF.js → GloabarSearch-CefMwW5N.js} +2 -2
- package/{MenuItem-BEndVsWS.js → MenuItem-zJXVH_ZY.js} +1 -1
- package/{ProjectMenuList-D8_C7FLf.js → ProjectMenuList-CDYlv4eo.js} +2 -2
- package/{ProjectMenuListV2-EXoyOFZI.js → ProjectMenuListV2-H2VmzVSh.js} +2 -2
- package/{ProjectSearch-tRTrAuIP.js → ProjectSearch-B4IZWWec.js} +1 -1
- package/{SearchHistoryList-C2ww3OtA.js → SearchHistoryList-BWFi4Y0g.js} +1 -1
- package/{SearchRecommed-DCaqaCO4.js → SearchRecommed-eDW-NOQQ.js} +2 -2
- package/{SearchScopeList-CHREVt9w.js → SearchScopeList-BI_Gt1qi.js} +1 -1
- package/{UserSearch-BUPIBFFs.js → UserSearch-Jno2-hDh.js} +1 -1
- package/{index-Cv1-5J76.js → index-9brWW1pC.js} +1478 -732
- package/{index-hWcTkag1.js → index-Bhjr8DTm.js} +1 -1
- package/{index-ByRirfNI.js → index-D0ueLDg1.js} +1 -1
- package/index.d.ts +30 -0
- package/index.js +14 -7
- package/{notice-DrorJOhW.js → notice-nJYs9BEu.js} +1 -1
- package/package.json +1 -1
- package/{search-suggestion-fEciatBa.js → search-suggestion-CmFelXL3.js} +2 -2
- package/style.css +1 -1
- package/{transWebUrl-BUJjsTFP.js → transWebUrl-CqQ0kqLS.js} +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
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 { reactive, readonly, inject, effectScope, computed, watch, isRef, getCurrentInstance, ref, shallowRef, defineComponent, h, Fragment, onBeforeMount, onMounted, onUnmounted, createVNode, Text, provide, openBlock, createElementBlock, Transition, withCtx, unref, normalizeClass, createElementVNode, toDisplayString as toDisplayString$1, createCommentVNode, createStaticVNode, withModifiers, createBlock, normalizeProps, mergeProps, renderSlot, normalizeStyle, resolveComponent, watchEffect, renderList, createTextVNode, nextTick, resolveDirective, withDirectives, onBeforeUnmount, guardReactiveProps, markRaw, withKeys, resolveDynamicComponent, useAttrs, defineAsyncComponent, vShow, useCssVars, createSlots, render, toRaw, useModel as useModel$1, mergeModels, watchPostEffect, useSlots } from "vue";
|
|
4
|
+
import { reactive, readonly, inject, effectScope, computed, watch, isRef, getCurrentInstance, ref, shallowRef, defineComponent, h, Fragment, onBeforeMount, onMounted, onUnmounted, createVNode, Text, provide, openBlock, createElementBlock, Transition, withCtx, unref, normalizeClass, createElementVNode, toDisplayString as toDisplayString$1, createCommentVNode, createStaticVNode, withModifiers, createBlock, normalizeProps, mergeProps, renderSlot, normalizeStyle, resolveComponent, watchEffect, renderList, createTextVNode, nextTick, resolveDirective, withDirectives, onBeforeUnmount, guardReactiveProps, markRaw, withKeys, resolveDynamicComponent, useAttrs, defineAsyncComponent, vShow, useCssVars, createSlots, render, toRaw, useModel as useModel$1, mergeModels, watchPostEffect, useSlots, Teleport, vModelText } from "vue";
|
|
5
5
|
import axios from "axios";
|
|
6
6
|
import { useRouter, useRoute, createRouter, createWebHistory, createMemoryHistory } from "vue-router";
|
|
7
7
|
import { Icon } from "vue-devui-lal/icon";
|
|
8
8
|
import "vue-devui-lal/icon/style.css";
|
|
9
9
|
import { Button } from "vue-devui-lal/button";
|
|
10
|
-
import { useWindowSize, useMutationObserver, useResizeObserver, useInfiniteScroll,
|
|
10
|
+
import { useWindowSize, useMutationObserver, useResizeObserver, useInfiniteScroll, useElementSize, useStorage, useDebounceFn } from "@vueuse/core";
|
|
11
11
|
import { Avatar } from "vue-devui-lal/avatar";
|
|
12
12
|
import "vue-devui-lal/avatar/style.css";
|
|
13
13
|
import { Tooltip } from "vue-devui-lal/tooltip";
|
|
@@ -242,29 +242,69 @@ const handleReportParamsByDomain = (reportString) => {
|
|
|
242
242
|
}
|
|
243
243
|
return reportString;
|
|
244
244
|
};
|
|
245
|
-
const
|
|
245
|
+
const getBrowserStorage = () => {
|
|
246
|
+
try {
|
|
247
|
+
return typeof window === "undefined" ? null : window.localStorage;
|
|
248
|
+
} catch {
|
|
249
|
+
return null;
|
|
250
|
+
}
|
|
251
|
+
};
|
|
246
252
|
let localStorage$1;
|
|
247
|
-
|
|
248
|
-
localStorage$1 = window.localStorage;
|
|
249
|
-
} else {
|
|
253
|
+
{
|
|
250
254
|
const data = {};
|
|
251
255
|
localStorage$1 = {
|
|
252
256
|
setItem(id, val) {
|
|
257
|
+
var _a;
|
|
253
258
|
data[id] = String(val);
|
|
259
|
+
try {
|
|
260
|
+
(_a = getBrowserStorage()) == null ? void 0 : _a.setItem(id, String(val));
|
|
261
|
+
} catch {
|
|
262
|
+
}
|
|
254
263
|
},
|
|
255
264
|
getItem(id) {
|
|
265
|
+
try {
|
|
266
|
+
const storage = getBrowserStorage();
|
|
267
|
+
if (storage) {
|
|
268
|
+
return storage.getItem(id);
|
|
269
|
+
}
|
|
270
|
+
} catch {
|
|
271
|
+
}
|
|
256
272
|
return Object.prototype.hasOwnProperty.call(data, id) ? data[id] : null;
|
|
257
273
|
},
|
|
258
274
|
removeItem(id) {
|
|
275
|
+
var _a;
|
|
259
276
|
delete data[id];
|
|
277
|
+
try {
|
|
278
|
+
(_a = getBrowserStorage()) == null ? void 0 : _a.removeItem(id);
|
|
279
|
+
} catch {
|
|
280
|
+
}
|
|
260
281
|
},
|
|
261
282
|
clear() {
|
|
283
|
+
var _a;
|
|
284
|
+
try {
|
|
285
|
+
(_a = getBrowserStorage()) == null ? void 0 : _a.clear();
|
|
286
|
+
} catch {
|
|
287
|
+
}
|
|
262
288
|
Object.keys(data).forEach((key) => delete data[key]);
|
|
263
289
|
},
|
|
264
290
|
get length() {
|
|
291
|
+
try {
|
|
292
|
+
const storage = getBrowserStorage();
|
|
293
|
+
if (storage) {
|
|
294
|
+
return storage.length;
|
|
295
|
+
}
|
|
296
|
+
} catch {
|
|
297
|
+
}
|
|
265
298
|
return Object.keys(data).length;
|
|
266
299
|
},
|
|
267
300
|
key(index2) {
|
|
301
|
+
try {
|
|
302
|
+
const storage = getBrowserStorage();
|
|
303
|
+
if (storage) {
|
|
304
|
+
return storage.key(index2);
|
|
305
|
+
}
|
|
306
|
+
} catch {
|
|
307
|
+
}
|
|
268
308
|
const keys = Object.keys(data);
|
|
269
309
|
return index2 < keys.length ? keys[index2] : null;
|
|
270
310
|
}
|
|
@@ -341,7 +381,7 @@ function encodeUTF8(s) {
|
|
|
341
381
|
}
|
|
342
382
|
return r;
|
|
343
383
|
}
|
|
344
|
-
function udeskInit(
|
|
384
|
+
function udeskInit(config2 = {}, open = false) {
|
|
345
385
|
var _a, _b, _c;
|
|
346
386
|
if (window.ud && !open) return;
|
|
347
387
|
const randomNum = generateRandomString(16);
|
|
@@ -382,7 +422,7 @@ function udeskInit(config = {}, open = false) {
|
|
|
382
422
|
c_email: cEmail,
|
|
383
423
|
signature: strSignature
|
|
384
424
|
},
|
|
385
|
-
...
|
|
425
|
+
...config2
|
|
386
426
|
});
|
|
387
427
|
}
|
|
388
428
|
}
|
|
@@ -1457,11 +1497,11 @@ function createDOMPurify() {
|
|
|
1457
1497
|
const originalDocument = document2;
|
|
1458
1498
|
const currentScript = originalDocument.currentScript;
|
|
1459
1499
|
window2.DocumentFragment;
|
|
1460
|
-
const HTMLTemplateElement = window2.HTMLTemplateElement, Node2 = window2.Node,
|
|
1500
|
+
const HTMLTemplateElement = window2.HTMLTemplateElement, Node2 = window2.Node, Element2 = window2.Element, NodeFilter = window2.NodeFilter;
|
|
1461
1501
|
window2.NamedNodeMap === void 0 && (window2.NamedNodeMap || window2.MozNamedAttrMap);
|
|
1462
1502
|
window2.HTMLFormElement;
|
|
1463
1503
|
const DOMParser = window2.DOMParser, trustedTypes = window2.trustedTypes;
|
|
1464
|
-
const ElementPrototype =
|
|
1504
|
+
const ElementPrototype = Element2.prototype;
|
|
1465
1505
|
const cloneNode = lookupGetter(ElementPrototype, "cloneNode");
|
|
1466
1506
|
const remove = lookupGetter(ElementPrototype, "remove");
|
|
1467
1507
|
const removeAttributeNode = lookupGetter(ElementPrototype, "removeAttributeNode");
|
|
@@ -2671,8 +2711,8 @@ function generateCodeFrame(source, start = 0, end = source.length) {
|
|
|
2671
2711
|
return res.join("\n");
|
|
2672
2712
|
}
|
|
2673
2713
|
function incrementer(code2) {
|
|
2674
|
-
let
|
|
2675
|
-
return () => ++
|
|
2714
|
+
let current2 = code2;
|
|
2715
|
+
return () => ++current2;
|
|
2676
2716
|
}
|
|
2677
2717
|
function warn(msg, err) {
|
|
2678
2718
|
if (typeof console !== "undefined") {
|
|
@@ -3275,10 +3315,10 @@ function createTokenizer(source, options = {}) {
|
|
|
3275
3315
|
literal += ch;
|
|
3276
3316
|
}
|
|
3277
3317
|
}
|
|
3278
|
-
const
|
|
3279
|
-
if (
|
|
3318
|
+
const current2 = scnr.currentChar();
|
|
3319
|
+
if (current2 === CHAR_LF || current2 === EOF) {
|
|
3280
3320
|
emitError(CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, currentPosition(), 0);
|
|
3281
|
-
if (
|
|
3321
|
+
if (current2 === CHAR_LF) {
|
|
3282
3322
|
scnr.next();
|
|
3283
3323
|
eat(scnr, `'`);
|
|
3284
3324
|
}
|
|
@@ -7234,11 +7274,11 @@ const baseFormatProps = {
|
|
|
7234
7274
|
function getInterpolateArg({ slots }, keys) {
|
|
7235
7275
|
if (keys.length === 1 && keys[0] === "default") {
|
|
7236
7276
|
const ret = slots.default ? slots.default() : [];
|
|
7237
|
-
return ret.reduce((slot,
|
|
7277
|
+
return ret.reduce((slot, current2) => {
|
|
7238
7278
|
return [
|
|
7239
7279
|
...slot,
|
|
7240
7280
|
// prettier-ignore
|
|
7241
|
-
...
|
|
7281
|
+
...current2.type === Fragment ? current2.children : [current2]
|
|
7242
7282
|
];
|
|
7243
7283
|
}, []);
|
|
7244
7284
|
} else {
|
|
@@ -8157,14 +8197,14 @@ function getGlobalComposer(i18n2) {
|
|
|
8157
8197
|
function getComposer(i18n2, target, useComponent = false) {
|
|
8158
8198
|
let composer = null;
|
|
8159
8199
|
const root = target.root;
|
|
8160
|
-
let
|
|
8161
|
-
while (
|
|
8200
|
+
let current2 = getParentComponentInstance(target, useComponent);
|
|
8201
|
+
while (current2 != null) {
|
|
8162
8202
|
const i18nInternal = i18n2;
|
|
8163
8203
|
if (i18n2.mode === "composition") {
|
|
8164
|
-
composer = i18nInternal.__getInstance(
|
|
8204
|
+
composer = i18nInternal.__getInstance(current2);
|
|
8165
8205
|
} else {
|
|
8166
8206
|
if (__VUE_I18N_LEGACY_API__) {
|
|
8167
|
-
const vueI18n = i18nInternal.__getInstance(
|
|
8207
|
+
const vueI18n = i18nInternal.__getInstance(current2);
|
|
8168
8208
|
if (vueI18n != null) {
|
|
8169
8209
|
composer = vueI18n.__composer;
|
|
8170
8210
|
if (useComponent && composer && !composer[InejctWithOptionSymbol]) {
|
|
@@ -8176,10 +8216,10 @@ function getComposer(i18n2, target, useComponent = false) {
|
|
|
8176
8216
|
if (composer != null) {
|
|
8177
8217
|
break;
|
|
8178
8218
|
}
|
|
8179
|
-
if (root ===
|
|
8219
|
+
if (root === current2) {
|
|
8180
8220
|
break;
|
|
8181
8221
|
}
|
|
8182
|
-
|
|
8222
|
+
current2 = current2.parent;
|
|
8183
8223
|
}
|
|
8184
8224
|
return composer;
|
|
8185
8225
|
}
|
|
@@ -8560,6 +8600,63 @@ if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
|
8560
8600
|
setDevToolsHook(target.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
8561
8601
|
}
|
|
8562
8602
|
if (process.env.NODE_ENV !== "production") ;
|
|
8603
|
+
const shortcut$1 = {
|
|
8604
|
+
list: {
|
|
8605
|
+
search: "聚焦筛选框",
|
|
8606
|
+
create: "创建 Issue 或 Pull Request",
|
|
8607
|
+
author: "按作者筛选",
|
|
8608
|
+
label: "选择标签",
|
|
8609
|
+
milestone: "选择里程碑",
|
|
8610
|
+
assignee: "选择负责人"
|
|
8611
|
+
},
|
|
8612
|
+
detail: {
|
|
8613
|
+
reviewer: "选择评审人",
|
|
8614
|
+
quote: "引用选中文本回复",
|
|
8615
|
+
fullscreen: "切换日志全屏",
|
|
8616
|
+
related: "关联条目"
|
|
8617
|
+
},
|
|
8618
|
+
dialog: {
|
|
8619
|
+
title: "键盘快捷键",
|
|
8620
|
+
close: "关闭"
|
|
8621
|
+
},
|
|
8622
|
+
entry: {
|
|
8623
|
+
help: "键盘快捷键"
|
|
8624
|
+
},
|
|
8625
|
+
group: {
|
|
8626
|
+
site: "站点级",
|
|
8627
|
+
repo: "仓库",
|
|
8628
|
+
code: "代码浏览",
|
|
8629
|
+
editor: "编辑器",
|
|
8630
|
+
list: "列表",
|
|
8631
|
+
detail: "详情"
|
|
8632
|
+
},
|
|
8633
|
+
site: {
|
|
8634
|
+
search: "聚焦搜索框",
|
|
8635
|
+
help: "打开快捷键清单",
|
|
8636
|
+
notifications: "打开通知",
|
|
8637
|
+
commands: "命令面板"
|
|
8638
|
+
},
|
|
8639
|
+
repo: {
|
|
8640
|
+
code: "转到「代码」",
|
|
8641
|
+
issues: "转到「Issues」",
|
|
8642
|
+
pulls: "转到「Pull Requests」",
|
|
8643
|
+
wiki: "转到「Wiki」",
|
|
8644
|
+
discussion: "转到「讨论」",
|
|
8645
|
+
actions: "转到「Actions」"
|
|
8646
|
+
},
|
|
8647
|
+
code: {
|
|
8648
|
+
fileFinder: "搜索文件名",
|
|
8649
|
+
branch: "切换分支或标签",
|
|
8650
|
+
blame: "打开 Blame 视图"
|
|
8651
|
+
},
|
|
8652
|
+
a11y: {
|
|
8653
|
+
characterKeys: "启用字符键快捷键"
|
|
8654
|
+
},
|
|
8655
|
+
commands: {
|
|
8656
|
+
search: "搜索可用命令",
|
|
8657
|
+
empty: "没有匹配的命令"
|
|
8658
|
+
}
|
|
8659
|
+
};
|
|
8563
8660
|
const gitCodeLayout$1 = {
|
|
8564
8661
|
home: {
|
|
8565
8662
|
migrationAnnounce: {
|
|
@@ -8992,8 +9089,66 @@ const gitCodeLayout$1 = {
|
|
|
8992
9089
|
}
|
|
8993
9090
|
};
|
|
8994
9091
|
const zh = {
|
|
9092
|
+
shortcut: shortcut$1,
|
|
8995
9093
|
gitCodeLayout: gitCodeLayout$1
|
|
8996
9094
|
};
|
|
9095
|
+
const shortcut = {
|
|
9096
|
+
list: {
|
|
9097
|
+
search: "Focus the filter field",
|
|
9098
|
+
create: "Create an issue or pull request",
|
|
9099
|
+
author: "Filter by author",
|
|
9100
|
+
label: "Choose labels",
|
|
9101
|
+
milestone: "Choose a milestone",
|
|
9102
|
+
assignee: "Choose an assignee"
|
|
9103
|
+
},
|
|
9104
|
+
detail: {
|
|
9105
|
+
reviewer: "Choose reviewers",
|
|
9106
|
+
quote: "Quote selected text in a reply",
|
|
9107
|
+
fullscreen: "Toggle log fullscreen",
|
|
9108
|
+
related: "Link a related item"
|
|
9109
|
+
},
|
|
9110
|
+
dialog: {
|
|
9111
|
+
title: "Keyboard shortcuts",
|
|
9112
|
+
close: "Close"
|
|
9113
|
+
},
|
|
9114
|
+
entry: {
|
|
9115
|
+
help: "Keyboard shortcuts"
|
|
9116
|
+
},
|
|
9117
|
+
group: {
|
|
9118
|
+
site: "Site wide",
|
|
9119
|
+
repo: "Repositories",
|
|
9120
|
+
code: "Source code browsing",
|
|
9121
|
+
editor: "Editor",
|
|
9122
|
+
list: "Lists",
|
|
9123
|
+
detail: "Details"
|
|
9124
|
+
},
|
|
9125
|
+
site: {
|
|
9126
|
+
search: "Focus the search bar",
|
|
9127
|
+
help: "Show keyboard shortcuts",
|
|
9128
|
+
notifications: "Go to your notifications",
|
|
9129
|
+
commands: "Command palette"
|
|
9130
|
+
},
|
|
9131
|
+
repo: {
|
|
9132
|
+
code: "Go to the Code tab",
|
|
9133
|
+
issues: "Go to the Issues tab",
|
|
9134
|
+
pulls: "Go to the Pull requests tab",
|
|
9135
|
+
wiki: "Go to the Wiki tab",
|
|
9136
|
+
discussion: "Go to the Discussions tab",
|
|
9137
|
+
actions: "Go to the Actions tab"
|
|
9138
|
+
},
|
|
9139
|
+
code: {
|
|
9140
|
+
fileFinder: "Go to file",
|
|
9141
|
+
branch: "Switch branch or tag",
|
|
9142
|
+
blame: "Open blame view"
|
|
9143
|
+
},
|
|
9144
|
+
a11y: {
|
|
9145
|
+
characterKeys: "Enable character key shortcuts"
|
|
9146
|
+
},
|
|
9147
|
+
commands: {
|
|
9148
|
+
search: "Search available commands",
|
|
9149
|
+
empty: "No matching commands"
|
|
9150
|
+
}
|
|
9151
|
+
};
|
|
8997
9152
|
const gitCodeLayout = {
|
|
8998
9153
|
home: {
|
|
8999
9154
|
migrationAnnounce: {
|
|
@@ -9426,6 +9581,7 @@ const gitCodeLayout = {
|
|
|
9426
9581
|
}
|
|
9427
9582
|
};
|
|
9428
9583
|
const en = {
|
|
9584
|
+
shortcut,
|
|
9429
9585
|
gitCodeLayout
|
|
9430
9586
|
};
|
|
9431
9587
|
const LANG_ZH = "zh";
|
|
@@ -9456,7 +9612,7 @@ const COOKIE_OPTIONS = {
|
|
|
9456
9612
|
};
|
|
9457
9613
|
const SUPPORT_LOCALES = [LANG_EN, LANG_ZH];
|
|
9458
9614
|
const currentDomainCookie = api.get(LANG_KEY);
|
|
9459
|
-
if (currentDomainCookie && "." + window.location.hostname !== COOKIE_DOMAIN() || !SUPPORT_LOCALES.includes(currentDomainCookie)) {
|
|
9615
|
+
if (typeof window !== "undefined" && (currentDomainCookie && "." + window.location.hostname !== COOKIE_DOMAIN() || !SUPPORT_LOCALES.includes(currentDomainCookie))) {
|
|
9460
9616
|
api.remove(LANG_KEY);
|
|
9461
9617
|
}
|
|
9462
9618
|
function isComposer(instance, mode) {
|
|
@@ -9830,22 +9986,22 @@ const proxyService = (params, customConfigs) => {
|
|
|
9830
9986
|
return whiteList.some((str) => url.includes(str));
|
|
9831
9987
|
};
|
|
9832
9988
|
service.interceptors.request.use(
|
|
9833
|
-
(
|
|
9989
|
+
(config2) => {
|
|
9834
9990
|
var _a, _b;
|
|
9835
9991
|
const access_token = localStorage$2.getItem("access_token");
|
|
9836
|
-
const { url } =
|
|
9992
|
+
const { url } = config2;
|
|
9837
9993
|
if (access_token && !notAuthorization(url)) {
|
|
9838
|
-
|
|
9994
|
+
config2.headers.Authorization = `Bearer ${access_token}`;
|
|
9839
9995
|
}
|
|
9840
|
-
|
|
9841
|
-
|
|
9842
|
-
|
|
9843
|
-
|
|
9844
|
-
Object.assign(
|
|
9996
|
+
config2.headers["page-title"] = "%E9%A6%96%E9%A1%B5";
|
|
9997
|
+
config2.headers["page-ref"] = "https%3A%2F%2Ftest.gitcode.net%2Fdashboard";
|
|
9998
|
+
config2.headers["page-uri"] = ((_a = config2.headers) == null ? void 0 : _a["page-uri"]) || encodeURIComponent(window.location.href || "");
|
|
9999
|
+
config2.headers["gitcode-utm-source"] = ((_b = config2.headers) == null ? void 0 : _b["gitcode-utm-source"]) || encodeURIComponent(getUtmSourceSign());
|
|
10000
|
+
Object.assign(config2.headers, {
|
|
9845
10001
|
...getCommonHeadInfo(false)
|
|
9846
10002
|
});
|
|
9847
|
-
|
|
9848
|
-
return
|
|
10003
|
+
config2.url = setPassportPrefix(config2.url, config2.method);
|
|
10004
|
+
return config2;
|
|
9849
10005
|
},
|
|
9850
10006
|
(error) => {
|
|
9851
10007
|
return Promise.reject(error);
|
|
@@ -9857,7 +10013,7 @@ const proxyService = (params, customConfigs) => {
|
|
|
9857
10013
|
},
|
|
9858
10014
|
async (error) => {
|
|
9859
10015
|
const { response } = error;
|
|
9860
|
-
const { config } = response || {};
|
|
10016
|
+
const { config: config2 } = response || {};
|
|
9861
10017
|
if (response) {
|
|
9862
10018
|
const errData = response.data;
|
|
9863
10019
|
errData.http_status = response.status;
|
|
@@ -10039,25 +10195,25 @@ const currentHelpDocsAiCommunityUrl = () => {
|
|
|
10039
10195
|
const baseUrl = isGitCodeHost() ? HELP_DOCS_URL_GITCODE + "/docs/help/home/ai-community/" : HELP_DOCS_URL_ATOMGIT + "/docs/help/home/ai-community/";
|
|
10040
10196
|
return appendLangPathToHelpDocsUrl(baseUrl);
|
|
10041
10197
|
};
|
|
10042
|
-
const _hoisted_1$
|
|
10043
|
-
const _hoisted_2$
|
|
10044
|
-
const _hoisted_3$
|
|
10045
|
-
const _hoisted_4$
|
|
10198
|
+
const _hoisted_1$M = { class: "gitcode-tools-float-root home-nav-right" };
|
|
10199
|
+
const _hoisted_2$z = { class: "float-tooltip" };
|
|
10200
|
+
const _hoisted_3$x = { class: "float-tooltip-content" };
|
|
10201
|
+
const _hoisted_4$q = {
|
|
10046
10202
|
key: 0,
|
|
10047
10203
|
class: "tools-float-bar"
|
|
10048
10204
|
};
|
|
10049
|
-
const _hoisted_5$
|
|
10050
|
-
const _hoisted_6$
|
|
10051
|
-
const _hoisted_7$
|
|
10052
|
-
const _hoisted_8$
|
|
10053
|
-
const _hoisted_9$
|
|
10205
|
+
const _hoisted_5$l = { class: "float-tooltip" };
|
|
10206
|
+
const _hoisted_6$k = { class: "float-tooltip-content" };
|
|
10207
|
+
const _hoisted_7$h = { class: "float-tooltip" };
|
|
10208
|
+
const _hoisted_8$f = { class: "float-tooltip-content" };
|
|
10209
|
+
const _hoisted_9$e = { class: "float-tooltip" };
|
|
10054
10210
|
const _hoisted_10$a = { class: "float-tooltip-content" };
|
|
10055
10211
|
const _hoisted_11$8 = { class: "float-tooltip" };
|
|
10056
10212
|
const _hoisted_12$8 = { class: "float-tooltip-content" };
|
|
10057
10213
|
const _hoisted_13$6 = { class: "float-tooltip" };
|
|
10058
10214
|
const _hoisted_14$3 = { class: "float-tooltip-content" };
|
|
10059
10215
|
const _hoisted_15$3 = ["src", "alt"];
|
|
10060
|
-
const _sfc_main$
|
|
10216
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
10061
10217
|
...{ name: "ToolsFloat" },
|
|
10062
10218
|
__name: "index",
|
|
10063
10219
|
props: {
|
|
@@ -10256,7 +10412,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
10256
10412
|
window.removeEventListener("scroll", handleScroll);
|
|
10257
10413
|
});
|
|
10258
10414
|
return (_ctx, _cache) => {
|
|
10259
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
10415
|
+
return openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
10260
10416
|
createVNode(Transition, { name: "tools-float-fade" }, {
|
|
10261
10417
|
default: withCtx(() => [
|
|
10262
10418
|
showScrollToTopBtn.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -10286,15 +10442,15 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
10286
10442
|
})
|
|
10287
10443
|
])
|
|
10288
10444
|
], -1)),
|
|
10289
|
-
createElementVNode("div", _hoisted_2$
|
|
10290
|
-
createElementVNode("span", _hoisted_3$
|
|
10445
|
+
createElementVNode("div", _hoisted_2$z, [
|
|
10446
|
+
createElementVNode("span", _hoisted_3$x, toDisplayString$1(unref(t2)("gitCodeLayout.toolsFloat.backToTop")), 1),
|
|
10291
10447
|
_cache[3] || (_cache[3] = createElementVNode("span", { class: "float-tooltip-arrow" }, null, -1))
|
|
10292
10448
|
])
|
|
10293
10449
|
], 2)) : createCommentVNode("", true)
|
|
10294
10450
|
]),
|
|
10295
10451
|
_: 1
|
|
10296
10452
|
}),
|
|
10297
|
-
!isCollapsed.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
10453
|
+
!isCollapsed.value ? (openBlock(), createElementBlock("div", _hoisted_4$q, [
|
|
10298
10454
|
isModuleVisible(unref(ToolsFloatDisplayItem).GROWTH_CENTER) ? (openBlock(), createElementBlock("div", {
|
|
10299
10455
|
key: 0,
|
|
10300
10456
|
id: "guide-step4",
|
|
@@ -10302,8 +10458,8 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
10302
10458
|
onClick: toggleGrowthCenter
|
|
10303
10459
|
}, [
|
|
10304
10460
|
_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)),
|
|
10305
|
-
createElementVNode("div", _hoisted_5$
|
|
10306
|
-
createElementVNode("span", _hoisted_6$
|
|
10461
|
+
createElementVNode("div", _hoisted_5$l, [
|
|
10462
|
+
createElementVNode("span", _hoisted_6$k, toDisplayString$1(growthCenterTooltip.value), 1),
|
|
10307
10463
|
_cache[5] || (_cache[5] = createElementVNode("span", { class: "float-tooltip-arrow" }, null, -1))
|
|
10308
10464
|
])
|
|
10309
10465
|
])) : createCommentVNode("", true),
|
|
@@ -10313,8 +10469,8 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
10313
10469
|
onClick: handleInvite
|
|
10314
10470
|
}, [
|
|
10315
10471
|
_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)),
|
|
10316
|
-
createElementVNode("div", _hoisted_7$
|
|
10317
|
-
createElementVNode("span", _hoisted_8$
|
|
10472
|
+
createElementVNode("div", _hoisted_7$h, [
|
|
10473
|
+
createElementVNode("span", _hoisted_8$f, toDisplayString$1(unref(t2)("gitCodeLayout.growthCenter.invite")), 1),
|
|
10318
10474
|
_cache[7] || (_cache[7] = createElementVNode("span", { class: "float-tooltip-arrow" }, null, -1))
|
|
10319
10475
|
])
|
|
10320
10476
|
])) : createCommentVNode("", true),
|
|
@@ -10335,7 +10491,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
10335
10491
|
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" })
|
|
10336
10492
|
])
|
|
10337
10493
|
], -1)),
|
|
10338
|
-
createElementVNode("div", _hoisted_9$
|
|
10494
|
+
createElementVNode("div", _hoisted_9$e, [
|
|
10339
10495
|
createElementVNode("span", _hoisted_10$a, toDisplayString$1(unref(t2)("gitCodeLayout.home.userFeedback01")), 1),
|
|
10340
10496
|
_cache[9] || (_cache[9] = createElementVNode("span", { class: "float-tooltip-arrow" }, null, -1))
|
|
10341
10497
|
])
|
|
@@ -10416,7 +10572,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
10416
10572
|
}
|
|
10417
10573
|
return target;
|
|
10418
10574
|
};
|
|
10419
|
-
const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10575
|
+
const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
10420
10576
|
var repoTypeEnum = /* @__PURE__ */ ((repoTypeEnum2) => {
|
|
10421
10577
|
repoTypeEnum2["NORMAL"] = "0";
|
|
10422
10578
|
repoTypeEnum2["MODEL"] = "1";
|
|
@@ -10559,9 +10715,9 @@ const collectRegisterLoginEvent = ({ isRegister, registerLoginMethod, success, e
|
|
|
10559
10715
|
delete reportData["utm_source"];
|
|
10560
10716
|
window.collectEvent("beconEvent", isRegister ? "register" : "login", reportData);
|
|
10561
10717
|
};
|
|
10562
|
-
const _hoisted_1$
|
|
10563
|
-
const _hoisted_2$
|
|
10564
|
-
const _sfc_main$
|
|
10718
|
+
const _hoisted_1$L = ["xlink:href"];
|
|
10719
|
+
const _hoisted_2$y = ["xlink:href"];
|
|
10720
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
10565
10721
|
__name: "index",
|
|
10566
10722
|
props: {
|
|
10567
10723
|
name: { default: "gt-run" },
|
|
@@ -10590,7 +10746,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
10590
10746
|
}, [
|
|
10591
10747
|
createElementVNode("use", {
|
|
10592
10748
|
"xlink:href": `#${__props.name}`
|
|
10593
|
-
}, null, 8, _hoisted_1$
|
|
10749
|
+
}, null, 8, _hoisted_1$L)
|
|
10594
10750
|
], 6)),
|
|
10595
10751
|
renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
|
|
10596
10752
|
], 2)) : (openBlock(), createElementBlock("svg", {
|
|
@@ -10601,14 +10757,14 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
10601
10757
|
}, [
|
|
10602
10758
|
createElementVNode("use", {
|
|
10603
10759
|
"xlink:href": `#${__props.name}`
|
|
10604
|
-
}, null, 8, _hoisted_2$
|
|
10760
|
+
}, null, 8, _hoisted_2$y)
|
|
10605
10761
|
], 6));
|
|
10606
10762
|
};
|
|
10607
10763
|
}
|
|
10608
10764
|
});
|
|
10609
|
-
const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10610
|
-
const _hoisted_1$
|
|
10611
|
-
const _sfc_main$
|
|
10765
|
+
const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
10766
|
+
const _hoisted_1$K = ["href", "target", "disabled"];
|
|
10767
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
10612
10768
|
...{
|
|
10613
10769
|
name: "GLink"
|
|
10614
10770
|
},
|
|
@@ -10653,11 +10809,11 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
10653
10809
|
disabled: __props.disabled || __props.noPointer
|
|
10654
10810
|
}, [
|
|
10655
10811
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
10656
|
-
], 10, _hoisted_1$
|
|
10812
|
+
], 10, _hoisted_1$K));
|
|
10657
10813
|
};
|
|
10658
10814
|
}
|
|
10659
10815
|
});
|
|
10660
|
-
const GLink = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10816
|
+
const GLink = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
10661
10817
|
const headerHeight = ref(56);
|
|
10662
10818
|
const useHeaderHeight = () => {
|
|
10663
10819
|
const setHeaderHeight = (height) => {
|
|
@@ -11197,18 +11353,18 @@ async function loadConfig() {
|
|
|
11197
11353
|
return inflight;
|
|
11198
11354
|
}
|
|
11199
11355
|
async function isMigratedHref(href) {
|
|
11200
|
-
const
|
|
11201
|
-
if (!
|
|
11356
|
+
const config2 = await loadConfig();
|
|
11357
|
+
if (!config2) return false;
|
|
11202
11358
|
let path;
|
|
11203
11359
|
try {
|
|
11204
11360
|
path = new URL(href, typeof window !== "undefined" ? window.location.origin : "http://placeholder").pathname;
|
|
11205
11361
|
} catch {
|
|
11206
11362
|
return false;
|
|
11207
11363
|
}
|
|
11208
|
-
const hit =
|
|
11364
|
+
const hit = config2.matchers.some(
|
|
11209
11365
|
(m) => m.type === "exact" ? m.value === path : m.regex.test(path)
|
|
11210
11366
|
);
|
|
11211
|
-
return
|
|
11367
|
+
return config2.mode === "allowlist" ? hit : !hit;
|
|
11212
11368
|
}
|
|
11213
11369
|
async function navigateWithMigrationGuard(router2, to) {
|
|
11214
11370
|
let href;
|
|
@@ -11290,7 +11446,7 @@ if (isBrowser) {
|
|
|
11290
11446
|
}
|
|
11291
11447
|
const sessionStorage$1 = sessionStorage;
|
|
11292
11448
|
const _imports_0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAmsSURBVHgB7VpdbxxnFT7nfccmRam6/gXZXIBy1y3qRe8YR6kUoUpdbhACJNtShFJUSCyBBFd2I1ClAoklVAE32BYXRAJqIwEyUOrNL4h70dtm+wvqNG7deGbe03PO+7Gzlr27/kpzsSeazO5kZvZ95jnnOR8TgLGNbWxjG9vYDjWEp8zyNjUg22lBiS1TuOeNo5YFbBgyTUMAFgz4PXYnDEzf3XimO+h+GTwFls9S43G5O2NLaLtqp2VKaJiSCB0yGEQEJAHFIMkwKXxMjl8AopwvXxl07y8V4EvXdnMo3cye+6xtK3jOVISmYCAlb/KZgTBT4Pd8TD+TfGegiApyiH0pAF+6vpvzOhegoNxUvNiSwZS88II32VcAniVhTIAya6AgeS9/AK0AFXKH2BMFmN+kxqfF4wVXwA0snQdUgQcXtwoFgLJk/T6xqG7Kx2w4xi5Mw37ziQF88fXd/NHe58scZxfYBdGzBQkYFkxVpSBQAXkXZJC8CYMUXTQCxZEU0sATsG/c+PwOL3/TVnhBY0vYqyABk7jjGJSnvc0L72qMeQaxB8gIWGGPgtjw+fRw2G+fKYMv/nQ3dwUuG2VNGfPMCagYd+yiWFGXH8Dcfzae7cRr2y/vzHJKuM3gGh4cX+tUXKAHHLvD1nDqAFuLnMc+ezyLlXnVFS5XN4ziUQpbAgySqGAF3Qmqpjc2prr1+6z/7/zK917e2XJg70eXtMFtmT3vtkDbw9ZzKon+0pvUnHhc5FTiDC+a8xg1AqAeuCIATIqpqUCUcva/G+dXD7v39y/v3WGtvGlDHhT2VGD4+zkwU0sdHAjyWAxeukPN0rk2L/J5jp0c98omRcGoakCKnoik3BZFpRQmDHz1XPGPQb9ljemgo5uqrME1hRWpZIaBOzLA5u+paQtYLsX1Ks8ABpZEJDAy0wcuuWUQFU0FZFBiCmh9fWrgIvmah2iikqJPH8j3Q3h/lDWPrKLNt9n1CrrP+csn5+hyhVN2cE/VkIL7UQIXXJKBkX8QoTLhLeNE/cqVR/nABRpq8oNgl/R50fKDsfp0cG2UdY8EsLnMMVXBGi/4OSvMFE4XbXnxtopMyTEXlNFFEQmqGR6IVigQVVBSAWQ2mxn023zWgj4MERjJg6wslv3OTMC9UdY+EsDsISx4qYeecIgCMns+j0VBCUAkaSc2fcxZ513MahaLUs/XOJz5zpXdhf2/eZO7imt5cYfBNbkk89UN/2Wt7jtLG8NThD6gYSc0WVAy5x54twzMiEDsOS8a+/KaFXctqFah+PhM8aN1pCFflYSqhUQMcIvBrPDnh/xvF9glZxUcqKCw2PBemBOA6OZ+/e9sBUawoQC/dts9QGEvyb1DDyLGmcP+dKAu7MWHY9CD6wGJUh9rTHG/UHv6mtMBxHNDyabgBJjN+GEZ7L71L3MRRrSBKvr13xJX/K5py6CWQe49uAgUA9CacqrCgiRxBReSMwYwmBbv/PFQY1I6FyXeQu3JMafgdOPjhlbhCHYoQMl1VLhFLFMq6CXp0ss+ps91Nw0PoFIgqXAOe5V7jF2BB5diUhllcCgs8lkh5lBc0wOELv/CCpwGQCroDvbnsH4gyhz0qpJ6T1ehFxBfYlESlBqbsWnt6xS0BZIYkwTvgSX2BCSz98t3TBeOYAfG4KU3ixwcbpr9zNVbnCIJSmSOcE/Usq8TT66Zvke2yAMSN62XXypE/CVL4CiIC3Z/9ffRYw8GMUgOb2S9uDuIuRCLdRfl4YmLAKJi1kQDtFHt7+sAUroQcJzEGQhhxh8YEMeegGOWeZ9N4DQcww4EyMm8lUQlxlMCF5SzSK7pK5Z6zGm+gygUDLWW96AmJnXBAc+c5jmvmOgFRkYT8Mbi3dHy3n47MNEjuG/bgrZToSzlWFBOTfBclmEsrKtQRGs745N4HDlEoKl/A8+irXUF0uvptfyFFRJqiklh3731N7sIx7QDGfxgcXKr9fPdF0xpZpjJpq14CZXTeQlUjmeU1LAFflNd1Lugd0+o5bveyCG5pSWsl2qQ4s5qKsAAKqgmPzQ+MTPuDTiBHbsfnH7lExlB5LXRQm3EkJJ5YJFrVj8Ng16CD6ADY3W19PUmCeDuwl+OLix1O/ZMxpbY6WND48r/8SoJyT2TgjrwM5U4ejBQT+ReVEL8yT7LTsae2LFHFnzhPaxJvwmioi2NqqKh9AB6M03vxj7PxdoSA3PskqKerJiqoPJvpgMntJEYlPcFl9uP1vJv8TuDYBs8IGK366TOoDfew1ploqzG2EsTamFuXxKXOLS6MThR0Azu/WLleMpZt6EM6ssQ+HQTKmhxLPFnSPkoq9w8w7kfhAXrc0uLWC/HQicuSokQSi8VFE0DNpRk1gNX0BO4DqdgZhRwnAZakhZ4LfnVq70OnCdfW8aZeY0pCnNLrSf9GyDjAjBhTjvx0BHYmkpmQWgyVKDqnpnQX440kjg2wDo4yYVZSuDY14G/8+65JSbjlk/aRgXEhpFEHL2r+5rohqjllzKVEZhYivETUbCBwZ/9YaIDZwkQYIcHtk7BCQvowhgdcLZ9ld8K1ezuu88sctjMsQt/JC6JFAe0Rl2Vi2Sf2zxbJHspx2RLzPnc5/OhwQ6ckh0K0Mo7uirlLazFklQvy9+9utusn//n9yZXVt+bvIhEcxnRvfSiJDSrPgWI/OsGsQyzNbeMdSczuwVnDfD//3x2+vxXqqmswhdSJ06hM+BRAlRm8wdXuOvYZ3/qTK78sZNNy1CWF7uqOU3Z8e6X1DMd90OkkOxD/JmRBkonAigmM0t+yg27r8XxsQVNbjs2Zy/vLV87AKgMZTNrHphepRJryyQq3j1DUpcyLdNOovvjpdNR0KEAxfg3W2mkUJuraCog7Q1moMLNH+buw+t5P1BTYybLVDUpxCKpm6ZeT87V7kEGSieuXo4EkJ/zq71SLPV2aHsvJH1sAl3k5JD33TxUK6FhpSyopWctdQuh7lT3nH/t9mjTslFtaKKX/+Vgomv29pReK8euHczK2x1c7Lv5pNOXzCE1qFJpM5tRck3f97FqUjn/o99Mnpq4jASwnX/cCFVJlxN6B8m9n7lJjo9ShrGbCSgquLn91xumS1XReLc0me/5bOr54GNm+dbrS2YJzsgGAlzvTG2323Txr+v9b3Gu57vgaBJC4bx6EDi9eVZ9pNWo1pYI/eCwU1mc+8nSyevNQXbsfvC13K2xi24fBk5scZYaWUUfcgxOxZqT43Cbg3d+/nenG2uH2Zn/T6e3ZvdarCJrIjA8w181k9nS/NLw93pjG9vYxja2p8G+ADz7MtW/3lU1AAAAAElFTkSuQmCC";
|
|
11293
|
-
const _sfc_main$
|
|
11449
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
11294
11450
|
...{
|
|
11295
11451
|
name: "GAvatar"
|
|
11296
11452
|
},
|
|
@@ -11336,8 +11492,8 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
11336
11492
|
};
|
|
11337
11493
|
}
|
|
11338
11494
|
});
|
|
11339
|
-
const _hoisted_1$
|
|
11340
|
-
const _sfc_main$
|
|
11495
|
+
const _hoisted_1$J = ["src"];
|
|
11496
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
11341
11497
|
...{ name: "FlashTag" },
|
|
11342
11498
|
__name: "FlashTag",
|
|
11343
11499
|
props: {
|
|
@@ -11382,7 +11538,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
11382
11538
|
key: 0,
|
|
11383
11539
|
class: "gc-flash-tag__icon",
|
|
11384
11540
|
src: iconUrl.value
|
|
11385
|
-
}, null, 8, _hoisted_1$
|
|
11541
|
+
}, null, 8, _hoisted_1$J)) : renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 1)
|
|
11386
11542
|
], 16)
|
|
11387
11543
|
]),
|
|
11388
11544
|
_: 3
|
|
@@ -14158,31 +14314,31 @@ const useTimeFormat = () => {
|
|
|
14158
14314
|
formatTime
|
|
14159
14315
|
};
|
|
14160
14316
|
};
|
|
14161
|
-
const _hoisted_1$
|
|
14317
|
+
const _hoisted_1$I = {
|
|
14162
14318
|
key: 0,
|
|
14163
14319
|
class: "org-layout-toolbar"
|
|
14164
14320
|
};
|
|
14165
|
-
const _hoisted_2$
|
|
14166
|
-
const _hoisted_3$
|
|
14167
|
-
const _hoisted_4$
|
|
14168
|
-
const _hoisted_5$
|
|
14169
|
-
const _hoisted_6$
|
|
14321
|
+
const _hoisted_2$x = { class: "org-layout-toolbar-title ellipsis-two-line" };
|
|
14322
|
+
const _hoisted_3$w = { class: "org-layout-toolbar-name" };
|
|
14323
|
+
const _hoisted_4$p = { class: "header-custom-btn-label" };
|
|
14324
|
+
const _hoisted_5$k = { class: "g-repo-breadcrumb-custom" };
|
|
14325
|
+
const _hoisted_6$j = {
|
|
14170
14326
|
key: 1,
|
|
14171
14327
|
class: "header-custom-mirrors-avatar"
|
|
14172
14328
|
};
|
|
14173
|
-
const _hoisted_7$
|
|
14329
|
+
const _hoisted_7$g = {
|
|
14174
14330
|
key: 0,
|
|
14175
14331
|
src: _imports_0,
|
|
14176
14332
|
alt: "mirrors-avatar-phone",
|
|
14177
14333
|
class: "header-custom-mirrors-img"
|
|
14178
14334
|
};
|
|
14179
|
-
const _hoisted_8$
|
|
14335
|
+
const _hoisted_8$e = {
|
|
14180
14336
|
key: 1,
|
|
14181
14337
|
src: "https://cdn-static.gitcode.com/static/images/mirrors-avata_20250411.gif",
|
|
14182
14338
|
alt: "mirrors-avatar",
|
|
14183
14339
|
class: "header-custom-mirrors-img-tall"
|
|
14184
14340
|
};
|
|
14185
|
-
const _hoisted_9$
|
|
14341
|
+
const _hoisted_9$d = { class: "g-repo-breadcrumb-container" };
|
|
14186
14342
|
const _hoisted_10$9 = {
|
|
14187
14343
|
key: 0,
|
|
14188
14344
|
class: "header-custom-breadcrumb-row"
|
|
@@ -14218,7 +14374,7 @@ const _hoisted_21$2 = {
|
|
|
14218
14374
|
};
|
|
14219
14375
|
const _hoisted_22$2 = { class: "user-layout-toolbar-title ellipsis-two-line" };
|
|
14220
14376
|
const _hoisted_23$2 = { class: "header-custom-btn-label" };
|
|
14221
|
-
const _sfc_main$
|
|
14377
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
14222
14378
|
__name: "HeaderCustom",
|
|
14223
14379
|
props: {
|
|
14224
14380
|
scene: { default: SceneValue.home },
|
|
@@ -14317,9 +14473,9 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
14317
14473
|
if (cached !== void 0) {
|
|
14318
14474
|
return Promise.resolve(cached);
|
|
14319
14475
|
}
|
|
14320
|
-
const
|
|
14321
|
-
if (
|
|
14322
|
-
return
|
|
14476
|
+
const pending2 = pendingEnterpriseMemberReqs.get(enterpriseId);
|
|
14477
|
+
if (pending2) {
|
|
14478
|
+
return pending2;
|
|
14323
14479
|
}
|
|
14324
14480
|
const req = (async () => {
|
|
14325
14481
|
var _a, _b;
|
|
@@ -14393,7 +14549,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
14393
14549
|
});
|
|
14394
14550
|
return (_ctx, _cache) => {
|
|
14395
14551
|
var _a, _b, _c;
|
|
14396
|
-
return __props.scene === unref(SceneValue).org && !__props.errorCode ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
14552
|
+
return __props.scene === unref(SceneValue).org && !__props.errorCode ? (openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
14397
14553
|
createVNode(GLink, {
|
|
14398
14554
|
href: ((_a = __props.orgProps) == null ? void 0 : _a.orgHomepageUrl) || "",
|
|
14399
14555
|
class: "header-custom-link"
|
|
@@ -14401,7 +14557,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
14401
14557
|
default: withCtx(() => {
|
|
14402
14558
|
var _a2, _b2, _c2;
|
|
14403
14559
|
return [
|
|
14404
|
-
createVNode(_sfc_main$
|
|
14560
|
+
createVNode(_sfc_main$R, {
|
|
14405
14561
|
class: "g-border",
|
|
14406
14562
|
src: ((_a2 = unref(orgInfo)) == null ? void 0 : _a2.avatar) || "",
|
|
14407
14563
|
name: ((_b2 = unref(orgInfo)) == null ? void 0 : _b2.name) || "",
|
|
@@ -14409,8 +14565,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
14409
14565
|
height: 28,
|
|
14410
14566
|
is_round: false
|
|
14411
14567
|
}, null, 8, ["src", "name"]),
|
|
14412
|
-
createElementVNode("div", _hoisted_2$
|
|
14413
|
-
createElementVNode("span", _hoisted_3$
|
|
14568
|
+
createElementVNode("div", _hoisted_2$x, [
|
|
14569
|
+
createElementVNode("span", _hoisted_3$w, toDisplayString$1((_c2 = unref(orgInfo)) == null ? void 0 : _c2.name), 1)
|
|
14414
14570
|
]),
|
|
14415
14571
|
orgEnterpriseId.value ? (openBlock(), createBlock(unref(Tooltip), {
|
|
14416
14572
|
key: 0,
|
|
@@ -14445,7 +14601,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
14445
14601
|
default: withCtx(() => {
|
|
14446
14602
|
var _a2;
|
|
14447
14603
|
return [
|
|
14448
|
-
createElementVNode("span", _hoisted_4$
|
|
14604
|
+
createElementVNode("span", _hoisted_4$p, toDisplayString$1(((_a2 = __props.orgProps) == null ? void 0 : _a2.isOrgFollow) ? unref(t2)("gitCodeLayout.home.alreadyFollowed") : unref(t2)("gitCodeLayout.home.focusOn")), 1)
|
|
14449
14605
|
];
|
|
14450
14606
|
}),
|
|
14451
14607
|
_: 1
|
|
@@ -14467,7 +14623,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
14467
14623
|
default: withCtx(() => {
|
|
14468
14624
|
var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
14469
14625
|
return [
|
|
14470
|
-
createElementVNode("h2", _hoisted_5$
|
|
14626
|
+
createElementVNode("h2", _hoisted_5$k, [
|
|
14471
14627
|
createVNode(GLink, {
|
|
14472
14628
|
href: (_a2 = unref(breadcrumb)[0]) == null ? void 0 : _a2.path,
|
|
14473
14629
|
class: "header-custom-avatar-link"
|
|
@@ -14475,7 +14631,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
14475
14631
|
default: withCtx(() => {
|
|
14476
14632
|
var _a3, _b3, _c3, _d2;
|
|
14477
14633
|
return [
|
|
14478
|
-
!((_a3 = __props.repoProps) == null ? void 0 : _a3.isGhMirrors) ? (openBlock(), createBlock(_sfc_main$
|
|
14634
|
+
!((_a3 = __props.repoProps) == null ? void 0 : _a3.isGhMirrors) ? (openBlock(), createBlock(_sfc_main$R, {
|
|
14479
14635
|
key: 0,
|
|
14480
14636
|
class: normalizeClass({ "g-border": isOrg.value }),
|
|
14481
14637
|
src: ((_c3 = (_b3 = unref(repoInfo)) == null ? void 0 : _b3.namespace) == null ? void 0 : _c3.avatar_url) || "",
|
|
@@ -14483,14 +14639,14 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
14483
14639
|
width: 28,
|
|
14484
14640
|
height: 28,
|
|
14485
14641
|
is_round: !isOrg.value
|
|
14486
|
-
}, null, 8, ["class", "src", "name", "is_round"])) : (openBlock(), createElementBlock("div", _hoisted_6$
|
|
14487
|
-
unref(isPhone)() ? (openBlock(), createElementBlock("img", _hoisted_7$
|
|
14642
|
+
}, null, 8, ["class", "src", "name", "is_round"])) : (openBlock(), createElementBlock("div", _hoisted_6$j, [
|
|
14643
|
+
unref(isPhone)() ? (openBlock(), createElementBlock("img", _hoisted_7$g)) : (openBlock(), createElementBlock("img", _hoisted_8$e))
|
|
14488
14644
|
]))
|
|
14489
14645
|
];
|
|
14490
14646
|
}),
|
|
14491
14647
|
_: 1
|
|
14492
14648
|
}, 8, ["href"]),
|
|
14493
|
-
createElementVNode("div", _hoisted_9$
|
|
14649
|
+
createElementVNode("div", _hoisted_9$d, [
|
|
14494
14650
|
!((_b2 = __props.repoProps) == null ? void 0 : _b2.isGhMirrors) ? (openBlock(), createElementBlock("div", {
|
|
14495
14651
|
key: 0,
|
|
14496
14652
|
ref_key: "breadcrumbRef",
|
|
@@ -14543,7 +14699,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
14543
14699
|
_: 1
|
|
14544
14700
|
}, 8, ["href"]),
|
|
14545
14701
|
unref(isGstarRepo)((_e = unref(repoInfo)) == null ? void 0 : _e.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_13$5, [
|
|
14546
|
-
createVNode(_sfc_main$
|
|
14702
|
+
createVNode(_sfc_main$Q, {
|
|
14547
14703
|
origin: "repo",
|
|
14548
14704
|
icon: "",
|
|
14549
14705
|
type: "gstar",
|
|
@@ -14555,7 +14711,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
14555
14711
|
_: 1
|
|
14556
14712
|
}, 8, ["message"])
|
|
14557
14713
|
])) : unref(isIncubationRepo)((_f = unref(repoInfo)) == null ? void 0 : _f.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_14$2, [
|
|
14558
|
-
createVNode(_sfc_main$
|
|
14714
|
+
createVNode(_sfc_main$Q, {
|
|
14559
14715
|
origin: "repo",
|
|
14560
14716
|
icon: "",
|
|
14561
14717
|
type: "incubation",
|
|
@@ -14587,7 +14743,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
14587
14743
|
_: 1
|
|
14588
14744
|
}, 8, ["content"])) : createCommentVNode("", true),
|
|
14589
14745
|
unref(isTrustedRepo)((_g = unref(repoInfo)) == null ? void 0 : _g.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_15$2, [
|
|
14590
|
-
createVNode(_sfc_main$
|
|
14746
|
+
createVNode(_sfc_main$Q, {
|
|
14591
14747
|
trusted: "",
|
|
14592
14748
|
message: unref(t2)("gitCodeLayout.trusted.title"),
|
|
14593
14749
|
icon: "",
|
|
@@ -14636,7 +14792,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
14636
14792
|
default: withCtx(() => {
|
|
14637
14793
|
var _a2, _b2, _c2, _d, _e;
|
|
14638
14794
|
return [
|
|
14639
|
-
createVNode(_sfc_main$
|
|
14795
|
+
createVNode(_sfc_main$R, {
|
|
14640
14796
|
src: (_a2 = unref(otherUserInfo)) == null ? void 0 : _a2.avatarUrl,
|
|
14641
14797
|
name: ((_b2 = unref(otherUserInfo)) == null ? void 0 : _b2.name) || ((_c2 = unref(otherUserInfo)) == null ? void 0 : _c2.nickname),
|
|
14642
14798
|
width: 28,
|
|
@@ -14663,9 +14819,9 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
14663
14819
|
};
|
|
14664
14820
|
}
|
|
14665
14821
|
});
|
|
14666
|
-
const HeaderCustom = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
14667
|
-
const _hoisted_1$
|
|
14668
|
-
const _sfc_main$
|
|
14822
|
+
const HeaderCustom = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
14823
|
+
const _hoisted_1$H = ["src"];
|
|
14824
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
14669
14825
|
...{ name: "OperationEntry" },
|
|
14670
14826
|
__name: "OperationEntry",
|
|
14671
14827
|
setup(__props) {
|
|
@@ -14709,14 +14865,14 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
14709
14865
|
class: "operation-entry__img",
|
|
14710
14866
|
src: img.value,
|
|
14711
14867
|
alt: "operation-entry"
|
|
14712
|
-
}, null, 8, _hoisted_1$
|
|
14868
|
+
}, null, 8, _hoisted_1$H)
|
|
14713
14869
|
])) : createCommentVNode("", true);
|
|
14714
14870
|
};
|
|
14715
14871
|
}
|
|
14716
14872
|
});
|
|
14717
|
-
const OperationEntry = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
14718
|
-
const _hoisted_1$
|
|
14719
|
-
const _sfc_main$
|
|
14873
|
+
const OperationEntry = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
14874
|
+
const _hoisted_1$G = ["src"];
|
|
14875
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
14720
14876
|
__name: "ClaimPower",
|
|
14721
14877
|
props: {
|
|
14722
14878
|
config: {}
|
|
@@ -14739,12 +14895,12 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
14739
14895
|
createElementVNode("img", {
|
|
14740
14896
|
src: __props.config.logo_url,
|
|
14741
14897
|
alt: "claim power"
|
|
14742
|
-
}, null, 8, _hoisted_1$
|
|
14898
|
+
}, null, 8, _hoisted_1$G)
|
|
14743
14899
|
])) : createCommentVNode("", true);
|
|
14744
14900
|
};
|
|
14745
14901
|
}
|
|
14746
14902
|
});
|
|
14747
|
-
const ClaimPower = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
14903
|
+
const ClaimPower = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
14748
14904
|
const DEFAULT_APPLICATION_HOST = "https://gitcode.com";
|
|
14749
14905
|
function normalizeApplicationHost(host) {
|
|
14750
14906
|
return (host || DEFAULT_APPLICATION_HOST).replace(/\/+$/, "");
|
|
@@ -14780,24 +14936,24 @@ const HEADER_CREATE_MENU_PATHS = [
|
|
|
14780
14936
|
"/org/create"
|
|
14781
14937
|
];
|
|
14782
14938
|
const HEADER_CREATE_ENTERPRISE_PATH = "/enterprises/new";
|
|
14783
|
-
const _hoisted_1$
|
|
14784
|
-
const _hoisted_2$
|
|
14785
|
-
const _hoisted_3$
|
|
14786
|
-
const _hoisted_4$
|
|
14787
|
-
const _hoisted_5$
|
|
14939
|
+
const _hoisted_1$F = { class: "g-header-create dashboard-create-menu" };
|
|
14940
|
+
const _hoisted_2$w = ["title", "aria-label", "aria-expanded"];
|
|
14941
|
+
const _hoisted_3$v = { class: "dashboard-create-menu__trigger-text" };
|
|
14942
|
+
const _hoisted_4$o = ["aria-label"];
|
|
14943
|
+
const _hoisted_5$j = {
|
|
14788
14944
|
key: 0,
|
|
14789
14945
|
class: "dashboard-create-menu__divider",
|
|
14790
14946
|
role: "separator"
|
|
14791
14947
|
};
|
|
14792
|
-
const _hoisted_6$
|
|
14793
|
-
const _hoisted_7$
|
|
14794
|
-
const _hoisted_8$
|
|
14795
|
-
const _hoisted_9$
|
|
14948
|
+
const _hoisted_6$i = ["href", "onClick", "onKeydown"];
|
|
14949
|
+
const _hoisted_7$f = { class: "dashboard-create-menu__title-row" };
|
|
14950
|
+
const _hoisted_8$d = { class: "dashboard-create-menu__title" };
|
|
14951
|
+
const _hoisted_9$c = {
|
|
14796
14952
|
key: 0,
|
|
14797
14953
|
class: "dashboard-create-menu__desc"
|
|
14798
14954
|
};
|
|
14799
14955
|
const menuId = "gitcode-header-create-menu";
|
|
14800
|
-
const _sfc_main$
|
|
14956
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
14801
14957
|
...{
|
|
14802
14958
|
name: "HeaderCreateMenu"
|
|
14803
14959
|
},
|
|
@@ -14996,7 +15152,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
14996
15152
|
() => closeMenu()
|
|
14997
15153
|
);
|
|
14998
15154
|
return (_ctx, _cache) => {
|
|
14999
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
15155
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
15000
15156
|
createVNode(unref(Dropdown), {
|
|
15001
15157
|
position: ["bottom-end", "bottom-start"],
|
|
15002
15158
|
"destroy-on-hide": false,
|
|
@@ -15021,7 +15177,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
15021
15177
|
return openBlock(), createElementBlock(Fragment, {
|
|
15022
15178
|
key: item.key
|
|
15023
15179
|
}, [
|
|
15024
|
-
item.dividerBefore ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
15180
|
+
item.dividerBefore ? (openBlock(), createElementBlock("div", _hoisted_5$j)) : createCommentVNode("", true),
|
|
15025
15181
|
createElementVNode("a", {
|
|
15026
15182
|
href: unref(toApplicationUrl)(unref(layoutConfig2).VITE_HOST, item.href),
|
|
15027
15183
|
class: normalizeClass(["dashboard-create-menu__item", { "dashboard-create-menu__item--with-desc": Boolean(item.desc) }]),
|
|
@@ -15030,7 +15186,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
15030
15186
|
onClick: withModifiers(($event) => selectCreateItem(item), ["prevent"]),
|
|
15031
15187
|
onKeydown: ($event) => onMenuItemKeydown($event, index2)
|
|
15032
15188
|
}, [
|
|
15033
|
-
createElementVNode("div", _hoisted_7$
|
|
15189
|
+
createElementVNode("div", _hoisted_7$f, [
|
|
15034
15190
|
createVNode(GIcon, {
|
|
15035
15191
|
name: item.icon,
|
|
15036
15192
|
size: "16px",
|
|
@@ -15038,13 +15194,13 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
15038
15194
|
class: "dashboard-create-menu__icon",
|
|
15039
15195
|
"aria-hidden": "true"
|
|
15040
15196
|
}, null, 8, ["name"]),
|
|
15041
|
-
createElementVNode("span", _hoisted_8$
|
|
15197
|
+
createElementVNode("span", _hoisted_8$d, toDisplayString$1(item.label), 1)
|
|
15042
15198
|
]),
|
|
15043
|
-
item.desc ? (openBlock(), createElementBlock("div", _hoisted_9$
|
|
15044
|
-
], 42, _hoisted_6$
|
|
15199
|
+
item.desc ? (openBlock(), createElementBlock("div", _hoisted_9$c, toDisplayString$1(item.desc), 1)) : createCommentVNode("", true)
|
|
15200
|
+
], 42, _hoisted_6$i)
|
|
15045
15201
|
], 64);
|
|
15046
15202
|
}), 128))
|
|
15047
|
-
], 8, _hoisted_4$
|
|
15203
|
+
], 8, _hoisted_4$o)
|
|
15048
15204
|
]),
|
|
15049
15205
|
default: withCtx(() => [
|
|
15050
15206
|
createElementVNode("button", {
|
|
@@ -15067,8 +15223,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
15067
15223
|
class: "dashboard-create-menu__trigger-icon",
|
|
15068
15224
|
"aria-hidden": "true"
|
|
15069
15225
|
}),
|
|
15070
|
-
createElementVNode("span", _hoisted_3$
|
|
15071
|
-
], 40, _hoisted_2$
|
|
15226
|
+
createElementVNode("span", _hoisted_3$v, toDisplayString$1(unref(t2)("gitCodeLayout.header.create")), 1)
|
|
15227
|
+
], 40, _hoisted_2$w)
|
|
15072
15228
|
]),
|
|
15073
15229
|
_: 1
|
|
15074
15230
|
}, 8, ["visible"])
|
|
@@ -15076,8 +15232,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
15076
15232
|
};
|
|
15077
15233
|
}
|
|
15078
15234
|
});
|
|
15079
|
-
const HeaderCreateMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15080
|
-
const _sfc_main$
|
|
15235
|
+
const HeaderCreateMenu = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
15236
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
15081
15237
|
...{
|
|
15082
15238
|
name: "DocumentCenter"
|
|
15083
15239
|
},
|
|
@@ -15102,12 +15258,12 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
15102
15258
|
};
|
|
15103
15259
|
}
|
|
15104
15260
|
});
|
|
15105
|
-
const DocumentCenter = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15106
|
-
const _hoisted_1$
|
|
15261
|
+
const DocumentCenter = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
15262
|
+
const _hoisted_1$E = {
|
|
15107
15263
|
key: 1,
|
|
15108
15264
|
class: "g-text-all"
|
|
15109
15265
|
};
|
|
15110
|
-
const _sfc_main$
|
|
15266
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
15111
15267
|
...{ name: "GText" },
|
|
15112
15268
|
__name: "index",
|
|
15113
15269
|
props: {
|
|
@@ -15184,24 +15340,24 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
15184
15340
|
class: "watch-all",
|
|
15185
15341
|
onClick: onShowAll
|
|
15186
15342
|
}, toDisplayString$1(_ctx.$t("gitCodeLayout.notice.msg.viewAll")), 1)) : createCommentVNode("", true)
|
|
15187
|
-
], 6)) : showAllContent.value && finalConfig.value.showAll ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
15343
|
+
], 6)) : showAllContent.value && finalConfig.value.showAll ? (openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
15188
15344
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
15189
15345
|
])) : createCommentVNode("", true);
|
|
15190
15346
|
};
|
|
15191
15347
|
}
|
|
15192
15348
|
});
|
|
15193
|
-
const GText = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15194
|
-
const _hoisted_1$
|
|
15195
|
-
const _hoisted_2$
|
|
15196
|
-
const _hoisted_3$
|
|
15197
|
-
const _hoisted_4$
|
|
15198
|
-
const _hoisted_5$
|
|
15199
|
-
const _hoisted_6$
|
|
15200
|
-
const _hoisted_7$
|
|
15201
|
-
const _hoisted_8$
|
|
15202
|
-
const _hoisted_9$
|
|
15349
|
+
const GText = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
15350
|
+
const _hoisted_1$D = { class: "message-item" };
|
|
15351
|
+
const _hoisted_2$v = { class: "message-item-footer" };
|
|
15352
|
+
const _hoisted_3$u = ["title"];
|
|
15353
|
+
const _hoisted_4$n = ["href"];
|
|
15354
|
+
const _hoisted_5$i = { class: "message-item-info-content" };
|
|
15355
|
+
const _hoisted_6$h = { class: "message-item-body" };
|
|
15356
|
+
const _hoisted_7$e = ["title", "innerHTML"];
|
|
15357
|
+
const _hoisted_8$c = ["title"];
|
|
15358
|
+
const _hoisted_9$b = { class: "message-item-info" };
|
|
15203
15359
|
const _hoisted_10$8 = { class: "message-item-rightTx message-item-date" };
|
|
15204
|
-
const _sfc_main$
|
|
15360
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
15205
15361
|
__name: "index",
|
|
15206
15362
|
props: {
|
|
15207
15363
|
data: { default: () => ({}) },
|
|
@@ -15213,8 +15369,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
15213
15369
|
const { formatTimeFromNow } = useTimeFormat();
|
|
15214
15370
|
return (_ctx, _cache) => {
|
|
15215
15371
|
var _a;
|
|
15216
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
15217
|
-
createElementVNode("div", _hoisted_2$
|
|
15372
|
+
return openBlock(), createElementBlock("div", _hoisted_1$D, [
|
|
15373
|
+
createElementVNode("div", _hoisted_2$v, [
|
|
15218
15374
|
createElementVNode("div", {
|
|
15219
15375
|
class: "message-item__avatar-wrap",
|
|
15220
15376
|
title: __props.data.nickname
|
|
@@ -15224,17 +15380,17 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
15224
15380
|
target: "_blank",
|
|
15225
15381
|
class: "user-info linktx message-item__user-info"
|
|
15226
15382
|
}, [
|
|
15227
|
-
createVNode(_sfc_main$
|
|
15383
|
+
createVNode(_sfc_main$R, {
|
|
15228
15384
|
name: __props.data.nickname,
|
|
15229
15385
|
src: __props.data.avatar,
|
|
15230
15386
|
width: 32,
|
|
15231
15387
|
height: 32
|
|
15232
15388
|
}, null, 8, ["name", "src"])
|
|
15233
|
-
], 8, _hoisted_4$
|
|
15234
|
-
], 8, _hoisted_3$
|
|
15389
|
+
], 8, _hoisted_4$n)
|
|
15390
|
+
], 8, _hoisted_3$u)
|
|
15235
15391
|
]),
|
|
15236
|
-
createElementVNode("div", _hoisted_5$
|
|
15237
|
-
createElementVNode("div", _hoisted_6$
|
|
15392
|
+
createElementVNode("div", _hoisted_5$i, [
|
|
15393
|
+
createElementVNode("div", _hoisted_6$h, [
|
|
15238
15394
|
createVNode(GLink, {
|
|
15239
15395
|
href: unref(transformUrl)(__props.data.url),
|
|
15240
15396
|
target: "_blank",
|
|
@@ -15249,17 +15405,17 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
15249
15405
|
title: __props.data.title,
|
|
15250
15406
|
innerHTML: unref(xssPurify)(__props.data.title) || "",
|
|
15251
15407
|
class: "message-item__title"
|
|
15252
|
-
}, null, 8, _hoisted_7$
|
|
15408
|
+
}, null, 8, _hoisted_7$e)) : (openBlock(), createElementBlock("span", {
|
|
15253
15409
|
key: 1,
|
|
15254
15410
|
title: __props.data.title
|
|
15255
|
-
}, toDisplayString$1(__props.data.title || "-"), 9, _hoisted_8$
|
|
15411
|
+
}, toDisplayString$1(__props.data.title || "-"), 9, _hoisted_8$c))
|
|
15256
15412
|
]),
|
|
15257
15413
|
_: 1
|
|
15258
15414
|
})
|
|
15259
15415
|
]),
|
|
15260
15416
|
_: 1
|
|
15261
15417
|
}, 8, ["href", "class"]),
|
|
15262
|
-
createElementVNode("div", _hoisted_9$
|
|
15418
|
+
createElementVNode("div", _hoisted_9$b, [
|
|
15263
15419
|
createVNode(GText, null, {
|
|
15264
15420
|
default: withCtx(() => [
|
|
15265
15421
|
createTextVNode(toDisplayString$1(__props.data.repo), 1)
|
|
@@ -15281,34 +15437,34 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
15281
15437
|
};
|
|
15282
15438
|
}
|
|
15283
15439
|
});
|
|
15284
|
-
const MessageItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15285
|
-
const _hoisted_1$
|
|
15286
|
-
const _hoisted_2$
|
|
15440
|
+
const MessageItem = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
15441
|
+
const _hoisted_1$C = { class: "message-header-nav" };
|
|
15442
|
+
const _hoisted_2$u = {
|
|
15287
15443
|
key: 0,
|
|
15288
15444
|
class: "item-count-icon"
|
|
15289
15445
|
};
|
|
15290
|
-
const _hoisted_3$
|
|
15446
|
+
const _hoisted_3$t = {
|
|
15291
15447
|
key: 1,
|
|
15292
15448
|
class: "g-number"
|
|
15293
15449
|
};
|
|
15294
|
-
const _hoisted_4$
|
|
15450
|
+
const _hoisted_4$m = {
|
|
15295
15451
|
key: 0,
|
|
15296
15452
|
class: "g-number message-box__count"
|
|
15297
15453
|
};
|
|
15298
|
-
const _hoisted_5$
|
|
15299
|
-
const _hoisted_6$
|
|
15454
|
+
const _hoisted_5$h = { class: "message-content-cover" };
|
|
15455
|
+
const _hoisted_6$g = {
|
|
15300
15456
|
key: 0,
|
|
15301
15457
|
class: "message-content-header"
|
|
15302
15458
|
};
|
|
15303
|
-
const _hoisted_7$
|
|
15459
|
+
const _hoisted_7$d = {
|
|
15304
15460
|
key: 0,
|
|
15305
15461
|
class: "g-number"
|
|
15306
15462
|
};
|
|
15307
|
-
const _hoisted_8$
|
|
15463
|
+
const _hoisted_8$b = {
|
|
15308
15464
|
key: 0,
|
|
15309
15465
|
class: "g-number"
|
|
15310
15466
|
};
|
|
15311
|
-
const _hoisted_9$
|
|
15467
|
+
const _hoisted_9$a = {
|
|
15312
15468
|
key: 0,
|
|
15313
15469
|
class: "g-number"
|
|
15314
15470
|
};
|
|
@@ -15325,7 +15481,7 @@ const _hoisted_12$6 = {
|
|
|
15325
15481
|
class: "no-more"
|
|
15326
15482
|
};
|
|
15327
15483
|
const _hoisted_13$4 = { class: "message-footer-nav" };
|
|
15328
|
-
const _sfc_main$
|
|
15484
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
15329
15485
|
__name: "MessageBox",
|
|
15330
15486
|
setup(__props, { expose: __expose }) {
|
|
15331
15487
|
var _a;
|
|
@@ -15605,7 +15761,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
15605
15761
|
class: "message-box",
|
|
15606
15762
|
onClick: _cache[6] || (_cache[6] = withModifiers(($event) => console.log("stop"), ["stop"]))
|
|
15607
15763
|
}, [
|
|
15608
|
-
createElementVNode("div", _hoisted_1$
|
|
15764
|
+
createElementVNode("div", _hoisted_1$C, [
|
|
15609
15765
|
createVNode(unref(Tabs), {
|
|
15610
15766
|
modelValue: checkedId.value,
|
|
15611
15767
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => checkedId.value = $event),
|
|
@@ -15621,7 +15777,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
15621
15777
|
createElementVNode("div", {
|
|
15622
15778
|
class: normalizeClass(["message-header-nav-item", { "message-header-nav-item-active": item.messageType === checkedId.value }])
|
|
15623
15779
|
}, [
|
|
15624
|
-
item.icon ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
15780
|
+
item.icon ? (openBlock(), createElementBlock("div", _hoisted_2$u, [
|
|
15625
15781
|
createVNode(GIcon, {
|
|
15626
15782
|
name: item.icon,
|
|
15627
15783
|
size: "16px",
|
|
@@ -15634,7 +15790,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
15634
15790
|
}, null, 8, ["name"])
|
|
15635
15791
|
])) : createCommentVNode("", true),
|
|
15636
15792
|
createElementVNode("span", null, toDisplayString$1(item.text), 1),
|
|
15637
|
-
item.count > 0 ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
15793
|
+
item.count > 0 ? (openBlock(), createElementBlock("span", _hoisted_3$t, toDisplayString$1(item.count), 1)) : createCommentVNode("", true)
|
|
15638
15794
|
], 2)
|
|
15639
15795
|
]),
|
|
15640
15796
|
_: 2
|
|
@@ -15648,7 +15804,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
15648
15804
|
onClick: _cache[1] || (_cache[1] = ($event) => toPage("unread"))
|
|
15649
15805
|
}, [
|
|
15650
15806
|
createTextVNode(toDisplayString$1(unref(t2)("gitCodeLayout.notice.msg.allUnread")), 1),
|
|
15651
|
-
msgCount.value > 0 ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
15807
|
+
msgCount.value > 0 ? (openBlock(), createElementBlock("span", _hoisted_4$m, toDisplayString$1(msgCount.value), 1)) : createCommentVNode("", true)
|
|
15652
15808
|
])
|
|
15653
15809
|
]),
|
|
15654
15810
|
createElementVNode("div", {
|
|
@@ -15656,28 +15812,28 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
15656
15812
|
ref: scrollContainer,
|
|
15657
15813
|
class: "message-content"
|
|
15658
15814
|
}, [
|
|
15659
|
-
withDirectives((openBlock(), createElementBlock("div", _hoisted_5$
|
|
15660
|
-
currentType.value === "mention" ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
15815
|
+
withDirectives((openBlock(), createElementBlock("div", _hoisted_5$h, [
|
|
15816
|
+
currentType.value === "mention" ? (openBlock(), createElementBlock("div", _hoisted_6$g, [
|
|
15661
15817
|
createElementVNode("div", {
|
|
15662
15818
|
class: normalizeClass(["message-content-header-item message-content-header-item--mr", { active: mentionSubTab.value === "project" }]),
|
|
15663
15819
|
onClick: _cache[2] || (_cache[2] = ($event) => switchMentionSubTab("project"))
|
|
15664
15820
|
}, [
|
|
15665
15821
|
_cache[7] || (_cache[7] = createTextVNode(" 项目相关 ", -1)),
|
|
15666
|
-
mentionSubTabCount.value.project > 0 ? (openBlock(), createElementBlock("span", _hoisted_7$
|
|
15822
|
+
mentionSubTabCount.value.project > 0 ? (openBlock(), createElementBlock("span", _hoisted_7$d, toDisplayString$1(mentionSubTabCount.value.project), 1)) : createCommentVNode("", true)
|
|
15667
15823
|
], 2),
|
|
15668
15824
|
createElementVNode("div", {
|
|
15669
15825
|
class: normalizeClass(["message-content-header-item message-content-header-item--mr", { active: mentionSubTab.value === "private" }]),
|
|
15670
15826
|
onClick: _cache[3] || (_cache[3] = ($event) => switchMentionSubTab("private"))
|
|
15671
15827
|
}, [
|
|
15672
15828
|
_cache[8] || (_cache[8] = createTextVNode(" 私信 ", -1)),
|
|
15673
|
-
mentionSubTabCount.value.private > 0 ? (openBlock(), createElementBlock("span", _hoisted_8$
|
|
15829
|
+
mentionSubTabCount.value.private > 0 ? (openBlock(), createElementBlock("span", _hoisted_8$b, toDisplayString$1(mentionSubTabCount.value.private), 1)) : createCommentVNode("", true)
|
|
15674
15830
|
], 2),
|
|
15675
15831
|
createElementVNode("div", {
|
|
15676
15832
|
class: normalizeClass(["message-content-header-item", { active: mentionSubTab.value === "discussion" }]),
|
|
15677
15833
|
onClick: _cache[4] || (_cache[4] = ($event) => switchMentionSubTab("discussion"))
|
|
15678
15834
|
}, [
|
|
15679
15835
|
_cache[9] || (_cache[9] = createTextVNode(" 在线讨论 ", -1)),
|
|
15680
|
-
mentionSubTabCount.value.discussion > 0 ? (openBlock(), createElementBlock("span", _hoisted_9$
|
|
15836
|
+
mentionSubTabCount.value.discussion > 0 ? (openBlock(), createElementBlock("span", _hoisted_9$a, toDisplayString$1(mentionSubTabCount.value.discussion), 1)) : createCommentVNode("", true)
|
|
15681
15837
|
], 2)
|
|
15682
15838
|
])) : createCommentVNode("", true),
|
|
15683
15839
|
listData.value.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(listData.value, (item) => {
|
|
@@ -15706,8 +15862,8 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
15706
15862
|
};
|
|
15707
15863
|
}
|
|
15708
15864
|
});
|
|
15709
|
-
const MessageBox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15710
|
-
const _sfc_main$
|
|
15865
|
+
const MessageBox = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
15866
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
15711
15867
|
...{
|
|
15712
15868
|
name: "Notice"
|
|
15713
15869
|
},
|
|
@@ -15822,9 +15978,9 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
15822
15978
|
};
|
|
15823
15979
|
}
|
|
15824
15980
|
});
|
|
15825
|
-
const Notice = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15826
|
-
const _hoisted_1$
|
|
15827
|
-
const _sfc_main$
|
|
15981
|
+
const Notice = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
15982
|
+
const _hoisted_1$B = { class: "devui-select__item g-option-link" };
|
|
15983
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
15828
15984
|
...{
|
|
15829
15985
|
name: "OptionLink"
|
|
15830
15986
|
},
|
|
@@ -15842,7 +15998,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
15842
15998
|
},
|
|
15843
15999
|
setup(__props) {
|
|
15844
16000
|
return (_ctx, _cache) => {
|
|
15845
|
-
return openBlock(), createElementBlock("li", _hoisted_1$
|
|
16001
|
+
return openBlock(), createElementBlock("li", _hoisted_1$B, [
|
|
15846
16002
|
createVNode(GLink, normalizeProps(guardReactiveProps(_ctx.$props)), {
|
|
15847
16003
|
default: withCtx(() => [
|
|
15848
16004
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
@@ -15853,7 +16009,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
15853
16009
|
};
|
|
15854
16010
|
}
|
|
15855
16011
|
});
|
|
15856
|
-
const OptionLink = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16012
|
+
const OptionLink = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
15857
16013
|
function useCookie(key, defaultValue, options = COOKIE_OPTIONS) {
|
|
15858
16014
|
const allCookies = api.get() || {};
|
|
15859
16015
|
const storedValue = allCookies[key] || localStorage$2.getItem(key);
|
|
@@ -15877,10 +16033,10 @@ function useCookie(key, defaultValue, options = COOKIE_OPTIONS) {
|
|
|
15877
16033
|
);
|
|
15878
16034
|
return value;
|
|
15879
16035
|
}
|
|
15880
|
-
const _hoisted_1$
|
|
15881
|
-
const _hoisted_2$
|
|
15882
|
-
const _hoisted_3$
|
|
15883
|
-
const _sfc_main$
|
|
16036
|
+
const _hoisted_1$A = { class: "tools-item-wrapper" };
|
|
16037
|
+
const _hoisted_2$t = { class: "tools-item-wrapper-checkbox" };
|
|
16038
|
+
const _hoisted_3$s = ["onClick", "title"];
|
|
16039
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
15884
16040
|
__name: "Lang",
|
|
15885
16041
|
setup(__props) {
|
|
15886
16042
|
const lang = useCookie(LANG_KEY, LANG_ZH);
|
|
@@ -15902,9 +16058,9 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
15902
16058
|
window.location.reload();
|
|
15903
16059
|
};
|
|
15904
16060
|
return (_ctx, _cache) => {
|
|
15905
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
16061
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
15906
16062
|
createElementVNode("div", null, toDisplayString$1(unref(t2)("gitCodeLayout.common.footerSetting.lang")), 1),
|
|
15907
|
-
createElementVNode("div", _hoisted_2$
|
|
16063
|
+
createElementVNode("div", _hoisted_2$t, [
|
|
15908
16064
|
(openBlock(true), createElementBlock(Fragment, null, renderList(linkList.value, (item) => {
|
|
15909
16065
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
15910
16066
|
key: item.label
|
|
@@ -15919,26 +16075,26 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
15919
16075
|
color: "var(--theme-icon-fill-weak)",
|
|
15920
16076
|
class: "checkbox-item-icon"
|
|
15921
16077
|
}, null, 8, ["name"])
|
|
15922
|
-
], 16, _hoisted_3$
|
|
16078
|
+
], 16, _hoisted_3$s);
|
|
15923
16079
|
}), 128))
|
|
15924
16080
|
])
|
|
15925
16081
|
]);
|
|
15926
16082
|
};
|
|
15927
16083
|
}
|
|
15928
16084
|
});
|
|
15929
|
-
const _hoisted_1$
|
|
16085
|
+
const _hoisted_1$z = {
|
|
15930
16086
|
key: 0,
|
|
15931
16087
|
class: "user-level-avatar-badge"
|
|
15932
16088
|
};
|
|
15933
|
-
const _hoisted_2$
|
|
15934
|
-
const _hoisted_3$
|
|
15935
|
-
const _hoisted_4$
|
|
15936
|
-
const _hoisted_5$
|
|
15937
|
-
const _hoisted_6$
|
|
15938
|
-
const _hoisted_7$
|
|
15939
|
-
const _hoisted_8$
|
|
16089
|
+
const _hoisted_2$s = { class: "user-level__row" };
|
|
16090
|
+
const _hoisted_3$r = ["src"];
|
|
16091
|
+
const _hoisted_4$l = { class: "level-name" };
|
|
16092
|
+
const _hoisted_5$g = { class: "level-icon" };
|
|
16093
|
+
const _hoisted_6$f = ["src"];
|
|
16094
|
+
const _hoisted_7$c = { class: "custom-btn" };
|
|
16095
|
+
const _hoisted_8$a = { class: "user-level__btn-text" };
|
|
15940
16096
|
const maxLevel = 3;
|
|
15941
|
-
const _sfc_main$
|
|
16097
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
15942
16098
|
...{ name: "UserLevel" },
|
|
15943
16099
|
__name: "UserLevel",
|
|
15944
16100
|
props: ["accountInfo"],
|
|
@@ -15989,44 +16145,47 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
15989
16145
|
class: normalizeClass(["user-level", { [unref(ThemeType).BLACK]: unref(currentTheme) === unref(ThemeType).BLACK }]),
|
|
15990
16146
|
onClick: handleUpgrade
|
|
15991
16147
|
}, [
|
|
15992
|
-
__props.accountInfo.need_tips ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
15993
|
-
createElementVNode("div", _hoisted_2$
|
|
16148
|
+
__props.accountInfo.need_tips ? (openBlock(), createElementBlock("div", _hoisted_1$z)) : createCommentVNode("", true),
|
|
16149
|
+
createElementVNode("div", _hoisted_2$s, [
|
|
15994
16150
|
createElementVNode("img", {
|
|
15995
16151
|
class: "level-avatar",
|
|
15996
16152
|
src: levelInfo.value.avatar,
|
|
15997
16153
|
alt: ""
|
|
15998
|
-
}, null, 8, _hoisted_3$
|
|
15999
|
-
createElementVNode("div", _hoisted_4$
|
|
16154
|
+
}, null, 8, _hoisted_3$r),
|
|
16155
|
+
createElementVNode("div", _hoisted_4$l, [
|
|
16000
16156
|
createElementVNode("div", null, toDisplayString$1(levelInfo.value.name), 1),
|
|
16001
|
-
createElementVNode("div", _hoisted_5$
|
|
16157
|
+
createElementVNode("div", _hoisted_5$g, [
|
|
16002
16158
|
createElementVNode("img", {
|
|
16003
16159
|
src: levelInfo.value.level,
|
|
16004
16160
|
alt: ""
|
|
16005
|
-
}, null, 8, _hoisted_6$
|
|
16161
|
+
}, null, 8, _hoisted_6$f)
|
|
16006
16162
|
])
|
|
16007
16163
|
])
|
|
16008
16164
|
]),
|
|
16009
|
-
createElementVNode("div", _hoisted_7$
|
|
16010
|
-
createElementVNode("div", _hoisted_8$
|
|
16165
|
+
createElementVNode("div", _hoisted_7$c, [
|
|
16166
|
+
createElementVNode("div", _hoisted_8$a, toDisplayString$1(unref(t2)("gitCodeLayout.userSetting.tips.getPoints")), 1)
|
|
16011
16167
|
])
|
|
16012
16168
|
], 2);
|
|
16013
16169
|
};
|
|
16014
16170
|
}
|
|
16015
16171
|
});
|
|
16016
|
-
const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16017
|
-
const _hoisted_1$
|
|
16018
|
-
const _hoisted_2$
|
|
16019
|
-
|
|
16020
|
-
|
|
16021
|
-
|
|
16172
|
+
const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
16173
|
+
const _hoisted_1$y = { class: "g-account-switch-menu" };
|
|
16174
|
+
const _hoisted_2$r = {
|
|
16175
|
+
key: 0,
|
|
16176
|
+
class: "g-account-switch-title"
|
|
16177
|
+
};
|
|
16178
|
+
const _hoisted_3$q = ["disabled", "onClick"];
|
|
16179
|
+
const _hoisted_4$k = ["title"];
|
|
16180
|
+
const _hoisted_5$f = {
|
|
16022
16181
|
key: 0,
|
|
16023
16182
|
class: "g-account-switch-status"
|
|
16024
16183
|
};
|
|
16025
|
-
const _hoisted_6$
|
|
16026
|
-
const _hoisted_7$
|
|
16027
|
-
const _hoisted_8$
|
|
16028
|
-
const _hoisted_9$
|
|
16029
|
-
const _sfc_main$
|
|
16184
|
+
const _hoisted_6$e = ["disabled", "aria-label", "title", "onClick"];
|
|
16185
|
+
const _hoisted_7$b = { class: "g-account-switch-actions" };
|
|
16186
|
+
const _hoisted_8$9 = ["disabled"];
|
|
16187
|
+
const _hoisted_9$9 = ["disabled"];
|
|
16188
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
16030
16189
|
__name: "AccountSessionList",
|
|
16031
16190
|
props: {
|
|
16032
16191
|
items: { default: () => [] },
|
|
@@ -16042,8 +16201,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
16042
16201
|
const otherAccounts = computed(() => props.items.filter((item) => item.ref !== props.activeRef && !item.active));
|
|
16043
16202
|
const canAdd = computed(() => props.items.length < props.max);
|
|
16044
16203
|
return (_ctx, _cache) => {
|
|
16045
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
16046
|
-
|
|
16204
|
+
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
16205
|
+
otherAccounts.value.length ? (openBlock(), createElementBlock("div", _hoisted_2$r, toDisplayString$1(unref(t2)("gitCodeLayout.header.accountSwitchTitle")), 1)) : createCommentVNode("", true),
|
|
16047
16206
|
(openBlock(true), createElementBlock(Fragment, null, renderList(otherAccounts.value, (item) => {
|
|
16048
16207
|
return openBlock(), createElementBlock("div", {
|
|
16049
16208
|
key: item.ref,
|
|
@@ -16055,7 +16214,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
16055
16214
|
disabled: __props.busy,
|
|
16056
16215
|
onClick: ($event) => item.status === "need_reauth" ? emit("reauthorize", item.ref) : emit("switch", item.ref)
|
|
16057
16216
|
}, [
|
|
16058
|
-
createVNode(_sfc_main$
|
|
16217
|
+
createVNode(_sfc_main$R, {
|
|
16059
16218
|
name: item.nickname || item.username,
|
|
16060
16219
|
src: item.avatarUrl || "",
|
|
16061
16220
|
width: 28,
|
|
@@ -16064,9 +16223,9 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
16064
16223
|
createElementVNode("span", {
|
|
16065
16224
|
class: "g-account-switch-name",
|
|
16066
16225
|
title: item.username
|
|
16067
|
-
}, toDisplayString$1(item.username), 9, _hoisted_4$
|
|
16068
|
-
item.status === "need_reauth" ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
16069
|
-
], 8, _hoisted_3$
|
|
16226
|
+
}, toDisplayString$1(item.username), 9, _hoisted_4$k),
|
|
16227
|
+
item.status === "need_reauth" ? (openBlock(), createElementBlock("span", _hoisted_5$f, toDisplayString$1(unref(t2)("gitCodeLayout.header.accountNeedReauth")), 1)) : createCommentVNode("", true)
|
|
16228
|
+
], 8, _hoisted_3$q),
|
|
16070
16229
|
createElementVNode("button", {
|
|
16071
16230
|
class: "g-account-switch-remove",
|
|
16072
16231
|
type: "button",
|
|
@@ -16074,10 +16233,10 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
16074
16233
|
"aria-label": `${unref(t2)("gitCodeLayout.header.accountRemove")} ${item.username}`,
|
|
16075
16234
|
title: unref(t2)("gitCodeLayout.header.accountRemove"),
|
|
16076
16235
|
onClick: ($event) => emit("remove", item.ref)
|
|
16077
|
-
}, "×", 8, _hoisted_6$
|
|
16236
|
+
}, "×", 8, _hoisted_6$e)
|
|
16078
16237
|
]);
|
|
16079
16238
|
}), 128)),
|
|
16080
|
-
createElementVNode("div", _hoisted_7$
|
|
16239
|
+
createElementVNode("div", _hoisted_7$b, [
|
|
16081
16240
|
canAdd.value ? (openBlock(), createElementBlock("button", {
|
|
16082
16241
|
key: 0,
|
|
16083
16242
|
type: "button",
|
|
@@ -16101,8 +16260,9 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
16101
16260
|
})
|
|
16102
16261
|
], -1)),
|
|
16103
16262
|
createTextVNode(toDisplayString$1(unref(t2)("gitCodeLayout.header.accountAdd")), 1)
|
|
16104
|
-
], 8, _hoisted_8$
|
|
16105
|
-
|
|
16263
|
+
], 8, _hoisted_8$9)) : createCommentVNode("", true),
|
|
16264
|
+
otherAccounts.value.length ? (openBlock(), createElementBlock("button", {
|
|
16265
|
+
key: 1,
|
|
16106
16266
|
type: "button",
|
|
16107
16267
|
class: "g-account-switch-action",
|
|
16108
16268
|
disabled: __props.busy,
|
|
@@ -16124,26 +16284,26 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
16124
16284
|
})
|
|
16125
16285
|
], -1)),
|
|
16126
16286
|
createTextVNode(" " + toDisplayString$1(unref(t2)("gitCodeLayout.header.logout")), 1)
|
|
16127
|
-
], 8, _hoisted_9$
|
|
16287
|
+
], 8, _hoisted_9$9)) : createCommentVNode("", true)
|
|
16128
16288
|
])
|
|
16129
16289
|
]);
|
|
16130
16290
|
};
|
|
16131
16291
|
}
|
|
16132
16292
|
});
|
|
16133
|
-
const AccountSessionList = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16134
|
-
const _hoisted_1$
|
|
16135
|
-
const _hoisted_2$
|
|
16136
|
-
const _hoisted_3$
|
|
16137
|
-
const _hoisted_4$
|
|
16138
|
-
const _hoisted_5$
|
|
16139
|
-
const _hoisted_6$
|
|
16140
|
-
const _hoisted_7$
|
|
16141
|
-
const _hoisted_8$
|
|
16142
|
-
const _hoisted_9$
|
|
16293
|
+
const AccountSessionList = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
16294
|
+
const _hoisted_1$x = { class: "g-user-drawer-account-heading" };
|
|
16295
|
+
const _hoisted_2$q = { class: "g-user-drawer-info-list" };
|
|
16296
|
+
const _hoisted_3$p = { class: "g-user-drawer-info-list__name-wrap" };
|
|
16297
|
+
const _hoisted_4$j = ["title"];
|
|
16298
|
+
const _hoisted_5$e = ["title"];
|
|
16299
|
+
const _hoisted_6$d = ["onKeydown"];
|
|
16300
|
+
const _hoisted_7$a = ["aria-label", "aria-expanded", "disabled"];
|
|
16301
|
+
const _hoisted_8$8 = ["aria-label"];
|
|
16302
|
+
const _hoisted_9$8 = {
|
|
16143
16303
|
key: 0,
|
|
16144
16304
|
class: "g-user-drawer-lang-row"
|
|
16145
16305
|
};
|
|
16146
|
-
const _sfc_main$
|
|
16306
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
16147
16307
|
__name: "UserAvatarMenu",
|
|
16148
16308
|
props: {
|
|
16149
16309
|
isChatBot: { type: Boolean },
|
|
@@ -16297,7 +16457,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
16297
16457
|
});
|
|
16298
16458
|
const avatarLangBlock = {
|
|
16299
16459
|
id: "avatar-lang",
|
|
16300
|
-
component: markRaw(_sfc_main$
|
|
16460
|
+
component: markRaw(_sfc_main$F),
|
|
16301
16461
|
avatarLangRow: true
|
|
16302
16462
|
};
|
|
16303
16463
|
const shouldShowEnterpriseLang = computed(
|
|
@@ -16406,7 +16566,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
16406
16566
|
ref_key: "menuContainerRef",
|
|
16407
16567
|
ref: menuContainerRef
|
|
16408
16568
|
}, [
|
|
16409
|
-
createElementVNode("div", _hoisted_1$
|
|
16569
|
+
createElementVNode("div", _hoisted_1$x, [
|
|
16410
16570
|
createVNode(GLink, {
|
|
16411
16571
|
class: "g-user-drawer-info",
|
|
16412
16572
|
href: `${unref(layoutConfig2).VITE_HOST}/${__props.accountInfo.username}`,
|
|
@@ -16414,22 +16574,22 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
16414
16574
|
target: __props.isChatBot ? "_blank" : ""
|
|
16415
16575
|
}, {
|
|
16416
16576
|
default: withCtx(() => [
|
|
16417
|
-
createVNode(_sfc_main$
|
|
16577
|
+
createVNode(_sfc_main$R, {
|
|
16418
16578
|
name: __props.accountInfo.nickname || "",
|
|
16419
16579
|
src: __props.accountInfo.avatar || "",
|
|
16420
16580
|
width: 52,
|
|
16421
16581
|
height: 52
|
|
16422
16582
|
}, null, 8, ["name", "src"]),
|
|
16423
|
-
createElementVNode("div", _hoisted_2$
|
|
16424
|
-
createElementVNode("div", _hoisted_3$
|
|
16583
|
+
createElementVNode("div", _hoisted_2$q, [
|
|
16584
|
+
createElementVNode("div", _hoisted_3$p, [
|
|
16425
16585
|
createElementVNode("p", {
|
|
16426
16586
|
class: "g-user-drawer-info-list-name ellipsis",
|
|
16427
16587
|
title: __props.accountInfo.nickname
|
|
16428
|
-
}, toDisplayString$1(__props.accountInfo.nickname), 9, _hoisted_4$
|
|
16588
|
+
}, toDisplayString$1(__props.accountInfo.nickname), 9, _hoisted_4$j),
|
|
16429
16589
|
createElementVNode("p", {
|
|
16430
16590
|
class: "g-user-drawer-info-list-id ellipsis",
|
|
16431
16591
|
title: __props.accountInfo.username
|
|
16432
|
-
}, "@" + toDisplayString$1(__props.accountInfo.username), 9, _hoisted_5$
|
|
16592
|
+
}, "@" + toDisplayString$1(__props.accountInfo.username), 9, _hoisted_5$e)
|
|
16433
16593
|
]),
|
|
16434
16594
|
!__props.accountSessionSupported ? (openBlock(), createBlock(GIcon, {
|
|
16435
16595
|
key: 0,
|
|
@@ -16474,7 +16634,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
16474
16634
|
"stroke-linejoin": "round"
|
|
16475
16635
|
})
|
|
16476
16636
|
], -1)
|
|
16477
|
-
])], 8, _hoisted_7$
|
|
16637
|
+
])], 8, _hoisted_7$a),
|
|
16478
16638
|
accountMenuOpen.value ? (openBlock(), createElementBlock("div", {
|
|
16479
16639
|
key: 0,
|
|
16480
16640
|
id: accountMenuId,
|
|
@@ -16499,8 +16659,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
16499
16659
|
handleLogout();
|
|
16500
16660
|
})
|
|
16501
16661
|
}, null, 8, ["items", "active-ref", "max", "busy"])
|
|
16502
|
-
], 8, _hoisted_8$
|
|
16503
|
-
], 40, _hoisted_6$
|
|
16662
|
+
], 8, _hoisted_8$8)) : createCommentVNode("", true)
|
|
16663
|
+
], 40, _hoisted_6$d)) : createCommentVNode("", true)
|
|
16504
16664
|
]),
|
|
16505
16665
|
!__props.inAIHub ? (openBlock(), createBlock(UserLevel, {
|
|
16506
16666
|
key: 0,
|
|
@@ -16512,7 +16672,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
16512
16672
|
key: index2
|
|
16513
16673
|
}, [
|
|
16514
16674
|
block.component ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
16515
|
-
block.avatarLangRow ? (openBlock(), createElementBlock("div", _hoisted_9$
|
|
16675
|
+
block.avatarLangRow ? (openBlock(), createElementBlock("div", _hoisted_9$8, [
|
|
16516
16676
|
(openBlock(), createBlock(resolveDynamicComponent(block.component), {
|
|
16517
16677
|
key: block.id
|
|
16518
16678
|
}))
|
|
@@ -16544,20 +16704,20 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
16544
16704
|
};
|
|
16545
16705
|
}
|
|
16546
16706
|
});
|
|
16547
|
-
const UserAvatarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16548
|
-
const _hoisted_1$
|
|
16549
|
-
const _hoisted_2$
|
|
16707
|
+
const UserAvatarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
16708
|
+
const _hoisted_1$w = { class: "g-user-avatar flex-center" };
|
|
16709
|
+
const _hoisted_2$p = {
|
|
16550
16710
|
key: 0,
|
|
16551
16711
|
class: "g-user-avatar__badge"
|
|
16552
16712
|
};
|
|
16553
|
-
const _hoisted_3$
|
|
16554
|
-
const _hoisted_4$
|
|
16713
|
+
const _hoisted_3$o = { class: "g-user-avatar flex-center" };
|
|
16714
|
+
const _hoisted_4$i = {
|
|
16555
16715
|
key: 0,
|
|
16556
16716
|
class: "g-user-avatar__badge"
|
|
16557
16717
|
};
|
|
16558
|
-
const _hoisted_5$
|
|
16559
|
-
const _hoisted_6$
|
|
16560
|
-
const _sfc_main$
|
|
16718
|
+
const _hoisted_5$d = { class: "g-user-drawer" };
|
|
16719
|
+
const _hoisted_6$c = { class: "user-avatar__drawer-header" };
|
|
16720
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
16561
16721
|
...{
|
|
16562
16722
|
name: "UserAvatar"
|
|
16563
16723
|
},
|
|
@@ -16719,12 +16879,12 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
16719
16879
|
key: 0,
|
|
16720
16880
|
onClick: _cache[0] || (_cache[0] = ($event) => drawerVisible.value = true)
|
|
16721
16881
|
}, [
|
|
16722
|
-
createElementVNode("div", _hoisted_1$
|
|
16723
|
-
createVNode(_sfc_main$
|
|
16882
|
+
createElementVNode("div", _hoisted_1$w, [
|
|
16883
|
+
createVNode(_sfc_main$R, {
|
|
16724
16884
|
name: accountInfo.value.nickname,
|
|
16725
16885
|
src: unref(transformUrl)(accountInfo.value.avatar)
|
|
16726
16886
|
}, null, 8, ["name", "src"]),
|
|
16727
|
-
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
16887
|
+
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, [..._cache[4] || (_cache[4] = [
|
|
16728
16888
|
createElementVNode("div", null, null, -1)
|
|
16729
16889
|
])])) : createCommentVNode("", true)
|
|
16730
16890
|
])
|
|
@@ -16737,7 +16897,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
16737
16897
|
onToggle: handleToggle
|
|
16738
16898
|
}, {
|
|
16739
16899
|
menu: withCtx(() => [
|
|
16740
|
-
createElementVNode("div", _hoisted_5$
|
|
16900
|
+
createElementVNode("div", _hoisted_5$d, [
|
|
16741
16901
|
createVNode(UserAvatarMenu, mergeProps({
|
|
16742
16902
|
"menu-visible": avatarMenuVisible.value,
|
|
16743
16903
|
independence: __props.independence,
|
|
@@ -16751,12 +16911,12 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
16751
16911
|
])
|
|
16752
16912
|
]),
|
|
16753
16913
|
default: withCtx(() => [
|
|
16754
|
-
createElementVNode("div", _hoisted_3$
|
|
16755
|
-
createVNode(_sfc_main$
|
|
16914
|
+
createElementVNode("div", _hoisted_3$o, [
|
|
16915
|
+
createVNode(_sfc_main$R, {
|
|
16756
16916
|
name: accountInfo.value.nickname,
|
|
16757
16917
|
src: unref(transformUrl)(accountInfo.value.avatar)
|
|
16758
16918
|
}, null, 8, ["name", "src"]),
|
|
16759
|
-
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
16919
|
+
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, [..._cache[5] || (_cache[5] = [
|
|
16760
16920
|
createElementVNode("div", null, null, -1)
|
|
16761
16921
|
])])) : createCommentVNode("", true)
|
|
16762
16922
|
])
|
|
@@ -16772,7 +16932,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
16772
16932
|
}, {
|
|
16773
16933
|
default: withCtx(() => [
|
|
16774
16934
|
createElementVNode("div", null, [
|
|
16775
|
-
createElementVNode("div", _hoisted_6$
|
|
16935
|
+
createElementVNode("div", _hoisted_6$c, [
|
|
16776
16936
|
createVNode(unref(Button), {
|
|
16777
16937
|
class: "draw-side-bar-close",
|
|
16778
16938
|
icon: "close",
|
|
@@ -16801,7 +16961,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
16801
16961
|
};
|
|
16802
16962
|
}
|
|
16803
16963
|
});
|
|
16804
|
-
const UserAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16964
|
+
const UserAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
16805
16965
|
var EVENT_NAME = /* @__PURE__ */ ((EVENT_NAME2) => {
|
|
16806
16966
|
EVENT_NAME2["START_SEARCH"] = "开始搜索";
|
|
16807
16967
|
EVENT_NAME2["SEARCH"] = "搜索";
|
|
@@ -16876,8 +17036,8 @@ const sameSearchHistory = (left, right) => {
|
|
|
16876
17036
|
const leftEntry = normalizeSearchHistoryEntry(left);
|
|
16877
17037
|
return leftEntry.q === right.q && leftEntry.type === right.type && leftEntry.scope === right.scope && leftEntry.repo === right.repo && leftEntry.org === right.org && leftEntry.user === right.user && leftEntry.namespace === right.namespace;
|
|
16878
17038
|
};
|
|
16879
|
-
const upsertSearchHistory = (
|
|
16880
|
-
const next =
|
|
17039
|
+
const upsertSearchHistory = (current2, data, limit = 10) => {
|
|
17040
|
+
const next = current2.filter((item) => Boolean(normalizeSearchHistoryEntry(item).q));
|
|
16881
17041
|
const normalizedData = { ...data, type: data.type || "repo" };
|
|
16882
17042
|
const existingIndex = next.findIndex((item) => sameSearchHistory(item, normalizedData));
|
|
16883
17043
|
if (existingIndex === -1) {
|
|
@@ -16916,6 +17076,372 @@ const setlocalVistHistory = (data, localType) => {
|
|
|
16916
17076
|
localStorage$2.setItem(storeName, JSON.stringify(cur));
|
|
16917
17077
|
return cur;
|
|
16918
17078
|
};
|
|
17079
|
+
const SHORTCUT_STORAGE_KEY = "atomgit.character-shortcuts";
|
|
17080
|
+
const SHORTCUT_SEQUENCE_TIMEOUT = 1500;
|
|
17081
|
+
const SHORTCUT_GROUPS = ["site", "repo", "code", "editor", "list", "detail"];
|
|
17082
|
+
const BUILTIN_SHORTCUTS = [
|
|
17083
|
+
{ id: "site.search", keys: "/", group: "site", labelKey: "shortcut.site.search" },
|
|
17084
|
+
{ id: "site.searchLetter", keys: "s", group: "site", labelKey: "shortcut.site.search" },
|
|
17085
|
+
{ id: "site.help", keys: "?", group: "site", labelKey: "shortcut.site.help" },
|
|
17086
|
+
{ id: "site.notifications", keys: "g n", group: "site", labelKey: "shortcut.site.notifications" },
|
|
17087
|
+
{ id: "site.commands", keys: "mod+k", group: "site", labelKey: "shortcut.site.commands" },
|
|
17088
|
+
{ id: "site.escape", keys: "escape", group: "site", labelKey: "shortcut.dialog.close" }
|
|
17089
|
+
];
|
|
17090
|
+
const isMacPlatform = () => typeof navigator !== "undefined" && /Mac|iPhone|iPad/.test(navigator.platform);
|
|
17091
|
+
const parseShortcut = (keys, isMac = isMacPlatform()) => {
|
|
17092
|
+
if (!keys.trim()) {
|
|
17093
|
+
throw new Error("Shortcut keys must not be empty");
|
|
17094
|
+
}
|
|
17095
|
+
return keys.trim().split(/\s+/).map((token) => {
|
|
17096
|
+
const parts = token.toLowerCase().split("+");
|
|
17097
|
+
let key = parts.pop();
|
|
17098
|
+
if (key === "esc") {
|
|
17099
|
+
key = "escape";
|
|
17100
|
+
}
|
|
17101
|
+
if (key === "space") {
|
|
17102
|
+
key = " ";
|
|
17103
|
+
}
|
|
17104
|
+
const modifiers = new Set(parts);
|
|
17105
|
+
if (!key || parts.some((part) => !["ctrl", "meta", "alt", "shift", "mod"].includes(part)) || modifiers.size !== parts.length) {
|
|
17106
|
+
throw new Error(`Invalid shortcut: ${keys}`);
|
|
17107
|
+
}
|
|
17108
|
+
if (key.length !== 1 && !["escape", "enter", "tab", "backspace", "delete", "arrowup", "arrowdown", "arrowleft", "arrowright", "home", "end", "pageup", "pagedown"].includes(key)) {
|
|
17109
|
+
throw new Error(`Unsupported shortcut key: ${key}`);
|
|
17110
|
+
}
|
|
17111
|
+
return {
|
|
17112
|
+
key,
|
|
17113
|
+
ctrl: modifiers.has("ctrl") || modifiers.has("mod") && !isMac,
|
|
17114
|
+
meta: modifiers.has("meta") || modifiers.has("mod") && isMac,
|
|
17115
|
+
alt: modifiers.has("alt"),
|
|
17116
|
+
shift: modifiers.has("shift")
|
|
17117
|
+
};
|
|
17118
|
+
});
|
|
17119
|
+
};
|
|
17120
|
+
const matchesStroke = (event, stroke) => {
|
|
17121
|
+
const key = event.key.length === 1 && !stroke.shift ? event.key : event.key.toLowerCase();
|
|
17122
|
+
return key === stroke.key && event.ctrlKey === stroke.ctrl && event.metaKey === stroke.meta && event.altKey === stroke.alt && (stroke.key === "?" || event.shiftKey === stroke.shift);
|
|
17123
|
+
};
|
|
17124
|
+
const isCharacterShortcut = (strokes) => strokes.every((stroke) => stroke.key.length === 1 && !stroke.ctrl && !stroke.meta && !stroke.alt);
|
|
17125
|
+
const normalizeShortcut = (keys, isMac) => parseShortcut(keys, isMac).map((stroke) => JSON.stringify({ ...stroke, shift: stroke.key === "?" ? false : stroke.shift }));
|
|
17126
|
+
const config = shallowRef({ actions: [] });
|
|
17127
|
+
const shortcutConfig = readonly(config);
|
|
17128
|
+
const shortcutRevision = shallowRef(0);
|
|
17129
|
+
function setShortcutConfig(next) {
|
|
17130
|
+
if (typeof window === "undefined") {
|
|
17131
|
+
return;
|
|
17132
|
+
}
|
|
17133
|
+
const actions = [...BUILTIN_SHORTCUTS, ...next.actions];
|
|
17134
|
+
try {
|
|
17135
|
+
for (const isMac of [false, true]) {
|
|
17136
|
+
const normalized = actions.map((action) => normalizeShortcut(action.keys, isMac));
|
|
17137
|
+
for (let i = 0; i < actions.length; i++) {
|
|
17138
|
+
for (let j = i + 1; j < actions.length; j++) {
|
|
17139
|
+
const a = normalized[i];
|
|
17140
|
+
const b = normalized[j];
|
|
17141
|
+
const prefix = a.slice(0, Math.min(a.length, b.length)).every((key, index2) => key === b[index2]);
|
|
17142
|
+
if (actions[i].id === actions[j].id || prefix) {
|
|
17143
|
+
throw new Error(`Shortcut conflict: ${actions[i].id} (${actions[i].keys}) / ${actions[j].id} (${actions[j].keys})`);
|
|
17144
|
+
}
|
|
17145
|
+
}
|
|
17146
|
+
}
|
|
17147
|
+
}
|
|
17148
|
+
} catch (error) {
|
|
17149
|
+
console.error(error);
|
|
17150
|
+
return;
|
|
17151
|
+
}
|
|
17152
|
+
config.value = { actions: next.actions.map((action) => ({ ...action })), isBlocked: next.isBlocked };
|
|
17153
|
+
shortcutRevision.value++;
|
|
17154
|
+
}
|
|
17155
|
+
function useShortcutConfig() {
|
|
17156
|
+
return readonly({
|
|
17157
|
+
get actions() {
|
|
17158
|
+
return config.value.actions;
|
|
17159
|
+
},
|
|
17160
|
+
get isBlocked() {
|
|
17161
|
+
return config.value.isBlocked;
|
|
17162
|
+
}
|
|
17163
|
+
});
|
|
17164
|
+
}
|
|
17165
|
+
const isEditableTarget = (target) => {
|
|
17166
|
+
if (!target || typeof Element === "undefined" || !(target instanceof Element)) {
|
|
17167
|
+
return false;
|
|
17168
|
+
}
|
|
17169
|
+
return Boolean(target.closest("input, textarea, select, .CodeMirror-focused, .cm-editor.cm-focused")) || target.isContentEditable === true || Boolean(target.closest('[contenteditable=""], [contenteditable="true"], [contenteditable="plaintext-only"]'));
|
|
17170
|
+
};
|
|
17171
|
+
const isComposingEvent = (event) => event.isComposing || event.keyCode === 229;
|
|
17172
|
+
const shouldIgnoreShortcut = (event) => event.defaultPrevented || event.repeat || isComposingEvent(event) || event.composedPath().some(isEditableTarget) || isEditableTarget(event.target) || typeof document !== "undefined" && isEditableTarget(document.activeElement);
|
|
17173
|
+
let current = null;
|
|
17174
|
+
const enabled = ref(true);
|
|
17175
|
+
const characterShortcutsEnabled = readonly(enabled);
|
|
17176
|
+
const parsePreference = (raw) => {
|
|
17177
|
+
try {
|
|
17178
|
+
const record = JSON.parse(raw || "null");
|
|
17179
|
+
if (record && (record.value === "on" || record.value === "off") && Number.isSafeInteger(record.updatedAt) && record.updatedAt >= 0) {
|
|
17180
|
+
return { value: record.value, updatedAt: record.updatedAt };
|
|
17181
|
+
}
|
|
17182
|
+
} catch {
|
|
17183
|
+
}
|
|
17184
|
+
return null;
|
|
17185
|
+
};
|
|
17186
|
+
const newestPreference = (records) => records.reduce((latest, record) => {
|
|
17187
|
+
if (!record) {
|
|
17188
|
+
return latest;
|
|
17189
|
+
}
|
|
17190
|
+
if (!latest || record.updatedAt > latest.updatedAt || record.updatedAt === latest.updatedAt && record.value === "off") {
|
|
17191
|
+
return record;
|
|
17192
|
+
}
|
|
17193
|
+
return latest;
|
|
17194
|
+
}, null);
|
|
17195
|
+
function refreshShortcutPreference() {
|
|
17196
|
+
if (typeof window === "undefined") {
|
|
17197
|
+
return;
|
|
17198
|
+
}
|
|
17199
|
+
let cookie = null;
|
|
17200
|
+
try {
|
|
17201
|
+
cookie = parsePreference(api.get(SHORTCUT_STORAGE_KEY));
|
|
17202
|
+
} catch {
|
|
17203
|
+
}
|
|
17204
|
+
current = newestPreference([current, cookie, parsePreference(localStorage$2.getItem(SHORTCUT_STORAGE_KEY))]);
|
|
17205
|
+
enabled.value = (current == null ? void 0 : current.value) !== "off";
|
|
17206
|
+
}
|
|
17207
|
+
function setCharacterShortcutsEnabled(value) {
|
|
17208
|
+
if (typeof window === "undefined") {
|
|
17209
|
+
return;
|
|
17210
|
+
}
|
|
17211
|
+
refreshShortcutPreference();
|
|
17212
|
+
current = { value: value ? "on" : "off", updatedAt: Math.max(Date.now(), ((current == null ? void 0 : current.updatedAt) ?? -1) + 1) };
|
|
17213
|
+
enabled.value = value;
|
|
17214
|
+
const serialized = JSON.stringify(current);
|
|
17215
|
+
localStorage$2.setItem(SHORTCUT_STORAGE_KEY, serialized);
|
|
17216
|
+
try {
|
|
17217
|
+
const domain = COOKIE_DOMAIN().replace(/^\./, "");
|
|
17218
|
+
const hostname = window.location.hostname;
|
|
17219
|
+
const shared = hostname === domain || hostname.endsWith(`.${domain}`);
|
|
17220
|
+
api.set(SHORTCUT_STORAGE_KEY, serialized, {
|
|
17221
|
+
expires: 365,
|
|
17222
|
+
path: "/",
|
|
17223
|
+
sameSite: "Lax",
|
|
17224
|
+
secure: window.location.protocol === "https:",
|
|
17225
|
+
...shared ? { domain: `.${domain}` } : {}
|
|
17226
|
+
});
|
|
17227
|
+
if (api.get(SHORTCUT_STORAGE_KEY) !== serialized) {
|
|
17228
|
+
return;
|
|
17229
|
+
}
|
|
17230
|
+
} catch {
|
|
17231
|
+
}
|
|
17232
|
+
}
|
|
17233
|
+
const providers = shallowRef([]);
|
|
17234
|
+
const searches = shallowRef([]);
|
|
17235
|
+
const notices = shallowRef([]);
|
|
17236
|
+
const blockers = shallowRef([]);
|
|
17237
|
+
const isBlocked = () => {
|
|
17238
|
+
var _a, _b;
|
|
17239
|
+
return Boolean(((_b = (_a = shortcutConfig.value).isBlocked) == null ? void 0 : _b.call(_a)) || blockers.value.some((blocked) => blocked()));
|
|
17240
|
+
};
|
|
17241
|
+
const dialog = ref(null);
|
|
17242
|
+
const shortcutDialog = readonly(dialog);
|
|
17243
|
+
const hasShortcutProvider = computed(() => providers.value.length > 0);
|
|
17244
|
+
let returnFocus = null;
|
|
17245
|
+
let pending = [];
|
|
17246
|
+
let timer;
|
|
17247
|
+
let detach;
|
|
17248
|
+
function resetShortcutSequence() {
|
|
17249
|
+
pending = [];
|
|
17250
|
+
clearTimeout(timer);
|
|
17251
|
+
timer = void 0;
|
|
17252
|
+
}
|
|
17253
|
+
function openShortcutHelp() {
|
|
17254
|
+
openDialog("help");
|
|
17255
|
+
}
|
|
17256
|
+
function openShortcutCommands() {
|
|
17257
|
+
openDialog("commands");
|
|
17258
|
+
}
|
|
17259
|
+
function openDialog(mode) {
|
|
17260
|
+
if (!hasShortcutProvider.value || typeof document === "undefined" || isBlocked()) {
|
|
17261
|
+
return;
|
|
17262
|
+
}
|
|
17263
|
+
if (!dialog.value) {
|
|
17264
|
+
returnFocus = document.activeElement;
|
|
17265
|
+
}
|
|
17266
|
+
resetShortcutSequence();
|
|
17267
|
+
dialog.value = mode;
|
|
17268
|
+
}
|
|
17269
|
+
function closeShortcutDialog(restoreFocus = true) {
|
|
17270
|
+
dialog.value = null;
|
|
17271
|
+
const previous = returnFocus;
|
|
17272
|
+
returnFocus = null;
|
|
17273
|
+
if (restoreFocus && typeof document !== "undefined") {
|
|
17274
|
+
void nextTick(() => {
|
|
17275
|
+
const target = (previous == null ? void 0 : previous.isConnected) ? previous : document.querySelector("[data-shortcut-help]");
|
|
17276
|
+
target == null ? void 0 : target.focus();
|
|
17277
|
+
});
|
|
17278
|
+
}
|
|
17279
|
+
}
|
|
17280
|
+
const activeTarget = (targets) => [...targets].reverse().find((target) => target.when());
|
|
17281
|
+
const builtinActions = computed(() => BUILTIN_SHORTCUTS.filter((item) => item.id !== "site.escape").map((item) => {
|
|
17282
|
+
if (item.id === "site.search" || item.id === "site.searchLetter") {
|
|
17283
|
+
return { ...item, when: () => Boolean(activeTarget(searches.value)), run: () => {
|
|
17284
|
+
var _a;
|
|
17285
|
+
return (_a = activeTarget(searches.value)) == null ? void 0 : _a.run();
|
|
17286
|
+
} };
|
|
17287
|
+
}
|
|
17288
|
+
if (item.id === "site.notifications") {
|
|
17289
|
+
return { ...item, when: () => Boolean(activeTarget(notices.value)), run: () => {
|
|
17290
|
+
var _a;
|
|
17291
|
+
return (_a = activeTarget(notices.value)) == null ? void 0 : _a.run();
|
|
17292
|
+
} };
|
|
17293
|
+
}
|
|
17294
|
+
return { ...item, run: item.id === "site.help" ? openShortcutHelp : openShortcutCommands };
|
|
17295
|
+
}));
|
|
17296
|
+
const getAvailableShortcutActions = () => {
|
|
17297
|
+
if (!hasShortcutProvider.value) {
|
|
17298
|
+
return builtinActions.value.filter((action) => action.id === "site.search" && (!action.when || action.when()));
|
|
17299
|
+
}
|
|
17300
|
+
return [...builtinActions.value, ...shortcutConfig.value.actions].filter((action) => !action.when || action.when());
|
|
17301
|
+
};
|
|
17302
|
+
const selectionRevision = ref(0);
|
|
17303
|
+
const onSelectionChange = () => {
|
|
17304
|
+
selectionRevision.value += 1;
|
|
17305
|
+
};
|
|
17306
|
+
const availableShortcutActions = computed(() => {
|
|
17307
|
+
void selectionRevision.value;
|
|
17308
|
+
return getAvailableShortcutActions();
|
|
17309
|
+
});
|
|
17310
|
+
function executeShortcutAction(action) {
|
|
17311
|
+
if (isBlocked() || !getAvailableShortcutActions().some((item) => item.id === action.id) || action.when && !action.when()) {
|
|
17312
|
+
return;
|
|
17313
|
+
}
|
|
17314
|
+
closeShortcutDialog(false);
|
|
17315
|
+
void nextTick(() => {
|
|
17316
|
+
const current2 = getAvailableShortcutActions().find((item) => item.id === action.id);
|
|
17317
|
+
if (!isBlocked() && current2) {
|
|
17318
|
+
current2.run();
|
|
17319
|
+
}
|
|
17320
|
+
});
|
|
17321
|
+
}
|
|
17322
|
+
function onKeydown(event) {
|
|
17323
|
+
if (shouldIgnoreShortcut(event)) {
|
|
17324
|
+
resetShortcutSequence();
|
|
17325
|
+
return;
|
|
17326
|
+
}
|
|
17327
|
+
if (dialog.value || isBlocked()) {
|
|
17328
|
+
resetShortcutSequence();
|
|
17329
|
+
return;
|
|
17330
|
+
}
|
|
17331
|
+
if (event.key === "Escape") {
|
|
17332
|
+
if (pending.length) {
|
|
17333
|
+
event.preventDefault();
|
|
17334
|
+
resetShortcutSequence();
|
|
17335
|
+
}
|
|
17336
|
+
return;
|
|
17337
|
+
}
|
|
17338
|
+
const candidates = getAvailableShortcutActions().map((action) => ({ action, strokes: parseShortcut(action.keys) })).filter(({ strokes }) => characterShortcutsEnabled.value || !isCharacterShortcut(strokes));
|
|
17339
|
+
const matches = candidates.filter(({ strokes }) => strokes.length > pending.length && pending.every((key, index2) => key === JSON.stringify(strokes[index2])) && matchesStroke(event, strokes[pending.length]));
|
|
17340
|
+
const complete = matches.find(({ strokes }) => strokes.length === pending.length + 1);
|
|
17341
|
+
if (complete) {
|
|
17342
|
+
resetShortcutSequence();
|
|
17343
|
+
if (!complete.action.when || complete.action.when()) {
|
|
17344
|
+
event.preventDefault();
|
|
17345
|
+
complete.action.run();
|
|
17346
|
+
}
|
|
17347
|
+
} else if (matches.length) {
|
|
17348
|
+
pending.push(JSON.stringify(matches[0].strokes[pending.length]));
|
|
17349
|
+
clearTimeout(timer);
|
|
17350
|
+
timer = setTimeout(resetShortcutSequence, SHORTCUT_SEQUENCE_TIMEOUT);
|
|
17351
|
+
} else {
|
|
17352
|
+
resetShortcutSequence();
|
|
17353
|
+
}
|
|
17354
|
+
}
|
|
17355
|
+
function syncListener() {
|
|
17356
|
+
if (typeof document === "undefined") {
|
|
17357
|
+
return;
|
|
17358
|
+
}
|
|
17359
|
+
const needed = providers.value.length + searches.value.length > 0;
|
|
17360
|
+
if (!needed) {
|
|
17361
|
+
detach == null ? void 0 : detach();
|
|
17362
|
+
detach = void 0;
|
|
17363
|
+
resetShortcutSequence();
|
|
17364
|
+
return;
|
|
17365
|
+
}
|
|
17366
|
+
if (detach) {
|
|
17367
|
+
return;
|
|
17368
|
+
}
|
|
17369
|
+
refreshShortcutPreference();
|
|
17370
|
+
const onFocus = (event) => {
|
|
17371
|
+
if (isEditableTarget(event.target)) {
|
|
17372
|
+
resetShortcutSequence();
|
|
17373
|
+
}
|
|
17374
|
+
};
|
|
17375
|
+
document.addEventListener("keydown", onKeydown);
|
|
17376
|
+
document.addEventListener("focusin", onFocus);
|
|
17377
|
+
document.addEventListener("compositionstart", resetShortcutSequence);
|
|
17378
|
+
document.addEventListener("selectionchange", onSelectionChange);
|
|
17379
|
+
window.addEventListener("blur", resetShortcutSequence);
|
|
17380
|
+
window.addEventListener("focus", refreshShortcutPreference);
|
|
17381
|
+
const scope = effectScope(true);
|
|
17382
|
+
scope.run(() => {
|
|
17383
|
+
watch(shortcutRevision, resetShortcutSequence, { flush: "sync" });
|
|
17384
|
+
watch(characterShortcutsEnabled, resetShortcutSequence, { flush: "sync" });
|
|
17385
|
+
watch(isBlocked, resetShortcutSequence, { flush: "sync" });
|
|
17386
|
+
});
|
|
17387
|
+
detach = () => {
|
|
17388
|
+
document.removeEventListener("keydown", onKeydown);
|
|
17389
|
+
document.removeEventListener("focusin", onFocus);
|
|
17390
|
+
document.removeEventListener("compositionstart", resetShortcutSequence);
|
|
17391
|
+
document.removeEventListener("selectionchange", onSelectionChange);
|
|
17392
|
+
window.removeEventListener("blur", resetShortcutSequence);
|
|
17393
|
+
window.removeEventListener("focus", refreshShortcutPreference);
|
|
17394
|
+
scope.stop();
|
|
17395
|
+
};
|
|
17396
|
+
}
|
|
17397
|
+
function registerShortcutProvider() {
|
|
17398
|
+
const id = Symbol("shortcut-provider");
|
|
17399
|
+
providers.value = [...providers.value, id];
|
|
17400
|
+
syncListener();
|
|
17401
|
+
return {
|
|
17402
|
+
isOwner: computed(() => providers.value[0] === id),
|
|
17403
|
+
dispose: () => {
|
|
17404
|
+
providers.value = providers.value.filter((item) => item !== id);
|
|
17405
|
+
if (!providers.value.length) {
|
|
17406
|
+
closeShortcutDialog();
|
|
17407
|
+
resetShortcutSequence();
|
|
17408
|
+
}
|
|
17409
|
+
syncListener();
|
|
17410
|
+
}
|
|
17411
|
+
};
|
|
17412
|
+
}
|
|
17413
|
+
function registerTarget(target, collection) {
|
|
17414
|
+
collection.value = [...collection.value, target];
|
|
17415
|
+
syncListener();
|
|
17416
|
+
return () => {
|
|
17417
|
+
collection.value = collection.value.filter((item) => item !== target);
|
|
17418
|
+
syncListener();
|
|
17419
|
+
};
|
|
17420
|
+
}
|
|
17421
|
+
const registerShortcutSearch = (target) => registerTarget(target, searches);
|
|
17422
|
+
const registerShortcutNotice = (target) => registerTarget(target, notices);
|
|
17423
|
+
function useShortcutSearch(target) {
|
|
17424
|
+
let dispose;
|
|
17425
|
+
onMounted(() => {
|
|
17426
|
+
dispose = registerShortcutSearch(target);
|
|
17427
|
+
});
|
|
17428
|
+
onUnmounted(() => dispose == null ? void 0 : dispose());
|
|
17429
|
+
}
|
|
17430
|
+
function useShortcutNotice(target) {
|
|
17431
|
+
let dispose;
|
|
17432
|
+
onMounted(() => {
|
|
17433
|
+
dispose = registerShortcutNotice(target);
|
|
17434
|
+
});
|
|
17435
|
+
onUnmounted(() => dispose == null ? void 0 : dispose());
|
|
17436
|
+
}
|
|
17437
|
+
function useShortcutBlocker(blocked) {
|
|
17438
|
+
onMounted(() => {
|
|
17439
|
+
blockers.value = [...blockers.value, blocked];
|
|
17440
|
+
});
|
|
17441
|
+
onUnmounted(() => {
|
|
17442
|
+
blockers.value = blockers.value.filter((item) => item !== blocked);
|
|
17443
|
+
});
|
|
17444
|
+
}
|
|
16919
17445
|
const KEY_ALIAS = {
|
|
16920
17446
|
repo: "repo",
|
|
16921
17447
|
user: "user",
|
|
@@ -17065,16 +17591,16 @@ const buildSearchInput = (params = {}) => {
|
|
|
17065
17591
|
if (input.q) parts.push(text2(input.q));
|
|
17066
17592
|
return parts.join(" ");
|
|
17067
17593
|
};
|
|
17068
|
-
const _hoisted_1$
|
|
17594
|
+
const _hoisted_1$v = {
|
|
17069
17595
|
key: 0,
|
|
17070
17596
|
class: "devui-input-slot__prefix"
|
|
17071
17597
|
};
|
|
17072
|
-
const _hoisted_2$
|
|
17073
|
-
const _hoisted_3$
|
|
17598
|
+
const _hoisted_2$o = ["value"];
|
|
17599
|
+
const _hoisted_3$n = {
|
|
17074
17600
|
key: 1,
|
|
17075
17601
|
class: "devui-input-slot__suffix"
|
|
17076
17602
|
};
|
|
17077
|
-
const _sfc_main$
|
|
17603
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
17078
17604
|
...{
|
|
17079
17605
|
name: "HighlightInput",
|
|
17080
17606
|
inheritAttrs: false
|
|
@@ -17228,6 +17754,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
17228
17754
|
}
|
|
17229
17755
|
});
|
|
17230
17756
|
__expose({
|
|
17757
|
+
isFocusable: () => Boolean(nativeRef.value && !nativeRef.value.disabled && nativeRef.value.getClientRects().length),
|
|
17231
17758
|
focus: () => {
|
|
17232
17759
|
var _a;
|
|
17233
17760
|
return (_a = nativeRef.value) == null ? void 0 : _a.focus();
|
|
@@ -17242,7 +17769,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
17242
17769
|
class: normalizeClass(["devui-input__wrapper devui-input--glow-style hl-search-input", [rootClass.value, { "devui-input--focus": isFocused.value }]]),
|
|
17243
17770
|
style: normalizeStyle(rootStyle.value)
|
|
17244
17771
|
}, [
|
|
17245
|
-
_ctx.$slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
17772
|
+
_ctx.$slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
17246
17773
|
renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
|
|
17247
17774
|
])) : createCommentVNode("", true),
|
|
17248
17775
|
createElementVNode("div", {
|
|
@@ -17268,16 +17795,16 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
17268
17795
|
ref: nativeRef,
|
|
17269
17796
|
class: "devui-input__inner hl-search-input__native",
|
|
17270
17797
|
value: __props.modelValue
|
|
17271
|
-
}, inputAttrs.value, { onInput }), null, 16, _hoisted_2$
|
|
17798
|
+
}, inputAttrs.value, { onInput }), null, 16, _hoisted_2$o)
|
|
17272
17799
|
], 512),
|
|
17273
|
-
_ctx.$slots.suffix ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
17800
|
+
_ctx.$slots.suffix ? (openBlock(), createElementBlock("div", _hoisted_3$n, [
|
|
17274
17801
|
renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
|
|
17275
17802
|
])) : createCommentVNode("", true)
|
|
17276
17803
|
], 6);
|
|
17277
17804
|
};
|
|
17278
17805
|
}
|
|
17279
17806
|
});
|
|
17280
|
-
const HighlightInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17807
|
+
const HighlightInput = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
17281
17808
|
const SEARCH_ROUTE_PATHS = /* @__PURE__ */ new Set(["/search", "/search/"]);
|
|
17282
17809
|
const SEARCH_SCOPE_QUERY_KEYS = ["scope", "repo", "org", "user", "namespace"];
|
|
17283
17810
|
const firstNonEmpty = (...values) => {
|
|
@@ -17332,18 +17859,18 @@ const normalizeSearchHotWordUrl = (original, defaultGlobalSearchType, sourceModu
|
|
|
17332
17859
|
}
|
|
17333
17860
|
return serializeHotWordUrl(url, original);
|
|
17334
17861
|
};
|
|
17335
|
-
const _hoisted_1$
|
|
17336
|
-
const _hoisted_2$
|
|
17337
|
-
const _hoisted_3$
|
|
17338
|
-
const _hoisted_4$
|
|
17339
|
-
const _hoisted_5$
|
|
17340
|
-
const _hoisted_6$
|
|
17862
|
+
const _hoisted_1$u = { class: "g-header-search-prefix" };
|
|
17863
|
+
const _hoisted_2$n = ["innerHTML"];
|
|
17864
|
+
const _hoisted_3$m = { class: "g-header-search-suffix-splitline" };
|
|
17865
|
+
const _hoisted_4$h = { class: "g-header-search-suffix-suffixIcon" };
|
|
17866
|
+
const _hoisted_5$c = { class: "history-list" };
|
|
17867
|
+
const _hoisted_6$b = {
|
|
17341
17868
|
key: 1,
|
|
17342
17869
|
class: "aireposearch aireposearch--flex"
|
|
17343
17870
|
};
|
|
17344
17871
|
const RECOMMEND_RESERVE = 60;
|
|
17345
17872
|
const HISTORY_DISPLAY_COUNT = 3;
|
|
17346
|
-
const _sfc_main$
|
|
17873
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
17347
17874
|
__name: "index",
|
|
17348
17875
|
props: {
|
|
17349
17876
|
inAIHub: { type: Boolean },
|
|
@@ -17354,12 +17881,12 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
17354
17881
|
setup(__props) {
|
|
17355
17882
|
const layoutConfig2 = useLayoutConfig();
|
|
17356
17883
|
const { t: $t } = i18n.global;
|
|
17357
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
17358
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
17359
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
17360
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
17361
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
17362
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
17884
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-B4IZWWec.js"));
|
|
17885
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-Jno2-hDh.js"));
|
|
17886
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-CefMwW5N.js"));
|
|
17887
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-BWFi4Y0g.js"));
|
|
17888
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-BI_Gt1qi.js"));
|
|
17889
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-eDW-NOQQ.js"));
|
|
17363
17890
|
const props = __props;
|
|
17364
17891
|
const repoInfo = inject("repoInfo", computed(() => void 0));
|
|
17365
17892
|
const orgInfo = inject("orgInfo", computed(() => void 0));
|
|
@@ -17797,19 +18324,12 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
17797
18324
|
const resetIndex = () => {
|
|
17798
18325
|
activeIndex.value = -1;
|
|
17799
18326
|
};
|
|
17800
|
-
|
|
17801
|
-
|
|
17802
|
-
|
|
17803
|
-
|
|
17804
|
-
|
|
17805
|
-
|
|
17806
|
-
return;
|
|
17807
|
-
}
|
|
17808
|
-
}
|
|
17809
|
-
if (e.key === "/" && !isFocus.value) {
|
|
17810
|
-
onInputClick();
|
|
17811
|
-
e.preventDefault();
|
|
17812
|
-
}
|
|
18327
|
+
useShortcutSearch({
|
|
18328
|
+
when: () => {
|
|
18329
|
+
var _a;
|
|
18330
|
+
return Boolean((_a = inputRef.value) == null ? void 0 : _a.isFocusable()) && !isFocus.value;
|
|
18331
|
+
},
|
|
18332
|
+
run: onInputClick
|
|
17813
18333
|
});
|
|
17814
18334
|
const getSearchHot = async () => {
|
|
17815
18335
|
try {
|
|
@@ -17891,7 +18411,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
17891
18411
|
}, {
|
|
17892
18412
|
menu: withCtx(() => [
|
|
17893
18413
|
createElementVNode("div", null, [
|
|
17894
|
-
withDirectives(createElementVNode("div", _hoisted_5$
|
|
18414
|
+
withDirectives(createElementVNode("div", _hoisted_5$c, [
|
|
17895
18415
|
createVNode(unref(SearchScopeList), {
|
|
17896
18416
|
searchScopeList: searchScopeList.value,
|
|
17897
18417
|
onScopeSearch
|
|
@@ -17959,7 +18479,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
17959
18479
|
ref: inputRef
|
|
17960
18480
|
}, {
|
|
17961
18481
|
prefix: withCtx(() => [
|
|
17962
|
-
createElementVNode("div", _hoisted_1$
|
|
18482
|
+
createElementVNode("div", _hoisted_1$u, [
|
|
17963
18483
|
createVNode(GIcon, {
|
|
17964
18484
|
name: "gt-search",
|
|
17965
18485
|
class: "g-header-search-icon",
|
|
@@ -17983,7 +18503,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
17983
18503
|
class: "quick-tips",
|
|
17984
18504
|
innerHTML: unref(quickTips),
|
|
17985
18505
|
onClick: onInputClick
|
|
17986
|
-
}, null, 8, _hoisted_2$
|
|
18506
|
+
}, null, 8, _hoisted_2$n)), [
|
|
17987
18507
|
[vShow, placeholderVisible.value]
|
|
17988
18508
|
])
|
|
17989
18509
|
]),
|
|
@@ -18000,10 +18520,10 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
18000
18520
|
}, null, 512), [
|
|
18001
18521
|
[vShow, searchStr.value]
|
|
18002
18522
|
]),
|
|
18003
|
-
withDirectives(createElementVNode("span", _hoisted_3$
|
|
18523
|
+
withDirectives(createElementVNode("span", _hoisted_3$m, "|", 512), [
|
|
18004
18524
|
[vShow, searchStr.value]
|
|
18005
18525
|
]),
|
|
18006
|
-
createElementVNode("div", _hoisted_4$
|
|
18526
|
+
createElementVNode("div", _hoisted_4$h, [
|
|
18007
18527
|
createVNode(GIcon, {
|
|
18008
18528
|
name: "search",
|
|
18009
18529
|
class: "g-header-search-icon",
|
|
@@ -18021,7 +18541,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
18021
18541
|
_: 3
|
|
18022
18542
|
}, 8, ["overlay-class", "visible"])
|
|
18023
18543
|
], 2)) : createCommentVNode("", true),
|
|
18024
|
-
__props.inAIHub ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
18544
|
+
__props.inAIHub ? (openBlock(), createElementBlock("div", _hoisted_6$b, [
|
|
18025
18545
|
createVNode(unref(Input), {
|
|
18026
18546
|
placeholder: unref($t)("gitCodeLayout.home.searchPlaceholder"),
|
|
18027
18547
|
onKeydown: withKeys(searchResult, ["enter"]),
|
|
@@ -18041,16 +18561,16 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
18041
18561
|
};
|
|
18042
18562
|
}
|
|
18043
18563
|
});
|
|
18044
|
-
const Search = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18045
|
-
const _hoisted_1$
|
|
18046
|
-
const _hoisted_2$
|
|
18047
|
-
const _hoisted_3$
|
|
18048
|
-
const _hoisted_4$
|
|
18049
|
-
const _hoisted_5$
|
|
18050
|
-
const _hoisted_6$
|
|
18051
|
-
const _hoisted_7$
|
|
18564
|
+
const Search = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
18565
|
+
const _hoisted_1$t = { class: "announce-mobile-top" };
|
|
18566
|
+
const _hoisted_2$m = { class: "announce-mobile-bottom" };
|
|
18567
|
+
const _hoisted_3$l = ["href"];
|
|
18568
|
+
const _hoisted_4$g = { class: "announce-content" };
|
|
18569
|
+
const _hoisted_5$b = { class: "announce-content-inner" };
|
|
18570
|
+
const _hoisted_6$a = ["href"];
|
|
18571
|
+
const _hoisted_7$9 = { class: "announce-handle-wrapper" };
|
|
18052
18572
|
const ANNOUNCE_STATUS_KEY = "site_announcement_status";
|
|
18053
|
-
const _sfc_main$
|
|
18573
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
18054
18574
|
...{ name: "SiteAnnouncement" },
|
|
18055
18575
|
__name: "SiteAnnouncement",
|
|
18056
18576
|
setup(__props) {
|
|
@@ -18098,7 +18618,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
18098
18618
|
class: normalizeClass(["announce-wrapper", { mobile: unref(isMobile) }])
|
|
18099
18619
|
}, [
|
|
18100
18620
|
unref(isMobile) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
18101
|
-
createElementVNode("div", _hoisted_1$
|
|
18621
|
+
createElementVNode("div", _hoisted_1$t, [
|
|
18102
18622
|
createElementVNode("div", null, [
|
|
18103
18623
|
createVNode(GIcon, {
|
|
18104
18624
|
name: "gt-plane-warningCircular-blue",
|
|
@@ -18108,19 +18628,19 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
18108
18628
|
]),
|
|
18109
18629
|
createElementVNode("div", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.content")), 1)
|
|
18110
18630
|
]),
|
|
18111
|
-
createElementVNode("div", _hoisted_2$
|
|
18631
|
+
createElementVNode("div", _hoisted_2$m, [
|
|
18112
18632
|
createElementVNode("a", {
|
|
18113
18633
|
class: "announce-detail",
|
|
18114
18634
|
href: migrationAnnounceUrl.value
|
|
18115
|
-
}, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.viewDetail_mobile")), 9, _hoisted_3$
|
|
18635
|
+
}, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.viewDetail_mobile")), 9, _hoisted_3$l),
|
|
18116
18636
|
createElementVNode("span", {
|
|
18117
18637
|
class: "announce-handle",
|
|
18118
18638
|
onClick: _cache[0] || (_cache[0] = ($event) => handleClose())
|
|
18119
18639
|
}, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.close")), 1)
|
|
18120
18640
|
])
|
|
18121
18641
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
18122
|
-
createElementVNode("div", _hoisted_4$
|
|
18123
|
-
createElementVNode("div", _hoisted_5$
|
|
18642
|
+
createElementVNode("div", _hoisted_4$g, [
|
|
18643
|
+
createElementVNode("div", _hoisted_5$b, [
|
|
18124
18644
|
createVNode(GIcon, {
|
|
18125
18645
|
name: "gt-plane-warningCircular-blue",
|
|
18126
18646
|
size: "16",
|
|
@@ -18130,10 +18650,10 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
18130
18650
|
createElementVNode("a", {
|
|
18131
18651
|
class: "announce-detail",
|
|
18132
18652
|
href: migrationAnnounceUrl.value
|
|
18133
|
-
}, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.viewDetail")), 9, _hoisted_6$
|
|
18653
|
+
}, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.viewDetail")), 9, _hoisted_6$a)
|
|
18134
18654
|
])
|
|
18135
18655
|
]),
|
|
18136
|
-
createElementVNode("div", _hoisted_7$
|
|
18656
|
+
createElementVNode("div", _hoisted_7$9, [
|
|
18137
18657
|
createElementVNode("span", {
|
|
18138
18658
|
class: "announce-handle",
|
|
18139
18659
|
onClick: _cache[1] || (_cache[1] = ($event) => handleClose())
|
|
@@ -18144,7 +18664,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
18144
18664
|
};
|
|
18145
18665
|
}
|
|
18146
18666
|
});
|
|
18147
|
-
const SiteAnnouncement = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18667
|
+
const SiteAnnouncement = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
18148
18668
|
const DEFAULT_LOGIN_REDIRECT_STORAGE_KEY = "ag_login_pending_redirect";
|
|
18149
18669
|
function useLoginRedirect(options) {
|
|
18150
18670
|
const {
|
|
@@ -18274,10 +18794,10 @@ function resolveHomeHeaderActionUrls(items, fallbacks, transformers) {
|
|
|
18274
18794
|
workspace: resolve("workspace")
|
|
18275
18795
|
};
|
|
18276
18796
|
}
|
|
18277
|
-
const _hoisted_1$
|
|
18278
|
-
const _hoisted_2$
|
|
18279
|
-
const _hoisted_3$
|
|
18280
|
-
const _hoisted_4$
|
|
18797
|
+
const _hoisted_1$s = { class: "home-header-actions" };
|
|
18798
|
+
const _hoisted_2$l = { class: "home-header-actions__menu" };
|
|
18799
|
+
const _hoisted_3$k = ["href"];
|
|
18800
|
+
const _hoisted_4$f = {
|
|
18281
18801
|
key: 0,
|
|
18282
18802
|
class: "home-header-actions__menu-icon",
|
|
18283
18803
|
width: "16",
|
|
@@ -18287,10 +18807,10 @@ const _hoisted_4$e = {
|
|
|
18287
18807
|
xmlns: "http://www.w3.org/2000/svg",
|
|
18288
18808
|
"aria-hidden": "true"
|
|
18289
18809
|
};
|
|
18290
|
-
const _hoisted_5$
|
|
18291
|
-
const _hoisted_6$
|
|
18292
|
-
const _hoisted_7$
|
|
18293
|
-
const _sfc_main$
|
|
18810
|
+
const _hoisted_5$a = { class: "home-header-actions__menu-text" };
|
|
18811
|
+
const _hoisted_6$9 = ["href"];
|
|
18812
|
+
const _hoisted_7$8 = { class: "home-header-actions__workspace-text" };
|
|
18813
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
18294
18814
|
...{
|
|
18295
18815
|
name: "HomeHeaderActions"
|
|
18296
18816
|
},
|
|
@@ -18425,7 +18945,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
18425
18945
|
}
|
|
18426
18946
|
});
|
|
18427
18947
|
return (_ctx, _cache) => {
|
|
18428
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
18948
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
18429
18949
|
createVNode(unref(Dropdown), {
|
|
18430
18950
|
position: ["bottom-start"],
|
|
18431
18951
|
"destroy-on-hide": false,
|
|
@@ -18435,7 +18955,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
18435
18955
|
onToggle: handleDiscoverToggle
|
|
18436
18956
|
}, {
|
|
18437
18957
|
menu: withCtx(() => [
|
|
18438
|
-
createElementVNode("div", _hoisted_2$
|
|
18958
|
+
createElementVNode("div", _hoisted_2$l, [
|
|
18439
18959
|
(openBlock(true), createElementBlock(Fragment, null, renderList(discoverLinks.value, (item) => {
|
|
18440
18960
|
return openBlock(), createElementBlock("a", {
|
|
18441
18961
|
key: item.label,
|
|
@@ -18443,7 +18963,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
18443
18963
|
class: "home-header-actions__menu-item",
|
|
18444
18964
|
onClick: _cache[0] || (_cache[0] = ($event) => isDiscoverOpen.value = false)
|
|
18445
18965
|
}, [
|
|
18446
|
-
item.customIcon === "growthCenter" ? (openBlock(), createElementBlock("svg", _hoisted_4$
|
|
18966
|
+
item.customIcon === "growthCenter" ? (openBlock(), createElementBlock("svg", _hoisted_4$f, [..._cache[1] || (_cache[1] = [
|
|
18447
18967
|
createElementVNode("path", {
|
|
18448
18968
|
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",
|
|
18449
18969
|
fill: "#BCBCD0"
|
|
@@ -18459,8 +18979,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
18459
18979
|
color: "currentColor",
|
|
18460
18980
|
class: "home-header-actions__menu-icon"
|
|
18461
18981
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
18462
|
-
createElementVNode("span", _hoisted_5$
|
|
18463
|
-
], 8, _hoisted_3$
|
|
18982
|
+
createElementVNode("span", _hoisted_5$a, toDisplayString$1(item.label), 1)
|
|
18983
|
+
], 8, _hoisted_3$k);
|
|
18464
18984
|
}), 128))
|
|
18465
18985
|
])
|
|
18466
18986
|
]),
|
|
@@ -18491,29 +19011,29 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
18491
19011
|
size: "16px",
|
|
18492
19012
|
color: "currentColor"
|
|
18493
19013
|
}),
|
|
18494
|
-
createElementVNode("span", _hoisted_7$
|
|
18495
|
-
], 8, _hoisted_6$
|
|
19014
|
+
createElementVNode("span", _hoisted_7$8, toDisplayString$1(unref(t2)("gitCodeLayout.header.myWorkbench")), 1)
|
|
19015
|
+
], 8, _hoisted_6$9)
|
|
18496
19016
|
]);
|
|
18497
19017
|
};
|
|
18498
19018
|
}
|
|
18499
19019
|
});
|
|
18500
|
-
const HomeHeaderActions = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18501
|
-
const _hoisted_1$
|
|
18502
|
-
const _hoisted_2$
|
|
18503
|
-
const _hoisted_3$
|
|
19020
|
+
const HomeHeaderActions = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
19021
|
+
const _hoisted_1$r = ["aria-label", "aria-expanded"];
|
|
19022
|
+
const _hoisted_2$k = { class: "atomcode-launcher-text" };
|
|
19023
|
+
const _hoisted_3$j = {
|
|
18504
19024
|
id: "atomCodeLaunchMenu",
|
|
18505
19025
|
class: "atomcode-launch-menu",
|
|
18506
19026
|
role: "menu"
|
|
18507
19027
|
};
|
|
18508
|
-
const _hoisted_4$
|
|
18509
|
-
const _hoisted_5$
|
|
18510
|
-
const _hoisted_6$
|
|
19028
|
+
const _hoisted_4$e = { class: "atomcode-launch-item__title-row" };
|
|
19029
|
+
const _hoisted_5$9 = { class: "atomcode-launch-item__title" };
|
|
19030
|
+
const _hoisted_6$8 = {
|
|
18511
19031
|
id: "atomCodeContextHint",
|
|
18512
19032
|
class: "atomcode-launch-item__desc"
|
|
18513
19033
|
};
|
|
18514
|
-
const _hoisted_7$
|
|
18515
|
-
const _hoisted_8$
|
|
18516
|
-
const _hoisted_9$
|
|
19034
|
+
const _hoisted_7$7 = ["href"];
|
|
19035
|
+
const _hoisted_8$7 = { class: "atomcode-launch-item__title-row" };
|
|
19036
|
+
const _hoisted_9$7 = { class: "atomcode-launch-item__title" };
|
|
18517
19037
|
const _hoisted_10$6 = ["href"];
|
|
18518
19038
|
const _hoisted_11$5 = { class: "atomcode-launch-item__title-row" };
|
|
18519
19039
|
const _hoisted_12$5 = {
|
|
@@ -18527,7 +19047,7 @@ const _hoisted_12$5 = {
|
|
|
18527
19047
|
"aria-hidden": "true"
|
|
18528
19048
|
};
|
|
18529
19049
|
const _hoisted_13$3 = { class: "atomcode-launch-item__title" };
|
|
18530
|
-
const _sfc_main$
|
|
19050
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
18531
19051
|
...{
|
|
18532
19052
|
name: "AtomCodeLauncher"
|
|
18533
19053
|
},
|
|
@@ -18611,7 +19131,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
18611
19131
|
onToggle: handleToggle
|
|
18612
19132
|
}, {
|
|
18613
19133
|
menu: withCtx(() => [
|
|
18614
|
-
createElementVNode("div", _hoisted_3$
|
|
19134
|
+
createElementVNode("div", _hoisted_3$j, [
|
|
18615
19135
|
createElementVNode("button", {
|
|
18616
19136
|
type: "button",
|
|
18617
19137
|
class: "atomcode-launch-item atomcode-launch-item--with-desc",
|
|
@@ -18619,16 +19139,16 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
18619
19139
|
"data-atomcode-open": "",
|
|
18620
19140
|
onClick: openAtomCode
|
|
18621
19141
|
}, [
|
|
18622
|
-
createElementVNode("div", _hoisted_4$
|
|
19142
|
+
createElementVNode("div", _hoisted_4$e, [
|
|
18623
19143
|
createVNode(GIcon, {
|
|
18624
19144
|
name: "gt-plane-share",
|
|
18625
19145
|
size: "16px",
|
|
18626
19146
|
color: "currentColor",
|
|
18627
19147
|
class: "atomcode-item-icon"
|
|
18628
19148
|
}),
|
|
18629
|
-
createElementVNode("span", _hoisted_5$
|
|
19149
|
+
createElementVNode("span", _hoisted_5$9, toDisplayString$1(unref(t2)("gitCodeLayout.atomCode.openInWorkbench")), 1)
|
|
18630
19150
|
]),
|
|
18631
|
-
createElementVNode("div", _hoisted_6$
|
|
19151
|
+
createElementVNode("div", _hoisted_6$8, toDisplayString$1(contextHintText.value), 1)
|
|
18632
19152
|
]),
|
|
18633
19153
|
createElementVNode("a", {
|
|
18634
19154
|
href: resolvedOfficialUrl.value,
|
|
@@ -18638,16 +19158,16 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
18638
19158
|
role: "menuitem",
|
|
18639
19159
|
"data-atomcode-official": ""
|
|
18640
19160
|
}, [
|
|
18641
|
-
createElementVNode("div", _hoisted_8$
|
|
19161
|
+
createElementVNode("div", _hoisted_8$7, [
|
|
18642
19162
|
createVNode(GIcon, {
|
|
18643
19163
|
name: "gt-plane-consulting",
|
|
18644
19164
|
size: "16px",
|
|
18645
19165
|
color: "currentColor",
|
|
18646
19166
|
class: "atomcode-item-icon"
|
|
18647
19167
|
}),
|
|
18648
|
-
createElementVNode("span", _hoisted_9$
|
|
19168
|
+
createElementVNode("span", _hoisted_9$7, toDisplayString$1(unref(t2)("gitCodeLayout.atomCode.atomCodeOfficial")), 1)
|
|
18649
19169
|
])
|
|
18650
|
-
], 8, _hoisted_7$
|
|
19170
|
+
], 8, _hoisted_7$7),
|
|
18651
19171
|
createElementVNode("a", {
|
|
18652
19172
|
href: resolvedCliDownloadUrl.value,
|
|
18653
19173
|
target: "_blank",
|
|
@@ -18695,7 +19215,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
18695
19215
|
size: "16px",
|
|
18696
19216
|
class: "atomcode-icon atomcode-icon--dark"
|
|
18697
19217
|
}),
|
|
18698
|
-
createElementVNode("span", _hoisted_2$
|
|
19218
|
+
createElementVNode("span", _hoisted_2$k, toDisplayString$1(unref(t2)("gitCodeLayout.atomCode.title")), 1),
|
|
18699
19219
|
createVNode(GIcon, {
|
|
18700
19220
|
name: "gt-line-down",
|
|
18701
19221
|
size: "16px",
|
|
@@ -18703,7 +19223,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
18703
19223
|
rotate: isOpen.value ? "180deg" : "0deg",
|
|
18704
19224
|
class: "atomcode-launcher-chevron"
|
|
18705
19225
|
}, null, 8, ["rotate"])
|
|
18706
|
-
], 8, _hoisted_1$
|
|
19226
|
+
], 8, _hoisted_1$r)
|
|
18707
19227
|
]),
|
|
18708
19228
|
_: 1
|
|
18709
19229
|
})
|
|
@@ -18711,7 +19231,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
18711
19231
|
};
|
|
18712
19232
|
}
|
|
18713
19233
|
});
|
|
18714
|
-
const AtomCodeLauncher = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19234
|
+
const AtomCodeLauncher = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
18715
19235
|
const vElementExposure = {
|
|
18716
19236
|
mounted(el, binding) {
|
|
18717
19237
|
const observer = new IntersectionObserver(function(entries2, observer2) {
|
|
@@ -18728,7 +19248,7 @@ const vElementExposure = {
|
|
|
18728
19248
|
beforeUnmount() {
|
|
18729
19249
|
}
|
|
18730
19250
|
};
|
|
18731
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
19251
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-nJYs9BEu.js"));
|
|
18732
19252
|
function clearNotice() {
|
|
18733
19253
|
if (localStorage$2.getItem("validator_email")) {
|
|
18734
19254
|
localStorage$2.removeItem("validator_email");
|
|
@@ -18755,32 +19275,32 @@ function useNotification() {
|
|
|
18755
19275
|
notice
|
|
18756
19276
|
};
|
|
18757
19277
|
}
|
|
18758
|
-
const _hoisted_1$
|
|
18759
|
-
const _hoisted_2$
|
|
18760
|
-
const _hoisted_3$
|
|
19278
|
+
const _hoisted_1$q = { class: "g-toolbar-left allow-click-stop" };
|
|
19279
|
+
const _hoisted_2$j = { key: 0 };
|
|
19280
|
+
const _hoisted_3$i = {
|
|
18761
19281
|
key: 1,
|
|
18762
19282
|
class: "search-avatar"
|
|
18763
19283
|
};
|
|
18764
|
-
const _hoisted_4$
|
|
19284
|
+
const _hoisted_4$d = {
|
|
18765
19285
|
key: 2,
|
|
18766
19286
|
class: "g-toolbar-right__claim-row"
|
|
18767
19287
|
};
|
|
18768
|
-
const _hoisted_5$
|
|
19288
|
+
const _hoisted_5$8 = {
|
|
18769
19289
|
key: 0,
|
|
18770
19290
|
class: "g-toolbar-right-divider"
|
|
18771
19291
|
};
|
|
18772
|
-
const _hoisted_6$
|
|
19292
|
+
const _hoisted_6$7 = {
|
|
18773
19293
|
key: 0,
|
|
18774
19294
|
class: "g-toolbar-right-divider"
|
|
18775
19295
|
};
|
|
18776
|
-
const _hoisted_7$
|
|
19296
|
+
const _hoisted_7$6 = {
|
|
18777
19297
|
key: 1,
|
|
18778
19298
|
class: "g-header-body"
|
|
18779
19299
|
};
|
|
18780
|
-
const _hoisted_8$
|
|
18781
|
-
const _hoisted_9$
|
|
19300
|
+
const _hoisted_8$6 = { class: "g-header-body-left" };
|
|
19301
|
+
const _hoisted_9$6 = { class: "g-header-body-right" };
|
|
18782
19302
|
const _hoisted_10$5 = { key: 2 };
|
|
18783
|
-
const _sfc_main$
|
|
19303
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
18784
19304
|
...{
|
|
18785
19305
|
name: "GitCodeHeader"
|
|
18786
19306
|
},
|
|
@@ -18837,6 +19357,10 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
18837
19357
|
"cb0d2906": detailBgInfo.value
|
|
18838
19358
|
}));
|
|
18839
19359
|
const layoutConfig2 = useLayoutConfig();
|
|
19360
|
+
useShortcutNotice({
|
|
19361
|
+
when: () => props.isLogin && Boolean(layoutConfig2.VITE_HOST),
|
|
19362
|
+
run: () => window.location.assign(`${transformUrl(layoutConfig2.VITE_HOST)}/notice?message_sate=countNotRead`)
|
|
19363
|
+
});
|
|
18840
19364
|
const route = useRoute();
|
|
18841
19365
|
const router2 = useRouter();
|
|
18842
19366
|
async function handleLogoClick(e) {
|
|
@@ -19249,7 +19773,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
19249
19773
|
class: "g-toolbar allow-click-stop",
|
|
19250
19774
|
onClick: withModifiers(handleToolbarClick, ["stop"])
|
|
19251
19775
|
}, [
|
|
19252
|
-
createElementVNode("div", _hoisted_1$
|
|
19776
|
+
createElementVNode("div", _hoisted_1$q, [
|
|
19253
19777
|
createElementVNode("div", {
|
|
19254
19778
|
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
19255
19779
|
}, ["stop"])),
|
|
@@ -19299,10 +19823,10 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
19299
19823
|
}, 8, ["scene", "isLogin", "errorCode", "orgProps", "repoProps", "userProps"])) : createCommentVNode("", true)
|
|
19300
19824
|
], 2)) : createCommentVNode("", true)
|
|
19301
19825
|
]),
|
|
19302
|
-
_ctx.$slots.headerMiddleRight ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
19826
|
+
_ctx.$slots.headerMiddleRight ? (openBlock(), createElementBlock("div", _hoisted_2$j, [
|
|
19303
19827
|
renderSlot(_ctx.$slots, "headerMiddleRight", {}, void 0, true)
|
|
19304
19828
|
])) : createCommentVNode("", true),
|
|
19305
|
-
!inAIHub.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
19829
|
+
!inAIHub.value ? (openBlock(), createElementBlock("div", _hoisted_3$i, [
|
|
19306
19830
|
isModuleVisible(unref(HeaderDisplayItem).SEARCH_BUTTON) ? renderSlot(_ctx.$slots, "search", {}, () => [
|
|
19307
19831
|
(openBlock(), createBlock(Search, {
|
|
19308
19832
|
inAIHub: inAIHub.value,
|
|
@@ -19345,12 +19869,12 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
19345
19869
|
independence: props.independence
|
|
19346
19870
|
}, null, 8, ["workspace-navigate", "isLogin", "independence"])
|
|
19347
19871
|
], true, 1) : createCommentVNode("", true),
|
|
19348
|
-
isClaimRowVisible.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
19872
|
+
isClaimRowVisible.value ? (openBlock(), createElementBlock("div", _hoisted_4$d, [
|
|
19349
19873
|
createVNode(ClaimPower, { config: claimPowerConfig.value }, null, 8, ["config"]),
|
|
19350
19874
|
isModuleVisible(unref(HeaderDisplayItem).OPERATION_ENTRY) ? (openBlock(), createBlock(OperationEntry, { key: 0 })) : createCommentVNode("", true)
|
|
19351
19875
|
])) : createCommentVNode("", true),
|
|
19352
19876
|
!__props.isLogin ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
19353
|
-
!unref(isMobile) ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
19877
|
+
!unref(isMobile) ? (openBlock(), createElementBlock("div", _hoisted_5$8)) : createCommentVNode("", true),
|
|
19354
19878
|
isModuleVisible(unref(HeaderDisplayItem).LOGIN_AND_AVATAR) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
19355
19879
|
unref(isMobile) ? (openBlock(), createElementBlock("section", {
|
|
19356
19880
|
key: 0,
|
|
@@ -19386,7 +19910,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
19386
19910
|
], 64)) : createCommentVNode("", true)
|
|
19387
19911
|
], 64)) : createCommentVNode("", true)
|
|
19388
19912
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 4 }, [
|
|
19389
|
-
!["sm"].includes(unref(widthType)) ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
19913
|
+
!["sm"].includes(unref(widthType)) ? (openBlock(), createElementBlock("div", _hoisted_6$7)) : createCommentVNode("", true),
|
|
19390
19914
|
!["sm"].includes(unref(widthType)) && isModuleVisible(unref(HeaderDisplayItem).NEW_BUTTON) ? (openBlock(), createBlock(HeaderCreateMenu, {
|
|
19391
19915
|
key: 1,
|
|
19392
19916
|
dropdownVisible: props.openCreateDropdown,
|
|
@@ -19411,12 +19935,12 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
19411
19935
|
])), [
|
|
19412
19936
|
[unref(vElementExposure), { trigger: () => handleToolbarExpo() }]
|
|
19413
19937
|
]),
|
|
19414
|
-
_ctx.$slots.info || _ctx.$slots.menu || _ctx.$slots.bodyHeader ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
19938
|
+
_ctx.$slots.info || _ctx.$slots.menu || _ctx.$slots.bodyHeader ? (openBlock(), createElementBlock("div", _hoisted_7$6, [
|
|
19415
19939
|
renderSlot(_ctx.$slots, "bodyHeader", {}, () => [
|
|
19416
|
-
createElementVNode("div", _hoisted_8$
|
|
19940
|
+
createElementVNode("div", _hoisted_8$6, [
|
|
19417
19941
|
renderSlot(_ctx.$slots, "info", {}, void 0, true)
|
|
19418
19942
|
]),
|
|
19419
|
-
createElementVNode("div", _hoisted_9$
|
|
19943
|
+
createElementVNode("div", _hoisted_9$6, [
|
|
19420
19944
|
renderSlot(_ctx.$slots, "menu", {}, void 0, true)
|
|
19421
19945
|
])
|
|
19422
19946
|
], true)
|
|
@@ -19429,11 +19953,11 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
19429
19953
|
};
|
|
19430
19954
|
}
|
|
19431
19955
|
});
|
|
19432
|
-
const GitCodeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19433
|
-
const _hoisted_1$
|
|
19434
|
-
const _hoisted_2$
|
|
19435
|
-
const _hoisted_3$
|
|
19436
|
-
const _sfc_main$
|
|
19956
|
+
const GitCodeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
19957
|
+
const _hoisted_1$p = { class: "tools-item-wrapper" };
|
|
19958
|
+
const _hoisted_2$i = { class: "tools-item-wrapper-checkbox" };
|
|
19959
|
+
const _hoisted_3$h = ["onClick", "title"];
|
|
19960
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
19437
19961
|
__name: "Theme",
|
|
19438
19962
|
setup(__props) {
|
|
19439
19963
|
const { t: t2 } = i18n.global;
|
|
@@ -19458,9 +19982,9 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
19458
19982
|
setTheme(activeTheme.value);
|
|
19459
19983
|
};
|
|
19460
19984
|
return (_ctx, _cache) => {
|
|
19461
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19985
|
+
return openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
19462
19986
|
createElementVNode("div", null, toDisplayString$1(unref(t2)("gitCodeLayout.common.footerSetting.theme")), 1),
|
|
19463
|
-
createElementVNode("div", _hoisted_2$
|
|
19987
|
+
createElementVNode("div", _hoisted_2$i, [
|
|
19464
19988
|
(openBlock(true), createElementBlock(Fragment, null, renderList(themeList.value, (item) => {
|
|
19465
19989
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
19466
19990
|
key: item.value
|
|
@@ -19475,17 +19999,17 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
19475
19999
|
color: "var(--theme-icon-fill-weak)",
|
|
19476
20000
|
class: "checkbox-item-icon"
|
|
19477
20001
|
}, null, 8, ["name"])
|
|
19478
|
-
], 16, _hoisted_3$
|
|
20002
|
+
], 16, _hoisted_3$h);
|
|
19479
20003
|
}), 128))
|
|
19480
20004
|
])
|
|
19481
20005
|
]);
|
|
19482
20006
|
};
|
|
19483
20007
|
}
|
|
19484
20008
|
});
|
|
19485
|
-
const _hoisted_1$
|
|
19486
|
-
const _hoisted_2$
|
|
19487
|
-
const _hoisted_3$
|
|
19488
|
-
const _sfc_main$
|
|
20009
|
+
const _hoisted_1$o = { class: "aside-footer-tools-item" };
|
|
20010
|
+
const _hoisted_2$h = { class: "aside-footer-tools-item-dropdown-item" };
|
|
20011
|
+
const _hoisted_3$g = { class: "aside-footer-tools-item-dropdown-item" };
|
|
20012
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
19489
20013
|
...{ name: "AsideFooterTools" },
|
|
19490
20014
|
__name: "index",
|
|
19491
20015
|
props: {
|
|
@@ -19502,19 +20026,19 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
19502
20026
|
"overlay-class": "footer-tools-setting-dropdown"
|
|
19503
20027
|
}, {
|
|
19504
20028
|
menu: withCtx(() => [
|
|
19505
|
-
withDirectives(createElementVNode("div", _hoisted_2$
|
|
19506
|
-
createVNode(_sfc_main$
|
|
20029
|
+
withDirectives(createElementVNode("div", _hoisted_2$h, [
|
|
20030
|
+
createVNode(_sfc_main$u)
|
|
19507
20031
|
], 512), [
|
|
19508
20032
|
[vShow, __props.showThemeSetting]
|
|
19509
20033
|
]),
|
|
19510
|
-
withDirectives(createElementVNode("div", _hoisted_3$
|
|
19511
|
-
createVNode(_sfc_main$
|
|
20034
|
+
withDirectives(createElementVNode("div", _hoisted_3$g, [
|
|
20035
|
+
createVNode(_sfc_main$F)
|
|
19512
20036
|
], 512), [
|
|
19513
20037
|
[vShow, __props.showLangSetting]
|
|
19514
20038
|
])
|
|
19515
20039
|
]),
|
|
19516
20040
|
default: withCtx(() => [
|
|
19517
|
-
createElementVNode("div", _hoisted_1$
|
|
20041
|
+
createElementVNode("div", _hoisted_1$o, [
|
|
19518
20042
|
createVNode(GIcon, {
|
|
19519
20043
|
name: "gt-line-setting",
|
|
19520
20044
|
size: "16",
|
|
@@ -19533,8 +20057,8 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
19533
20057
|
};
|
|
19534
20058
|
}
|
|
19535
20059
|
});
|
|
19536
|
-
const AsideFooterTools = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19537
|
-
const _sfc_main$
|
|
20060
|
+
const AsideFooterTools = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
20061
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
19538
20062
|
...{
|
|
19539
20063
|
name: "ScrollActiveContainer",
|
|
19540
20064
|
inheritAttrs: false
|
|
@@ -19742,7 +20266,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
19742
20266
|
};
|
|
19743
20267
|
}
|
|
19744
20268
|
});
|
|
19745
|
-
const ScrollActiveContainer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20269
|
+
const ScrollActiveContainer = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
19746
20270
|
function asideV2Request(request) {
|
|
19747
20271
|
return {
|
|
19748
20272
|
/**
|
|
@@ -19851,29 +20375,29 @@ const getChannelTagType = (item) => {
|
|
|
19851
20375
|
if (item.is_new === true) return "new";
|
|
19852
20376
|
return null;
|
|
19853
20377
|
};
|
|
19854
|
-
const _hoisted_1$
|
|
19855
|
-
const _hoisted_2$
|
|
20378
|
+
const _hoisted_1$n = { class: "home-channel-side-nav" };
|
|
20379
|
+
const _hoisted_2$g = {
|
|
19856
20380
|
key: 0,
|
|
19857
20381
|
class: "home-channel-side-nav__list",
|
|
19858
20382
|
"aria-busy": "true",
|
|
19859
20383
|
"aria-label": "加载中"
|
|
19860
20384
|
};
|
|
19861
|
-
const _hoisted_3$
|
|
20385
|
+
const _hoisted_3$f = {
|
|
19862
20386
|
key: 0,
|
|
19863
20387
|
class: "home-channel-side-nav__group-title home-channel-side-nav__group-title--skeleton"
|
|
19864
20388
|
};
|
|
19865
|
-
const _hoisted_4$
|
|
19866
|
-
const _hoisted_5$
|
|
19867
|
-
const _hoisted_6$
|
|
20389
|
+
const _hoisted_4$c = { class: "home-channel-side-nav__info" };
|
|
20390
|
+
const _hoisted_5$7 = { class: "home-channel-side-nav__label-row" };
|
|
20391
|
+
const _hoisted_6$6 = {
|
|
19868
20392
|
key: 1,
|
|
19869
20393
|
class: "home-channel-side-nav__list"
|
|
19870
20394
|
};
|
|
19871
|
-
const _hoisted_7$
|
|
20395
|
+
const _hoisted_7$5 = {
|
|
19872
20396
|
key: 0,
|
|
19873
20397
|
class: "home-channel-side-nav__group-title"
|
|
19874
20398
|
};
|
|
19875
|
-
const _hoisted_8$
|
|
19876
|
-
const _hoisted_9$
|
|
20399
|
+
const _hoisted_8$5 = ["aria-current", "title", "onClick"];
|
|
20400
|
+
const _hoisted_9$5 = ["src", "alt", "onClick"];
|
|
19877
20401
|
const _hoisted_10$4 = { class: "home-channel-side-nav__info" };
|
|
19878
20402
|
const _hoisted_11$4 = { class: "home-channel-side-nav__label-row" };
|
|
19879
20403
|
const _hoisted_12$4 = { class: "home-channel-side-nav__label" };
|
|
@@ -19964,7 +20488,7 @@ const _hoisted_25$1 = {
|
|
|
19964
20488
|
class: "home-channel-side-nav__footer-tools-container"
|
|
19965
20489
|
};
|
|
19966
20490
|
const _hoisted_26$1 = { class: "home-channel-side-nav__footer-tools-inner" };
|
|
19967
|
-
const _sfc_main$
|
|
20491
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
19968
20492
|
...{ name: "AsideV2Content", inheritAttrs: false },
|
|
19969
20493
|
__name: "asideV2Content",
|
|
19970
20494
|
props: {
|
|
@@ -20177,7 +20701,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
20177
20701
|
return openBlock(), createElementBlock("div", {
|
|
20178
20702
|
class: normalizeClass(["gitcode-aside-v2-content home-channel-navigation", { "is-single-col": props.singleCol }])
|
|
20179
20703
|
}, [
|
|
20180
|
-
createElementVNode("div", _hoisted_1$
|
|
20704
|
+
createElementVNode("div", _hoisted_1$n, [
|
|
20181
20705
|
createVNode(ScrollActiveContainer, {
|
|
20182
20706
|
ref_key: "scrollContainerRef",
|
|
20183
20707
|
ref: scrollContainerRef,
|
|
@@ -20187,12 +20711,12 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
20187
20711
|
"aria-label": "首页频道"
|
|
20188
20712
|
}, {
|
|
20189
20713
|
default: withCtx(() => [
|
|
20190
|
-
loading.value && (!channelsList.value || channelsList.value.length === 0) ? (openBlock(), createElementBlock("ul", _hoisted_2$
|
|
20714
|
+
loading.value && (!channelsList.value || channelsList.value.length === 0) ? (openBlock(), createElementBlock("ul", _hoisted_2$g, [
|
|
20191
20715
|
(openBlock(), createElementBlock(Fragment, null, renderList(skeletonItems, (sk, idx) => {
|
|
20192
20716
|
return openBlock(), createElementBlock(Fragment, {
|
|
20193
20717
|
key: `skeleton-${idx}`
|
|
20194
20718
|
}, [
|
|
20195
|
-
sk.isGroupTitle ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
20719
|
+
sk.isGroupTitle ? (openBlock(), createElementBlock("div", _hoisted_3$f, [
|
|
20196
20720
|
createElementVNode("span", {
|
|
20197
20721
|
class: "home-channel-side-nav__skeleton-block home-channel-side-nav__group-skeleton",
|
|
20198
20722
|
style: normalizeStyle({ width: sk.width })
|
|
@@ -20205,8 +20729,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
20205
20729
|
class: normalizeClass(["home-channel-side-nav__item home-channel-side-nav__item--skeleton", { "has-desc": !!sk.descWidth }])
|
|
20206
20730
|
}, [
|
|
20207
20731
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "home-channel-side-nav__skeleton-block home-channel-side-nav__logo-skeleton" }, null, -1)),
|
|
20208
|
-
createElementVNode("div", _hoisted_4$
|
|
20209
|
-
createElementVNode("span", _hoisted_5$
|
|
20732
|
+
createElementVNode("div", _hoisted_4$c, [
|
|
20733
|
+
createElementVNode("span", _hoisted_5$7, [
|
|
20210
20734
|
createElementVNode("span", {
|
|
20211
20735
|
class: "home-channel-side-nav__skeleton-block home-channel-side-nav__label-skeleton",
|
|
20212
20736
|
style: normalizeStyle({ width: sk.width })
|
|
@@ -20222,12 +20746,12 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
20222
20746
|
], 2))
|
|
20223
20747
|
], 64);
|
|
20224
20748
|
}), 64))
|
|
20225
|
-
])) : (openBlock(), createElementBlock("ul", _hoisted_6$
|
|
20749
|
+
])) : (openBlock(), createElementBlock("ul", _hoisted_6$6, [
|
|
20226
20750
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleChannels.value, (item) => {
|
|
20227
20751
|
return openBlock(), createElementBlock(Fragment, {
|
|
20228
20752
|
key: item.object_id
|
|
20229
20753
|
}, [
|
|
20230
|
-
item.group && item.groupIndex === 0 ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
20754
|
+
item.group && item.groupIndex === 0 ? (openBlock(), createElementBlock("div", _hoisted_7$5, toDisplayString$1(isEn.value && item.group.name_en ? item.group.name_en : item.group.name), 1)) : createCommentVNode("", true),
|
|
20231
20755
|
createElementVNode("li", {
|
|
20232
20756
|
class: normalizeClass(["home-channel-side-nav__row", {
|
|
20233
20757
|
"is-group-last": item.group && typeof item.group.len === "number" && item.group.len - 1 === item.groupIndex
|
|
@@ -20253,7 +20777,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
20253
20777
|
alt: item.name,
|
|
20254
20778
|
class: "home-channel-side-nav__logo",
|
|
20255
20779
|
onClick: ($event) => onPrefixLogoClick($event, item)
|
|
20256
|
-
}, null, 8, _hoisted_9$
|
|
20780
|
+
}, null, 8, _hoisted_9$5)) : getPrefixLogo(item) ? (openBlock(), createBlock(GIcon, {
|
|
20257
20781
|
key: 2,
|
|
20258
20782
|
name: getPrefixLogo(item),
|
|
20259
20783
|
size: "18px",
|
|
@@ -20274,7 +20798,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
20274
20798
|
!isRecommendedChannel(item) && item.children && item.children.length > 0 ? (openBlock(), createElementBlock("svg", _hoisted_16$1, [..._cache[1] || (_cache[1] = [
|
|
20275
20799
|
createElementVNode("path", { d: "m9 18 6-6-6-6" }, null, -1)
|
|
20276
20800
|
])])) : createCommentVNode("", true)
|
|
20277
|
-
], 10, _hoisted_8$
|
|
20801
|
+
], 10, _hoisted_8$5)
|
|
20278
20802
|
], 2)
|
|
20279
20803
|
], 64);
|
|
20280
20804
|
}), 128))
|
|
@@ -20285,29 +20809,29 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
20285
20809
|
_cache[8] || (_cache[8] = createElementVNode("div", { class: "home-channel-side-nav__footer-divider" }, null, -1)),
|
|
20286
20810
|
createElementVNode("footer", _hoisted_18$1, [
|
|
20287
20811
|
createElementVNode("nav", _hoisted_19$1, [
|
|
20288
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(siteShortcutLinks.value, (
|
|
20812
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(siteShortcutLinks.value, (shortcut2) => {
|
|
20289
20813
|
return openBlock(), createElementBlock("a", {
|
|
20290
|
-
key:
|
|
20814
|
+
key: shortcut2.name,
|
|
20291
20815
|
class: "nav-site-shortcut",
|
|
20292
|
-
href:
|
|
20816
|
+
href: shortcut2.url,
|
|
20293
20817
|
target: "_blank",
|
|
20294
20818
|
rel: "noopener noreferrer"
|
|
20295
20819
|
}, [
|
|
20296
|
-
|
|
20820
|
+
shortcut2.icon === "newspaper" ? (openBlock(), createElementBlock("svg", _hoisted_21$1, [..._cache[4] || (_cache[4] = [
|
|
20297
20821
|
createElementVNode("path", { d: "M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2" }, null, -1),
|
|
20298
20822
|
createElementVNode("path", { d: "M18 14h-8" }, null, -1),
|
|
20299
20823
|
createElementVNode("path", { d: "M15 18h-5" }, null, -1),
|
|
20300
20824
|
createElementVNode("path", { d: "M10 6h8v4h-8V6Z" }, null, -1)
|
|
20301
|
-
])])) :
|
|
20825
|
+
])])) : shortcut2.icon === "book-open" ? (openBlock(), createElementBlock("svg", _hoisted_22$1, [..._cache[5] || (_cache[5] = [
|
|
20302
20826
|
createElementVNode("path", { d: "M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z" }, null, -1),
|
|
20303
20827
|
createElementVNode("path", { d: "M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z" }, null, -1)
|
|
20304
|
-
])])) :
|
|
20828
|
+
])])) : shortcut2.icon === "message-square" ? (openBlock(), createElementBlock("svg", _hoisted_23$1, [..._cache[6] || (_cache[6] = [
|
|
20305
20829
|
createElementVNode("path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" }, null, -1)
|
|
20306
20830
|
])])) : (openBlock(), createElementBlock("svg", _hoisted_24$1, [..._cache[7] || (_cache[7] = [
|
|
20307
20831
|
createElementVNode("path", { d: "M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1" }, null, -1),
|
|
20308
20832
|
createElementVNode("path", { d: "M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1" }, null, -1)
|
|
20309
20833
|
])])),
|
|
20310
|
-
createElementVNode("span", null, toDisplayString$1(
|
|
20834
|
+
createElementVNode("span", null, toDisplayString$1(shortcut2.name), 1)
|
|
20311
20835
|
], 8, _hoisted_20$1);
|
|
20312
20836
|
}), 128))
|
|
20313
20837
|
])
|
|
@@ -20330,9 +20854,9 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
20330
20854
|
};
|
|
20331
20855
|
}
|
|
20332
20856
|
});
|
|
20333
|
-
const AsideV2Content = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20334
|
-
const _hoisted_1$
|
|
20335
|
-
const _sfc_main$
|
|
20857
|
+
const AsideV2Content = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
20858
|
+
const _hoisted_1$m = { class: "aside-drawer-header" };
|
|
20859
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
20336
20860
|
...{ name: "GitCodeAsideV2", inheritAttrs: false },
|
|
20337
20861
|
__name: "index",
|
|
20338
20862
|
props: {
|
|
@@ -20516,7 +21040,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
20516
21040
|
class: "draw-side-bar"
|
|
20517
21041
|
}, {
|
|
20518
21042
|
default: withCtx(() => [
|
|
20519
|
-
createElementVNode("div", _hoisted_1$
|
|
21043
|
+
createElementVNode("div", _hoisted_1$m, [
|
|
20520
21044
|
createVNode(GLink, {
|
|
20521
21045
|
class: "g-toolbar-left-logo",
|
|
20522
21046
|
style: normalizeStyle(logoStyle.value),
|
|
@@ -20547,22 +21071,22 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
20547
21071
|
};
|
|
20548
21072
|
}
|
|
20549
21073
|
});
|
|
20550
|
-
const GitCodeAsideV2 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20551
|
-
const _hoisted_1$
|
|
20552
|
-
const _hoisted_2$
|
|
20553
|
-
const _hoisted_3$
|
|
21074
|
+
const GitCodeAsideV2 = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
21075
|
+
const _hoisted_1$l = { class: "g-toolbar allow-click-stop" };
|
|
21076
|
+
const _hoisted_2$f = { class: "g-toolbar-left allow-click-stop" };
|
|
21077
|
+
const _hoisted_3$e = {
|
|
20554
21078
|
key: 1,
|
|
20555
21079
|
class: "g-toolbar-custom"
|
|
20556
21080
|
};
|
|
20557
|
-
const _hoisted_4$
|
|
20558
|
-
const _hoisted_5$
|
|
20559
|
-
const _hoisted_6$
|
|
20560
|
-
const _hoisted_7$
|
|
20561
|
-
const _hoisted_8$
|
|
21081
|
+
const _hoisted_4$b = { class: "enterprise-name" };
|
|
21082
|
+
const _hoisted_5$6 = { class: "enterprise-flag" };
|
|
21083
|
+
const _hoisted_6$5 = { class: "search-avatar" };
|
|
21084
|
+
const _hoisted_7$4 = { class: "g-toolbar-right allow-click-stop" };
|
|
21085
|
+
const _hoisted_8$4 = {
|
|
20562
21086
|
key: 0,
|
|
20563
21087
|
class: "g-toolbar-right-divider"
|
|
20564
21088
|
};
|
|
20565
|
-
const _hoisted_9$
|
|
21089
|
+
const _hoisted_9$4 = {
|
|
20566
21090
|
key: 0,
|
|
20567
21091
|
class: "g-toolbar-right-divider"
|
|
20568
21092
|
};
|
|
@@ -20573,7 +21097,7 @@ const _hoisted_10$3 = {
|
|
|
20573
21097
|
const _hoisted_11$3 = { class: "g-header-body-left" };
|
|
20574
21098
|
const _hoisted_12$3 = { class: "g-header-body-right" };
|
|
20575
21099
|
const _hoisted_13$1 = { key: 1 };
|
|
20576
|
-
const _sfc_main$
|
|
21100
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
20577
21101
|
...{
|
|
20578
21102
|
name: "EnterpriseHeader"
|
|
20579
21103
|
},
|
|
@@ -20820,8 +21344,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
20820
21344
|
class: normalizeClass(["g-header allow-click-stop", [showHeaderShadow.value ? "head-shadow" : "", __props.headerBorder ? "oldBorder" : "", headerClassName.value]])
|
|
20821
21345
|
}, [
|
|
20822
21346
|
createVNode(SiteAnnouncement),
|
|
20823
|
-
withDirectives((openBlock(), createElementBlock("div", _hoisted_1$
|
|
20824
|
-
createElementVNode("div", _hoisted_2$
|
|
21347
|
+
withDirectives((openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
21348
|
+
createElementVNode("div", _hoisted_2$f, [
|
|
20825
21349
|
isModuleVisible(unref(HeaderDisplayItem).ASIDE_BUTTON) ? (openBlock(), createBlock(GIcon, {
|
|
20826
21350
|
key: 0,
|
|
20827
21351
|
onClick: handleHamburgerClick,
|
|
@@ -20830,8 +21354,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
20830
21354
|
class: "g-toolbar-left-asideicon",
|
|
20831
21355
|
color: "var(--theme-aide-text)"
|
|
20832
21356
|
})) : createCommentVNode("", true),
|
|
20833
|
-
hasEnterpriseInfo.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
20834
|
-
createVNode(_sfc_main$
|
|
21357
|
+
hasEnterpriseInfo.value ? (openBlock(), createElementBlock("div", _hoisted_3$e, [
|
|
21358
|
+
createVNode(_sfc_main$R, {
|
|
20835
21359
|
src: (_a2 = __props.enterpriseInfo) == null ? void 0 : _a2.avatar,
|
|
20836
21360
|
name: (_b = __props.enterpriseInfo) == null ? void 0 : _b.name,
|
|
20837
21361
|
isRound: false,
|
|
@@ -20839,8 +21363,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
20839
21363
|
height: 32,
|
|
20840
21364
|
class: "enterprise-avatar"
|
|
20841
21365
|
}, null, 8, ["src", "name"]),
|
|
20842
|
-
createElementVNode("span", _hoisted_4$
|
|
20843
|
-
createElementVNode("span", _hoisted_5$
|
|
21366
|
+
createElementVNode("span", _hoisted_4$b, toDisplayString$1((_c = __props.enterpriseInfo) == null ? void 0 : _c.name), 1),
|
|
21367
|
+
createElementVNode("span", _hoisted_5$6, toDisplayString$1(unref(t2)("gitCodeLayout.header.enterpriseFlag")), 1)
|
|
20844
21368
|
])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
20845
21369
|
__props.independence ? (openBlock(), createBlock(GLink, {
|
|
20846
21370
|
key: 0,
|
|
@@ -20855,7 +21379,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
20855
21379
|
}, null, 8, ["style"]))
|
|
20856
21380
|
], 64))
|
|
20857
21381
|
]),
|
|
20858
|
-
createElementVNode("div", _hoisted_6$
|
|
21382
|
+
createElementVNode("div", _hoisted_6$5, [
|
|
20859
21383
|
isModuleVisible(unref(HeaderDisplayItem).SEARCH_BUTTON) ? renderSlot(_ctx.$slots, "search", {}, () => [
|
|
20860
21384
|
(openBlock(), createBlock(Search, {
|
|
20861
21385
|
inAIHub: false,
|
|
@@ -20881,7 +21405,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
20881
21405
|
]), 1032, ["sceneValue", "defaultGlobalSearchType"]))
|
|
20882
21406
|
], true, 0) : createCommentVNode("", true)
|
|
20883
21407
|
]),
|
|
20884
|
-
createElementVNode("div", _hoisted_7$
|
|
21408
|
+
createElementVNode("div", _hoisted_7$4, [
|
|
20885
21409
|
__props.showAtomCodeLauncher ? renderSlot(_ctx.$slots, "atomCodeLauncher", {}, () => [
|
|
20886
21410
|
createVNode(AtomCodeLauncher, {
|
|
20887
21411
|
atomcodeLaunchQs: __props.atomcodeLaunchQs,
|
|
@@ -20894,7 +21418,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
20894
21418
|
independence: __props.independence
|
|
20895
21419
|
}, null, 8, ["isLogin", "independence"]),
|
|
20896
21420
|
!__props.isLogin ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
20897
|
-
!unref(isMobile) ? (openBlock(), createElementBlock("div", _hoisted_8$
|
|
21421
|
+
!unref(isMobile) ? (openBlock(), createElementBlock("div", _hoisted_8$4)) : createCommentVNode("", true),
|
|
20898
21422
|
isModuleVisible(unref(HeaderDisplayItem).LOGIN_AND_AVATAR) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
20899
21423
|
unref(isMobile) ? (openBlock(), createElementBlock("section", {
|
|
20900
21424
|
key: 0,
|
|
@@ -20929,7 +21453,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
20929
21453
|
], 64))
|
|
20930
21454
|
], 64)) : createCommentVNode("", true)
|
|
20931
21455
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
20932
|
-
!["sm"].includes(unref(widthType)) ? (openBlock(), createElementBlock("div", _hoisted_9$
|
|
21456
|
+
!["sm"].includes(unref(widthType)) ? (openBlock(), createElementBlock("div", _hoisted_9$4)) : createCommentVNode("", true),
|
|
20933
21457
|
!["sm"].includes(unref(widthType)) && isModuleVisible(unref(HeaderDisplayItem).NEW_BUTTON) ? (openBlock(), createBlock(HeaderCreateMenu, {
|
|
20934
21458
|
key: 1,
|
|
20935
21459
|
dropdownVisible: __props.openCreateDropdown,
|
|
@@ -20983,7 +21507,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
20983
21507
|
};
|
|
20984
21508
|
}
|
|
20985
21509
|
});
|
|
20986
|
-
const EnterpriseHeader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
21510
|
+
const EnterpriseHeader = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
20987
21511
|
const layoutConfig$2 = useLayoutConfig();
|
|
20988
21512
|
const useConfigSide = (request, sceneValue) => {
|
|
20989
21513
|
const API = asideRequest(request);
|
|
@@ -21189,9 +21713,9 @@ var SearchType = /* @__PURE__ */ ((SearchType2) => {
|
|
|
21189
21713
|
SearchType2[SearchType2["Enterprise"] = 3] = "Enterprise";
|
|
21190
21714
|
return SearchType2;
|
|
21191
21715
|
})(SearchType || {});
|
|
21192
|
-
const _hoisted_1$
|
|
21193
|
-
const _hoisted_2$
|
|
21194
|
-
const _sfc_main$
|
|
21716
|
+
const _hoisted_1$k = { class: "area" };
|
|
21717
|
+
const _hoisted_2$e = { class: "area__layout-slot" };
|
|
21718
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
21195
21719
|
__name: "Area",
|
|
21196
21720
|
props: {
|
|
21197
21721
|
list: {},
|
|
@@ -21204,9 +21728,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
21204
21728
|
const layoutConfig2 = useLayoutConfig();
|
|
21205
21729
|
const { t: t2 } = i18n.global;
|
|
21206
21730
|
const route = useRoute();
|
|
21207
|
-
const MenuItem = defineAsyncComponent(() => import("./MenuItem-
|
|
21208
|
-
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-
|
|
21209
|
-
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-
|
|
21731
|
+
const MenuItem = defineAsyncComponent(() => import("./MenuItem-zJXVH_ZY.js"));
|
|
21732
|
+
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-H2VmzVSh.js"));
|
|
21733
|
+
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-CDYlv4eo.js"));
|
|
21210
21734
|
const props = __props;
|
|
21211
21735
|
const useReport2 = inject("useReport");
|
|
21212
21736
|
const userInfo = inject("userInfo");
|
|
@@ -21411,7 +21935,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
21411
21935
|
window.open(url, openMode);
|
|
21412
21936
|
};
|
|
21413
21937
|
return (_ctx, _cache) => {
|
|
21414
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
21938
|
+
return openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
21415
21939
|
createVNode(unref(Menu), {
|
|
21416
21940
|
class: "menu",
|
|
21417
21941
|
onSelect: onMenuClick,
|
|
@@ -21437,7 +21961,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
21437
21961
|
return {
|
|
21438
21962
|
name: key,
|
|
21439
21963
|
fn: withCtx(() => [
|
|
21440
|
-
createElementVNode("div", _hoisted_2$
|
|
21964
|
+
createElementVNode("div", _hoisted_2$e, [
|
|
21441
21965
|
createVNode(unref(Menu), {
|
|
21442
21966
|
class: "menu",
|
|
21443
21967
|
onSelect: onMenuClick,
|
|
@@ -21465,11 +21989,11 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
21465
21989
|
};
|
|
21466
21990
|
}
|
|
21467
21991
|
});
|
|
21468
|
-
const Area = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
21469
|
-
const _hoisted_1$
|
|
21470
|
-
const _hoisted_2$
|
|
21471
|
-
const _hoisted_3$
|
|
21472
|
-
const _sfc_main$
|
|
21992
|
+
const Area = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
21993
|
+
const _hoisted_1$j = { class: "settings__label" };
|
|
21994
|
+
const _hoisted_2$d = { class: "aside-footer-tools-item-dropdown-item" };
|
|
21995
|
+
const _hoisted_3$d = { class: "aside-footer-tools-item-dropdown-item" };
|
|
21996
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
21473
21997
|
__name: "Settings",
|
|
21474
21998
|
props: {
|
|
21475
21999
|
showThemeSetting: { type: Boolean },
|
|
@@ -21485,13 +22009,13 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
21485
22009
|
"overlay-class": "footer-tools-setting-dropdown"
|
|
21486
22010
|
}, {
|
|
21487
22011
|
menu: withCtx(() => [
|
|
21488
|
-
withDirectives(createElementVNode("div", _hoisted_2$
|
|
21489
|
-
createVNode(_sfc_main$
|
|
22012
|
+
withDirectives(createElementVNode("div", _hoisted_2$d, [
|
|
22013
|
+
createVNode(_sfc_main$u)
|
|
21490
22014
|
], 512), [
|
|
21491
22015
|
[vShow, __props.showThemeSetting]
|
|
21492
22016
|
]),
|
|
21493
|
-
withDirectives(createElementVNode("div", _hoisted_3$
|
|
21494
|
-
createVNode(_sfc_main$
|
|
22017
|
+
withDirectives(createElementVNode("div", _hoisted_3$d, [
|
|
22018
|
+
createVNode(_sfc_main$F)
|
|
21495
22019
|
], 512), [
|
|
21496
22020
|
[vShow, __props.showLangSetting]
|
|
21497
22021
|
])
|
|
@@ -21510,7 +22034,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
21510
22034
|
size: "16",
|
|
21511
22035
|
class: "active-icon settings__icon-min"
|
|
21512
22036
|
}),
|
|
21513
|
-
createElementVNode("span", _hoisted_1$
|
|
22037
|
+
createElementVNode("span", _hoisted_1$j, toDisplayString$1(unref(t2)("gitCodeLayout.common.footerSetting.preSettingLittle")), 1)
|
|
21514
22038
|
], 2)
|
|
21515
22039
|
]),
|
|
21516
22040
|
_: 1
|
|
@@ -21518,9 +22042,9 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
21518
22042
|
};
|
|
21519
22043
|
}
|
|
21520
22044
|
});
|
|
21521
|
-
const Settings = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22045
|
+
const Settings = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
21522
22046
|
const FEEDBACK_CENTER_URL = "https://gitcode.com/Gitcode-offical-team/GitCode-Docs/issues";
|
|
21523
|
-
const _sfc_main$
|
|
22047
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
21524
22048
|
__name: "SubMenuList",
|
|
21525
22049
|
setup(__props) {
|
|
21526
22050
|
const layoutConfig2 = useLayoutConfig();
|
|
@@ -21575,7 +22099,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
21575
22099
|
};
|
|
21576
22100
|
}
|
|
21577
22101
|
});
|
|
21578
|
-
const SubMenuList = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22102
|
+
const SubMenuList = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
21579
22103
|
const createSetting = () => {
|
|
21580
22104
|
const { t: t2 } = i18n.global;
|
|
21581
22105
|
const isGitCodeHost2 = typeof window !== "undefined" && window.location.hostname.includes("gitcode");
|
|
@@ -21615,29 +22139,29 @@ const createSetting = () => {
|
|
|
21615
22139
|
}
|
|
21616
22140
|
return settings;
|
|
21617
22141
|
};
|
|
21618
|
-
const _hoisted_1$
|
|
21619
|
-
const _hoisted_2$
|
|
21620
|
-
const _hoisted_3$
|
|
21621
|
-
const _hoisted_4$
|
|
21622
|
-
const _hoisted_5$
|
|
22142
|
+
const _hoisted_1$i = { class: "aside-footer" };
|
|
22143
|
+
const _hoisted_2$c = { class: "remake-message" };
|
|
22144
|
+
const _hoisted_3$c = ["title"];
|
|
22145
|
+
const _hoisted_4$a = { class: "remake-message__line" };
|
|
22146
|
+
const _hoisted_5$5 = {
|
|
21623
22147
|
href: "https://beian.miit.gov.cn/#/Integrated/index",
|
|
21624
22148
|
target: "_blank"
|
|
21625
22149
|
};
|
|
21626
|
-
const _hoisted_6$
|
|
22150
|
+
const _hoisted_6$4 = {
|
|
21627
22151
|
key: 0,
|
|
21628
22152
|
class: "remake-message__line public-security"
|
|
21629
22153
|
};
|
|
21630
|
-
const _hoisted_7$
|
|
21631
|
-
const _hoisted_8$
|
|
22154
|
+
const _hoisted_7$3 = ["href"];
|
|
22155
|
+
const _hoisted_8$3 = {
|
|
21632
22156
|
href: "https://www.huaweicloud.com/",
|
|
21633
22157
|
target: "_blank",
|
|
21634
22158
|
rel: "noopener noreferrer"
|
|
21635
22159
|
};
|
|
21636
|
-
const _hoisted_9$
|
|
22160
|
+
const _hoisted_9$3 = { class: "contact-info__about-row" };
|
|
21637
22161
|
const _hoisted_10$2 = { class: "footer-work-info" };
|
|
21638
22162
|
const _hoisted_11$2 = { class: "footer-work-info__item footer-work-info__item--mt" };
|
|
21639
22163
|
const _hoisted_12$2 = { class: "" };
|
|
21640
|
-
const _sfc_main$
|
|
22164
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
21641
22165
|
__name: "ContactInfo",
|
|
21642
22166
|
setup(__props) {
|
|
21643
22167
|
const { t: t2 } = i18n.global;
|
|
@@ -21647,21 +22171,21 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
21647
22171
|
return getLocaleLang() === LANG_EN;
|
|
21648
22172
|
});
|
|
21649
22173
|
return (_ctx, _cache) => {
|
|
21650
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
21651
|
-
createElementVNode("div", _hoisted_2$
|
|
22174
|
+
return openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
22175
|
+
createElementVNode("div", _hoisted_2$c, [
|
|
21652
22176
|
createElementVNode("p", {
|
|
21653
22177
|
class: "remake-message__line remake-message__line--break",
|
|
21654
22178
|
title: unref(copyright).digestAbbr
|
|
21655
|
-
}, " © " + toDisplayString$1(unref(copyright).digestAbbr), 9, _hoisted_3$
|
|
21656
|
-
createElementVNode("p", _hoisted_4$
|
|
21657
|
-
createElementVNode("a", _hoisted_5$
|
|
22179
|
+
}, " © " + toDisplayString$1(unref(copyright).digestAbbr), 9, _hoisted_3$c),
|
|
22180
|
+
createElementVNode("p", _hoisted_4$a, [
|
|
22181
|
+
createElementVNode("a", _hoisted_5$5, toDisplayString$1(unref(copyright).icp), 1)
|
|
21658
22182
|
]),
|
|
21659
|
-
unref(copyright).publicSecurity_url ? (openBlock(), createElementBlock("p", _hoisted_6$
|
|
22183
|
+
unref(copyright).publicSecurity_url ? (openBlock(), createElementBlock("p", _hoisted_6$4, [
|
|
21660
22184
|
_cache[0] || (_cache[0] = createElementVNode("img", { src: "//g.csdnimg.cn/common/csdn-footer/images/badge.png" }, null, -1)),
|
|
21661
22185
|
createElementVNode("a", {
|
|
21662
22186
|
href: unref(copyright).publicSecurity_url,
|
|
21663
22187
|
target: "_blank"
|
|
21664
|
-
}, toDisplayString$1(unref(copyright).publicSecurity), 9, _hoisted_7$
|
|
22188
|
+
}, toDisplayString$1(unref(copyright).publicSecurity), 9, _hoisted_7$3)
|
|
21665
22189
|
])) : createCommentVNode("", true)
|
|
21666
22190
|
]),
|
|
21667
22191
|
createElementVNode("p", {
|
|
@@ -21674,9 +22198,9 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
21674
22198
|
rel: "noopener noreferrer"
|
|
21675
22199
|
}, "CSDN", -1)),
|
|
21676
22200
|
_cache[2] || (_cache[2] = createTextVNode(" | ", -1)),
|
|
21677
|
-
createElementVNode("a", _hoisted_8$
|
|
22201
|
+
createElementVNode("a", _hoisted_8$3, toDisplayString$1(unref(t2)("gitCodeLayout.home.HWCloud")), 1)
|
|
21678
22202
|
], 2),
|
|
21679
|
-
createElementVNode("p", _hoisted_9$
|
|
22203
|
+
createElementVNode("p", _hoisted_9$3, [
|
|
21680
22204
|
createVNode(GLink, {
|
|
21681
22205
|
target: "_blank",
|
|
21682
22206
|
href: unref(currentHelpDocsAboutUsUrl)()
|
|
@@ -21709,18 +22233,18 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
21709
22233
|
};
|
|
21710
22234
|
}
|
|
21711
22235
|
});
|
|
21712
|
-
const ContactInfo = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
21713
|
-
const _hoisted_1$
|
|
21714
|
-
const _hoisted_2$
|
|
21715
|
-
const _hoisted_3$
|
|
22236
|
+
const ContactInfo = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
22237
|
+
const _hoisted_1$h = { class: "config-aside__main" };
|
|
22238
|
+
const _hoisted_2$b = { key: 0 };
|
|
22239
|
+
const _hoisted_3$b = {
|
|
21716
22240
|
key: 1,
|
|
21717
22241
|
class: "aside-menus"
|
|
21718
22242
|
};
|
|
21719
|
-
const _hoisted_4$
|
|
22243
|
+
const _hoisted_4$9 = {
|
|
21720
22244
|
key: 1,
|
|
21721
22245
|
class: "line line--mt"
|
|
21722
22246
|
};
|
|
21723
|
-
const _sfc_main$
|
|
22247
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
21724
22248
|
__name: "configAideContent",
|
|
21725
22249
|
props: {
|
|
21726
22250
|
sceneValue: { default: SceneValue.home },
|
|
@@ -21750,7 +22274,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
21750
22274
|
const { isEn, area, fetchArea, sideLoading } = useConfigSide(request, props.sceneValue);
|
|
21751
22275
|
fetchArea();
|
|
21752
22276
|
const isScroll = ref(false);
|
|
21753
|
-
const
|
|
22277
|
+
const timer2 = ref(null);
|
|
21754
22278
|
const isGroupHover = ref(false);
|
|
21755
22279
|
const visibleItems = computed(() => {
|
|
21756
22280
|
switch (props.sceneValue) {
|
|
@@ -21791,8 +22315,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
21791
22315
|
});
|
|
21792
22316
|
const handleScroll = () => {
|
|
21793
22317
|
isScroll.value = true;
|
|
21794
|
-
if (
|
|
21795
|
-
|
|
22318
|
+
if (timer2.value) clearTimeout(timer2.value);
|
|
22319
|
+
timer2.value = setTimeout(() => {
|
|
21796
22320
|
isScroll.value = false;
|
|
21797
22321
|
}, 1e3);
|
|
21798
22322
|
};
|
|
@@ -21858,18 +22382,18 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
21858
22382
|
createElementVNode("div", {
|
|
21859
22383
|
class: normalizeClass(["config-aside__content", { "side-bar-content-shot": __props.asideSetShowLittle, "shot-isCh": !unref(isEn) }])
|
|
21860
22384
|
}, [
|
|
21861
|
-
withDirectives((openBlock(), createElementBlock("div", _hoisted_1$
|
|
22385
|
+
withDirectives((openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
21862
22386
|
createElementVNode("div", {
|
|
21863
22387
|
class: normalizeClass(["scroll-content config-aside__scroll", { scroll: isScroll.value }]),
|
|
21864
22388
|
onScroll: handleScroll,
|
|
21865
22389
|
onMouseleave: handleMouseLeave
|
|
21866
22390
|
}, [
|
|
21867
|
-
unref(sideLoading) ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
22391
|
+
unref(sideLoading) ? (openBlock(), createElementBlock("div", _hoisted_2$b, [
|
|
21868
22392
|
createVNode(unref(Skeleton), {
|
|
21869
22393
|
loading: unref(sideLoading),
|
|
21870
22394
|
row: 4
|
|
21871
22395
|
}, null, 8, ["loading"])
|
|
21872
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_3$
|
|
22396
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_3$b, [
|
|
21873
22397
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayArea.value, (item, index2) => {
|
|
21874
22398
|
return openBlock(), createElementBlock(Fragment, {
|
|
21875
22399
|
key: item.id
|
|
@@ -21903,7 +22427,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
21903
22427
|
}, null, 8, ["name"]),
|
|
21904
22428
|
_cache[2] || (_cache[2] = createElementVNode("span", null, "群组讨论", -1))
|
|
21905
22429
|
], 32)) : createCommentVNode("", true),
|
|
21906
|
-
!__props.asideSetShowLittle && index2 !== displayArea.value.length - 1 ? (openBlock(), createElementBlock("hr", _hoisted_4$
|
|
22430
|
+
!__props.asideSetShowLittle && index2 !== displayArea.value.length - 1 ? (openBlock(), createElementBlock("hr", _hoisted_4$9)) : createCommentVNode("", true)
|
|
21907
22431
|
], 64);
|
|
21908
22432
|
}), 128)),
|
|
21909
22433
|
!__props.asideSetShowLittle && isModuleVisible(unref(AsideDisplayItem).LINK) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
@@ -21933,9 +22457,9 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
21933
22457
|
};
|
|
21934
22458
|
}
|
|
21935
22459
|
});
|
|
21936
|
-
const ConfigAideContent = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
21937
|
-
const _hoisted_1$
|
|
21938
|
-
const _sfc_main$
|
|
22460
|
+
const ConfigAideContent = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
22461
|
+
const _hoisted_1$g = { class: "aside-drawer-header" };
|
|
22462
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
21939
22463
|
__name: "index",
|
|
21940
22464
|
props: {
|
|
21941
22465
|
sceneValue: { default: SceneValue.home },
|
|
@@ -22110,7 +22634,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
22110
22634
|
class: "draw-side-bar"
|
|
22111
22635
|
}, {
|
|
22112
22636
|
default: withCtx(() => [
|
|
22113
|
-
createElementVNode("div", _hoisted_1$
|
|
22637
|
+
createElementVNode("div", _hoisted_1$g, [
|
|
22114
22638
|
createVNode(GLink, {
|
|
22115
22639
|
class: "g-toolbar-left-logo",
|
|
22116
22640
|
style: normalizeStyle(logoStyle.value),
|
|
@@ -22141,7 +22665,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
22141
22665
|
};
|
|
22142
22666
|
}
|
|
22143
22667
|
});
|
|
22144
|
-
const GitCodeAside = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22668
|
+
const GitCodeAside = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
22145
22669
|
const repoInfoData = {
|
|
22146
22670
|
"star_count": 0,
|
|
22147
22671
|
"forks_count": 0,
|
|
@@ -22866,11 +23390,11 @@ const headerCustomPropsData = {
|
|
|
22866
23390
|
isOtherUser: true
|
|
22867
23391
|
}
|
|
22868
23392
|
};
|
|
22869
|
-
const _hoisted_1$
|
|
22870
|
-
const _hoisted_2$
|
|
22871
|
-
const _hoisted_3$
|
|
22872
|
-
const _hoisted_4$
|
|
22873
|
-
const _sfc_main$
|
|
23393
|
+
const _hoisted_1$f = { class: "home-wrapper" };
|
|
23394
|
+
const _hoisted_2$a = { class: "home-content" };
|
|
23395
|
+
const _hoisted_3$a = { class: "home-left-side" };
|
|
23396
|
+
const _hoisted_4$8 = { class: "home-main" };
|
|
23397
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
22874
23398
|
__name: "home",
|
|
22875
23399
|
setup(__props) {
|
|
22876
23400
|
const asideVersion = ref("v2");
|
|
@@ -22946,7 +23470,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
22946
23470
|
}
|
|
22947
23471
|
});
|
|
22948
23472
|
return (_ctx, _cache) => {
|
|
22949
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23473
|
+
return openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
22950
23474
|
showCommonHeader.value ? (openBlock(), createBlock(GitCodeHeader, {
|
|
22951
23475
|
key: 0,
|
|
22952
23476
|
sceneValue: sceneSelected.value,
|
|
@@ -22977,8 +23501,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
22977
23501
|
headerFunctions: [],
|
|
22978
23502
|
headerCustomProps: headerCustomProps.value
|
|
22979
23503
|
}, null, 8, ["independence", "isLogin", "request", "globalStore", "enterpriseInfo", "userInfo", "headerCustomProps"])),
|
|
22980
|
-
createElementVNode("div", _hoisted_2$
|
|
22981
|
-
createElementVNode("div", _hoisted_3$
|
|
23504
|
+
createElementVNode("div", _hoisted_2$a, [
|
|
23505
|
+
createElementVNode("div", _hoisted_3$a, [
|
|
22982
23506
|
asideVersion.value === "v2" ? (openBlock(), createBlock(GitCodeAsideV2, {
|
|
22983
23507
|
key: 0,
|
|
22984
23508
|
sceneValue: sceneSelected.value,
|
|
@@ -23011,7 +23535,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
23011
23535
|
_: 1
|
|
23012
23536
|
}, 8, ["sceneValue", "userInfo", "isLogin", "request", "globalStore", "independence", "collapseMode"]))
|
|
23013
23537
|
]),
|
|
23014
|
-
createElementVNode("div", _hoisted_4$
|
|
23538
|
+
createElementVNode("div", _hoisted_4$8, [
|
|
23015
23539
|
_cache[12] || (_cache[12] = createElementVNode("h1", null, "Aside 版本切换", -1)),
|
|
23016
23540
|
createVNode(unref(RadioGroup), {
|
|
23017
23541
|
direction: "row",
|
|
@@ -23133,8 +23657,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
23133
23657
|
};
|
|
23134
23658
|
}
|
|
23135
23659
|
});
|
|
23136
|
-
const _hoisted_1$
|
|
23137
|
-
const _sfc_main$
|
|
23660
|
+
const _hoisted_1$e = { class: "home-wrapper" };
|
|
23661
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
23138
23662
|
__name: "login",
|
|
23139
23663
|
setup(__props) {
|
|
23140
23664
|
const isLogin = ref(false);
|
|
@@ -23166,8 +23690,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
23166
23690
|
}
|
|
23167
23691
|
});
|
|
23168
23692
|
return (_ctx, _cache) => {
|
|
23169
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23170
|
-
createVNode(_sfc_main$
|
|
23693
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
23694
|
+
createVNode(_sfc_main$4, {
|
|
23171
23695
|
isLogin: isLogin.value,
|
|
23172
23696
|
request: unref(proxyService),
|
|
23173
23697
|
loginSuccess,
|
|
@@ -23183,7 +23707,7 @@ const routes = [
|
|
|
23183
23707
|
{
|
|
23184
23708
|
path: "/",
|
|
23185
23709
|
name: "home",
|
|
23186
|
-
component: _sfc_main$
|
|
23710
|
+
component: _sfc_main$i,
|
|
23187
23711
|
meta: {
|
|
23188
23712
|
// showBgColor: true,
|
|
23189
23713
|
asideMenu: "flat"
|
|
@@ -23192,52 +23716,52 @@ const routes = [
|
|
|
23192
23716
|
{
|
|
23193
23717
|
path: "/dashboard",
|
|
23194
23718
|
name: "dashboard",
|
|
23195
|
-
component: _sfc_main$
|
|
23719
|
+
component: _sfc_main$i
|
|
23196
23720
|
},
|
|
23197
23721
|
{
|
|
23198
23722
|
path: "/repoDashboard",
|
|
23199
23723
|
name: "repoDashboard",
|
|
23200
|
-
component: _sfc_main$
|
|
23724
|
+
component: _sfc_main$i
|
|
23201
23725
|
},
|
|
23202
23726
|
{
|
|
23203
23727
|
path: "/",
|
|
23204
23728
|
name: "homepage",
|
|
23205
|
-
component: _sfc_main$
|
|
23729
|
+
component: _sfc_main$i
|
|
23206
23730
|
},
|
|
23207
23731
|
{
|
|
23208
23732
|
path: "/settingOrganization",
|
|
23209
23733
|
name: "settingOrganization",
|
|
23210
|
-
component: _sfc_main$
|
|
23734
|
+
component: _sfc_main$i
|
|
23211
23735
|
},
|
|
23212
23736
|
{
|
|
23213
23737
|
path: "/settingRepo",
|
|
23214
23738
|
name: "settingRepo",
|
|
23215
|
-
component: _sfc_main$
|
|
23739
|
+
component: _sfc_main$i
|
|
23216
23740
|
},
|
|
23217
23741
|
{
|
|
23218
23742
|
path: "/myNotebook",
|
|
23219
23743
|
name: "myNotebook",
|
|
23220
|
-
component: _sfc_main$
|
|
23744
|
+
component: _sfc_main$i
|
|
23221
23745
|
},
|
|
23222
23746
|
{
|
|
23223
23747
|
path: "/userSpaces",
|
|
23224
23748
|
name: "userSpaces",
|
|
23225
|
-
component: _sfc_main$
|
|
23749
|
+
component: _sfc_main$i
|
|
23226
23750
|
},
|
|
23227
23751
|
{
|
|
23228
23752
|
path: "/userStars",
|
|
23229
23753
|
name: "userStars",
|
|
23230
|
-
component: _sfc_main$
|
|
23754
|
+
component: _sfc_main$i
|
|
23231
23755
|
},
|
|
23232
23756
|
{
|
|
23233
23757
|
path: "/setting",
|
|
23234
23758
|
name: "setting",
|
|
23235
|
-
component: _sfc_main$
|
|
23759
|
+
component: _sfc_main$i
|
|
23236
23760
|
},
|
|
23237
23761
|
{
|
|
23238
23762
|
path: "/login",
|
|
23239
23763
|
name: "/login",
|
|
23240
|
-
component: _sfc_main$
|
|
23764
|
+
component: _sfc_main$h
|
|
23241
23765
|
}
|
|
23242
23766
|
];
|
|
23243
23767
|
const router = createRouter({
|
|
@@ -23897,8 +24421,8 @@ function useModel(props, emits) {
|
|
|
23897
24421
|
vModels
|
|
23898
24422
|
};
|
|
23899
24423
|
}
|
|
23900
|
-
const _hoisted_1$
|
|
23901
|
-
const _sfc_main$
|
|
24424
|
+
const _hoisted_1$d = { class: "g-input-button-append__text" };
|
|
24425
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
23902
24426
|
__name: "inputButton",
|
|
23903
24427
|
props: {
|
|
23904
24428
|
modelValue: {},
|
|
@@ -23922,21 +24446,21 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
23922
24446
|
const status = props.second !== 59;
|
|
23923
24447
|
const DisabledBtn = ref(status);
|
|
23924
24448
|
const inputBtnClassName = ref("");
|
|
23925
|
-
let
|
|
24449
|
+
let timer2 = null;
|
|
23926
24450
|
const toCountDown = () => {
|
|
23927
|
-
if (!
|
|
24451
|
+
if (!timer2) {
|
|
23928
24452
|
if (CountDown.value === 0) {
|
|
23929
24453
|
CountDown.value = 59;
|
|
23930
24454
|
}
|
|
23931
|
-
|
|
24455
|
+
timer2 = setInterval(() => {
|
|
23932
24456
|
if (CountDown.value >= 1) {
|
|
23933
24457
|
CountDown.value -= 1;
|
|
23934
24458
|
} else {
|
|
23935
24459
|
CountDown.value = 59;
|
|
23936
24460
|
emits("update:countdown", false);
|
|
23937
24461
|
DisabledBtn.value = false;
|
|
23938
|
-
|
|
23939
|
-
|
|
24462
|
+
timer2 && clearInterval(timer2);
|
|
24463
|
+
timer2 = null;
|
|
23940
24464
|
}
|
|
23941
24465
|
}, 1e3);
|
|
23942
24466
|
}
|
|
@@ -23969,8 +24493,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
23969
24493
|
inputBtnClassName.value = "";
|
|
23970
24494
|
};
|
|
23971
24495
|
onBeforeUnmount(() => {
|
|
23972
|
-
if (
|
|
23973
|
-
clearInterval(
|
|
24496
|
+
if (timer2) {
|
|
24497
|
+
clearInterval(timer2);
|
|
23974
24498
|
}
|
|
23975
24499
|
});
|
|
23976
24500
|
watchEffect(() => {
|
|
@@ -23979,9 +24503,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
23979
24503
|
toCountDown();
|
|
23980
24504
|
} else {
|
|
23981
24505
|
DisabledBtn.value = false;
|
|
23982
|
-
if (
|
|
23983
|
-
clearInterval(
|
|
23984
|
-
|
|
24506
|
+
if (timer2) {
|
|
24507
|
+
clearInterval(timer2);
|
|
24508
|
+
timer2 = null;
|
|
23985
24509
|
}
|
|
23986
24510
|
}
|
|
23987
24511
|
});
|
|
@@ -24006,7 +24530,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
24006
24530
|
DisabledBtn.value || !__props.hasMobile ? "g-input-button-append-inactive" : "g-input-button-append-active"
|
|
24007
24531
|
])
|
|
24008
24532
|
}, [
|
|
24009
|
-
createElementVNode("span", _hoisted_1$
|
|
24533
|
+
createElementVNode("span", _hoisted_1$d, toDisplayString$1(BtnText.value), 1)
|
|
24010
24534
|
], 2)
|
|
24011
24535
|
]),
|
|
24012
24536
|
_: 1
|
|
@@ -24015,12 +24539,12 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
24015
24539
|
};
|
|
24016
24540
|
}
|
|
24017
24541
|
});
|
|
24018
|
-
const _hoisted_1$
|
|
24019
|
-
const _hoisted_2$
|
|
24020
|
-
const _hoisted_3$
|
|
24021
|
-
const _hoisted_4$
|
|
24022
|
-
const _hoisted_5$
|
|
24023
|
-
const _sfc_main$
|
|
24542
|
+
const _hoisted_1$c = { class: "g-input-select" };
|
|
24543
|
+
const _hoisted_2$9 = { class: "login-phone" };
|
|
24544
|
+
const _hoisted_3$9 = { class: "g-input-select__option-row" };
|
|
24545
|
+
const _hoisted_4$7 = { class: "g-input-select__item-row" };
|
|
24546
|
+
const _hoisted_5$4 = { class: "g-input-select__option-row" };
|
|
24547
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
24024
24548
|
__name: "inputSelect",
|
|
24025
24549
|
props: {
|
|
24026
24550
|
modelValue: {},
|
|
@@ -24098,8 +24622,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
24098
24622
|
}
|
|
24099
24623
|
});
|
|
24100
24624
|
return (_ctx, _cache) => {
|
|
24101
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24102
|
-
createElementVNode("div", _hoisted_2$
|
|
24625
|
+
return openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
24626
|
+
createElementVNode("div", _hoisted_2$9, [
|
|
24103
24627
|
(props == null ? void 0 : props.editableSelect) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
24104
24628
|
createVNode(unref(Select), {
|
|
24105
24629
|
class: "login-country-select",
|
|
@@ -24116,7 +24640,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
24116
24640
|
value: item.value
|
|
24117
24641
|
}, {
|
|
24118
24642
|
default: withCtx(() => [
|
|
24119
|
-
createElementVNode("div", _hoisted_3$
|
|
24643
|
+
createElementVNode("div", _hoisted_3$9, [
|
|
24120
24644
|
createElementVNode("span", null, toDisplayString$1(item.name), 1),
|
|
24121
24645
|
createElementVNode("span", null, toDisplayString$1(item.label), 1)
|
|
24122
24646
|
])
|
|
@@ -24140,7 +24664,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
24140
24664
|
class: "login-phone-select"
|
|
24141
24665
|
}), {
|
|
24142
24666
|
item: withCtx((slotProps) => [
|
|
24143
|
-
createElementVNode("div", _hoisted_4$
|
|
24667
|
+
createElementVNode("div", _hoisted_4$7, [
|
|
24144
24668
|
createElementVNode("div", null, toDisplayString$1(slotProps.option.label), 1),
|
|
24145
24669
|
createVNode(GIcon, {
|
|
24146
24670
|
name: "gt-line-delete",
|
|
@@ -24175,7 +24699,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
24175
24699
|
value: item.value
|
|
24176
24700
|
}, {
|
|
24177
24701
|
default: withCtx(() => [
|
|
24178
|
-
createElementVNode("div", _hoisted_5$
|
|
24702
|
+
createElementVNode("div", _hoisted_5$4, [
|
|
24179
24703
|
createElementVNode("span", null, toDisplayString$1(item.name), 1),
|
|
24180
24704
|
createElementVNode("span", null, toDisplayString$1(item.label), 1)
|
|
24181
24705
|
])
|
|
@@ -24220,7 +24744,7 @@ function useNoSpaceInput(getter, setter) {
|
|
|
24220
24744
|
handleKeydown
|
|
24221
24745
|
};
|
|
24222
24746
|
}
|
|
24223
|
-
const _sfc_main$
|
|
24747
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
24224
24748
|
__name: "index",
|
|
24225
24749
|
props: {
|
|
24226
24750
|
DataList: {},
|
|
@@ -24247,7 +24771,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
24247
24771
|
const Data = reactive({});
|
|
24248
24772
|
const GroupRules = reactive({});
|
|
24249
24773
|
const FormRef = ref(null);
|
|
24250
|
-
let
|
|
24774
|
+
let timer2 = null;
|
|
24251
24775
|
const emits = __emit;
|
|
24252
24776
|
const setRequiredRule = (target) => {
|
|
24253
24777
|
return {
|
|
@@ -24378,22 +24902,22 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
24378
24902
|
const handleClick = () => {
|
|
24379
24903
|
};
|
|
24380
24904
|
const cache_countdown = JSON.parse(localStorage$2.getItem("cache_countdown"));
|
|
24381
|
-
const handleOperate = (
|
|
24905
|
+
const handleOperate = (config2) => {
|
|
24382
24906
|
var _a;
|
|
24383
|
-
const key = ((_a =
|
|
24907
|
+
const key = ((_a = config2 == null ? void 0 : config2.props) == null ? void 0 : _a.aliasKey) || config2.key;
|
|
24384
24908
|
emits("countDown", {
|
|
24385
24909
|
key,
|
|
24386
|
-
sourceKey:
|
|
24910
|
+
sourceKey: config2.key,
|
|
24387
24911
|
value: Data[key],
|
|
24388
24912
|
country: Data.country || (cache_countdown == null ? void 0 : cache_countdown.country),
|
|
24389
24913
|
smsReported: false
|
|
24390
24914
|
});
|
|
24391
24915
|
};
|
|
24392
24916
|
const handleFormInput = () => {
|
|
24393
|
-
if (
|
|
24394
|
-
clearTimeout(
|
|
24917
|
+
if (timer2) {
|
|
24918
|
+
clearTimeout(timer2);
|
|
24395
24919
|
}
|
|
24396
|
-
|
|
24920
|
+
timer2 = setTimeout(() => {
|
|
24397
24921
|
const status = props.DataList.some((item) => {
|
|
24398
24922
|
return item.required && !Data[item.key];
|
|
24399
24923
|
});
|
|
@@ -24423,8 +24947,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
24423
24947
|
formItem.props.countdown = false;
|
|
24424
24948
|
};
|
|
24425
24949
|
onBeforeMount(() => {
|
|
24426
|
-
if (
|
|
24427
|
-
clearTimeout(
|
|
24950
|
+
if (timer2) {
|
|
24951
|
+
clearTimeout(timer2);
|
|
24428
24952
|
}
|
|
24429
24953
|
});
|
|
24430
24954
|
__expose({
|
|
@@ -24475,7 +24999,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
24475
24999
|
autocomplete: autocompleteCalc((_a = formItem.props) == null ? void 0 : _a.autocomplete),
|
|
24476
25000
|
autofocus: formItem.key === "username",
|
|
24477
25001
|
spellcheck: false
|
|
24478
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange", "onKeydown", "autocomplete", "autofocus"])) : formItem.type === "inputButton" ? (openBlock(), createBlock(_sfc_main$
|
|
25002
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange", "onKeydown", "autocomplete", "autofocus"])) : formItem.type === "inputButton" ? (openBlock(), createBlock(_sfc_main$g, mergeProps({
|
|
24479
25003
|
key: 1,
|
|
24480
25004
|
modelValue: Data[formItem.key],
|
|
24481
25005
|
"onUpdate:modelValue": ($event) => Data[formItem.key] = $event,
|
|
@@ -24488,7 +25012,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
24488
25012
|
text: unref($t)("gitCodeLayout.userSetting.account.getVerificationCode"),
|
|
24489
25013
|
error: __props.errors.msgError,
|
|
24490
25014
|
autocomplete: autocompleteCalc((_c = formItem.props) == null ? void 0 : _c.autocomplete)
|
|
24491
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "onChange", "onClick", "onUpdate:countdown", "placeholder", "hasMobile", "text", "error", "autocomplete"])) : formItem.type === "inputSelect" ? (openBlock(), createBlock(_sfc_main$
|
|
25015
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "onChange", "onClick", "onUpdate:countdown", "placeholder", "hasMobile", "text", "error", "autocomplete"])) : formItem.type === "inputSelect" ? (openBlock(), createBlock(_sfc_main$f, mergeProps({
|
|
24492
25016
|
key: 2,
|
|
24493
25017
|
country: Data.country,
|
|
24494
25018
|
class: __props.formErrors["mobile"] ? "input-select-error" : "",
|
|
@@ -24521,13 +25045,13 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
24521
25045
|
}
|
|
24522
25046
|
});
|
|
24523
25047
|
const recentLoginImg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAoCAYAAAAIeF9DAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAfgSURBVHgB7ZtLbFRlFMfPnU4LhbaMgAJCdJpYImwoK7vgMSwkGDckQgwrARduJNREE4nykhhJMKGNblxIuzOEElcGAptiWeCKuoFIMYykCEoLpQ9eZWY8v9v52tvbOzP33mlLDPefTDtzn993/uf8z/nO3LGkDNxIphJPRVIxyW7MipXUTY0xySVyIgl5gWCJDOTESuu80yK532MS62xId3ZKCFgSAj3JVConuYOW5BpfNOMHQFrN21kp1uH6dGfa70mBCPkjmdqqJBxXL0hKhACw2v0S44sQlabkqOTalIiURAiLtNrv8Mp0V3uxg2JSAn8mN+x9JtnLERllI6n+33YtueF4sYOKRkhPcsNBzRGHJMI0w+pWCdukEjbg3lMwQiIyZhK5Rk0BP3vt8SQkImM2kEt5ydcUySJnZERaJMKsICu5T95Md43bexIhVFMk8GhtMasYqJRYvcknkyQLXYvImHUkRiV70HwYJ+RaMrWTZCP/E8TqaiQsyjl3htBMG4o38YltuYN+z56z+g1J7NouQTB4+ow8utQ9aVvliqWy7Ievpb+1TUbOXZy0D6NV5A0X1+M4Nr6c/8tkXlOjvS29/n0Z7b0z5V5Lju3zHMOj3y7LnFUN9vh7d+y1t720e7vEamvsMRTC/LfXSc3m9eIX/3z2jQTFU8k2679DNiHXk+u3ZgO0QzBW3bYtcv/EKckODpc8flHzLnl46fKU7RjzyZXr8qqSwiQGO86O70vs2mafZ8B9Mvri+KFzXWrcbvuzFyDLDUjMDA7J8PkuSezeJvM3r5MqJXfx/o+lv6UwGaBiQY3nNd2owmn0FYYQTeZ4yBghOYl9wN+gwCh+CCkGBj966/a4VztJeagR9a/ux/B+70MkDbSdmhRxRAGEPGjrsJ0AR8IJAGTca22339e9t0UJuzjlXozJOa5CWLh35yQnCogETds42qVJZauEwMK9u8omBNxraZfK5ctsSXLDS5KKoVYjd5GOi2siQxBEFECCuRYE1KoE4YIDShLAkBg089EXU+QTIHOlcg9yWg4ykmmM659UyC683NHB+zFYw40LJY8JE+ZegAic5OX9e2z5IDIYY9+R78ePYT85ZMVPrfaL3IaM3T3ynScZgIjyI1vlwUrF9YullIQEk5lJzFWvLHUPigW3nAyc6FAXs+zIABBQ33VyyrnG4yHDncPcuKEFRCmUKVmUvGs0h1hrguYPPCrtY4BOeCVgEmuFQwa4rok4jMU5zghEfqrV44fPTei8+7ocQ3Rw7RFN/v0qT8hNsblAOjkM2XRWW85Kzw9idbXjY3DOO4CsJ5SQnO+FIEmv3LBlcEa3a7ScrG5aa79nEnc+1QTfO+alGAIynFLG/SGkT6WlULlL9ce+vx25gMqsGPD+hc1j3k0OuqVyxjXclZ5fJB3RONhxRudw1O+pibhmj6Tf+Ihp+UfiqlHvY5JOo+CFGHW4gAYbOD3aOVC3pHCfx1d6JAhYZzy52mNLD8R4yZQXhjWS7mqOGdLzFqh8mXkNnT5rV5KFsFQdYLT3th2FThBZJiqeBSxK4kFaJWgzmNd0Uh4o8wzYAP2s2/bOtCVnCMZQQeDMASz2MAyJuhiQN5NL7OT/1UTyN8SweB3S+d7PR7YTHONe8L72y49KxG2N0i8lIAbiEhKvHNgjix3hbDSfKEkW8EzWFbfyK+RiMCXmk6vXpRwwnlLrB0rkYsDgLCYXH9hj54ipOaZ20mcIrgy5ONR8ng5NCBEycn5Cnsb0fa09AbySid5898Px/eg7XuMHtGW8PC8oKvIdhWLw09eilEaibYnSRSyybCKL4oG5Uu0RSWyjpC6Vt7yg3ZK/QhOSGxxxbZlYy+CVDJIEzHtTHfXvaCt53cr82sGr1RIUGKdQXysoKBBuXhlzsNdVkog+8gM5BNIpCkbyuSjoYtZALdgdmhAGMbdpojlMH8cUByQ0QhsvwsvxHL8eX5WXq3uuRBkUnG8kr9Bij6YhfSo/bRFAg5FciTpwfYgZqwSP2qVz1eoGKQc8YFfyqZNC6NMeEPnAvBgkMDU4BQChTYJjW7HcgRdTTtNzgrTefNlZLshFyIzXOgTSyYPVb5X+xoHoxuCQgaOx6neuLRgrY2Yb+bNUXiqANE87BiIEvWRVy2ToBWFIXhgdY2J43gOzqDIaXd3kPXGiiDKadQPg/EILqUGt6nrqN/omy2g/93CD8RLRxSLREMGLY8mJptJ0gzGxH8KQL4gplb8mw+rkbyDJmqfeNFcT92OdZMZuhw/ZxqP+Z5FHyDIoPATiOIbPEAlxNCOd/SIKAdO2YBvRseTY5/ZkMKSTGNN+B06iAWSyn3Mpvb1QqJ/mrgid3d/q/PcuzkWmqQDNy90pwAlYzxBNXh3sQsiIdZj/1rXkhuB9dw+YdQgELFePGtFSEW8yRiV6OAZdN14GUUiGs/EHMAQTp/vrLCs9J6LX78uvNTivssxOAo5gKiRDutMxcKIl3+4b316somIs/qLZal+ZvmDr3LQREiE00hmJbVqVf+43dFKPMF3IHV7leAg7IuT5otX98HVEyHOD1b0y/Wuze2tEyHOB/UOeTV57Qq/UI4SGytSF5kI7owiZJfA7RJ7j9ZIpJ6IImR20xiV2qMHj9yBuRITMEMYiQlqrJNZS74MIg4iQacCY8a0B1X9tZ2e1R1PRHfZn0f8BoszztTsf3m0AAAAASUVORK5CYII=";
|
|
24524
|
-
const _hoisted_1$
|
|
24525
|
-
const _hoisted_2$
|
|
24526
|
-
const _hoisted_3$
|
|
24527
|
-
const _hoisted_4$
|
|
24528
|
-
const _hoisted_5$
|
|
24529
|
-
const _hoisted_6$
|
|
24530
|
-
const _sfc_main$
|
|
25048
|
+
const _hoisted_1$b = { class: "auth-container" };
|
|
25049
|
+
const _hoisted_2$8 = { class: "tips" };
|
|
25050
|
+
const _hoisted_3$8 = { class: "icons" };
|
|
25051
|
+
const _hoisted_4$6 = ["src", "alt", "onClick"];
|
|
25052
|
+
const _hoisted_5$3 = { class: "recent-login-img" };
|
|
25053
|
+
const _hoisted_6$3 = ["src"];
|
|
25054
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
24531
25055
|
__name: "auth",
|
|
24532
25056
|
props: {
|
|
24533
25057
|
logos: {},
|
|
@@ -24548,9 +25072,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
24548
25072
|
return loginMethodList.includes(props.recentLoginType);
|
|
24549
25073
|
};
|
|
24550
25074
|
return (_ctx, _cache) => {
|
|
24551
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24552
|
-
createElementVNode("div", _hoisted_2$
|
|
24553
|
-
createElementVNode("div", _hoisted_3$
|
|
25075
|
+
return openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
25076
|
+
createElementVNode("div", _hoisted_2$8, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.otherLogin")), 1),
|
|
25077
|
+
createElementVNode("div", _hoisted_3$8, [
|
|
24554
25078
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.logos, (icon) => {
|
|
24555
25079
|
return openBlock(), createElementBlock("div", {
|
|
24556
25080
|
key: icon.alt,
|
|
@@ -24567,16 +25091,16 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
24567
25091
|
src: icon.src,
|
|
24568
25092
|
alt: icon.alt,
|
|
24569
25093
|
onClick: withModifiers(($event) => handleClick(icon), ["stop"])
|
|
24570
|
-
}, null, 8, _hoisted_4$
|
|
25094
|
+
}, null, 8, _hoisted_4$6)
|
|
24571
25095
|
]),
|
|
24572
25096
|
_: 2
|
|
24573
25097
|
}, 1032, ["content", "disabled"]),
|
|
24574
|
-
createElementVNode("div", _hoisted_5$
|
|
25098
|
+
createElementVNode("div", _hoisted_5$3, [
|
|
24575
25099
|
checkIsRecentLogin(icon.loginMethodList || []) ? (openBlock(), createElementBlock("img", {
|
|
24576
25100
|
key: 0,
|
|
24577
25101
|
src: unref(recentLoginImg),
|
|
24578
25102
|
class: "recent-login-img__icon"
|
|
24579
|
-
}, null, 8, _hoisted_6$
|
|
25103
|
+
}, null, 8, _hoisted_6$3)) : createCommentVNode("", true)
|
|
24580
25104
|
])
|
|
24581
25105
|
]);
|
|
24582
25106
|
}), 128))
|
|
@@ -24585,7 +25109,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
24585
25109
|
};
|
|
24586
25110
|
}
|
|
24587
25111
|
});
|
|
24588
|
-
const GAuth = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
25112
|
+
const GAuth = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
24589
25113
|
const LOGIN_DECLARE_KEY = "g-login-declare-status";
|
|
24590
25114
|
const useDeclareStatus = () => {
|
|
24591
25115
|
const declareNotClicked = ref({
|
|
@@ -24627,11 +25151,11 @@ const useDeclareStatus = () => {
|
|
|
24627
25151
|
resetDeclareStatus
|
|
24628
25152
|
};
|
|
24629
25153
|
};
|
|
24630
|
-
const _hoisted_1$
|
|
24631
|
-
const _hoisted_2$
|
|
24632
|
-
const _hoisted_3$
|
|
24633
|
-
const _hoisted_4$
|
|
24634
|
-
const _sfc_main$
|
|
25154
|
+
const _hoisted_1$a = { class: "agreement" };
|
|
25155
|
+
const _hoisted_2$7 = { class: "agreement__placeholder" };
|
|
25156
|
+
const _hoisted_3$7 = { class: "agreement__placeholder" };
|
|
25157
|
+
const _hoisted_4$5 = { class: "agreement__placeholder" };
|
|
25158
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
24635
25159
|
__name: "agreement",
|
|
24636
25160
|
props: {
|
|
24637
25161
|
modelValue: { type: Boolean },
|
|
@@ -24655,19 +25179,19 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
24655
25179
|
}
|
|
24656
25180
|
});
|
|
24657
25181
|
return (_ctx, _cache) => {
|
|
24658
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
25182
|
+
return openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
24659
25183
|
createVNode(unref(Checkbox), {
|
|
24660
25184
|
"model-value": __props.modelValue,
|
|
24661
25185
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = (val) => emits("update:modelValue", val)),
|
|
24662
25186
|
size: "sm"
|
|
24663
25187
|
}, {
|
|
24664
25188
|
default: withCtx(() => [
|
|
24665
|
-
createElementVNode("span", _hoisted_2$
|
|
25189
|
+
createElementVNode("span", _hoisted_2$7, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.agree")), 1),
|
|
24666
25190
|
createElementVNode("span", {
|
|
24667
25191
|
class: normalizeClass(["agreement__link", unref(declareNotClicked)["agreement"] ? "badge-dot-item" : ""]),
|
|
24668
25192
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleClick("agreement"), ["stop"]))
|
|
24669
25193
|
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.agreement")), 3),
|
|
24670
|
-
createElementVNode("span", _hoisted_3$
|
|
25194
|
+
createElementVNode("span", _hoisted_3$7, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.and")), 1),
|
|
24671
25195
|
createElementVNode("span", {
|
|
24672
25196
|
class: normalizeClass(["agreement__link", unref(declareNotClicked)["privacy"] ? "badge-dot-item" : ""]),
|
|
24673
25197
|
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleClick("privacy"), ["stop"]))
|
|
@@ -24681,7 +25205,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
24681
25205
|
size: "sm"
|
|
24682
25206
|
}, {
|
|
24683
25207
|
default: withCtx(() => [
|
|
24684
|
-
createElementVNode("span", _hoisted_4$
|
|
25208
|
+
createElementVNode("span", _hoisted_4$5, [
|
|
24685
25209
|
createTextVNode(toDisplayString$1(dataShareName.value) + " ", 1),
|
|
24686
25210
|
createElementVNode("span", {
|
|
24687
25211
|
class: "agreement__link",
|
|
@@ -24695,11 +25219,11 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
24695
25219
|
};
|
|
24696
25220
|
}
|
|
24697
25221
|
});
|
|
24698
|
-
const GAgreement = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
24699
|
-
const _hoisted_1$
|
|
24700
|
-
const _hoisted_2$
|
|
24701
|
-
const _hoisted_3$
|
|
24702
|
-
const _sfc_main$
|
|
25222
|
+
const GAgreement = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
25223
|
+
const _hoisted_1$9 = { class: "agreements__hint" };
|
|
25224
|
+
const _hoisted_2$6 = { class: "agreements__hint-plain" };
|
|
25225
|
+
const _hoisted_3$6 = { class: "agreements__hint" };
|
|
25226
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
24703
25227
|
__name: "agreements",
|
|
24704
25228
|
props: {
|
|
24705
25229
|
modelValue: { type: Boolean },
|
|
@@ -24731,12 +25255,12 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
24731
25255
|
class: "agree-module agreements"
|
|
24732
25256
|
}, {
|
|
24733
25257
|
default: withCtx(() => [
|
|
24734
|
-
createElementVNode("span", _hoisted_1$
|
|
25258
|
+
createElementVNode("span", _hoisted_1$9, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.readAgree")), 1),
|
|
24735
25259
|
createElementVNode("a", {
|
|
24736
25260
|
class: normalizeClass(["agreements__link", unref(declareNotClicked)["agreement"] ? "badge-dot-item" : ""]),
|
|
24737
25261
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleClick("agreement"), ["stop"]))
|
|
24738
25262
|
}, toDisplayString$1("《" + unref($t)("gitCodeLayout.LoginModal.link.agreement") + "》"), 3),
|
|
24739
|
-
createElementVNode("span", _hoisted_2$
|
|
25263
|
+
createElementVNode("span", _hoisted_2$6, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.and")), 1),
|
|
24740
25264
|
createElementVNode("a", {
|
|
24741
25265
|
class: normalizeClass(["agreements__link", unref(declareNotClicked)["privacy"] ? "badge-dot-item" : ""]),
|
|
24742
25266
|
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleClick("privacy"), ["stop"]))
|
|
@@ -24752,7 +25276,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
24752
25276
|
class: "agreements__data-share"
|
|
24753
25277
|
}, {
|
|
24754
25278
|
default: withCtx(() => [
|
|
24755
|
-
createElementVNode("span", _hoisted_3$
|
|
25279
|
+
createElementVNode("span", _hoisted_3$6, toDisplayString$1(dataShareName.value), 1),
|
|
24756
25280
|
createElementVNode("span", {
|
|
24757
25281
|
class: "agreements__data-link",
|
|
24758
25282
|
onClick: _cache[3] || (_cache[3] = withModifiers(($event) => handleClick("dataShare"), ["stop"]))
|
|
@@ -24764,14 +25288,14 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
24764
25288
|
};
|
|
24765
25289
|
}
|
|
24766
25290
|
});
|
|
24767
|
-
const _hoisted_1$
|
|
24768
|
-
const _hoisted_2$
|
|
24769
|
-
const _hoisted_3$
|
|
24770
|
-
const _hoisted_4$
|
|
25291
|
+
const _hoisted_1$8 = { class: "g-title" };
|
|
25292
|
+
const _hoisted_2$5 = { class: "back-img" };
|
|
25293
|
+
const _hoisted_3$5 = ["src"];
|
|
25294
|
+
const _hoisted_4$4 = {
|
|
24771
25295
|
key: 0,
|
|
24772
25296
|
class: "g-title__text"
|
|
24773
25297
|
};
|
|
24774
|
-
const _sfc_main$
|
|
25298
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
24775
25299
|
__name: "title",
|
|
24776
25300
|
props: {
|
|
24777
25301
|
title: {},
|
|
@@ -24786,21 +25310,21 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
24786
25310
|
emits("back");
|
|
24787
25311
|
};
|
|
24788
25312
|
return (_ctx, _cache) => {
|
|
24789
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24790
|
-
createElementVNode("div", _hoisted_2$
|
|
25313
|
+
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
25314
|
+
createElementVNode("div", _hoisted_2$5, [
|
|
24791
25315
|
__props.showBack ? (openBlock(), createElementBlock("img", {
|
|
24792
25316
|
key: 0,
|
|
24793
25317
|
src: __props.icon,
|
|
24794
25318
|
class: "g-title__back-img",
|
|
24795
25319
|
onClick: withModifiers(handleClick, ["stop"])
|
|
24796
|
-
}, null, 8, _hoisted_3$
|
|
25320
|
+
}, null, 8, _hoisted_3$5)) : createCommentVNode("", true)
|
|
24797
25321
|
]),
|
|
24798
|
-
__props.showTitle ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
25322
|
+
__props.showTitle ? (openBlock(), createElementBlock("span", _hoisted_4$4, toDisplayString$1(__props.title), 1)) : createCommentVNode("", true)
|
|
24799
25323
|
]);
|
|
24800
25324
|
};
|
|
24801
25325
|
}
|
|
24802
25326
|
});
|
|
24803
|
-
const GTitle = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
25327
|
+
const GTitle = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
24804
25328
|
const FindFileName = (path) => {
|
|
24805
25329
|
var _a;
|
|
24806
25330
|
const isName = /.*\/.*\/(.*\..*)/;
|
|
@@ -27191,10 +27715,10 @@ const getFormRules = () => ({
|
|
|
27191
27715
|
}
|
|
27192
27716
|
]
|
|
27193
27717
|
});
|
|
27194
|
-
const _hoisted_1$
|
|
27195
|
-
const _hoisted_2$
|
|
27196
|
-
const _hoisted_3$
|
|
27197
|
-
const _sfc_main$
|
|
27718
|
+
const _hoisted_1$7 = { class: "modal-body" };
|
|
27719
|
+
const _hoisted_2$4 = { class: "login-check-modal-text" };
|
|
27720
|
+
const _hoisted_3$4 = { class: "login-check-modal-footer" };
|
|
27721
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
27198
27722
|
__name: "loginCheckModal",
|
|
27199
27723
|
props: /* @__PURE__ */ mergeModels({
|
|
27200
27724
|
dataShareChecked: { type: Boolean }
|
|
@@ -27236,7 +27760,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
27236
27760
|
title: unref($t)("gitCodeLayout.LoginModal.subtitle.useAgrAndPriPolTip")
|
|
27237
27761
|
}, {
|
|
27238
27762
|
footer: withCtx(() => [
|
|
27239
|
-
createElementVNode("div", _hoisted_3$
|
|
27763
|
+
createElementVNode("div", _hoisted_3$4, [
|
|
27240
27764
|
createVNode(unref(Button), {
|
|
27241
27765
|
class: "login-check-modal-footer__btn-cancel",
|
|
27242
27766
|
onClick: close
|
|
@@ -27260,7 +27784,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
27260
27784
|
])
|
|
27261
27785
|
]),
|
|
27262
27786
|
default: withCtx(() => [
|
|
27263
|
-
createElementVNode("div", _hoisted_1$
|
|
27787
|
+
createElementVNode("div", _hoisted_1$7, [
|
|
27264
27788
|
createElementVNode("div", null, [
|
|
27265
27789
|
createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.youNeeToAgr")) + " ", 1),
|
|
27266
27790
|
createElementVNode("span", {
|
|
@@ -27284,7 +27808,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
27284
27808
|
class: "login-check-modal-data-share"
|
|
27285
27809
|
}, {
|
|
27286
27810
|
default: withCtx(() => [
|
|
27287
|
-
createElementVNode("span", _hoisted_2$
|
|
27811
|
+
createElementVNode("span", _hoisted_2$4, toDisplayString$1(dataShareName.value), 1),
|
|
27288
27812
|
createElementVNode("span", {
|
|
27289
27813
|
class: "login-check-modal-link login-check-modal-link--sm",
|
|
27290
27814
|
onClick: _cache[2] || (_cache[2] = withModifiers(($event) => handleClick("dataShare"), ["stop"]))
|
|
@@ -27299,34 +27823,34 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
27299
27823
|
};
|
|
27300
27824
|
}
|
|
27301
27825
|
});
|
|
27302
|
-
const _hoisted_1$
|
|
27303
|
-
const _hoisted_2$
|
|
27304
|
-
const _hoisted_3$
|
|
27305
|
-
const _hoisted_4$
|
|
27306
|
-
const _hoisted_5$
|
|
27826
|
+
const _hoisted_1$6 = { class: "mfa" };
|
|
27827
|
+
const _hoisted_2$3 = ["src"];
|
|
27828
|
+
const _hoisted_3$3 = { class: "mfa__title" };
|
|
27829
|
+
const _hoisted_4$3 = { class: "mfa__desc" };
|
|
27830
|
+
const _hoisted_5$2 = {
|
|
27307
27831
|
key: 0,
|
|
27308
27832
|
class: "input-list"
|
|
27309
27833
|
};
|
|
27310
|
-
const _hoisted_6$
|
|
27834
|
+
const _hoisted_6$2 = {
|
|
27311
27835
|
key: 1,
|
|
27312
27836
|
class: "input-list cover"
|
|
27313
27837
|
};
|
|
27314
|
-
const _hoisted_7$
|
|
27838
|
+
const _hoisted_7$2 = {
|
|
27315
27839
|
key: 2,
|
|
27316
27840
|
class: "mfa__error"
|
|
27317
27841
|
};
|
|
27318
|
-
const _hoisted_8$
|
|
27842
|
+
const _hoisted_8$2 = {
|
|
27319
27843
|
key: 3,
|
|
27320
27844
|
class: "mfa__hint"
|
|
27321
27845
|
};
|
|
27322
|
-
const _hoisted_9$
|
|
27846
|
+
const _hoisted_9$2 = {
|
|
27323
27847
|
key: 4,
|
|
27324
27848
|
class: "mfa__hint"
|
|
27325
27849
|
};
|
|
27326
27850
|
const _hoisted_10$1 = { class: "mfa__action" };
|
|
27327
27851
|
const _hoisted_11$1 = { class: "mfa__footer" };
|
|
27328
27852
|
const _hoisted_12$1 = { class: "mfa__back" };
|
|
27329
|
-
const _sfc_main$
|
|
27853
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
27330
27854
|
__name: "MFA",
|
|
27331
27855
|
props: {
|
|
27332
27856
|
mask: {},
|
|
@@ -27476,15 +28000,15 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
27476
28000
|
focusInput();
|
|
27477
28001
|
});
|
|
27478
28002
|
return (_ctx, _cache) => {
|
|
27479
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
28003
|
+
return openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
27480
28004
|
createElementVNode("img", {
|
|
27481
28005
|
class: "mfa__logo",
|
|
27482
28006
|
src: currentLogo.value,
|
|
27483
28007
|
alt: ""
|
|
27484
|
-
}, null, 8, _hoisted_2$
|
|
27485
|
-
createElementVNode("p", _hoisted_3$
|
|
27486
|
-
createElementVNode("p", _hoisted_4$
|
|
27487
|
-
mode.value === "code" ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
28008
|
+
}, null, 8, _hoisted_2$3),
|
|
28009
|
+
createElementVNode("p", _hoisted_3$3, toDisplayString$1(modeTitle.value), 1),
|
|
28010
|
+
createElementVNode("p", _hoisted_4$3, toDisplayString$1(unref(t2)("gitCodeLayout.LoginModal.mfatip5")), 1),
|
|
28011
|
+
mode.value === "code" ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
|
|
27488
28012
|
(openBlock(true), createElementBlock(Fragment, null, renderList(inputList.value, (item, index2) => {
|
|
27489
28013
|
return openBlock(), createElementBlock("div", {
|
|
27490
28014
|
key: item.id,
|
|
@@ -27502,16 +28026,16 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
27502
28026
|
]);
|
|
27503
28027
|
}), 128))
|
|
27504
28028
|
])) : createCommentVNode("", true),
|
|
27505
|
-
mode.value === "recover" ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
28029
|
+
mode.value === "recover" ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
|
|
27506
28030
|
createVNode(unref(Input), {
|
|
27507
28031
|
modelValue: coverCode.value,
|
|
27508
28032
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => coverCode.value = $event),
|
|
27509
28033
|
maxLength: "10"
|
|
27510
28034
|
}, null, 8, ["modelValue"])
|
|
27511
28035
|
])) : createCommentVNode("", true),
|
|
27512
|
-
errorMsg.value ? (openBlock(), createElementBlock("p", _hoisted_7$
|
|
27513
|
-
mode.value === "code" ? (openBlock(), createElementBlock("p", _hoisted_8$
|
|
27514
|
-
mode.value === "recover" ? (openBlock(), createElementBlock("p", _hoisted_9$
|
|
28036
|
+
errorMsg.value ? (openBlock(), createElementBlock("p", _hoisted_7$2, toDisplayString$1(errorMsg.value), 1)) : createCommentVNode("", true),
|
|
28037
|
+
mode.value === "code" ? (openBlock(), createElementBlock("p", _hoisted_8$2, toDisplayString$1(unref(t2)("gitCodeLayout.LoginModal.mfatip1")), 1)) : createCommentVNode("", true),
|
|
28038
|
+
mode.value === "recover" ? (openBlock(), createElementBlock("p", _hoisted_9$2, toDisplayString$1(unref(t2)("gitCodeLayout.LoginModal.mfatip2")), 1)) : createCommentVNode("", true),
|
|
27515
28039
|
createElementVNode("div", _hoisted_10$1, [
|
|
27516
28040
|
createVNode(unref(Button), {
|
|
27517
28041
|
class: "mfa__submit",
|
|
@@ -27556,7 +28080,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
27556
28080
|
};
|
|
27557
28081
|
}
|
|
27558
28082
|
});
|
|
27559
|
-
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
28083
|
+
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
27560
28084
|
const _SlidCaptchaManager = class _SlidCaptchaManager {
|
|
27561
28085
|
// eslint-disable-next-line no-useless-constructor
|
|
27562
28086
|
constructor() {
|
|
@@ -27632,17 +28156,17 @@ const _SlidCaptchaManager = class _SlidCaptchaManager {
|
|
|
27632
28156
|
/**
|
|
27633
28157
|
* 初始化 TAC 实例
|
|
27634
28158
|
*/
|
|
27635
|
-
async initTAC(path,
|
|
27636
|
-
if (!
|
|
28159
|
+
async initTAC(path, config2, style, onload, onerror) {
|
|
28160
|
+
if (!config2.requestCaptchaDataUrl) {
|
|
27637
28161
|
throw new Error("TAC 配置缺少必需的 requestCaptchaDataUrl");
|
|
27638
28162
|
}
|
|
27639
|
-
if (!
|
|
28163
|
+
if (!config2.validCaptchaUrl) {
|
|
27640
28164
|
throw new Error("TAC 配置缺少必需的 validCaptchaUrl");
|
|
27641
28165
|
}
|
|
27642
|
-
if (!
|
|
28166
|
+
if (!config2.bindEl) {
|
|
27643
28167
|
throw new Error("TAC 配置缺少必需的 bindEl 元素");
|
|
27644
28168
|
}
|
|
27645
|
-
if (!
|
|
28169
|
+
if (!config2.validSuccess) {
|
|
27646
28170
|
throw new Error("TAC 配置缺少必需的 validSuccess 回调函数");
|
|
27647
28171
|
}
|
|
27648
28172
|
if (!window.initTAC) {
|
|
@@ -27669,7 +28193,7 @@ const _SlidCaptchaManager = class _SlidCaptchaManager {
|
|
|
27669
28193
|
return;
|
|
27670
28194
|
}
|
|
27671
28195
|
try {
|
|
27672
|
-
window.initTAC(path,
|
|
28196
|
+
window.initTAC(path, config2, style || {}).then((tac) => {
|
|
27673
28197
|
this.tacInstance = tac;
|
|
27674
28198
|
if (onload) {
|
|
27675
28199
|
onload(tac);
|
|
@@ -27744,10 +28268,10 @@ const _SlidCaptchaManager = class _SlidCaptchaManager {
|
|
|
27744
28268
|
__publicField(_SlidCaptchaManager, "instance");
|
|
27745
28269
|
let SlidCaptchaManager = _SlidCaptchaManager;
|
|
27746
28270
|
const slidCaptchaManager = SlidCaptchaManager.getInstance();
|
|
27747
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
28271
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-Bhjr8DTm.js"));
|
|
27748
28272
|
const useSlidCaptcha = () => {
|
|
27749
28273
|
const { mount, unMount, isMounted } = usePopup("slid-captcha-popup");
|
|
27750
|
-
const open = (
|
|
28274
|
+
const open = (config2) => {
|
|
27751
28275
|
if (isMounted()) {
|
|
27752
28276
|
unMount();
|
|
27753
28277
|
slidCaptchaManager.destroyTAC();
|
|
@@ -27756,7 +28280,7 @@ const useSlidCaptcha = () => {
|
|
|
27756
28280
|
onSuccess: (resData) => {
|
|
27757
28281
|
var _a;
|
|
27758
28282
|
unMount();
|
|
27759
|
-
(_a =
|
|
28283
|
+
(_a = config2 == null ? void 0 : config2.onSuccess) == null ? void 0 : _a.call(config2, resData);
|
|
27760
28284
|
},
|
|
27761
28285
|
modelValue: true,
|
|
27762
28286
|
onClose: () => {
|
|
@@ -27774,15 +28298,15 @@ const useSlidCaptcha = () => {
|
|
|
27774
28298
|
close
|
|
27775
28299
|
};
|
|
27776
28300
|
};
|
|
27777
|
-
const YunpianCaptcha = defineAsyncComponent(() => import("./index-
|
|
28301
|
+
const YunpianCaptcha = defineAsyncComponent(() => import("./index-D0ueLDg1.js"));
|
|
27778
28302
|
const useYunpianCaptcha = () => {
|
|
27779
28303
|
const { mount, unMount } = usePopup("yunpian-captcha-popup");
|
|
27780
|
-
const open = (
|
|
28304
|
+
const open = (config2) => {
|
|
27781
28305
|
mount(YunpianCaptcha, {
|
|
27782
28306
|
onSuccess: (resData) => {
|
|
27783
28307
|
var _a;
|
|
27784
28308
|
unMount();
|
|
27785
|
-
(_a =
|
|
28309
|
+
(_a = config2 == null ? void 0 : config2.onSuccess) == null ? void 0 : _a.call(config2, resData);
|
|
27786
28310
|
},
|
|
27787
28311
|
modelValue: true,
|
|
27788
28312
|
onClose: () => unMount(),
|
|
@@ -27790,7 +28314,7 @@ const useYunpianCaptcha = () => {
|
|
|
27790
28314
|
unMount();
|
|
27791
28315
|
nextTick(() => {
|
|
27792
28316
|
var _a;
|
|
27793
|
-
(_a =
|
|
28317
|
+
(_a = config2 == null ? void 0 : config2.onFallback) == null ? void 0 : _a.call(config2, config2 == null ? void 0 : config2.onSuccess);
|
|
27794
28318
|
});
|
|
27795
28319
|
}
|
|
27796
28320
|
});
|
|
@@ -27879,14 +28403,14 @@ const _YidunCaptchaManager = class _YidunCaptchaManager {
|
|
|
27879
28403
|
/**
|
|
27880
28404
|
* 初始化易盾验证码实例
|
|
27881
28405
|
*/
|
|
27882
|
-
async initNECaptcha(
|
|
27883
|
-
if (!
|
|
28406
|
+
async initNECaptcha(config2, onload, onerror) {
|
|
28407
|
+
if (!config2.captchaId) {
|
|
27884
28408
|
throw new Error("易盾验证码配置缺少必需的 captchaId");
|
|
27885
28409
|
}
|
|
27886
|
-
if (!
|
|
28410
|
+
if (!config2.element) {
|
|
27887
28411
|
throw new Error("易盾验证码配置缺少必需的 element 元素");
|
|
27888
28412
|
}
|
|
27889
|
-
if (!
|
|
28413
|
+
if (!config2.onVerify) {
|
|
27890
28414
|
throw new Error("易盾验证码配置缺少必需的 onVerify 回调函数");
|
|
27891
28415
|
}
|
|
27892
28416
|
if (!window.initNECaptchaWithFallback) {
|
|
@@ -27914,7 +28438,7 @@ const _YidunCaptchaManager = class _YidunCaptchaManager {
|
|
|
27914
28438
|
}
|
|
27915
28439
|
try {
|
|
27916
28440
|
window.initNECaptchaWithFallback(
|
|
27917
|
-
|
|
28441
|
+
config2,
|
|
27918
28442
|
(instance) => {
|
|
27919
28443
|
this.neCaptchaInstance = instance;
|
|
27920
28444
|
if (onload) {
|
|
@@ -27991,9 +28515,9 @@ const _YidunCaptchaManager = class _YidunCaptchaManager {
|
|
|
27991
28515
|
/**
|
|
27992
28516
|
* 重新初始化(用于更新配置)
|
|
27993
28517
|
*/
|
|
27994
|
-
async reinitialize(
|
|
28518
|
+
async reinitialize(config2, onload, onerror) {
|
|
27995
28519
|
this.destroyNECaptcha();
|
|
27996
|
-
await this.initNECaptcha(
|
|
28520
|
+
await this.initNECaptcha(config2, onload, onerror);
|
|
27997
28521
|
}
|
|
27998
28522
|
};
|
|
27999
28523
|
__publicField(_YidunCaptchaManager, "instance");
|
|
@@ -28068,15 +28592,15 @@ const useYiDunCaptcha = () => {
|
|
|
28068
28592
|
removeHiddenElement();
|
|
28069
28593
|
removeStyle();
|
|
28070
28594
|
};
|
|
28071
|
-
const open = (
|
|
28072
|
-
if (!(
|
|
28595
|
+
const open = (config2) => {
|
|
28596
|
+
if (!(config2 == null ? void 0 : config2.captchaId)) {
|
|
28073
28597
|
console.error("captcha captchaId 不能为空");
|
|
28074
28598
|
return;
|
|
28075
28599
|
}
|
|
28076
28600
|
cleanup();
|
|
28077
28601
|
const hiddenEl = createHiddenElement();
|
|
28078
28602
|
const captchaConfig = {
|
|
28079
|
-
captchaId:
|
|
28603
|
+
captchaId: config2.captchaId,
|
|
28080
28604
|
apiVersion: 2,
|
|
28081
28605
|
element: hiddenEl,
|
|
28082
28606
|
width: isMobile.value ? "320px" : "400px",
|
|
@@ -28095,7 +28619,7 @@ const useYiDunCaptcha = () => {
|
|
|
28095
28619
|
console.warn("验证失败:", err);
|
|
28096
28620
|
return;
|
|
28097
28621
|
}
|
|
28098
|
-
(_a =
|
|
28622
|
+
(_a = config2 == null ? void 0 : config2.onSuccess) == null ? void 0 : _a.call(config2, data);
|
|
28099
28623
|
cleanup();
|
|
28100
28624
|
},
|
|
28101
28625
|
onClose: () => {
|
|
@@ -28104,7 +28628,7 @@ const useYiDunCaptcha = () => {
|
|
|
28104
28628
|
onError: (error) => {
|
|
28105
28629
|
var _a;
|
|
28106
28630
|
console.error("captcha初始化失败:", error);
|
|
28107
|
-
(_a =
|
|
28631
|
+
(_a = config2 == null ? void 0 : config2.onFallback) == null ? void 0 : _a.call(config2, config2 == null ? void 0 : config2.onSuccess);
|
|
28108
28632
|
removeHiddenElement();
|
|
28109
28633
|
captchaInstance.value = null;
|
|
28110
28634
|
},
|
|
@@ -28112,7 +28636,7 @@ const useYiDunCaptcha = () => {
|
|
|
28112
28636
|
onFallback: (_data) => {
|
|
28113
28637
|
var _a;
|
|
28114
28638
|
console.warn("captcha触发降级");
|
|
28115
|
-
(_a =
|
|
28639
|
+
(_a = config2 == null ? void 0 : config2.onFallback) == null ? void 0 : _a.call(config2, config2 == null ? void 0 : config2.onSuccess);
|
|
28116
28640
|
removeHiddenElement();
|
|
28117
28641
|
captchaInstance.value = null;
|
|
28118
28642
|
}
|
|
@@ -28134,14 +28658,14 @@ const useYiDunCaptcha = () => {
|
|
|
28134
28658
|
(err) => {
|
|
28135
28659
|
var _a;
|
|
28136
28660
|
console.error("captcha初始化失败:", err);
|
|
28137
|
-
(_a =
|
|
28661
|
+
(_a = config2 == null ? void 0 : config2.onFallback) == null ? void 0 : _a.call(config2, config2 == null ? void 0 : config2.onSuccess);
|
|
28138
28662
|
removeHiddenElement();
|
|
28139
28663
|
captchaInstance.value = null;
|
|
28140
28664
|
}
|
|
28141
28665
|
).catch((error) => {
|
|
28142
28666
|
var _a;
|
|
28143
28667
|
console.error("captcha初始化异常:", error);
|
|
28144
|
-
(_a =
|
|
28668
|
+
(_a = config2 == null ? void 0 : config2.onFallback) == null ? void 0 : _a.call(config2, config2 == null ? void 0 : config2.onSuccess);
|
|
28145
28669
|
removeHiddenElement();
|
|
28146
28670
|
captchaInstance.value = null;
|
|
28147
28671
|
});
|
|
@@ -28165,10 +28689,10 @@ const useYiDunCaptcha = () => {
|
|
|
28165
28689
|
close
|
|
28166
28690
|
};
|
|
28167
28691
|
};
|
|
28168
|
-
const _sfc_main$
|
|
28169
|
-
const _hoisted_1$
|
|
28692
|
+
const _sfc_main$7 = {};
|
|
28693
|
+
const _hoisted_1$5 = { class: "content-loading" };
|
|
28170
28694
|
function _sfc_render(_ctx, _cache) {
|
|
28171
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
28695
|
+
return openBlock(), createElementBlock("div", _hoisted_1$5, [..._cache[0] || (_cache[0] = [
|
|
28172
28696
|
createElementVNode("div", { class: "content-loading-title" }, [
|
|
28173
28697
|
createElementVNode("div", { class: "content-loading__row" }, [
|
|
28174
28698
|
createElementVNode("img", {
|
|
@@ -28181,8 +28705,8 @@ function _sfc_render(_ctx, _cache) {
|
|
|
28181
28705
|
], -1)
|
|
28182
28706
|
])]);
|
|
28183
28707
|
}
|
|
28184
|
-
const ContentLoading = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
28185
|
-
const _sfc_main$
|
|
28708
|
+
const ContentLoading = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render], ["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
28709
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
28186
28710
|
__name: "index",
|
|
28187
28711
|
props: {
|
|
28188
28712
|
loading: { type: Boolean },
|
|
@@ -28213,24 +28737,24 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
28213
28737
|
};
|
|
28214
28738
|
}
|
|
28215
28739
|
});
|
|
28216
|
-
const DataPanel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
28740
|
+
const DataPanel = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
28217
28741
|
function useVisibilityPoll(pollFunction, options = {}, shouldPoll) {
|
|
28218
28742
|
const { interval = 1e4, immediate = true } = options;
|
|
28219
|
-
const
|
|
28743
|
+
const timer2 = ref(null);
|
|
28220
28744
|
const isPageVisible = ref(true);
|
|
28221
28745
|
const startPoll = () => {
|
|
28222
28746
|
if (shouldPoll !== void 0 && !shouldPoll.value) return;
|
|
28223
|
-
if (!
|
|
28747
|
+
if (!timer2.value && isPageVisible.value) {
|
|
28224
28748
|
if (immediate) {
|
|
28225
28749
|
pollFunction();
|
|
28226
28750
|
}
|
|
28227
|
-
|
|
28751
|
+
timer2.value = setInterval(pollFunction, interval);
|
|
28228
28752
|
}
|
|
28229
28753
|
};
|
|
28230
28754
|
const stopPoll = () => {
|
|
28231
|
-
if (
|
|
28232
|
-
clearInterval(
|
|
28233
|
-
|
|
28755
|
+
if (timer2.value) {
|
|
28756
|
+
clearInterval(timer2.value);
|
|
28757
|
+
timer2.value = null;
|
|
28234
28758
|
}
|
|
28235
28759
|
};
|
|
28236
28760
|
const handleVisibilityChange = () => {
|
|
@@ -28262,28 +28786,28 @@ function useVisibilityPoll(pollFunction, options = {}, shouldPoll) {
|
|
|
28262
28786
|
document.removeEventListener("visibilitychange", handleVisibilityChange);
|
|
28263
28787
|
});
|
|
28264
28788
|
return {
|
|
28265
|
-
timer,
|
|
28789
|
+
timer: timer2,
|
|
28266
28790
|
isPageVisible,
|
|
28267
28791
|
handleVisibilityChange,
|
|
28268
28792
|
startPoll,
|
|
28269
28793
|
stopPoll
|
|
28270
28794
|
};
|
|
28271
28795
|
}
|
|
28272
|
-
const _hoisted_1$
|
|
28796
|
+
const _hoisted_1$4 = {
|
|
28273
28797
|
key: 0,
|
|
28274
28798
|
class: "login-modal-header"
|
|
28275
28799
|
};
|
|
28276
|
-
const _hoisted_2$
|
|
28277
|
-
const _hoisted_3$
|
|
28800
|
+
const _hoisted_2$2 = { class: "devui-icon__container devui-icon--operable devui-icon--no-slots login-modal-header__close-wrap" };
|
|
28801
|
+
const _hoisted_3$2 = {
|
|
28278
28802
|
key: 0,
|
|
28279
28803
|
class: "login-modal-content-left login-modal-content-left-register"
|
|
28280
28804
|
};
|
|
28281
|
-
const _hoisted_4$
|
|
28282
|
-
const _hoisted_5 = ["src"];
|
|
28283
|
-
const _hoisted_6 = { class: "login-modal-logo-desc" };
|
|
28284
|
-
const _hoisted_7 = { class: "login-modal-history" };
|
|
28285
|
-
const _hoisted_8 = { class: "login-modal-history__title" };
|
|
28286
|
-
const _hoisted_9 = { class: "login-modal-history__content" };
|
|
28805
|
+
const _hoisted_4$2 = { class: "login-modal-content-left-register-logo" };
|
|
28806
|
+
const _hoisted_5$1 = ["src"];
|
|
28807
|
+
const _hoisted_6$1 = { class: "login-modal-logo-desc" };
|
|
28808
|
+
const _hoisted_7$1 = { class: "login-modal-history" };
|
|
28809
|
+
const _hoisted_8$1 = { class: "login-modal-history__title" };
|
|
28810
|
+
const _hoisted_9$1 = { class: "login-modal-history__content" };
|
|
28287
28811
|
const _hoisted_10 = {
|
|
28288
28812
|
key: 0,
|
|
28289
28813
|
class: "login-modal-tabs-row"
|
|
@@ -28363,7 +28887,7 @@ const _hoisted_64 = { key: 3 };
|
|
|
28363
28887
|
const _hoisted_65 = { class: "login-modal-error login-modal-error--register" };
|
|
28364
28888
|
const _hoisted_66 = { class: "login-modal-error__text" };
|
|
28365
28889
|
const _hoisted_67 = { class: "absolute-btn" };
|
|
28366
|
-
const _sfc_main$
|
|
28890
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
28367
28891
|
...{
|
|
28368
28892
|
name: "GLoginModal"
|
|
28369
28893
|
},
|
|
@@ -28444,7 +28968,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
28444
28968
|
cacheForm.countdownSecond = 59;
|
|
28445
28969
|
cacheForm.country = DEFAULT_COUNTRY;
|
|
28446
28970
|
};
|
|
28447
|
-
let
|
|
28971
|
+
let timer2 = null;
|
|
28448
28972
|
let interval = null;
|
|
28449
28973
|
const qiwuLogo = {
|
|
28450
28974
|
src: IconQiWu,
|
|
@@ -28500,6 +29024,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
28500
29024
|
};
|
|
28501
29025
|
const emits = __emit;
|
|
28502
29026
|
const { vModels } = useModel(props, emits);
|
|
29027
|
+
useShortcutBlocker(() => Boolean(vModels.value));
|
|
28503
29028
|
const VerifyForm = reactive([
|
|
28504
29029
|
{
|
|
28505
29030
|
type: "inputSelect",
|
|
@@ -29578,10 +30103,10 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
29578
30103
|
duration: 3e3,
|
|
29579
30104
|
type
|
|
29580
30105
|
});
|
|
29581
|
-
if (
|
|
29582
|
-
clearTimeout(
|
|
30106
|
+
if (timer2) {
|
|
30107
|
+
clearTimeout(timer2);
|
|
29583
30108
|
}
|
|
29584
|
-
|
|
30109
|
+
timer2 = setTimeout(() => {
|
|
29585
30110
|
if (status2 === "login") {
|
|
29586
30111
|
tabPanel.value = "password";
|
|
29587
30112
|
formType.value = "login";
|
|
@@ -29852,8 +30377,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
29852
30377
|
}
|
|
29853
30378
|
});
|
|
29854
30379
|
onBeforeUnmount(() => {
|
|
29855
|
-
if (
|
|
29856
|
-
clearTimeout(
|
|
30380
|
+
if (timer2) {
|
|
30381
|
+
clearTimeout(timer2);
|
|
29857
30382
|
}
|
|
29858
30383
|
if (interval) {
|
|
29859
30384
|
clearInterval(interval);
|
|
@@ -30029,7 +30554,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
30029
30554
|
onClose: onModalClose
|
|
30030
30555
|
}, {
|
|
30031
30556
|
header: withCtx(() => [
|
|
30032
|
-
!mfaCheck.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
30557
|
+
!mfaCheck.value ? (openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
30033
30558
|
createVNode(GTitle, {
|
|
30034
30559
|
icon: unref(IconB) || "",
|
|
30035
30560
|
title: FormConfig.value.title || "",
|
|
@@ -30038,7 +30563,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
30038
30563
|
"show-back": FormConfig.value.showBack,
|
|
30039
30564
|
class: "login-modal-title"
|
|
30040
30565
|
}, null, 8, ["icon", "title", "show-title", "show-back"]),
|
|
30041
|
-
createElementVNode("div", _hoisted_2$
|
|
30566
|
+
createElementVNode("div", _hoisted_2$2, [
|
|
30042
30567
|
__props.showClose && !showProtoCheck.value ? (openBlock(), createBlock(GIcon, {
|
|
30043
30568
|
key: 0,
|
|
30044
30569
|
onClick: onClickModalClose,
|
|
@@ -30062,21 +30587,21 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
30062
30587
|
key: 1,
|
|
30063
30588
|
class: normalizeClass(["login-modal-content", { "login-modal-content--forget": formType.value === "forget" }])
|
|
30064
30589
|
}, [
|
|
30065
|
-
["register", "login", "bindPhone", "bindPhoneConflict"].includes(formType.value) ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
30066
|
-
createElementVNode("div", _hoisted_4$
|
|
30590
|
+
["register", "login", "bindPhone", "bindPhoneConflict"].includes(formType.value) ? (openBlock(), createElementBlock("div", _hoisted_3$2, [
|
|
30591
|
+
createElementVNode("div", _hoisted_4$2, [
|
|
30067
30592
|
createElementVNode("img", {
|
|
30068
30593
|
src: isAIHub.value ? AiLogoType[unref(currentTheme)] : logoType[unref(currentTheme)],
|
|
30069
30594
|
alt: "gitcode-logo",
|
|
30070
30595
|
class: "login-modal-logo-img"
|
|
30071
|
-
}, null, 8, _hoisted_5),
|
|
30072
|
-
createElementVNode("div", _hoisted_6, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.desc")), 1)
|
|
30596
|
+
}, null, 8, _hoisted_5$1),
|
|
30597
|
+
createElementVNode("div", _hoisted_6$1, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.desc")), 1)
|
|
30073
30598
|
]),
|
|
30074
30599
|
createElementVNode("div", {
|
|
30075
30600
|
class: normalizeClass(["login-modal-left-bg", "login-modal-left-bg-" + unref(currentTheme)])
|
|
30076
30601
|
}, [
|
|
30077
|
-
createElementVNode("div", _hoisted_7, [
|
|
30078
|
-
createElementVNode("div", _hoisted_8, toDisplayString$1((_a = todayTechHistory.value) == null ? void 0 : _a.title), 1),
|
|
30079
|
-
createElementVNode("div", _hoisted_9, toDisplayString$1((_b = todayTechHistory.value) == null ? void 0 : _b.content), 1)
|
|
30602
|
+
createElementVNode("div", _hoisted_7$1, [
|
|
30603
|
+
createElementVNode("div", _hoisted_8$1, toDisplayString$1((_a = todayTechHistory.value) == null ? void 0 : _a.title), 1),
|
|
30604
|
+
createElementVNode("div", _hoisted_9$1, toDisplayString$1((_b = todayTechHistory.value) == null ? void 0 : _b.content), 1)
|
|
30080
30605
|
])
|
|
30081
30606
|
], 2)
|
|
30082
30607
|
])) : createCommentVNode("", true),
|
|
@@ -30307,7 +30832,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
30307
30832
|
]),
|
|
30308
30833
|
_: 1
|
|
30309
30834
|
}, 8, ["loading"])) : createCommentVNode("", true),
|
|
30310
|
-
formType.value !== "bindPhoneConflict" ? (openBlock(), createBlock(unref(_sfc_main$
|
|
30835
|
+
formType.value !== "bindPhoneConflict" ? (openBlock(), createBlock(unref(_sfc_main$e), {
|
|
30311
30836
|
ref_key: "FormRef",
|
|
30312
30837
|
ref: FormRef,
|
|
30313
30838
|
key: formType.value === "forget" ? `${formType.value}-${forgetVerificationType.value}` : formType.value,
|
|
@@ -30399,7 +30924,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
30399
30924
|
createElementVNode("div", {
|
|
30400
30925
|
class: normalizeClass(["register-agree", [AgreementWarn.value ? "shaking-box" : ""]])
|
|
30401
30926
|
}, [
|
|
30402
|
-
createVNode(_sfc_main$
|
|
30927
|
+
createVNode(_sfc_main$b, {
|
|
30403
30928
|
modelValue: status.value,
|
|
30404
30929
|
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => status.value = $event),
|
|
30405
30930
|
dataShareChecked: dataShareChecked.value,
|
|
@@ -30456,7 +30981,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
30456
30981
|
}),
|
|
30457
30982
|
_: 3
|
|
30458
30983
|
}, 8, ["modelValue", "lock-scroll", "draggable", "escapable", "append-to-body", "class"]),
|
|
30459
|
-
showProtoCheck.value ? (openBlock(), createBlock(_sfc_main$
|
|
30984
|
+
showProtoCheck.value ? (openBlock(), createBlock(_sfc_main$9, {
|
|
30460
30985
|
key: 0,
|
|
30461
30986
|
visible: showProtoCheck.value,
|
|
30462
30987
|
"onUpdate:visible": _cache[19] || (_cache[19] = ($event) => showProtoCheck.value = $event),
|
|
@@ -30469,7 +30994,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
30469
30994
|
};
|
|
30470
30995
|
}
|
|
30471
30996
|
});
|
|
30472
|
-
const LoginModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
30997
|
+
const LoginModal = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
30473
30998
|
const { t } = i18n.global;
|
|
30474
30999
|
function useLogin(request, globalStore) {
|
|
30475
31000
|
const successMsg = t("gitCodeLayout.common.tips.welcome");
|
|
@@ -30562,8 +31087,8 @@ function useLogin(request, globalStore) {
|
|
|
30562
31087
|
isMounted
|
|
30563
31088
|
};
|
|
30564
31089
|
}
|
|
30565
|
-
const _hoisted_1$
|
|
30566
|
-
const _sfc_main$
|
|
31090
|
+
const _hoisted_1$3 = { style: { "display": "none" } };
|
|
31091
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
30567
31092
|
...{
|
|
30568
31093
|
name: "Login"
|
|
30569
31094
|
},
|
|
@@ -30682,18 +31207,18 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
30682
31207
|
offEvent("logout");
|
|
30683
31208
|
});
|
|
30684
31209
|
return (_ctx, _cache) => {
|
|
30685
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
31210
|
+
return openBlock(), createElementBlock("div", _hoisted_1$3);
|
|
30686
31211
|
};
|
|
30687
31212
|
}
|
|
30688
31213
|
});
|
|
30689
|
-
const _hoisted_1 = { class: "g-header-skeleton__left" };
|
|
30690
|
-
const _hoisted_2 = { class: "g-header-skeleton__search-avatar" };
|
|
30691
|
-
const _hoisted_3 = { class: "g-header-skeleton__right" };
|
|
30692
|
-
const _hoisted_4 = {
|
|
31214
|
+
const _hoisted_1$2 = { class: "g-header-skeleton__left" };
|
|
31215
|
+
const _hoisted_2$1 = { class: "g-header-skeleton__search-avatar" };
|
|
31216
|
+
const _hoisted_3$1 = { class: "g-header-skeleton__right" };
|
|
31217
|
+
const _hoisted_4$1 = {
|
|
30693
31218
|
key: 0,
|
|
30694
31219
|
class: "g-header-skeleton__body"
|
|
30695
31220
|
};
|
|
30696
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
31221
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
30697
31222
|
...{
|
|
30698
31223
|
name: "HeaderSkeleton"
|
|
30699
31224
|
},
|
|
@@ -30737,17 +31262,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
30737
31262
|
class: "g-header-skeleton__toolbar",
|
|
30738
31263
|
style: normalizeStyle(toolbarStyle.value)
|
|
30739
31264
|
}, [
|
|
30740
|
-
createElementVNode("div", _hoisted_1, [
|
|
31265
|
+
createElementVNode("div", _hoisted_1$2, [
|
|
30741
31266
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "g-header-skeleton__block g-header-skeleton__hamburger" }, null, -1)),
|
|
30742
31267
|
_cache[1] || (_cache[1] = createElementVNode("span", { class: "g-header-skeleton__block g-header-skeleton__logo" }, null, -1)),
|
|
30743
31268
|
renderSlot(_ctx.$slots, "headerCustom", {}, void 0, true)
|
|
30744
31269
|
]),
|
|
30745
|
-
createElementVNode("div", _hoisted_2, [
|
|
31270
|
+
createElementVNode("div", _hoisted_2$1, [
|
|
30746
31271
|
renderSlot(_ctx.$slots, "search", {}, () => [
|
|
30747
31272
|
_cache[2] || (_cache[2] = createElementVNode("span", { class: "g-header-skeleton__block g-header-skeleton__search" }, null, -1))
|
|
30748
31273
|
], true)
|
|
30749
31274
|
]),
|
|
30750
|
-
createElementVNode("div", _hoisted_3, [
|
|
31275
|
+
createElementVNode("div", _hoisted_3$1, [
|
|
30751
31276
|
__props.isLogin ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
30752
31277
|
_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))
|
|
30753
31278
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
@@ -30758,7 +31283,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
30758
31283
|
renderSlot(_ctx.$slots, "rightExtra", {}, void 0, true)
|
|
30759
31284
|
])
|
|
30760
31285
|
], 4),
|
|
30761
|
-
__props.withBody ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
31286
|
+
__props.withBody ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
|
|
30762
31287
|
renderSlot(_ctx.$slots, "body", {}, () => [
|
|
30763
31288
|
_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))
|
|
30764
31289
|
], true)
|
|
@@ -30768,7 +31293,221 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
30768
31293
|
};
|
|
30769
31294
|
}
|
|
30770
31295
|
});
|
|
30771
|
-
const HeaderSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
31296
|
+
const HeaderSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
31297
|
+
const _hoisted_1$1 = ["aria-label"];
|
|
31298
|
+
const _hoisted_2 = { class: "shortcut-heading" };
|
|
31299
|
+
const _hoisted_3 = ["aria-label"];
|
|
31300
|
+
const _hoisted_4 = ["aria-label", "placeholder"];
|
|
31301
|
+
const _hoisted_5 = { class: "shortcut-command-list" };
|
|
31302
|
+
const _hoisted_6 = ["onClick"];
|
|
31303
|
+
const _hoisted_7 = {
|
|
31304
|
+
key: 0,
|
|
31305
|
+
role: "status"
|
|
31306
|
+
};
|
|
31307
|
+
const _hoisted_8 = { class: "shortcut-preference" };
|
|
31308
|
+
const _hoisted_9 = ["checked"];
|
|
31309
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
31310
|
+
...{ name: "ShortcutHelpDialog" },
|
|
31311
|
+
__name: "index",
|
|
31312
|
+
setup(__props) {
|
|
31313
|
+
const { t: t2 } = i18n.global;
|
|
31314
|
+
const displayKeys = (keys) => keys.replace(/mod/g, isMacPlatform() ? "Cmd" : "Ctrl").replace(/shift/g, "Shift");
|
|
31315
|
+
const panel = ref();
|
|
31316
|
+
const filterInput = ref();
|
|
31317
|
+
const query = ref("");
|
|
31318
|
+
const title = computed(() => t2(shortcutDialog.value === "commands" ? "shortcut.site.commands" : "shortcut.dialog.title"));
|
|
31319
|
+
const groups = computed(() => SHORTCUT_GROUPS.map((id) => ({ id, actions: availableShortcutActions.value.filter((action) => action.group === id) })).filter((group) => group.actions.length));
|
|
31320
|
+
const commands = computed(() => availableShortcutActions.value.filter(
|
|
31321
|
+
(action) => action.id !== "site.commands" && `${t2(action.labelKey)} ${action.keys} ${displayKeys(action.keys)}`.toLocaleLowerCase().includes(query.value.trim().toLocaleLowerCase())
|
|
31322
|
+
));
|
|
31323
|
+
const focusable = () => {
|
|
31324
|
+
var _a;
|
|
31325
|
+
return Array.from(((_a = panel.value) == null ? void 0 : _a.querySelectorAll('button:not(:disabled), input:not(:disabled), [tabindex="0"]')) ?? []);
|
|
31326
|
+
};
|
|
31327
|
+
const focusInitial = () => {
|
|
31328
|
+
var _a;
|
|
31329
|
+
(_a = filterInput.value ?? focusable()[0] ?? panel.value) == null ? void 0 : _a.focus();
|
|
31330
|
+
};
|
|
31331
|
+
const onPreferenceChange = (event) => setCharacterShortcutsEnabled(event.target.checked);
|
|
31332
|
+
const onKeydown2 = (event) => {
|
|
31333
|
+
var _a, _b, _c, _d, _e, _f;
|
|
31334
|
+
if (event.defaultPrevented || isComposingEvent(event)) {
|
|
31335
|
+
return;
|
|
31336
|
+
}
|
|
31337
|
+
if (event.key === "Escape") {
|
|
31338
|
+
event.preventDefault();
|
|
31339
|
+
event.stopPropagation();
|
|
31340
|
+
closeShortcutDialog();
|
|
31341
|
+
} else if (event.key === "Tab") {
|
|
31342
|
+
const elements = focusable();
|
|
31343
|
+
const index2 = elements.indexOf(document.activeElement);
|
|
31344
|
+
if (event.shiftKey && index2 <= 0) {
|
|
31345
|
+
event.preventDefault();
|
|
31346
|
+
(_a = elements[elements.length - 1] ?? panel.value) == null ? void 0 : _a.focus();
|
|
31347
|
+
} else if (!event.shiftKey && (index2 === elements.length - 1 || index2 === -1)) {
|
|
31348
|
+
event.preventDefault();
|
|
31349
|
+
(_b = elements[0] ?? panel.value) == null ? void 0 : _b.focus();
|
|
31350
|
+
}
|
|
31351
|
+
} else if (shortcutDialog.value === "commands" && event.key === "ArrowDown" && event.target === filterInput.value) {
|
|
31352
|
+
event.preventDefault();
|
|
31353
|
+
(_d = (_c = panel.value) == null ? void 0 : _c.querySelector(".shortcut-command")) == null ? void 0 : _d.focus();
|
|
31354
|
+
} else if (shortcutDialog.value === "commands" && (event.key === "ArrowDown" || event.key === "ArrowUp") && event.target.matches(".shortcut-command")) {
|
|
31355
|
+
const buttons = Array.from(((_e = panel.value) == null ? void 0 : _e.querySelectorAll(".shortcut-command")) ?? []);
|
|
31356
|
+
const index2 = buttons.indexOf(event.target);
|
|
31357
|
+
event.preventDefault();
|
|
31358
|
+
(_f = buttons[(index2 + (event.key === "ArrowDown" ? 1 : buttons.length - 1)) % buttons.length]) == null ? void 0 : _f.focus();
|
|
31359
|
+
}
|
|
31360
|
+
};
|
|
31361
|
+
const containFocus = (event) => {
|
|
31362
|
+
if (panel.value && !panel.value.contains(event.target)) {
|
|
31363
|
+
focusInitial();
|
|
31364
|
+
}
|
|
31365
|
+
};
|
|
31366
|
+
watch(shortcutDialog, () => {
|
|
31367
|
+
query.value = "";
|
|
31368
|
+
void nextTick(focusInitial);
|
|
31369
|
+
});
|
|
31370
|
+
onMounted(() => {
|
|
31371
|
+
focusInitial();
|
|
31372
|
+
document.addEventListener("focusin", containFocus);
|
|
31373
|
+
});
|
|
31374
|
+
onUnmounted(() => document.removeEventListener("focusin", containFocus));
|
|
31375
|
+
return (_ctx, _cache) => {
|
|
31376
|
+
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
31377
|
+
createElementVNode("div", {
|
|
31378
|
+
class: "shortcut-backdrop",
|
|
31379
|
+
onClick: _cache[2] || (_cache[2] = withModifiers(($event) => unref(closeShortcutDialog)(), ["self"]))
|
|
31380
|
+
}, [
|
|
31381
|
+
createElementVNode("section", {
|
|
31382
|
+
ref_key: "panel",
|
|
31383
|
+
ref: panel,
|
|
31384
|
+
class: "shortcut-dialog",
|
|
31385
|
+
role: "dialog",
|
|
31386
|
+
"aria-modal": "true",
|
|
31387
|
+
"aria-label": title.value,
|
|
31388
|
+
tabindex: "-1",
|
|
31389
|
+
onKeydown: onKeydown2
|
|
31390
|
+
}, [
|
|
31391
|
+
createElementVNode("header", _hoisted_2, [
|
|
31392
|
+
createElementVNode("h2", null, toDisplayString$1(title.value), 1),
|
|
31393
|
+
createElementVNode("button", {
|
|
31394
|
+
type: "button",
|
|
31395
|
+
class: "shortcut-close",
|
|
31396
|
+
"aria-label": unref(t2)("shortcut.dialog.close"),
|
|
31397
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(closeShortcutDialog)())
|
|
31398
|
+
}, "×", 8, _hoisted_3)
|
|
31399
|
+
]),
|
|
31400
|
+
unref(shortcutDialog) === "commands" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
31401
|
+
withDirectives(createElementVNode("input", {
|
|
31402
|
+
ref_key: "filterInput",
|
|
31403
|
+
ref: filterInput,
|
|
31404
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => query.value = $event),
|
|
31405
|
+
class: "shortcut-filter",
|
|
31406
|
+
"aria-label": unref(t2)("shortcut.commands.search"),
|
|
31407
|
+
placeholder: unref(t2)("shortcut.commands.search")
|
|
31408
|
+
}, null, 8, _hoisted_4), [
|
|
31409
|
+
[vModelText, query.value]
|
|
31410
|
+
]),
|
|
31411
|
+
createElementVNode("ul", _hoisted_5, [
|
|
31412
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(commands.value, (action) => {
|
|
31413
|
+
return openBlock(), createElementBlock("li", {
|
|
31414
|
+
key: action.id
|
|
31415
|
+
}, [
|
|
31416
|
+
createElementVNode("button", {
|
|
31417
|
+
type: "button",
|
|
31418
|
+
class: "shortcut-command",
|
|
31419
|
+
onClick: ($event) => unref(executeShortcutAction)(action)
|
|
31420
|
+
}, [
|
|
31421
|
+
createElementVNode("span", null, toDisplayString$1(unref(t2)(action.labelKey)), 1),
|
|
31422
|
+
createElementVNode("kbd", null, toDisplayString$1(displayKeys(action.keys)), 1)
|
|
31423
|
+
], 8, _hoisted_6)
|
|
31424
|
+
]);
|
|
31425
|
+
}), 128))
|
|
31426
|
+
]),
|
|
31427
|
+
!commands.value.length ? (openBlock(), createElementBlock("p", _hoisted_7, toDisplayString$1(unref(t2)("shortcut.commands.empty")), 1)) : createCommentVNode("", true)
|
|
31428
|
+
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
31429
|
+
createElementVNode("label", _hoisted_8, [
|
|
31430
|
+
createElementVNode("input", {
|
|
31431
|
+
type: "checkbox",
|
|
31432
|
+
checked: unref(characterShortcutsEnabled),
|
|
31433
|
+
onChange: onPreferenceChange
|
|
31434
|
+
}, null, 40, _hoisted_9),
|
|
31435
|
+
createTextVNode(" " + toDisplayString$1(unref(t2)("shortcut.a11y.characterKeys")), 1)
|
|
31436
|
+
]),
|
|
31437
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(groups.value, (group) => {
|
|
31438
|
+
return openBlock(), createElementBlock("section", {
|
|
31439
|
+
key: group.id,
|
|
31440
|
+
class: "shortcut-group"
|
|
31441
|
+
}, [
|
|
31442
|
+
createElementVNode("h3", null, toDisplayString$1(unref(t2)(`shortcut.group.${group.id}`)), 1),
|
|
31443
|
+
createElementVNode("dl", null, [
|
|
31444
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(group.actions, (action) => {
|
|
31445
|
+
return openBlock(), createElementBlock("div", {
|
|
31446
|
+
key: action.id,
|
|
31447
|
+
class: "shortcut-row"
|
|
31448
|
+
}, [
|
|
31449
|
+
createElementVNode("dt", null, toDisplayString$1(unref(t2)(action.labelKey)), 1),
|
|
31450
|
+
createElementVNode("dd", null, [
|
|
31451
|
+
createElementVNode("kbd", null, toDisplayString$1(displayKeys(action.keys)), 1)
|
|
31452
|
+
])
|
|
31453
|
+
]);
|
|
31454
|
+
}), 128))
|
|
31455
|
+
])
|
|
31456
|
+
]);
|
|
31457
|
+
}), 128))
|
|
31458
|
+
], 64))
|
|
31459
|
+
], 40, _hoisted_1$1)
|
|
31460
|
+
])
|
|
31461
|
+
]);
|
|
31462
|
+
};
|
|
31463
|
+
}
|
|
31464
|
+
});
|
|
31465
|
+
const ShortcutHelpDialog = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
31466
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
31467
|
+
...{ name: "ShortcutProvider" },
|
|
31468
|
+
__name: "index",
|
|
31469
|
+
setup(__props) {
|
|
31470
|
+
const registration = shallowRef();
|
|
31471
|
+
const isOwner = computed(() => {
|
|
31472
|
+
var _a;
|
|
31473
|
+
return ((_a = registration.value) == null ? void 0 : _a.isOwner.value) ?? false;
|
|
31474
|
+
});
|
|
31475
|
+
onMounted(() => {
|
|
31476
|
+
registration.value = registerShortcutProvider();
|
|
31477
|
+
});
|
|
31478
|
+
onUnmounted(() => {
|
|
31479
|
+
var _a;
|
|
31480
|
+
return (_a = registration.value) == null ? void 0 : _a.dispose();
|
|
31481
|
+
});
|
|
31482
|
+
return (_ctx, _cache) => {
|
|
31483
|
+
return isOwner.value && unref(shortcutDialog) ? (openBlock(), createBlock(ShortcutHelpDialog, { key: 0 })) : createCommentVNode("", true);
|
|
31484
|
+
};
|
|
31485
|
+
}
|
|
31486
|
+
});
|
|
31487
|
+
const _hoisted_1 = ["aria-label", "title"];
|
|
31488
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
31489
|
+
...{ name: "ShortcutHelpButton" },
|
|
31490
|
+
__name: "ShortcutHelpButton",
|
|
31491
|
+
setup(__props) {
|
|
31492
|
+
const { t: t2 } = i18n.global;
|
|
31493
|
+
return (_ctx, _cache) => {
|
|
31494
|
+
return unref(hasShortcutProvider) ? (openBlock(), createElementBlock("button", {
|
|
31495
|
+
key: 0,
|
|
31496
|
+
type: "button",
|
|
31497
|
+
class: "shortcut-help-button",
|
|
31498
|
+
"data-shortcut-help": "",
|
|
31499
|
+
"aria-label": unref(t2)("shortcut.entry.help"),
|
|
31500
|
+
title: unref(t2)("shortcut.entry.help"),
|
|
31501
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(
|
|
31502
|
+
//@ts-ignore
|
|
31503
|
+
(...args) => unref(openShortcutHelp) && unref(openShortcutHelp)(...args),
|
|
31504
|
+
["stop"]
|
|
31505
|
+
))
|
|
31506
|
+
}, "?", 8, _hoisted_1)) : createCommentVNode("", true);
|
|
31507
|
+
};
|
|
31508
|
+
}
|
|
31509
|
+
});
|
|
31510
|
+
const ShortcutHelpButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
30772
31511
|
const GitCodeLayoutEmitter = emitter;
|
|
30773
31512
|
const index = {
|
|
30774
31513
|
install: (app) => {
|
|
@@ -30799,7 +31538,7 @@ export {
|
|
|
30799
31538
|
navigateWithMigrationGuard as K,
|
|
30800
31539
|
LANG_ZH as L,
|
|
30801
31540
|
asideRequest as M,
|
|
30802
|
-
_sfc_main$
|
|
31541
|
+
_sfc_main$R as N,
|
|
30803
31542
|
loadAsideData as O,
|
|
30804
31543
|
AsideFooterTools as P,
|
|
30805
31544
|
AtomCodeLauncher as Q,
|
|
@@ -30815,15 +31554,22 @@ export {
|
|
|
30815
31554
|
_export_sfc as _,
|
|
30816
31555
|
i18n as a,
|
|
30817
31556
|
HomeHeaderActions as a0,
|
|
30818
|
-
_sfc_main$
|
|
31557
|
+
_sfc_main$4 as a1,
|
|
30819
31558
|
SceneValue as a2,
|
|
30820
31559
|
ScrollActiveContainer as a3,
|
|
30821
|
-
|
|
30822
|
-
|
|
30823
|
-
|
|
30824
|
-
|
|
30825
|
-
|
|
30826
|
-
|
|
31560
|
+
ShortcutHelpButton as a4,
|
|
31561
|
+
_sfc_main$1 as a5,
|
|
31562
|
+
SiteAnnouncement as a6,
|
|
31563
|
+
ToolsFloat as a7,
|
|
31564
|
+
index as a8,
|
|
31565
|
+
openShortcutCommands as a9,
|
|
31566
|
+
openShortcutHelp as aa,
|
|
31567
|
+
resetShortcutSequence as ab,
|
|
31568
|
+
setLayoutConfig as ac,
|
|
31569
|
+
setShortcutConfig as ad,
|
|
31570
|
+
setTheme as ae,
|
|
31571
|
+
useLogin as af,
|
|
31572
|
+
useShortcutConfig as ag,
|
|
30827
31573
|
REPO_EVENT as b,
|
|
30828
31574
|
useLayoutConfig as c,
|
|
30829
31575
|
transferNumber as d,
|
|
@@ -30835,7 +31581,7 @@ export {
|
|
|
30835
31581
|
usePageResize as j,
|
|
30836
31582
|
isGstarRepo as k,
|
|
30837
31583
|
localStorage$2 as l,
|
|
30838
|
-
_sfc_main$
|
|
31584
|
+
_sfc_main$Q as m,
|
|
30839
31585
|
normalizeSearchHistoryEntry as n,
|
|
30840
31586
|
isIncubationRepo as o,
|
|
30841
31587
|
highlightWords as p,
|