vue-layout-gitcode 1.8.2 → 1.8.4
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-CbiSk2yj.js → GloabarSearch-Bch5XDXF.js} +3 -3
- package/{MenuItem-DgVgJ0OQ.js → MenuItem-CnEto0_6.js} +1 -1
- package/{ProjectMenuList-C0wqhK6y.js → ProjectMenuList-BNKIDXuN.js} +3 -3
- package/{ProjectMenuListV2-D8YpTxzZ.js → ProjectMenuListV2-BhN-cFKJ.js} +2 -2
- package/{ProjectSearch-Cp86OCr6.js → ProjectSearch-BiMB183Q.js} +1 -1
- package/{SearchHistoryList-BJQMuNYv.js → SearchHistoryList-B1zMGFc4.js} +1 -1
- package/{SearchPrefixTag-B5Mob-fW.js → SearchPrefixTag-B5tbcAAp.js} +1 -1
- package/{SearchRecommed-_2SPba7v.js → SearchRecommed-CNXdv-i8.js} +2 -2
- package/{SearchScopeList-BfvuOodv.js → SearchScopeList-DCRu1K1T.js} +1 -1
- package/{UserSearch-bu3CvOJS.js → UserSearch-BwTTe0Yq.js} +11 -2
- package/{index-Na2eX_w-.js → index-5CSrmtoU.js} +3 -3
- package/{index-Vhi9gSdg.js → index-BqmtIp-D.js} +1 -1
- package/{index-CQRNfaug.js → index-BzPMdoQA.js} +168 -87
- package/{index-CW0Eidcy.js → index-DQsJJr0k.js} +2 -2
- package/index.js +11 -11
- package/{notice-Do1Suppf.js → notice-D7gNJWrw.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/{transWebUrl-B0g40-Hp.js → transWebUrl-Blqna9Mh.js} +1 -1
|
@@ -105,12 +105,20 @@ const _export_sfc = (sfc, props) => {
|
|
|
105
105
|
return target;
|
|
106
106
|
};
|
|
107
107
|
const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
108
|
+
const transformUrl$1 = (url) => {
|
|
109
|
+
var _a;
|
|
110
|
+
if (typeof window !== "undefined" && typeof location !== "undefined") {
|
|
111
|
+
const host = (_a = location.host) == null ? void 0 : _a.replace(/^ai\./, "");
|
|
112
|
+
return url == null ? void 0 : url.replace(/gitcode\.com/g, host);
|
|
113
|
+
}
|
|
114
|
+
return url;
|
|
115
|
+
};
|
|
108
116
|
const defaultConfig = {
|
|
109
117
|
VITE_ENV: "production",
|
|
110
118
|
VITE_HOST: "https://gitcode.com",
|
|
111
119
|
VITE_HOST_TIANQI: "https://tianqi.gitcode.com",
|
|
112
120
|
VITE_API_HOST: "https://web-api.gitcode.com",
|
|
113
|
-
VITE_AD_LINK: "https://cdn-static.gitcode.
|
|
121
|
+
VITE_AD_LINK: "https://cdn-static.gitcode.host/adList/active.json",
|
|
114
122
|
VITE_NEWS_HOST: "https://news.gitcode.com",
|
|
115
123
|
VITE_AI_HOST: "https://ai.gitcode.com",
|
|
116
124
|
VITE_INCUBATION_TOPIC: "6656c64efd46e722f6299761",
|
|
@@ -120,7 +128,7 @@ const defaultConfig = {
|
|
|
120
128
|
VITE_SECRET_KEY: "SA!nUNPZ5o!OSV&B",
|
|
121
129
|
VITE_SECRET_IV: "SA!nwwwZ5o!OSV&B"
|
|
122
130
|
};
|
|
123
|
-
|
|
131
|
+
const layoutConfig$5 = reactive({ ...defaultConfig, VITE_HOST_TIANQI: transformUrl$1(defaultConfig.VITE_HOST_TIANQI) });
|
|
124
132
|
function setLayoutConfig(customConfig) {
|
|
125
133
|
Object.assign(layoutConfig$5, customConfig);
|
|
126
134
|
}
|
|
@@ -374,7 +382,7 @@ function udeskInit(config = {}, open = false) {
|
|
|
374
382
|
g.src = b;
|
|
375
383
|
c = h2.getElementsByTagName(c)[0];
|
|
376
384
|
c.parentNode.insertBefore(g, c);
|
|
377
|
-
})(window, document, "script", "https://cdn-static.gitcode.
|
|
385
|
+
})(window, document, "script", "https://cdn-static.gitcode.host/static/js/udeskApi.js", "ud");
|
|
378
386
|
ud({
|
|
379
387
|
code: "24581k88",
|
|
380
388
|
link: "https://gitcode.s2.udesk.cn/im_client/?web_plugin_id=57707",
|
|
@@ -477,7 +485,7 @@ const OSS_IMAGES = {
|
|
|
477
485
|
};
|
|
478
486
|
const GOTO_QUICK_LOGIN = "gotoQuickLogin";
|
|
479
487
|
const DEFAULT_COUNTRY = "CN_0086";
|
|
480
|
-
const IMAGE_CDN_PREFIX = "https://cdn-static.gitcode.
|
|
488
|
+
const IMAGE_CDN_PREFIX = "https://cdn-static.gitcode.host";
|
|
481
489
|
const HARMONY_VISITED_DATE = "harmony-visitedDate";
|
|
482
490
|
const HARMONY_SURVEY_DELAY = "harmony-survey-delay";
|
|
483
491
|
const UTM_SOURCE = "utm_source";
|
|
@@ -497,6 +505,7 @@ const TOOLS_FLOAT_COLLAPSE_STATUS = {
|
|
|
497
505
|
const TOOLS_FLOAT_COLLAPSE_STATUS_KEY_FOR_REPO = "asideTool_collapse_status_repo";
|
|
498
506
|
const TOOLS_FLOAT_COLLAPSE_STATUS_KEY = "asideTool_collapse_status";
|
|
499
507
|
const TOOLS_FLOAT_COLLAPSE_DATE_KEY = "asideTool_collapse_date";
|
|
508
|
+
const GUI_YANG_GITCODE_HOST = "gitcode.host";
|
|
500
509
|
/*! @license DOMPurify 3.2.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.5/LICENSE */
|
|
501
510
|
const {
|
|
502
511
|
entries,
|
|
@@ -7561,7 +7570,7 @@ const gitCodeLayout$1 = {
|
|
|
7561
7570
|
informationCenter: "资讯中心",
|
|
7562
7571
|
feedbackCenter: "反馈中心",
|
|
7563
7572
|
companyInformation: "重庆开源共创",
|
|
7564
|
-
recordInformation: "渝ICP备2023009037
|
|
7573
|
+
recordInformation: "渝ICP备2023009037号-3",
|
|
7565
7574
|
technicalSupport: "技术支持:",
|
|
7566
7575
|
HWCloud: "华为云",
|
|
7567
7576
|
userFeedback01: "在线客服",
|
|
@@ -7885,7 +7894,7 @@ const gitCodeLayout = {
|
|
|
7885
7894
|
slogon: "Co-create GitCode, the Code Home for Developers",
|
|
7886
7895
|
digest: "ChongQingKaiYuanGongChuang Technology Co., Ltd. All Rights Reserved",
|
|
7887
7896
|
companyInformation: "ChongQingKaiYuanGongChuang",
|
|
7888
|
-
recordInformation: "Yu ICP No. 2023009037",
|
|
7897
|
+
recordInformation: "Yu ICP No. 2023009037-3",
|
|
7889
7898
|
searchPlaceholder2: "Type <kbd>/</kbd> to search",
|
|
7890
7899
|
searchPlaceholder: "Search",
|
|
7891
7900
|
alreadyFollowed: "Followed",
|
|
@@ -11235,7 +11244,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
11235
11244
|
createElementVNode("div", _hoisted_2$k, [
|
|
11236
11245
|
_cache[5] || (_cache[5] = createElementVNode("img", {
|
|
11237
11246
|
class: "common-icon inline-block h-[20px] w-[20px]",
|
|
11238
|
-
src: "https://cdn-static.gitcode.
|
|
11247
|
+
src: "https://cdn-static.gitcode.host/static/images/homeweb/czzx.svg",
|
|
11239
11248
|
alt: ""
|
|
11240
11249
|
}, null, -1)),
|
|
11241
11250
|
!_ctx.isLogin || !isSignIn.value ? (openBlock(), createElementBlock("div", _hoisted_3$h, toDisplayString$1(!_ctx.isLogin ? unref(t2)("gitCodeLayout.growthCenter.receive") : unref(t2)("gitCodeLayout.growthCenter.signIn")), 1)) : createCommentVNode("", true)
|
|
@@ -11266,7 +11275,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
11266
11275
|
}, _cache[6] || (_cache[6] = [
|
|
11267
11276
|
createElementVNode("img", {
|
|
11268
11277
|
class: "inline-block h-[20px] w-[20px]",
|
|
11269
|
-
src: "https://cdn-static.gitcode.
|
|
11278
|
+
src: "https://cdn-static.gitcode.host/static/images/desk/kefu.png",
|
|
11270
11279
|
alt: ""
|
|
11271
11280
|
}, null, -1),
|
|
11272
11281
|
createElementVNode("div", null, [
|
|
@@ -11287,7 +11296,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
11287
11296
|
createElementVNode("div", _hoisted_11$4, toDisplayString$1(unref(t2)("gitCodeLayout.home.followUs")), 1),
|
|
11288
11297
|
_cache[7] || (_cache[7] = createElementVNode("img", {
|
|
11289
11298
|
class: "qrcode",
|
|
11290
|
-
src: "https://cdn-static.gitcode.
|
|
11299
|
+
src: "https://cdn-static.gitcode.host/static/images/points/wx_gitcode.png"
|
|
11291
11300
|
}, null, -1))
|
|
11292
11301
|
])
|
|
11293
11302
|
]),
|
|
@@ -11296,12 +11305,12 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
11296
11305
|
createElementVNode("div", { class: "home-nav-item" }, [
|
|
11297
11306
|
createElementVNode("img", {
|
|
11298
11307
|
class: "common-icon inline-block h-[20px] w-[20px]",
|
|
11299
|
-
src: "https://cdn-static.gitcode.
|
|
11308
|
+
src: "https://cdn-static.gitcode.host/static/images/desk/follow-us.svg",
|
|
11300
11309
|
alt: ""
|
|
11301
11310
|
}),
|
|
11302
11311
|
createElementVNode("img", {
|
|
11303
11312
|
class: "active-icon inline-block h-[20px] w-[20px]",
|
|
11304
|
-
src: "https://cdn-static.gitcode.
|
|
11313
|
+
src: "https://cdn-static.gitcode.host/static/images/desk/follow-us-hover.svg",
|
|
11305
11314
|
alt: ""
|
|
11306
11315
|
})
|
|
11307
11316
|
])
|
|
@@ -11414,12 +11423,12 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
11414
11423
|
createElementVNode("div", { class: "home-nav-item" }, [
|
|
11415
11424
|
createElementVNode("img", {
|
|
11416
11425
|
class: "common-icon inline-block h-[20px] w-[20px]",
|
|
11417
|
-
src: "https://cdn-static.gitcode.
|
|
11426
|
+
src: "https://cdn-static.gitcode.host/static/images/desk/plane-smile.png",
|
|
11418
11427
|
alt: ""
|
|
11419
11428
|
}),
|
|
11420
11429
|
createElementVNode("img", {
|
|
11421
11430
|
class: "active-icon inline-block h-[20px] w-[20px]",
|
|
11422
|
-
src: "https://cdn-static.gitcode.
|
|
11431
|
+
src: "https://cdn-static.gitcode.host/static/images/desk/plane-smile-hover.png",
|
|
11423
11432
|
alt: ""
|
|
11424
11433
|
})
|
|
11425
11434
|
], -1)
|
|
@@ -12216,6 +12225,12 @@ if (isBrowser) {
|
|
|
12216
12225
|
}
|
|
12217
12226
|
const sessionStorage$1 = sessionStorage;
|
|
12218
12227
|
const _imports_0 = "data:image/png;base64,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";
|
|
12228
|
+
const transformUrl = (url) => {
|
|
12229
|
+
if (typeof window !== "undefined" && typeof location !== "undefined") {
|
|
12230
|
+
return url == null ? void 0 : url.replace(/gitcode\.com/g, location.host).replace(/ai\./g, "");
|
|
12231
|
+
}
|
|
12232
|
+
return url;
|
|
12233
|
+
};
|
|
12219
12234
|
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
12220
12235
|
...{
|
|
12221
12236
|
name: "GAvatar"
|
|
@@ -12245,7 +12260,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
12245
12260
|
});
|
|
12246
12261
|
return (_ctx, _cache) => {
|
|
12247
12262
|
return openBlock(), createBlock(unref(Avatar), {
|
|
12248
|
-
"img-src": imgSrc.value,
|
|
12263
|
+
"img-src": unref(transformUrl)(imgSrc.value),
|
|
12249
12264
|
name: placeholderName.value,
|
|
12250
12265
|
width: _ctx.width,
|
|
12251
12266
|
height: _ctx.height,
|
|
@@ -13128,7 +13143,7 @@ const _hoisted_6$8 = {
|
|
|
13128
13143
|
};
|
|
13129
13144
|
const _hoisted_7$5 = {
|
|
13130
13145
|
key: 1,
|
|
13131
|
-
src: "https://cdn-static.gitcode.
|
|
13146
|
+
src: "https://cdn-static.gitcode.host/static/images/mirrors-avata_20250411.gif",
|
|
13132
13147
|
alt: "mirrors-avatar",
|
|
13133
13148
|
class: "h-[24px]"
|
|
13134
13149
|
};
|
|
@@ -16217,18 +16232,18 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
16217
16232
|
const levelMap = {
|
|
16218
16233
|
v1: {
|
|
16219
16234
|
name: t2("gitCodeLayout.header.openSourceExplorer"),
|
|
16220
|
-
avatar: "https://cdn-static.gitcode.
|
|
16221
|
-
level: "https://cdn-static.gitcode.
|
|
16235
|
+
avatar: "https://cdn-static.gitcode.host/static/images/points/ava-v1.png",
|
|
16236
|
+
level: "https://cdn-static.gitcode.host/static/images/points/l-v1.png"
|
|
16222
16237
|
},
|
|
16223
16238
|
v2: {
|
|
16224
16239
|
name: t2("gitCodeLayout.header.openSourcePioneer"),
|
|
16225
|
-
avatar: "https://cdn-static.gitcode.
|
|
16226
|
-
level: "https://cdn-static.gitcode.
|
|
16240
|
+
avatar: "https://cdn-static.gitcode.host/static/images/points/ava-v2.png",
|
|
16241
|
+
level: "https://cdn-static.gitcode.host/static/images/points/l-v2.png"
|
|
16227
16242
|
},
|
|
16228
16243
|
v3: {
|
|
16229
16244
|
name: t2("gitCodeLayout.header.contributingStar"),
|
|
16230
|
-
avatar: "https://cdn-static.gitcode.
|
|
16231
|
-
level: "https://cdn-static.gitcode.
|
|
16245
|
+
avatar: "https://cdn-static.gitcode.host/static/images/points/ava-v3.png",
|
|
16246
|
+
level: "https://cdn-static.gitcode.host/static/images/points/l-v3.png"
|
|
16232
16247
|
}
|
|
16233
16248
|
};
|
|
16234
16249
|
const useReport2 = inject("useReport");
|
|
@@ -16604,7 +16619,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
16604
16619
|
createElementVNode("div", _hoisted_1$m, [
|
|
16605
16620
|
createVNode(_sfc_main$z, {
|
|
16606
16621
|
name: accountInfo.value.nickname,
|
|
16607
|
-
src: accountInfo.value.avatar
|
|
16622
|
+
src: unref(transformUrl)(accountInfo.value.avatar)
|
|
16608
16623
|
}, null, 8, ["name", "src"]),
|
|
16609
16624
|
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_2$g, _cache[4] || (_cache[4] = [
|
|
16610
16625
|
createElementVNode("div", null, null, -1)
|
|
@@ -16634,7 +16649,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
16634
16649
|
createElementVNode("div", _hoisted_3$d, [
|
|
16635
16650
|
createVNode(_sfc_main$z, {
|
|
16636
16651
|
name: accountInfo.value.nickname,
|
|
16637
|
-
src: accountInfo.value.avatar
|
|
16652
|
+
src: unref(transformUrl)(accountInfo.value.avatar)
|
|
16638
16653
|
}, null, 8, ["name", "src"]),
|
|
16639
16654
|
accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_4$a, _cache[5] || (_cache[5] = [
|
|
16640
16655
|
createElementVNode("div", null, null, -1)
|
|
@@ -16785,13 +16800,13 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
16785
16800
|
var _a;
|
|
16786
16801
|
const layoutConfig2 = useLayoutConfig();
|
|
16787
16802
|
const { t: $t } = i18n.global;
|
|
16788
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
16789
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
16790
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
16791
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
16792
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
16793
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
16794
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
16803
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-BiMB183Q.js"));
|
|
16804
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-BwTTe0Yq.js"));
|
|
16805
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-Bch5XDXF.js"));
|
|
16806
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-B1zMGFc4.js"));
|
|
16807
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-DCRu1K1T.js"));
|
|
16808
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-B5tbcAAp.js"));
|
|
16809
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-CNXdv-i8.js"));
|
|
16795
16810
|
const props = __props;
|
|
16796
16811
|
const repoInfo = inject("repoInfo");
|
|
16797
16812
|
const orgInfo = inject("orgInfo");
|
|
@@ -17029,7 +17044,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
17029
17044
|
} else {
|
|
17030
17045
|
hotUrl = `${hotUrl}?source_module=search_box_hot_word`;
|
|
17031
17046
|
}
|
|
17032
|
-
window.open(hotUrl, "_blank");
|
|
17047
|
+
window.open(transformUrl$1(hotUrl), "_blank");
|
|
17033
17048
|
return;
|
|
17034
17049
|
}
|
|
17035
17050
|
isSearchHistory.value = false;
|
|
@@ -17445,7 +17460,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
|
|
|
17445
17460
|
loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
|
|
17446
17461
|
}
|
|
17447
17462
|
};
|
|
17448
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
17463
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-D7gNJWrw.js"));
|
|
17449
17464
|
function clearNotice() {
|
|
17450
17465
|
if (localStorage$2.getItem("validator_email")) {
|
|
17451
17466
|
localStorage$2.removeItem("validator_email");
|
|
@@ -17815,10 +17830,13 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
17815
17830
|
emit("resetPwdDirectlySuccess");
|
|
17816
17831
|
});
|
|
17817
17832
|
window.addEventListener("message", (event) => {
|
|
17818
|
-
var _a2, _b;
|
|
17833
|
+
var _a2, _b, _c, _d, _e, _f;
|
|
17819
17834
|
const action = HandleParentWindowGetLoginInfo(props.request);
|
|
17820
|
-
if (
|
|
17821
|
-
|
|
17835
|
+
if (((_a2 = event == null ? void 0 : event.data) == null ? void 0 : _a2.type) === "main_report") {
|
|
17836
|
+
collectRegisterLoginEvent({ isRegister: (_b = event.data.report) == null ? void 0 : _b.isRegister, registerLoginMethod: (_c = event.data.report) == null ? void 0 : _c.registerLoginMethod, success: (_d = event.data.report) == null ? void 0 : _d.success });
|
|
17837
|
+
}
|
|
17838
|
+
if ([AuthResType.SUCCESS, AuthResType.FAIL].includes((_e = event.data) == null ? void 0 : _e.type)) {
|
|
17839
|
+
action[(_f = event.data) == null ? void 0 : _f.type](event);
|
|
17822
17840
|
}
|
|
17823
17841
|
});
|
|
17824
17842
|
});
|
|
@@ -18062,10 +18080,22 @@ const useConfigSide = (request, sceneValue) => {
|
|
|
18062
18080
|
return Object.values(grouped);
|
|
18063
18081
|
};
|
|
18064
18082
|
const fetchArea = async () => {
|
|
18065
|
-
var _a;
|
|
18083
|
+
var _a, _b;
|
|
18066
18084
|
sideLoading.value = true;
|
|
18067
18085
|
const res = await API.getAsideConfig();
|
|
18068
|
-
|
|
18086
|
+
let asideList = (((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.data) || []).map((item) => {
|
|
18087
|
+
return {
|
|
18088
|
+
...item,
|
|
18089
|
+
left_menu_url: transformUrl$1(item.left_menu_url),
|
|
18090
|
+
left_menu_logo: transformUrl$1(item.left_menu_logo),
|
|
18091
|
+
left_menu_logo_black: transformUrl$1(item.left_menu_logo_black),
|
|
18092
|
+
left_menu_logo_hover: transformUrl$1(item.left_menu_logo_hover),
|
|
18093
|
+
left_menu_logo_hover_black: transformUrl$1(item.left_menu_logo_hover_black)
|
|
18094
|
+
};
|
|
18095
|
+
});
|
|
18096
|
+
if (typeof window !== "undefined" && GUI_YANG_GITCODE_HOST && ((_b = window.location) == null ? void 0 : _b.origin.includes(GUI_YANG_GITCODE_HOST))) {
|
|
18097
|
+
asideList = asideList.filter((item) => !(item.left_menu_url && item.left_menu_url.includes("https://competition.gitcode")));
|
|
18098
|
+
}
|
|
18069
18099
|
if (judgeIsShowAssetMenus(asideList)) {
|
|
18070
18100
|
area.value = groupByArea([...assetMenus.value, ...asideList]);
|
|
18071
18101
|
} else {
|
|
@@ -18135,8 +18165,8 @@ const loadUserProjectsInvolved = async (requestFn, params = {}) => {
|
|
|
18135
18165
|
var _a;
|
|
18136
18166
|
return {
|
|
18137
18167
|
key: item.name,
|
|
18138
|
-
web_url: item.web_url,
|
|
18139
|
-
avatar: item.avatar,
|
|
18168
|
+
web_url: transformUrl$1(item.web_url),
|
|
18169
|
+
avatar: transformUrl$1(item.avatar),
|
|
18140
18170
|
id: item.id,
|
|
18141
18171
|
label: item.name,
|
|
18142
18172
|
namespace: (_a = item.namespace_info) == null ? void 0 : _a.name
|
|
@@ -18187,9 +18217,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18187
18217
|
const layoutConfig2 = useLayoutConfig();
|
|
18188
18218
|
const { t: t2 } = i18n.global;
|
|
18189
18219
|
const route = useRoute();
|
|
18190
|
-
const MenuItem = defineAsyncComponent(() => import("./MenuItem-
|
|
18191
|
-
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-
|
|
18192
|
-
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-
|
|
18220
|
+
const MenuItem = defineAsyncComponent(() => import("./MenuItem-CnEto0_6.js"));
|
|
18221
|
+
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-BhN-cFKJ.js"));
|
|
18222
|
+
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-BNKIDXuN.js"));
|
|
18193
18223
|
const props = __props;
|
|
18194
18224
|
console.log("slotKeys", props.slotKeys);
|
|
18195
18225
|
console.log("props", props);
|
|
@@ -19938,18 +19968,22 @@ const createLoginConfig = (request) => {
|
|
|
19938
19968
|
},
|
|
19939
19969
|
// 密码登录
|
|
19940
19970
|
async password({ param, loginParams, graphValidate, lintRemoteLogin, yunpianGraphValidate }) {
|
|
19941
|
-
var _a, _b;
|
|
19971
|
+
var _a, _b, _c;
|
|
19942
19972
|
const { validFunc, successFunc = () => {
|
|
19943
19973
|
}, failFunc = () => {
|
|
19944
19974
|
} } = param;
|
|
19945
19975
|
const check = validFunc ? await validFunc() : true;
|
|
19946
19976
|
if (!check) return;
|
|
19947
19977
|
const result2 = await API.toLogin(loginParams);
|
|
19948
|
-
if ([GRAPH_CODE, GRAPH_CODE_01
|
|
19978
|
+
if ([GRAPH_CODE, GRAPH_CODE_01].includes((_a = result2 == null ? void 0 : result2.error) == null ? void 0 : _a.error_code)) {
|
|
19949
19979
|
graphValidate();
|
|
19950
19980
|
return;
|
|
19951
19981
|
}
|
|
19952
|
-
if (((_b = result2 == null ? void 0 : result2.error) == null ? void 0 : _b.error_code) ===
|
|
19982
|
+
if (((_b = result2 == null ? void 0 : result2.error) == null ? void 0 : _b.error_code) === YUNPIAN_GRAPH_CODE) {
|
|
19983
|
+
yunpianGraphValidate();
|
|
19984
|
+
return;
|
|
19985
|
+
}
|
|
19986
|
+
if (((_c = result2 == null ? void 0 : result2.error) == null ? void 0 : _c.error_code) === REMOTE_LOGIN_CODE) {
|
|
19953
19987
|
lintRemoteLogin();
|
|
19954
19988
|
return;
|
|
19955
19989
|
}
|
|
@@ -20193,9 +20227,13 @@ async function checkUserRepositoryIssue(API, isRegister = false) {
|
|
|
20193
20227
|
async function successResolve(params, API, isRegister = false) {
|
|
20194
20228
|
var _a;
|
|
20195
20229
|
const { path, userInfo, type, loginMethod } = params;
|
|
20230
|
+
const transformUserInfo = {
|
|
20231
|
+
...userInfo,
|
|
20232
|
+
avatar: transformUrl$1(userInfo == null ? void 0 : userInfo.avatar)
|
|
20233
|
+
};
|
|
20196
20234
|
if (userInfo) {
|
|
20197
|
-
emitEvent("updateUserInfo",
|
|
20198
|
-
const { username, email } =
|
|
20235
|
+
emitEvent("updateUserInfo", transformUserInfo);
|
|
20236
|
+
const { username, email } = transformUserInfo;
|
|
20199
20237
|
setEmailValid(username, email);
|
|
20200
20238
|
}
|
|
20201
20239
|
saveLastLoginType(loginMethod);
|
|
@@ -23660,7 +23698,7 @@ const _hoisted_9$1 = {
|
|
|
23660
23698
|
const _hoisted_10$1 = { class: "my-[32px]" };
|
|
23661
23699
|
const _hoisted_11$1 = { class: "flex items-center justify-between" };
|
|
23662
23700
|
const _hoisted_12$1 = { class: "cursor-pointer" };
|
|
23663
|
-
const GIT_CODE_LOGO_BLACK = "https://cdn-static.gitcode.
|
|
23701
|
+
const GIT_CODE_LOGO_BLACK = "https://cdn-static.gitcode.host/static/images/gitcode-logo-dark.png";
|
|
23664
23702
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
23665
23703
|
__name: "MFA",
|
|
23666
23704
|
props: {
|
|
@@ -23893,7 +23931,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
23893
23931
|
}
|
|
23894
23932
|
});
|
|
23895
23933
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
|
|
23896
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
23934
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-DQsJJr0k.js"));
|
|
23897
23935
|
const useSlidCaptcha = () => {
|
|
23898
23936
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
23899
23937
|
const open = (config) => {
|
|
@@ -23912,7 +23950,7 @@ const useSlidCaptcha = () => {
|
|
|
23912
23950
|
close: unMount
|
|
23913
23951
|
};
|
|
23914
23952
|
};
|
|
23915
|
-
const YunpianCaptcha = defineAsyncComponent(() => import("./index-
|
|
23953
|
+
const YunpianCaptcha = defineAsyncComponent(() => import("./index-BqmtIp-D.js"));
|
|
23916
23954
|
const useYunpianCaptcha = () => {
|
|
23917
23955
|
const { mount, unMount } = usePopup("yunpian-captcha-popup");
|
|
23918
23956
|
const open = (config) => {
|
|
@@ -23946,7 +23984,7 @@ function _sfc_render(_ctx, _cache) {
|
|
|
23946
23984
|
createElementVNode("div", { class: "w-full flex-center" }, [
|
|
23947
23985
|
createElementVNode("img", {
|
|
23948
23986
|
class: "w-[60px] h-[60px]",
|
|
23949
|
-
src: "https://cdn-static.gitcode.
|
|
23987
|
+
src: "https://cdn-static.gitcode.host/static/images/common/loading.gif",
|
|
23950
23988
|
alt: "loading"
|
|
23951
23989
|
})
|
|
23952
23990
|
]),
|
|
@@ -24167,8 +24205,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24167
24205
|
const IconHb = TransAssetsUrl(IconSource, "logo-hb");
|
|
24168
24206
|
const IconHW = TransAssetsUrl(IconSource, "logo-huawei");
|
|
24169
24207
|
const logoType = {
|
|
24170
|
-
black: "https://cdn-static.gitcode.
|
|
24171
|
-
white: "https://cdn-static.gitcode.
|
|
24208
|
+
black: "https://cdn-static.gitcode.host/static/images/gitcode-logo-white.png",
|
|
24209
|
+
white: "https://cdn-static.gitcode.host/static/images/gitcode-logo-dark.png"
|
|
24172
24210
|
};
|
|
24173
24211
|
const formErrors = reactive({});
|
|
24174
24212
|
const extraErrors = reactive({
|
|
@@ -24578,7 +24616,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24578
24616
|
extraData: {}
|
|
24579
24617
|
});
|
|
24580
24618
|
};
|
|
24581
|
-
let captchaMode = "
|
|
24619
|
+
let captchaMode = "yunpian";
|
|
24582
24620
|
const slidCaptcha = useSlidCaptcha();
|
|
24583
24621
|
const yunpianCaptcha = useYunpianCaptcha();
|
|
24584
24622
|
const LoginCheck = async () => {
|
|
@@ -24805,7 +24843,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24805
24843
|
return res;
|
|
24806
24844
|
};
|
|
24807
24845
|
const handleCountDown = async (conf) => {
|
|
24808
|
-
var _a, _b, _c;
|
|
24846
|
+
var _a, _b, _c, _d, _e;
|
|
24809
24847
|
const formData = await FormRef.value.ValidateFormKeys([conf.key]);
|
|
24810
24848
|
const mobile = getPhone(conf);
|
|
24811
24849
|
if (formData.type === "success") {
|
|
@@ -24882,20 +24920,61 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24882
24920
|
if (tabPanel.value === "verifyCode" || formType.value === "register" || formType.value === "forget") {
|
|
24883
24921
|
const res = await handleCountDownSubmission(conf, mobile);
|
|
24884
24922
|
if (formType.value === "login") {
|
|
24885
|
-
if ([GRAPH_CODE, GRAPH_CODE_01
|
|
24923
|
+
if ([GRAPH_CODE, GRAPH_CODE_01].includes((_b = res == null ? void 0 : res.error) == null ? void 0 : _b.error_code)) {
|
|
24886
24924
|
captchaMode = "tianai";
|
|
24887
24925
|
slidCaptcha.open({ onSuccess: (captchaData) => handleCountDown({ ...conf, captchaId: captchaData.id, smsReported: true }) });
|
|
24888
24926
|
return;
|
|
24889
24927
|
}
|
|
24928
|
+
if (((_c = res == null ? void 0 : res.error) == null ? void 0 : _c.error_code) === YUNPIAN_GRAPH_CODE) {
|
|
24929
|
+
captchaMode = "yunpian";
|
|
24930
|
+
yunpianCaptcha.open({
|
|
24931
|
+
onSuccess: (captchaData) => handleCountDown({
|
|
24932
|
+
...conf,
|
|
24933
|
+
token: captchaData == null ? void 0 : captchaData.token,
|
|
24934
|
+
authenticate: captchaData == null ? void 0 : captchaData.authenticate,
|
|
24935
|
+
captchaId: captchaData == null ? void 0 : captchaData.captchaId,
|
|
24936
|
+
smsReported: true
|
|
24937
|
+
}),
|
|
24938
|
+
onFallback: (originalOnSuccess) => {
|
|
24939
|
+
captchaMode = "tianai";
|
|
24940
|
+
slidCaptcha.open({
|
|
24941
|
+
onSuccess: (captchaData) => originalOnSuccess == null ? void 0 : originalOnSuccess({
|
|
24942
|
+
captchaId: captchaData.id
|
|
24943
|
+
})
|
|
24944
|
+
});
|
|
24945
|
+
}
|
|
24946
|
+
});
|
|
24947
|
+
return;
|
|
24948
|
+
}
|
|
24890
24949
|
}
|
|
24891
24950
|
if (formType.value === "register") {
|
|
24892
|
-
if ([GRAPH_CODE, GRAPH_CODE_01
|
|
24951
|
+
if ([GRAPH_CODE, GRAPH_CODE_01].includes((_d = res == null ? void 0 : res.error) == null ? void 0 : _d.error_code)) {
|
|
24893
24952
|
captchaMode = "tianai";
|
|
24894
24953
|
slidCaptcha.open({
|
|
24895
24954
|
onSuccess: (captchaData) => handleCountDown({ ...conf, captchaId: captchaData.id, smsReported: true })
|
|
24896
24955
|
});
|
|
24897
24956
|
return;
|
|
24898
24957
|
}
|
|
24958
|
+
if (((_e = res == null ? void 0 : res.error) == null ? void 0 : _e.error_code) === YUNPIAN_GRAPH_CODE) {
|
|
24959
|
+
captchaMode = "yunpian";
|
|
24960
|
+
yunpianCaptcha.open({
|
|
24961
|
+
onSuccess: (captchaData) => handleCountDown({
|
|
24962
|
+
...conf,
|
|
24963
|
+
token: captchaData == null ? void 0 : captchaData.token,
|
|
24964
|
+
authenticate: captchaData == null ? void 0 : captchaData.authenticate,
|
|
24965
|
+
captchaId: captchaData == null ? void 0 : captchaData.captchaId,
|
|
24966
|
+
smsReported: true
|
|
24967
|
+
}),
|
|
24968
|
+
onFallback: (originalOnSuccess) => {
|
|
24969
|
+
captchaMode = "tianai";
|
|
24970
|
+
slidCaptcha.open({
|
|
24971
|
+
onSuccess: (captchaData) => originalOnSuccess == null ? void 0 : originalOnSuccess({
|
|
24972
|
+
captchaId: captchaData.id
|
|
24973
|
+
})
|
|
24974
|
+
});
|
|
24975
|
+
}
|
|
24976
|
+
});
|
|
24977
|
+
}
|
|
24899
24978
|
}
|
|
24900
24979
|
if (!res.error) {
|
|
24901
24980
|
cacheForm.mobile = conf.value;
|
|
@@ -25526,7 +25605,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25526
25605
|
}, [
|
|
25527
25606
|
createElementVNode("div", _hoisted_42, [
|
|
25528
25607
|
_cache[18] || (_cache[18] = createElementVNode("img", {
|
|
25529
|
-
src: "https://cdn-static.gitcode.
|
|
25608
|
+
src: "https://cdn-static.gitcode.host/static/images/guide/openharmony.svg",
|
|
25530
25609
|
alt: "",
|
|
25531
25610
|
class: "w-[32px] h-[32px] inline-block harmony-icon-img"
|
|
25532
25611
|
}, null, -1)),
|
|
@@ -25882,51 +25961,53 @@ const index = {
|
|
|
25882
25961
|
}
|
|
25883
25962
|
};
|
|
25884
25963
|
export {
|
|
25885
|
-
|
|
25886
|
-
|
|
25887
|
-
|
|
25888
|
-
|
|
25964
|
+
LANG_EN as A,
|
|
25965
|
+
emitEvent as B,
|
|
25966
|
+
isHttps as C,
|
|
25967
|
+
transformUrl as D,
|
|
25889
25968
|
EVENT_NAME as E,
|
|
25890
|
-
|
|
25969
|
+
_sfc_main$z as F,
|
|
25891
25970
|
GIcon as G,
|
|
25892
|
-
|
|
25893
|
-
|
|
25894
|
-
|
|
25895
|
-
|
|
25971
|
+
loadAsideData as H,
|
|
25972
|
+
asideRequest as I,
|
|
25973
|
+
ToolsFloat as J,
|
|
25974
|
+
_sfc_main as K,
|
|
25896
25975
|
LANG_KEY as L,
|
|
25897
|
-
|
|
25898
|
-
|
|
25899
|
-
|
|
25900
|
-
|
|
25901
|
-
|
|
25976
|
+
GitCodeAside as M,
|
|
25977
|
+
GitCodeHeader as N,
|
|
25978
|
+
useLogin as O,
|
|
25979
|
+
setLayoutConfig as P,
|
|
25980
|
+
GitCodeLayoutEmitter as Q,
|
|
25902
25981
|
REPO_MODULE as R,
|
|
25903
25982
|
SceneValue as S,
|
|
25904
25983
|
TOPIC_TYPE as T,
|
|
25984
|
+
setTheme as U,
|
|
25985
|
+
index as V,
|
|
25905
25986
|
_export_sfc as _,
|
|
25906
25987
|
i18n as a,
|
|
25907
25988
|
REPO_EVENT as b,
|
|
25908
25989
|
REPO_TYPE as c,
|
|
25909
|
-
|
|
25990
|
+
transferNumber as d,
|
|
25910
25991
|
extractRepoInfoWithURL as e,
|
|
25911
|
-
|
|
25912
|
-
|
|
25992
|
+
useRequestReport as f,
|
|
25993
|
+
useTimeFormat as g,
|
|
25913
25994
|
headRequest as h,
|
|
25914
25995
|
isPhone as i,
|
|
25915
|
-
|
|
25916
|
-
|
|
25996
|
+
LANG_ZH as j,
|
|
25997
|
+
usePageResize as k,
|
|
25917
25998
|
localStorage$2 as l,
|
|
25918
|
-
|
|
25919
|
-
|
|
25920
|
-
|
|
25921
|
-
|
|
25922
|
-
|
|
25999
|
+
isGstarRepo as m,
|
|
26000
|
+
_sfc_main$y as n,
|
|
26001
|
+
isIncubationRepo as o,
|
|
26002
|
+
highlightWords as p,
|
|
26003
|
+
_frEventTrack as q,
|
|
25923
26004
|
reqCatch as r,
|
|
25924
26005
|
setLoginTriggerSource as s,
|
|
25925
|
-
|
|
26006
|
+
transformUrl$1 as t,
|
|
25926
26007
|
useModel as u,
|
|
25927
26008
|
vElementExposure as v,
|
|
25928
|
-
|
|
25929
|
-
|
|
25930
|
-
|
|
25931
|
-
|
|
26009
|
+
useLayoutConfig as w,
|
|
26010
|
+
getLocaleLang as x,
|
|
26011
|
+
ThemeType as y,
|
|
26012
|
+
currentTheme as z
|
|
25932
26013
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, onMounted, createBlock, openBlock, unref, withCtx, createElementVNode } from "vue";
|
|
2
2
|
import { FixedOverlay } from "vue-devui-lal/overlay";
|
|
3
|
-
import {
|
|
3
|
+
import { w as useLayoutConfig, _ as _export_sfc } from "./index-BzPMdoQA.js";
|
|
4
4
|
import "vue-devui-lal/overlay/style.css";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "index",
|
|
@@ -35,7 +35,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
35
35
|
logoUrl: null
|
|
36
36
|
// 去除logo
|
|
37
37
|
};
|
|
38
|
-
window.initTAC("https://cdn-static.gitcode.
|
|
38
|
+
window.initTAC("https://cdn-static.gitcode.host/js/tac/", config, style).then((tac) => {
|
|
39
39
|
tac.init();
|
|
40
40
|
}).catch((e) => {
|
|
41
41
|
console.error("初始化tac失败", e);
|
package/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { M, N, Q, K, S, J, z, V, P, U, O } from "./index-BzPMdoQA.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
M as GitCodeAside,
|
|
4
|
+
N as GitCodeHeader,
|
|
5
|
+
Q as GitCodeLayoutEmitter,
|
|
6
|
+
K as Login,
|
|
7
7
|
S as SceneValue,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
J as ToolsFloat,
|
|
9
|
+
z as currentTheme,
|
|
10
|
+
V as default,
|
|
11
|
+
P as setLayoutConfig,
|
|
12
|
+
U as setTheme,
|
|
13
|
+
O as useLogin
|
|
14
14
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, createBlock, openBlock, unref, isRef, withCtx, createElementVNode, normalizeClass, createVNode, createTextVNode } from "vue";
|
|
2
|
-
import { i as isPhone, u as useModel } from "./index-
|
|
2
|
+
import { i as isPhone, u as useModel } from "./index-BzPMdoQA.js";
|
|
3
3
|
import { Notification } from "vue-devui-lal/notification";
|
|
4
4
|
import { Button } from "vue-devui-lal/button";
|
|
5
5
|
import "vue-devui-lal/notification/style.css";
|