vue-layout-gitcode 1.10.37 → 1.10.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{GloabarSearch-D9eASnud.js → GloabarSearch-CpV9Y0-2.js} +3 -3
- package/{MenuItem-CAw9Qhp6.js → MenuItem-xG1zyDqG.js} +1 -1
- package/{ProjectMenuList-DFDwPr_J.js → ProjectMenuList-BpIv8yk8.js} +2 -2
- package/{ProjectMenuListV2-Devjn1Fy.js → ProjectMenuListV2-ewgKsv0G.js} +2 -2
- package/{ProjectSearch-BJcsOjBw.js → ProjectSearch-BNrh-n61.js} +1 -1
- package/{SearchHistoryList-COm_INBf.js → SearchHistoryList-Ca_yx2TJ.js} +1 -1
- package/{SearchPrefixTag-7MZT8WXa.js → SearchPrefixTag-8fcmiStm.js} +1 -1
- package/{SearchRecommed-Hj0go27Z.js → SearchRecommed-Elyth2MI.js} +2 -2
- package/{SearchScopeList-MblbmvaX.js → SearchScopeList-C-uLY739.js} +1 -1
- package/{UserSearch-BsMyj-vD.js → UserSearch-Cg_r3s6r.js} +1 -1
- package/{index-DcwjUuk9.js → index-3kx3gWG8.js} +1 -1
- package/{index-BPVniIeR.js → index-Bqx7R4V9.js} +1 -1
- package/{index-vXVemlXO.js → index-CAPAOsg7.js} +2 -2
- package/{index-CVXcnOEy.js → index-DxJFoNO4.js} +129 -45
- package/index.js +1 -1
- package/{notice-7gh87teb.js → notice-CUm9r7g5.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/{transWebUrl-DSA52A-S.js → transWebUrl-BHz8Qist.js} +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent, inject, createElementBlock, openBlock, Fragment, createElementVNode, toDisplayString, createVNode, unref, renderList, withDirectives, createBlock, ref, watch, onMounted, createCommentVNode } from "vue";
|
|
2
2
|
import "vue-devui-lal/icon";
|
|
3
3
|
import "vue-devui-lal/icon/style.css";
|
|
4
|
-
import { h as headRequest, R as REPO_MODULE, a as i18n, G as GIcon, v as vElementExposure, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-
|
|
4
|
+
import { h as headRequest, R as REPO_MODULE, a as i18n, G as GIcon, v as vElementExposure, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-DxJFoNO4.js";
|
|
5
5
|
import "lodash/debounce";
|
|
6
|
-
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-
|
|
7
|
-
import "./transWebUrl-
|
|
6
|
+
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-CAPAOsg7.js";
|
|
7
|
+
import "./transWebUrl-BHz8Qist.js";
|
|
8
8
|
import "vue-devui-lal/tooltip";
|
|
9
9
|
import "vue-devui-lal/tooltip/style.css";
|
|
10
10
|
import "vue-router";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, inject, useSlots, ref, computed, createBlock, openBlock, unref, withCtx, createElementVNode, normalizeClass, createElementBlock, createTextVNode, createCommentVNode, toDisplayString, renderSlot } from "vue";
|
|
2
|
-
import { a as i18n, y as useLayoutConfig, A as ThemeType, B as currentTheme, L as LANG_ZH, C as LANG_EN, D as getLocaleLang, G as GIcon, F as emitEvent, H as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-
|
|
2
|
+
import { a as i18n, y as useLayoutConfig, A as ThemeType, B as currentTheme, L as LANG_ZH, C as LANG_EN, D as getLocaleLang, G as GIcon, F as emitEvent, H as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-DxJFoNO4.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
4
|
import { Popover } from "vue-devui-lal/popover";
|
|
5
5
|
import "vue-devui-lal/popover/style.css";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, inject, ref, reactive, watch, computed, createElementBlock, openBlock, createCommentVNode, createBlock, withDirectives, Fragment, createElementVNode, createVNode, toDisplayString, unref, withModifiers, normalizeClass, withCtx, renderList, createTextVNode, vShow } from "vue";
|
|
2
|
-
import { a as i18n, y as useLayoutConfig, G as GIcon, t as transformUrl, J as _sfc_main$1, K as loadAsideData, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, I as asideRequest, _ as _export_sfc } from "./index-
|
|
2
|
+
import { a as i18n, y as useLayoutConfig, G as GIcon, t as transformUrl, J as _sfc_main$1, K as loadAsideData, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, I as asideRequest, _ as _export_sfc } from "./index-DxJFoNO4.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-BHz8Qist.js";
|
|
5
5
|
import { Select, Option } from "vue-devui-lal/select";
|
|
6
6
|
import { Input } from "vue-devui-lal/input";
|
|
7
7
|
import { Skeleton } from "vue-devui-lal/skeleton";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, inject, ref, reactive, computed, watch, createElementBlock, openBlock, createElementVNode, createVNode, createBlock, createCommentVNode, withDirectives, toDisplayString, unref, withModifiers, normalizeClass, withCtx, Fragment, renderList, createTextVNode, vShow } from "vue";
|
|
2
|
-
import { a as i18n, y as useLayoutConfig, t as transformUrl, I as asideRequest, G as GIcon, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-
|
|
2
|
+
import { a as i18n, y as useLayoutConfig, t as transformUrl, I as asideRequest, G as GIcon, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-DxJFoNO4.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-BHz8Qist.js";
|
|
5
5
|
import { Input } from "vue-devui-lal/input";
|
|
6
6
|
import { Skeleton } from "vue-devui-lal/skeleton";
|
|
7
7
|
import { MenuItem } from "vue-devui-lal/menu";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref, inject, computed, withDirectives, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createVNode, vShow } from "vue";
|
|
2
|
-
import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-
|
|
2
|
+
import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-DxJFoNO4.js";
|
|
3
3
|
import { useRoute, useRouter } from "vue-router";
|
|
4
4
|
import "vue-devui-lal/icon";
|
|
5
5
|
import "vue-devui-lal/icon/style.css";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, createElementBlock, openBlock, createCommentVNode, Fragment, renderList, normalizeClass, createElementVNode, createVNode, toDisplayString, withModifiers } from "vue";
|
|
2
|
-
import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-
|
|
2
|
+
import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-DxJFoNO4.js";
|
|
3
3
|
import "vue-devui-lal/icon";
|
|
4
4
|
import "vue-devui-lal/icon/style.css";
|
|
5
5
|
const _hoisted_1 = { class: "history-list" };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, createElementBlock, openBlock, createElementVNode, withDirectives, toDisplayString, withModifiers, createVNode, vShow } from "vue";
|
|
2
|
-
import { G as GIcon, _ as _export_sfc } from "./index-
|
|
2
|
+
import { G as GIcon, _ as _export_sfc } from "./index-DxJFoNO4.js";
|
|
3
3
|
import "vue-devui-lal/icon";
|
|
4
4
|
import "vue-devui-lal/icon/style.css";
|
|
5
5
|
const _hoisted_1 = { class: "ellipsis" };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, inject, ref, onMounted, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, renderSlot, createBlock, createVNode, withCtx } from "vue";
|
|
2
|
-
import { u as useReportRepo, S as SearchRepoCard } from "./index-
|
|
3
|
-
import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-
|
|
2
|
+
import { u as useReportRepo, S as SearchRepoCard } from "./index-CAPAOsg7.js";
|
|
3
|
+
import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-DxJFoNO4.js";
|
|
4
4
|
import { Row, Col } from "vue-devui-lal/grid";
|
|
5
5
|
import { SkeletonItem } from "vue-devui-lal/skeleton";
|
|
6
6
|
import "vue-devui-lal/grid/style.css";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, createElementBlock, openBlock, Fragment, renderList, createElementVNode, createVNode, createCommentVNode, toDisplayString, unref } from "vue";
|
|
2
|
-
import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-
|
|
2
|
+
import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-DxJFoNO4.js";
|
|
3
3
|
import "vue-devui-lal/icon";
|
|
4
4
|
import "vue-devui-lal/icon/style.css";
|
|
5
5
|
const _hoisted_1 = ["onClick"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { inject, ref, watch, withDirectives, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createVNode, vShow } from "vue";
|
|
2
|
-
import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-
|
|
2
|
+
import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-DxJFoNO4.js";
|
|
3
3
|
import "vue-devui-lal/icon";
|
|
4
4
|
import "vue-devui-lal/icon/style.css";
|
|
5
5
|
const _hoisted_1 = { class: "px-[8px] history-list-project pl-[8px]" };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, onMounted, nextTick, onUnmounted, createBlock, openBlock, unref, withCtx, createElementVNode } from "vue";
|
|
2
|
-
import { x as slidCaptchaManager, y as useLayoutConfig, z as isZh, _ as _export_sfc } from "./index-
|
|
2
|
+
import { x as slidCaptchaManager, y as useLayoutConfig, z as isZh, _ as _export_sfc } from "./index-DxJFoNO4.js";
|
|
3
3
|
import { FixedOverlay } from "vue-devui-lal/overlay";
|
|
4
4
|
import "vue-devui-lal/overlay/style.css";
|
|
5
5
|
const TARGET_TEXT = "Click in order:";
|
|
@@ -8,7 +8,7 @@ import { Message } from "vue-devui-lal/message";
|
|
|
8
8
|
import "vue-devui-lal/message/style.css";
|
|
9
9
|
import { FixedOverlay } from "vue-devui-lal/overlay";
|
|
10
10
|
import "vue-devui-lal/overlay/style.css";
|
|
11
|
-
import { a as i18n, k as usePageResize, z as isZh, _ as _export_sfc } from "./index-
|
|
11
|
+
import { a as i18n, k as usePageResize, z as isZh, _ as _export_sfc } from "./index-DxJFoNO4.js";
|
|
12
12
|
const _YunpianCaptchaManager = class _YunpianCaptchaManager {
|
|
13
13
|
// eslint-disable-next-line no-useless-constructor
|
|
14
14
|
constructor() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref, watchEffect, defineComponent, toDisplayString, unref, mergeModels, useModel, watch, createElementBlock, openBlock, createVNode, withDirectives, normalizeClass, createElementVNode, vShow, inject, withModifiers, createBlock, Fragment, computed, createCommentVNode, normalizeStyle, createTextVNode, onMounted, onUnmounted, renderList, withCtx, reactive } from "vue";
|
|
2
2
|
import debounce from "lodash/debounce";
|
|
3
|
-
import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, j as useCookie, k as usePageResize, L as LANG_ZH, m as isGstarRepo, n as _sfc_main$b, o as isIncubationRepo, p as highlightWords, t as transformUrl, q as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL, w as LANG_KEY } from "./index-
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
3
|
+
import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, j as useCookie, k as usePageResize, L as LANG_ZH, m as isGstarRepo, n as _sfc_main$b, o as isIncubationRepo, p as highlightWords, t as transformUrl, q as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL, w as LANG_KEY } from "./index-DxJFoNO4.js";
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-BHz8Qist.js";
|
|
5
5
|
import { useRouter } from "vue-router";
|
|
6
6
|
import { Row, Col } from "vue-devui-lal/grid";
|
|
7
7
|
import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";
|
|
@@ -7799,7 +7799,6 @@ const gitCodeLayout$1 = {
|
|
|
7799
7799
|
openSourcePioneer: "开源先锋",
|
|
7800
7800
|
contributingStar: "贡献之星",
|
|
7801
7801
|
myNotebook: "我的 Notebook",
|
|
7802
|
-
myOpenClaw: "我的 OpenClaw",
|
|
7803
7802
|
myCloudSpace: "我的 云开发环境",
|
|
7804
7803
|
mySpace: "我的 Spaces",
|
|
7805
7804
|
aihub: {
|
|
@@ -7948,7 +7947,8 @@ const gitCodeLayout$1 = {
|
|
|
7948
7947
|
wechatScanCodeLogin: "微信扫码登录",
|
|
7949
7948
|
AccountLogin: "帐号登录",
|
|
7950
7949
|
resetPassword: "重置密码",
|
|
7951
|
-
huaweiLogin: "华为"
|
|
7950
|
+
huaweiLogin: "华为",
|
|
7951
|
+
sjtuLogin: "启悟学习社区"
|
|
7952
7952
|
},
|
|
7953
7953
|
tips: {
|
|
7954
7954
|
forgotPassword: "忘记密码?",
|
|
@@ -8182,7 +8182,6 @@ const gitCodeLayout = {
|
|
|
8182
8182
|
openSourcePioneer: "Open Source Pioneer",
|
|
8183
8183
|
contributingStar: "Star Contributor",
|
|
8184
8184
|
myNotebook: "Your Notebook",
|
|
8185
|
-
myOpenClaw: "Your OpenClaw",
|
|
8186
8185
|
myCloudSpace: "Your Cloud Development",
|
|
8187
8186
|
mySpace: "Your Spaces",
|
|
8188
8187
|
aihub: {
|
|
@@ -8329,9 +8328,10 @@ const gitCodeLayout = {
|
|
|
8329
8328
|
verify: "Confirm",
|
|
8330
8329
|
confirmPassword: "Confirm password",
|
|
8331
8330
|
wechatScanCodeLogin: "WeChat QR code login",
|
|
8332
|
-
AccountLogin: "Account login",
|
|
8331
|
+
AccountLogin: " Account login",
|
|
8333
8332
|
resetPassword: "Reset password",
|
|
8334
|
-
huaweiLogin: "Huawei"
|
|
8333
|
+
huaweiLogin: "Huawei",
|
|
8334
|
+
sjtuLogin: "QiWu Community"
|
|
8335
8335
|
},
|
|
8336
8336
|
tips: {
|
|
8337
8337
|
forgotPassword: "Forgot password?",
|
|
@@ -9025,9 +9025,63 @@ const isGitCodeHost = () => {
|
|
|
9025
9025
|
return location.hostname.includes("gitcode");
|
|
9026
9026
|
};
|
|
9027
9027
|
const currentSiteName = () => isGitCodeHost() ? "GitCode" : "AtomGit";
|
|
9028
|
-
const
|
|
9029
|
-
|
|
9030
|
-
|
|
9028
|
+
const appendLangPathToHelpDocsUrl = (baseUrl) => {
|
|
9029
|
+
if (!baseUrl) {
|
|
9030
|
+
return baseUrl;
|
|
9031
|
+
}
|
|
9032
|
+
const currentLang = getLocaleLang();
|
|
9033
|
+
if (currentLang !== LANG_ZH) {
|
|
9034
|
+
try {
|
|
9035
|
+
const urlObj = new URL(baseUrl);
|
|
9036
|
+
if (urlObj.pathname.startsWith("/en")) {
|
|
9037
|
+
return baseUrl;
|
|
9038
|
+
}
|
|
9039
|
+
urlObj.pathname = "/en" + urlObj.pathname;
|
|
9040
|
+
return urlObj.toString();
|
|
9041
|
+
} catch (error) {
|
|
9042
|
+
console.warn("appendLangPathToHelpDocsUrl: URL 解析失败", error);
|
|
9043
|
+
if (baseUrl.includes("://")) {
|
|
9044
|
+
const parts = baseUrl.split("://");
|
|
9045
|
+
const protocol = parts[0];
|
|
9046
|
+
const rest = parts[1];
|
|
9047
|
+
const firstSlashIndex = rest.indexOf("/");
|
|
9048
|
+
if (firstSlashIndex === -1) {
|
|
9049
|
+
return `${protocol}://${rest}/en`;
|
|
9050
|
+
}
|
|
9051
|
+
const domain = rest.slice(0, firstSlashIndex);
|
|
9052
|
+
const path = rest.slice(firstSlashIndex);
|
|
9053
|
+
if (path.startsWith("/en")) {
|
|
9054
|
+
return baseUrl;
|
|
9055
|
+
}
|
|
9056
|
+
return `${protocol}://${domain}/en${path}`;
|
|
9057
|
+
}
|
|
9058
|
+
if (baseUrl && !baseUrl.startsWith("/en")) {
|
|
9059
|
+
const firstSlashIndex = baseUrl.indexOf("/");
|
|
9060
|
+
if (firstSlashIndex === -1) {
|
|
9061
|
+
return `${baseUrl}/en`;
|
|
9062
|
+
}
|
|
9063
|
+
const domain = baseUrl.slice(0, firstSlashIndex);
|
|
9064
|
+
const path = baseUrl.slice(firstSlashIndex);
|
|
9065
|
+
return `${domain}/en${path}`;
|
|
9066
|
+
}
|
|
9067
|
+
return baseUrl;
|
|
9068
|
+
}
|
|
9069
|
+
}
|
|
9070
|
+
return baseUrl;
|
|
9071
|
+
};
|
|
9072
|
+
const currentHelpDocsBaseUrl = () => isGitCodeHost() ? HELP_DOCS_URL_GITCODE : HELP_DOCS_URL_ATOMGIT;
|
|
9073
|
+
const currentHelpDocsUrl = () => {
|
|
9074
|
+
const baseUrl = currentHelpDocsBaseUrl();
|
|
9075
|
+
return appendLangPathToHelpDocsUrl(baseUrl);
|
|
9076
|
+
};
|
|
9077
|
+
const currentHelpDocsAboutUsUrl = () => {
|
|
9078
|
+
const baseUrl = isGitCodeHost() ? HELP_DOCS_URL_GITCODE + "/docs/help/home/aboutus/" : HELP_DOCS_URL_ATOMGIT + "/docs/help/home/aboutus/";
|
|
9079
|
+
return appendLangPathToHelpDocsUrl(baseUrl);
|
|
9080
|
+
};
|
|
9081
|
+
const currentHelpDocsAiCommunityUrl = () => {
|
|
9082
|
+
const baseUrl = isGitCodeHost() ? HELP_DOCS_URL_GITCODE + "/docs/help/home/ai-community/" : HELP_DOCS_URL_ATOMGIT + "/docs/help/home/ai-community/";
|
|
9083
|
+
return appendLangPathToHelpDocsUrl(baseUrl);
|
|
9084
|
+
};
|
|
9031
9085
|
const _hoisted_1$y = { class: "home-nav-right" };
|
|
9032
9086
|
const _hoisted_2$o = { class: "home-nav-item" };
|
|
9033
9087
|
const _hoisted_3$n = { class: "tooltip-sign" };
|
|
@@ -9641,6 +9695,7 @@ var AuthTypeEnum = /* @__PURE__ */ ((AuthTypeEnum2) => {
|
|
|
9641
9695
|
AuthTypeEnum2["ATOMGIT"] = "atomgit";
|
|
9642
9696
|
AuthTypeEnum2["PHONE_AND_PASSWORD"] = "phoneAndPassword";
|
|
9643
9697
|
AuthTypeEnum2["HUAWEI"] = "huawei";
|
|
9698
|
+
AuthTypeEnum2["SJTU"] = "sjtu";
|
|
9644
9699
|
return AuthTypeEnum2;
|
|
9645
9700
|
})(AuthTypeEnum || {});
|
|
9646
9701
|
var LoginMethodEnum = /* @__PURE__ */ ((LoginMethodEnum2) => {
|
|
@@ -15137,7 +15192,6 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
15137
15192
|
const repoInfo = inject("repoInfo");
|
|
15138
15193
|
const orgInfo = inject("orgInfo");
|
|
15139
15194
|
const userInfo = inject("userInfo");
|
|
15140
|
-
const useReport2 = inject("useReport");
|
|
15141
15195
|
const { t: t2, locale: locale2 } = i18n.global;
|
|
15142
15196
|
const props = __props;
|
|
15143
15197
|
const emit = __emit;
|
|
@@ -15213,8 +15267,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
15213
15267
|
{ id: "dashboard", label: t2("gitCodeLayout.header.workbench"), icon: "gt-plane-user", to: getRouterLink("dashboard") },
|
|
15214
15268
|
{ id: "myOrg", label: t2("gitCodeLayout.header.myOrg"), icon: "gt-plane-organization", to: getRouterLink({ name: "settingOrganization" }) },
|
|
15215
15269
|
{ id: "myRepo", label: t2("gitCodeLayout.header.myRepo"), icon: "gt-plane-projectHome1", to: getRouterLink("settingRepo") },
|
|
15216
|
-
{ id: "myNotebook", label: t2("gitCodeLayout.header.myNotebook"), icon: "gt-plane-Notebook",
|
|
15217
|
-
{ id: "myOpenClaw", label: t2("gitCodeLayout.header.myOpenClaw"), icon: "gt-openclaw", eventId: "main_account_openclaw_Click", target: "_blank", link: `${layoutConfig2.VITE_AI_HOST}/user/${userInfo.value.username}/openclaw` },
|
|
15270
|
+
{ id: "myNotebook", label: t2("gitCodeLayout.header.myNotebook"), icon: "gt-plane-Notebook", to: getRouterLink("myNotebook") },
|
|
15218
15271
|
// { id: 'myCloudSpace', label: t('gitCodeLayout.header.myCloudSpace'), icon: 'gt-plane-cloud', target: '_blank', href: 'https://devstation.connect.huaweicloud.com/devdesktop/webide' },
|
|
15219
15272
|
{ id: "mySpaces", label: t2("gitCodeLayout.header.mySpace"), icon: "gt-plane-Space", to: getRouterLink("userSpaces") },
|
|
15220
15273
|
{ id: "myStar", label: t2("gitCodeLayout.header.myStar"), icon: "gt-plane-star", to: getRouterLink("userStars") }
|
|
@@ -15240,7 +15293,6 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
15240
15293
|
{ id: "myOrg", label: t2("gitCodeLayout.header.myOrg"), icon: "gt-plane-organization", link: "/setting/organization" },
|
|
15241
15294
|
{ id: "myRepo", label: t2("gitCodeLayout.header.myRepo"), icon: "gt-plane-projectHome1", link: "/setting/repo" },
|
|
15242
15295
|
{ id: "myNotebook", label: t2("gitCodeLayout.header.myNotebook"), icon: "gt-plane-Notebook", show: props.inAIHub, link: `/user/${userInfo.value.username}/notebook` },
|
|
15243
|
-
{ id: "myOpenClaw", label: t2("gitCodeLayout.header.myOpenClaw"), icon: "gt-openclaw", show: props.inAIHub, eventId: "main_account_openclaw_Click", link: `/user/${userInfo.value.username}/openclaw` },
|
|
15244
15296
|
// { id: 'myCloudSpace', label: t('gitCodeLayout.header.myCloudSpace'), icon: 'gt-plane-cloud', link: 'https://devstation.connect.huaweicloud.com/devdesktop/webide' },
|
|
15245
15297
|
{ id: "mySpaces", label: t2("gitCodeLayout.header.mySpace"), icon: "gt-plane-Space", show: props.inAIHub, link: `/user/${userInfo.value.username}/spaces` },
|
|
15246
15298
|
{ id: "myStar", label: t2("gitCodeLayout.header.myStar"), icon: "gt-plane-star", link: `/user/${userInfo.value.username}/stars` }
|
|
@@ -15271,19 +15323,10 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
15271
15323
|
item.action();
|
|
15272
15324
|
}
|
|
15273
15325
|
if (item == null ? void 0 : item.link) {
|
|
15274
|
-
|
|
15275
|
-
const target = item.target || "_self";
|
|
15276
|
-
if (/^https?:\/\//i.test(item.link)) {
|
|
15277
|
-
link = item.link;
|
|
15278
|
-
} else {
|
|
15279
|
-
link = `${layoutConfig2.VITE_HOST}${item.link}`;
|
|
15280
|
-
}
|
|
15326
|
+
const link = `${layoutConfig2.VITE_HOST}${item.link}`;
|
|
15281
15327
|
emit("link-click");
|
|
15282
|
-
if (item.eventId) {
|
|
15283
|
-
useReport2 == null ? void 0 : useReport2(item.eventId, {});
|
|
15284
|
-
}
|
|
15285
15328
|
setTimeout(() => {
|
|
15286
|
-
window.open(link,
|
|
15329
|
+
window.open(link, "_self");
|
|
15287
15330
|
}, 100);
|
|
15288
15331
|
}
|
|
15289
15332
|
}
|
|
@@ -15373,7 +15416,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
15373
15416
|
key: item.id
|
|
15374
15417
|
}, { ref_for: true }, item, {
|
|
15375
15418
|
onClick: ($event) => handleClick(item),
|
|
15376
|
-
target: __props.isChatBot && !item.action ? "_blank" : item.
|
|
15419
|
+
target: __props.isChatBot && !item.action ? "_blank" : item.target || ""
|
|
15377
15420
|
}), {
|
|
15378
15421
|
default: withCtx(() => [
|
|
15379
15422
|
item.icon ? (openBlock(), createBlock(GIcon, {
|
|
@@ -15724,13 +15767,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
15724
15767
|
var _a;
|
|
15725
15768
|
const layoutConfig2 = useLayoutConfig();
|
|
15726
15769
|
const { t: $t } = i18n.global;
|
|
15727
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
15728
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
15729
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
15730
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
15731
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
15732
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
15733
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
15770
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-BNrh-n61.js"));
|
|
15771
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-Cg_r3s6r.js"));
|
|
15772
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-CpV9Y0-2.js"));
|
|
15773
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-Ca_yx2TJ.js"));
|
|
15774
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-C-uLY739.js"));
|
|
15775
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-8fcmiStm.js"));
|
|
15776
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-Elyth2MI.js"));
|
|
15734
15777
|
const props = __props;
|
|
15735
15778
|
const repoInfo = inject("repoInfo");
|
|
15736
15779
|
const orgInfo = inject("orgInfo");
|
|
@@ -16504,7 +16547,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
|
|
|
16504
16547
|
loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
|
|
16505
16548
|
}
|
|
16506
16549
|
};
|
|
16507
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
16550
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-CUm9r7g5.js"));
|
|
16508
16551
|
function clearNotice() {
|
|
16509
16552
|
if (localStorage$2.getItem("validator_email")) {
|
|
16510
16553
|
localStorage$2.removeItem("validator_email");
|
|
@@ -17311,9 +17354,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
17311
17354
|
const layoutConfig2 = useLayoutConfig();
|
|
17312
17355
|
const { t: t2 } = i18n.global;
|
|
17313
17356
|
const route = useRoute();
|
|
17314
|
-
const MenuItem = defineAsyncComponent(() => import("./MenuItem-
|
|
17315
|
-
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-
|
|
17316
|
-
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-
|
|
17357
|
+
const MenuItem = defineAsyncComponent(() => import("./MenuItem-xG1zyDqG.js"));
|
|
17358
|
+
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-ewgKsv0G.js"));
|
|
17359
|
+
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-BpIv8yk8.js"));
|
|
17317
17360
|
const props = __props;
|
|
17318
17361
|
console.log("slotKeys", props.slotKeys);
|
|
17319
17362
|
console.log("props", props);
|
|
@@ -17707,6 +17750,12 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
17707
17750
|
});
|
|
17708
17751
|
const linkList = computed(() => {
|
|
17709
17752
|
return [
|
|
17753
|
+
{
|
|
17754
|
+
name: t2("gitCodeLayout.home.informationCenter"),
|
|
17755
|
+
icon: "gt-line-consulting",
|
|
17756
|
+
url: `${transformNewsUrl(INFORMATION_CENTER_URL)}?lang=${getLocaleLang() || "zh"}`,
|
|
17757
|
+
target: "_blank"
|
|
17758
|
+
},
|
|
17710
17759
|
{
|
|
17711
17760
|
name: t2("gitCodeLayout.header.helpDocument"),
|
|
17712
17761
|
icon: "gt-line-file",
|
|
@@ -19312,7 +19361,7 @@ const createLoginConfig = (request) => {
|
|
|
19312
19361
|
afterWechatLogin(param) {
|
|
19313
19362
|
bindResultResolve(param, API);
|
|
19314
19363
|
},
|
|
19315
|
-
// 其他三方授权前(gitee、github、hbuilder
|
|
19364
|
+
// 其他三方授权前(gitee、github、hbuilder等)
|
|
19316
19365
|
beforeOtherLogin(param) {
|
|
19317
19366
|
const { type, validFunc } = param;
|
|
19318
19367
|
const check = validFunc ? validFunc() : true;
|
|
@@ -19712,8 +19761,13 @@ const __vite_glob_0_9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
|
|
|
19712
19761
|
__proto__: null,
|
|
19713
19762
|
default: logoMobile
|
|
19714
19763
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
19715
|
-
const
|
|
19764
|
+
const logoSjtu = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='_图层_2'%20data-name='图层_2'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20110.49%20137.82'%3e%3cdefs%3e%3cstyle%3e%20.cls-1%20{%20fill:%20%23f4bf1b;%20}%20.cls-2%20{%20fill:%20blue;%20}%20%3c/style%3e%3c/defs%3e%3cg%20id='_图层_1-2'%20data-name='图层_1'%3e%3cpolygon%20class='cls-1'%20points='89.52%20110.32%2021.48%20110.32%2062.49%20137.82%2089.52%20110.32'/%3e%3cg%3e%3cpolyline%20class='cls-2'%20points='89.52%2068.38%2089.52%2021.31%2021.48%2021.31%2021.48%20110.32%200%20110.32%200%200%20110.49%200%20110.49%2068.38'/%3e%3cpolygon%20class='cls-2'%20points='62.49%20137.82%2016.88%20107.25%2016.88%2015.97%2062.15%2047.4%2062.49%20137.82'/%3e%3cg%3e%3crect%20class='cls-2'%20x='100.01'%20y='99.83'%20width='10.49'%20height='10.49'/%3e%3crect%20class='cls-2'%20x='89.52'%20y='89.35'%20width='10.49'%20height='10.49'/%3e%3crect%20class='cls-2'%20x='89.52'%20y='68.38'%20width='10.49'%20height='10.49'/%3e%3crect%20class='cls-2'%20x='100.01'%20y='78.86'%20width='10.49'%20height='10.49'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
19716
19765
|
const __vite_glob_0_10 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
19766
|
+
__proto__: null,
|
|
19767
|
+
default: logoSjtu
|
|
19768
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
19769
|
+
const logoWechat = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1532_182)'%3e%3cpath%20d='M5.27165%205.34104C4.99419%205.34104%204.71674%205.52601%204.71674%205.80347C4.71674%206.08093%204.99419%206.2659%205.27165%206.2659C5.54911%206.2659%205.73408%206.08093%205.73408%205.80347C5.73408%205.51445%205.54911%205.34104%205.27165%205.34104ZM9.02887%208.02312C8.8439%208.02312%208.67049%208.21965%208.67049%208.39306C8.67049%208.5896%208.85546%208.76301%209.02887%208.76301C9.30633%208.76301%209.4913%208.57804%209.4913%208.39306C9.4913%208.20809%209.30633%208.02312%209.02887%208.02312ZM7.83812%206.2659C8.11558%206.2659%208.30055%206.06937%208.30055%205.80347C8.30055%205.52601%208.11558%205.34104%207.83812%205.34104C7.56067%205.34104%207.28321%205.52601%207.28321%205.80347C7.28321%206.08093%207.56067%206.2659%207.83812%206.2659ZM11.0404%208.02312C10.8555%208.02312%2010.6821%208.21965%2010.6821%208.39306C10.6821%208.5896%2010.867%208.76301%2011.0404%208.76301C11.3179%208.76301%2011.5029%208.57804%2011.5029%208.39306C11.5029%208.20809%2011.3179%208.02312%2011.0404%208.02312Z'%20fill='%2328C445'/%3e%3cpath%20d='M7.97688%200.0462418C3.57225%200.0462418%200%203.6185%200%208.02312C0%2012.4277%203.57225%2016%207.97688%2016C12.3815%2016%2015.9538%2012.4277%2015.9538%208.02312C15.9538%203.6185%2012.3815%200.0462418%207.97688%200.0462418ZM6.46243%2010.0694C6%2010.0694%205.63006%209.97688%205.19075%209.87283L3.91908%2010.5202L4.27746%209.39884C3.36416%208.75144%202.80925%207.90751%202.80925%206.90173C2.80925%205.13295%204.46243%203.74566%206.46243%203.74566C8.25434%203.74566%209.83815%204.85549%2010.1503%206.34682C10.0347%206.33526%209.91908%206.3237%209.80347%206.3237C8.06936%206.34682%206.7052%207.65318%206.7052%209.27168C6.7052%209.53757%206.75145%209.79191%206.82081%2010.0462C6.7052%2010.0578%206.57803%2010.0694%206.46243%2010.0694ZM11.8728%2011.3642L12.1503%2012.289L11.1561%2011.7341C10.7977%2011.8266%2010.4277%2011.9191%2010.0578%2011.9191C8.31214%2011.9191%206.93642%2010.7168%206.93642%209.22543C6.92486%207.74566%208.30058%206.54335%2010.0347%206.54335C11.6879%206.54335%2013.1445%207.75722%2013.1445%209.23699C13.1445%2010.0694%2012.6012%2010.8092%2011.8728%2011.3642Z'%20fill='%2328C445'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1532_182'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
|
|
19770
|
+
const __vite_glob_0_11 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
19717
19771
|
__proto__: null,
|
|
19718
19772
|
default: logoWechat
|
|
19719
19773
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -23518,7 +23572,7 @@ const _SlidCaptchaManager = class _SlidCaptchaManager {
|
|
|
23518
23572
|
__publicField(_SlidCaptchaManager, "instance");
|
|
23519
23573
|
let SlidCaptchaManager = _SlidCaptchaManager;
|
|
23520
23574
|
const slidCaptchaManager = SlidCaptchaManager.getInstance();
|
|
23521
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
23575
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-3kx3gWG8.js"));
|
|
23522
23576
|
const useSlidCaptcha = () => {
|
|
23523
23577
|
const { mount, unMount, isMounted } = usePopup("slid-captcha-popup");
|
|
23524
23578
|
const open = (config) => {
|
|
@@ -23548,7 +23602,7 @@ const useSlidCaptcha = () => {
|
|
|
23548
23602
|
close
|
|
23549
23603
|
};
|
|
23550
23604
|
};
|
|
23551
|
-
const YunpianCaptcha = defineAsyncComponent(() => import("./index-
|
|
23605
|
+
const YunpianCaptcha = defineAsyncComponent(() => import("./index-Bqx7R4V9.js"));
|
|
23552
23606
|
const useYunpianCaptcha = () => {
|
|
23553
23607
|
const { mount, unMount } = usePopup("yunpian-captcha-popup");
|
|
23554
23608
|
const open = (config) => {
|
|
@@ -24185,7 +24239,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24185
24239
|
const FormRules = getFormRules();
|
|
24186
24240
|
const { t: $t } = i18n.global;
|
|
24187
24241
|
const msgError = ref(false);
|
|
24188
|
-
const IconSource = /* @__PURE__ */ Object.assign({ "/src/assets/imgs/icon/login-modal/logo-back.svg": __vite_glob_0_0, "/src/assets/imgs/icon/login-modal/logo-csdn.svg": __vite_glob_0_1, "/src/assets/imgs/icon/login-modal/logo-git.svg": __vite_glob_0_2, "/src/assets/imgs/icon/login-modal/logo-gitee.svg": __vite_glob_0_3, "/src/assets/imgs/icon/login-modal/logo-github-white.svg": __vite_glob_0_4, "/src/assets/imgs/icon/login-modal/logo-github.svg": __vite_glob_0_5, "/src/assets/imgs/icon/login-modal/logo-gitlab.svg": __vite_glob_0_6, "/src/assets/imgs/icon/login-modal/logo-hb.svg": __vite_glob_0_7, "/src/assets/imgs/icon/login-modal/logo-huawei.svg": __vite_glob_0_8, "/src/assets/imgs/icon/login-modal/logo-mobile.svg": __vite_glob_0_9, "/src/assets/imgs/icon/login-modal/logo-
|
|
24242
|
+
const IconSource = /* @__PURE__ */ Object.assign({ "/src/assets/imgs/icon/login-modal/logo-back.svg": __vite_glob_0_0, "/src/assets/imgs/icon/login-modal/logo-csdn.svg": __vite_glob_0_1, "/src/assets/imgs/icon/login-modal/logo-git.svg": __vite_glob_0_2, "/src/assets/imgs/icon/login-modal/logo-gitee.svg": __vite_glob_0_3, "/src/assets/imgs/icon/login-modal/logo-github-white.svg": __vite_glob_0_4, "/src/assets/imgs/icon/login-modal/logo-github.svg": __vite_glob_0_5, "/src/assets/imgs/icon/login-modal/logo-gitlab.svg": __vite_glob_0_6, "/src/assets/imgs/icon/login-modal/logo-hb.svg": __vite_glob_0_7, "/src/assets/imgs/icon/login-modal/logo-huawei.svg": __vite_glob_0_8, "/src/assets/imgs/icon/login-modal/logo-mobile.svg": __vite_glob_0_9, "/src/assets/imgs/icon/login-modal/logo-sjtu.svg": __vite_glob_0_10, "/src/assets/imgs/icon/login-modal/logo-wechat.svg": __vite_glob_0_11 });
|
|
24189
24243
|
const IconH = TransAssetsUrl(IconSource, "logo-gitee");
|
|
24190
24244
|
const IconC = TransAssetsUrl(IconSource, "logo-csdn");
|
|
24191
24245
|
const IconG = TransAssetsUrl(IconSource, "logo-github");
|
|
@@ -24194,6 +24248,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24194
24248
|
const IconW = TransAssetsUrl(IconSource, "logo-wechat");
|
|
24195
24249
|
const IconHb = TransAssetsUrl(IconSource, "logo-hb");
|
|
24196
24250
|
const IconHW = TransAssetsUrl(IconSource, "logo-huawei");
|
|
24251
|
+
const IconQiWu = TransAssetsUrl(IconSource, "logo-sjtu");
|
|
24197
24252
|
const logoConfig = getCurrentLogoMap();
|
|
24198
24253
|
const logoType = {
|
|
24199
24254
|
black: logoConfig.siteLogoWhite,
|
|
@@ -24229,6 +24284,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24229
24284
|
let timer = null;
|
|
24230
24285
|
let interval = null;
|
|
24231
24286
|
const logos = reactive([
|
|
24287
|
+
{
|
|
24288
|
+
src: IconQiWu,
|
|
24289
|
+
alt: "sjtu",
|
|
24290
|
+
describe: $t("gitCodeLayout.LoginModal.action.sjtuLogin") + $t("gitCodeLayout.LoginModal.action.AccountLogin"),
|
|
24291
|
+
loginMethodList: ["sjtu"]
|
|
24292
|
+
},
|
|
24232
24293
|
{
|
|
24233
24294
|
src: IconC,
|
|
24234
24295
|
alt: "csdn",
|
|
@@ -25089,10 +25150,32 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25089
25150
|
close();
|
|
25090
25151
|
}
|
|
25091
25152
|
};
|
|
25153
|
+
const getHelpDocsUrlWithPath = (path, hash) => {
|
|
25154
|
+
const baseUrl = currentHelpDocsBaseUrl();
|
|
25155
|
+
const currentLang2 = getLocaleLang();
|
|
25156
|
+
let normalizedPath = path;
|
|
25157
|
+
if (normalizedPath && !normalizedPath.startsWith("/")) {
|
|
25158
|
+
normalizedPath = "/" + normalizedPath;
|
|
25159
|
+
}
|
|
25160
|
+
let fullPath = normalizedPath;
|
|
25161
|
+
if (currentLang2 !== LANG_ZH) {
|
|
25162
|
+
fullPath = "/en" + normalizedPath;
|
|
25163
|
+
}
|
|
25164
|
+
if (hash) {
|
|
25165
|
+
let normalizedHash = hash;
|
|
25166
|
+
if (!normalizedHash.startsWith("#")) {
|
|
25167
|
+
normalizedHash = "#" + normalizedHash;
|
|
25168
|
+
}
|
|
25169
|
+
fullPath += normalizedHash;
|
|
25170
|
+
}
|
|
25171
|
+
return baseUrl + fullPath;
|
|
25172
|
+
};
|
|
25173
|
+
const currentLang = getLocaleLang();
|
|
25174
|
+
const dataShareHash = currentLang !== LANG_ZH ? "#viii-data-synchronization-and-account-integration" : "#八数据同步与账户整合";
|
|
25092
25175
|
const links = {
|
|
25093
|
-
agreement:
|
|
25094
|
-
privacy:
|
|
25095
|
-
dataShare:
|
|
25176
|
+
agreement: getHelpDocsUrlWithPath("/docs/help/home/protocol/terms-of-service"),
|
|
25177
|
+
privacy: getHelpDocsUrlWithPath("/docs/help/home/protocol/privacy-policy"),
|
|
25178
|
+
dataShare: getHelpDocsUrlWithPath("/docs/help/home/protocol/privacy-policy", dataShareHash)
|
|
25096
25179
|
};
|
|
25097
25180
|
const links_hw = {
|
|
25098
25181
|
agreement: "https://www.huaweicloud.com/declaration/sa_cua.html",
|
|
@@ -25489,7 +25572,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25489
25572
|
[AuthTypeEnum.GITEE]: () => LoginConfig.beforeOtherLogin(loginParams),
|
|
25490
25573
|
[AuthTypeEnum.GITHUB]: () => LoginConfig.beforeOtherLogin(loginParams),
|
|
25491
25574
|
[AuthTypeEnum.H_BUILDER]: () => LoginConfig.beforeOtherLogin(loginParams),
|
|
25492
|
-
[AuthTypeEnum.HUAWEI]: () => LoginConfig.beforeOtherLogin(loginParams)
|
|
25575
|
+
[AuthTypeEnum.HUAWEI]: () => LoginConfig.beforeOtherLogin(loginParams),
|
|
25576
|
+
[AuthTypeEnum.SJTU]: () => LoginConfig.beforeOtherLogin(loginParams)
|
|
25493
25577
|
};
|
|
25494
25578
|
loginMap[type]();
|
|
25495
25579
|
if (localStorage$2.getItem("utm_source")) {
|
|
@@ -26175,7 +26259,7 @@ function useLogin(request, globalStore) {
|
|
|
26175
26259
|
url = window.location.search;
|
|
26176
26260
|
}
|
|
26177
26261
|
const returnUrl = url.replace("?returnUrl=", "");
|
|
26178
|
-
if (!router2.hasRoute(type)) {
|
|
26262
|
+
if (!router2 || !router2.hasRoute(type)) {
|
|
26179
26263
|
location.href = `${layoutConfig2.VITE_HOST}/${type}?returnUrl=${returnUrl}`;
|
|
26180
26264
|
} else {
|
|
26181
26265
|
router2.replace(`/${type}?returnUrl=${returnUrl}`);
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, createBlock, openBlock, unref, isRef, withCtx, createElementVNode, normalizeClass, createVNode, createTextVNode } from "vue";
|
|
2
|
-
import { i as isPhone, u as useModel } from "./index-
|
|
2
|
+
import { i as isPhone, u as useModel } from "./index-DxJFoNO4.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";
|