vue-layout-gitcode 1.10.39 → 1.11.0
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-CpV9Y0-2.js → GloabarSearch-B3DXPOCT.js} +3 -3
- package/{MenuItem-xG1zyDqG.js → MenuItem-DWuED-KM.js} +1 -1
- package/{ProjectMenuList-BpIv8yk8.js → ProjectMenuList-hNIyt_sC.js} +2 -2
- package/{ProjectMenuListV2-ewgKsv0G.js → ProjectMenuListV2-CLyp3FIb.js} +2 -2
- package/{ProjectSearch-BNrh-n61.js → ProjectSearch-FJQ48GrJ.js} +1 -1
- package/{SearchHistoryList-Ca_yx2TJ.js → SearchHistoryList-CAnJHO3k.js} +1 -1
- package/{SearchPrefixTag-8fcmiStm.js → SearchPrefixTag-WGPJ-TxO.js} +1 -1
- package/{SearchRecommed-Elyth2MI.js → SearchRecommed-DS2dn8zz.js} +2 -2
- package/{SearchScopeList-C-uLY739.js → SearchScopeList-BD2JEBMZ.js} +1 -1
- package/{UserSearch-Cg_r3s6r.js → UserSearch-1d3zF6eQ.js} +1 -1
- package/{index-Bqx7R4V9.js → index-BH_F-ft8.js} +1 -1
- package/{index-3kx3gWG8.js → index-Bg94W4_g.js} +1 -1
- package/{index-CAPAOsg7.js → index-BtpY7PUp.js} +2 -2
- package/{index-DxJFoNO4.js → index-Bu1Yd-7n.js} +28 -126
- package/index.js +1 -1
- package/{notice-CUm9r7g5.js → notice-CdPL7P0m.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/{transWebUrl-BHz8Qist.js → transWebUrl-j6caNmnv.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-Bu1Yd-7n.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-BtpY7PUp.js";
|
|
7
|
+
import "./transWebUrl-j6caNmnv.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-Bu1Yd-7n.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-Bu1Yd-7n.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-j6caNmnv.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-Bu1Yd-7n.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-j6caNmnv.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-Bu1Yd-7n.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-Bu1Yd-7n.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-Bu1Yd-7n.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-BtpY7PUp.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-Bu1Yd-7n.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-Bu1Yd-7n.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-Bu1Yd-7n.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]" };
|
|
@@ -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-Bu1Yd-7n.js";
|
|
12
12
|
const _YunpianCaptchaManager = class _YunpianCaptchaManager {
|
|
13
13
|
// eslint-disable-next-line no-useless-constructor
|
|
14
14
|
constructor() {
|
|
@@ -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-Bu1Yd-7n.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:";
|
|
@@ -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-Bu1Yd-7n.js";
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-j6caNmnv.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";
|
|
@@ -7947,8 +7947,7 @@ const gitCodeLayout$1 = {
|
|
|
7947
7947
|
wechatScanCodeLogin: "微信扫码登录",
|
|
7948
7948
|
AccountLogin: "帐号登录",
|
|
7949
7949
|
resetPassword: "重置密码",
|
|
7950
|
-
huaweiLogin: "华为"
|
|
7951
|
-
sjtuLogin: "启悟学习社区"
|
|
7950
|
+
huaweiLogin: "华为"
|
|
7952
7951
|
},
|
|
7953
7952
|
tips: {
|
|
7954
7953
|
forgotPassword: "忘记密码?",
|
|
@@ -8328,10 +8327,9 @@ const gitCodeLayout = {
|
|
|
8328
8327
|
verify: "Confirm",
|
|
8329
8328
|
confirmPassword: "Confirm password",
|
|
8330
8329
|
wechatScanCodeLogin: "WeChat QR code login",
|
|
8331
|
-
AccountLogin: "
|
|
8330
|
+
AccountLogin: "Account login",
|
|
8332
8331
|
resetPassword: "Reset password",
|
|
8333
|
-
huaweiLogin: "Huawei"
|
|
8334
|
-
sjtuLogin: "QiWu Community"
|
|
8332
|
+
huaweiLogin: "Huawei"
|
|
8335
8333
|
},
|
|
8336
8334
|
tips: {
|
|
8337
8335
|
forgotPassword: "Forgot password?",
|
|
@@ -9025,63 +9023,9 @@ const isGitCodeHost = () => {
|
|
|
9025
9023
|
return location.hostname.includes("gitcode");
|
|
9026
9024
|
};
|
|
9027
9025
|
const currentSiteName = () => isGitCodeHost() ? "GitCode" : "AtomGit";
|
|
9028
|
-
const
|
|
9029
|
-
|
|
9030
|
-
|
|
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
|
-
};
|
|
9026
|
+
const currentHelpDocsUrl = () => isGitCodeHost() ? HELP_DOCS_URL_GITCODE : HELP_DOCS_URL_ATOMGIT;
|
|
9027
|
+
const currentHelpDocsAboutUsUrl = () => isGitCodeHost() ? HELP_DOCS_URL_GITCODE + "/docs/help/home/aboutus/" : HELP_DOCS_URL_ATOMGIT + "/docs/help/home/aboutus/";
|
|
9028
|
+
const currentHelpDocsAiCommunityUrl = () => isGitCodeHost() ? HELP_DOCS_URL_GITCODE + "/docs/help/home/ai-community/" : HELP_DOCS_URL_ATOMGIT + "/docs/help/home/ai-community/";
|
|
9085
9029
|
const _hoisted_1$y = { class: "home-nav-right" };
|
|
9086
9030
|
const _hoisted_2$o = { class: "home-nav-item" };
|
|
9087
9031
|
const _hoisted_3$n = { class: "tooltip-sign" };
|
|
@@ -9695,7 +9639,6 @@ var AuthTypeEnum = /* @__PURE__ */ ((AuthTypeEnum2) => {
|
|
|
9695
9639
|
AuthTypeEnum2["ATOMGIT"] = "atomgit";
|
|
9696
9640
|
AuthTypeEnum2["PHONE_AND_PASSWORD"] = "phoneAndPassword";
|
|
9697
9641
|
AuthTypeEnum2["HUAWEI"] = "huawei";
|
|
9698
|
-
AuthTypeEnum2["SJTU"] = "sjtu";
|
|
9699
9642
|
return AuthTypeEnum2;
|
|
9700
9643
|
})(AuthTypeEnum || {});
|
|
9701
9644
|
var LoginMethodEnum = /* @__PURE__ */ ((LoginMethodEnum2) => {
|
|
@@ -14531,7 +14474,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
14531
14474
|
__props.data.vHtml ? (openBlock(), createElementBlock("div", {
|
|
14532
14475
|
key: 0,
|
|
14533
14476
|
title: __props.data.title,
|
|
14534
|
-
innerHTML: __props.data.title || "",
|
|
14477
|
+
innerHTML: unref(xssPurify)(__props.data.title) || "",
|
|
14535
14478
|
class: "overflow-hidden"
|
|
14536
14479
|
}, null, 8, _hoisted_7$7)) : (openBlock(), createElementBlock("span", {
|
|
14537
14480
|
key: 1,
|
|
@@ -15767,13 +15710,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
15767
15710
|
var _a;
|
|
15768
15711
|
const layoutConfig2 = useLayoutConfig();
|
|
15769
15712
|
const { t: $t } = i18n.global;
|
|
15770
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
15771
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
15772
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
15773
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
15774
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
15775
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
15776
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
15713
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-FJQ48GrJ.js"));
|
|
15714
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-1d3zF6eQ.js"));
|
|
15715
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-B3DXPOCT.js"));
|
|
15716
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-CAnJHO3k.js"));
|
|
15717
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-BD2JEBMZ.js"));
|
|
15718
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-WGPJ-TxO.js"));
|
|
15719
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-DS2dn8zz.js"));
|
|
15777
15720
|
const props = __props;
|
|
15778
15721
|
const repoInfo = inject("repoInfo");
|
|
15779
15722
|
const orgInfo = inject("orgInfo");
|
|
@@ -16547,7 +16490,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
|
|
|
16547
16490
|
loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
|
|
16548
16491
|
}
|
|
16549
16492
|
};
|
|
16550
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
16493
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-CdPL7P0m.js"));
|
|
16551
16494
|
function clearNotice() {
|
|
16552
16495
|
if (localStorage$2.getItem("validator_email")) {
|
|
16553
16496
|
localStorage$2.removeItem("validator_email");
|
|
@@ -17354,9 +17297,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
17354
17297
|
const layoutConfig2 = useLayoutConfig();
|
|
17355
17298
|
const { t: t2 } = i18n.global;
|
|
17356
17299
|
const route = useRoute();
|
|
17357
|
-
const MenuItem = defineAsyncComponent(() => import("./MenuItem-
|
|
17358
|
-
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-
|
|
17359
|
-
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-
|
|
17300
|
+
const MenuItem = defineAsyncComponent(() => import("./MenuItem-DWuED-KM.js"));
|
|
17301
|
+
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-CLyp3FIb.js"));
|
|
17302
|
+
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-hNIyt_sC.js"));
|
|
17360
17303
|
const props = __props;
|
|
17361
17304
|
console.log("slotKeys", props.slotKeys);
|
|
17362
17305
|
console.log("props", props);
|
|
@@ -17750,12 +17693,6 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
17750
17693
|
});
|
|
17751
17694
|
const linkList = computed(() => {
|
|
17752
17695
|
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
|
-
},
|
|
17759
17696
|
{
|
|
17760
17697
|
name: t2("gitCodeLayout.header.helpDocument"),
|
|
17761
17698
|
icon: "gt-line-file",
|
|
@@ -19361,7 +19298,7 @@ const createLoginConfig = (request) => {
|
|
|
19361
19298
|
afterWechatLogin(param) {
|
|
19362
19299
|
bindResultResolve(param, API);
|
|
19363
19300
|
},
|
|
19364
|
-
// 其他三方授权前(gitee、github、hbuilder
|
|
19301
|
+
// 其他三方授权前(gitee、github、hbuilder)
|
|
19365
19302
|
beforeOtherLogin(param) {
|
|
19366
19303
|
const { type, validFunc } = param;
|
|
19367
19304
|
const check = validFunc ? validFunc() : true;
|
|
@@ -19761,13 +19698,8 @@ const __vite_glob_0_9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
|
|
|
19761
19698
|
__proto__: null,
|
|
19762
19699
|
default: logoMobile
|
|
19763
19700
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
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";
|
|
19765
|
-
const __vite_glob_0_10 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
19766
|
-
__proto__: null,
|
|
19767
|
-
default: logoSjtu
|
|
19768
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
19769
19701
|
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
|
|
19702
|
+
const __vite_glob_0_10 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
19771
19703
|
__proto__: null,
|
|
19772
19704
|
default: logoWechat
|
|
19773
19705
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -23572,7 +23504,7 @@ const _SlidCaptchaManager = class _SlidCaptchaManager {
|
|
|
23572
23504
|
__publicField(_SlidCaptchaManager, "instance");
|
|
23573
23505
|
let SlidCaptchaManager = _SlidCaptchaManager;
|
|
23574
23506
|
const slidCaptchaManager = SlidCaptchaManager.getInstance();
|
|
23575
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
23507
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-Bg94W4_g.js"));
|
|
23576
23508
|
const useSlidCaptcha = () => {
|
|
23577
23509
|
const { mount, unMount, isMounted } = usePopup("slid-captcha-popup");
|
|
23578
23510
|
const open = (config) => {
|
|
@@ -23602,7 +23534,7 @@ const useSlidCaptcha = () => {
|
|
|
23602
23534
|
close
|
|
23603
23535
|
};
|
|
23604
23536
|
};
|
|
23605
|
-
const YunpianCaptcha = defineAsyncComponent(() => import("./index-
|
|
23537
|
+
const YunpianCaptcha = defineAsyncComponent(() => import("./index-BH_F-ft8.js"));
|
|
23606
23538
|
const useYunpianCaptcha = () => {
|
|
23607
23539
|
const { mount, unMount } = usePopup("yunpian-captcha-popup");
|
|
23608
23540
|
const open = (config) => {
|
|
@@ -24239,7 +24171,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24239
24171
|
const FormRules = getFormRules();
|
|
24240
24172
|
const { t: $t } = i18n.global;
|
|
24241
24173
|
const msgError = ref(false);
|
|
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-
|
|
24174
|
+
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-wechat.svg": __vite_glob_0_10 });
|
|
24243
24175
|
const IconH = TransAssetsUrl(IconSource, "logo-gitee");
|
|
24244
24176
|
const IconC = TransAssetsUrl(IconSource, "logo-csdn");
|
|
24245
24177
|
const IconG = TransAssetsUrl(IconSource, "logo-github");
|
|
@@ -24248,7 +24180,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24248
24180
|
const IconW = TransAssetsUrl(IconSource, "logo-wechat");
|
|
24249
24181
|
const IconHb = TransAssetsUrl(IconSource, "logo-hb");
|
|
24250
24182
|
const IconHW = TransAssetsUrl(IconSource, "logo-huawei");
|
|
24251
|
-
const IconQiWu = TransAssetsUrl(IconSource, "logo-sjtu");
|
|
24252
24183
|
const logoConfig = getCurrentLogoMap();
|
|
24253
24184
|
const logoType = {
|
|
24254
24185
|
black: logoConfig.siteLogoWhite,
|
|
@@ -24284,12 +24215,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24284
24215
|
let timer = null;
|
|
24285
24216
|
let interval = null;
|
|
24286
24217
|
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
|
-
},
|
|
24293
24218
|
{
|
|
24294
24219
|
src: IconC,
|
|
24295
24220
|
alt: "csdn",
|
|
@@ -25150,32 +25075,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25150
25075
|
close();
|
|
25151
25076
|
}
|
|
25152
25077
|
};
|
|
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" : "#八数据同步与账户整合";
|
|
25175
25078
|
const links = {
|
|
25176
|
-
agreement:
|
|
25177
|
-
privacy:
|
|
25178
|
-
dataShare:
|
|
25079
|
+
agreement: currentHelpDocsUrl() + "/docs/help/home/protocol/terms-of-service",
|
|
25080
|
+
privacy: currentHelpDocsUrl() + "/docs/help/home/protocol/privacy-policy",
|
|
25081
|
+
dataShare: currentHelpDocsUrl() + "/docs/help/home/protocol/privacy-policy#八数据同步与账户整合"
|
|
25179
25082
|
};
|
|
25180
25083
|
const links_hw = {
|
|
25181
25084
|
agreement: "https://www.huaweicloud.com/declaration/sa_cua.html",
|
|
@@ -25572,8 +25475,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25572
25475
|
[AuthTypeEnum.GITEE]: () => LoginConfig.beforeOtherLogin(loginParams),
|
|
25573
25476
|
[AuthTypeEnum.GITHUB]: () => LoginConfig.beforeOtherLogin(loginParams),
|
|
25574
25477
|
[AuthTypeEnum.H_BUILDER]: () => LoginConfig.beforeOtherLogin(loginParams),
|
|
25575
|
-
[AuthTypeEnum.HUAWEI]: () => LoginConfig.beforeOtherLogin(loginParams)
|
|
25576
|
-
[AuthTypeEnum.SJTU]: () => LoginConfig.beforeOtherLogin(loginParams)
|
|
25478
|
+
[AuthTypeEnum.HUAWEI]: () => LoginConfig.beforeOtherLogin(loginParams)
|
|
25577
25479
|
};
|
|
25578
25480
|
loginMap[type]();
|
|
25579
25481
|
if (localStorage$2.getItem("utm_source")) {
|
|
@@ -26259,7 +26161,7 @@ function useLogin(request, globalStore) {
|
|
|
26259
26161
|
url = window.location.search;
|
|
26260
26162
|
}
|
|
26261
26163
|
const returnUrl = url.replace("?returnUrl=", "");
|
|
26262
|
-
if (!router2
|
|
26164
|
+
if (!router2.hasRoute(type)) {
|
|
26263
26165
|
location.href = `${layoutConfig2.VITE_HOST}/${type}?returnUrl=${returnUrl}`;
|
|
26264
26166
|
} else {
|
|
26265
26167
|
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-Bu1Yd-7n.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";
|