vue-layout-gitcode 1.10.36 → 1.10.38
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-YEZNh720.js → GloabarSearch-Cc-EAfTj.js} +3 -3
- package/{MenuItem-kdOXexCm.js → MenuItem-CO0zHVCU.js} +1 -1
- package/{ProjectMenuList-B1vPkkK_.js → ProjectMenuList-to0LshAc.js} +2 -2
- package/{ProjectMenuListV2-DJn9ahwb.js → ProjectMenuListV2-Dzx7cemj.js} +2 -2
- package/{ProjectSearch-Bovm7v4p.js → ProjectSearch-C-ZuiFNe.js} +1 -1
- package/{SearchHistoryList-_u7jq3az.js → SearchHistoryList-Cb-KkbKO.js} +1 -1
- package/{SearchPrefixTag-BpOVULHN.js → SearchPrefixTag-CG2Rapoz.js} +1 -1
- package/{SearchRecommed-DvtKYcy5.js → SearchRecommed-D-E5ydK1.js} +2 -2
- package/{SearchScopeList-Dju7J3EQ.js → SearchScopeList-BrCok_xU.js} +1 -1
- package/{UserSearch-C4u69Kdt.js → UserSearch-DggTPss0.js} +1 -1
- package/{index-yqtOh7Jk.js → index-C-H5jIRN.js} +1 -1
- package/{index-D3B70Plq.js → index-CBin7MhP.js} +39 -32
- package/{index-wHCEGN9V.js → index-FlMc5vO6.js} +2 -2
- package/{index-Bg7u06NQ.js → index-TvzVWjfV.js} +1 -1
- package/index.js +1 -1
- package/{notice-Dle7kwKG.js → notice-B-DrjcWz.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/{transWebUrl-OV5-X5bc.js → transWebUrl-DUb856FS.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-CBin7MhP.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-FlMc5vO6.js";
|
|
7
|
+
import "./transWebUrl-DUb856FS.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-CBin7MhP.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-CBin7MhP.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-DUb856FS.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-CBin7MhP.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
|
-
import { t as transWebUrl } from "./transWebUrl-
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-DUb856FS.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-CBin7MhP.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-CBin7MhP.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-CBin7MhP.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-FlMc5vO6.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-CBin7MhP.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-CBin7MhP.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-CBin7MhP.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-CBin7MhP.js";
|
|
12
12
|
const _YunpianCaptchaManager = class _YunpianCaptchaManager {
|
|
13
13
|
// eslint-disable-next-line no-useless-constructor
|
|
14
14
|
constructor() {
|
|
@@ -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?",
|
|
@@ -9641,6 +9641,7 @@ var AuthTypeEnum = /* @__PURE__ */ ((AuthTypeEnum2) => {
|
|
|
9641
9641
|
AuthTypeEnum2["ATOMGIT"] = "atomgit";
|
|
9642
9642
|
AuthTypeEnum2["PHONE_AND_PASSWORD"] = "phoneAndPassword";
|
|
9643
9643
|
AuthTypeEnum2["HUAWEI"] = "huawei";
|
|
9644
|
+
AuthTypeEnum2["SJTU"] = "sjtu";
|
|
9644
9645
|
return AuthTypeEnum2;
|
|
9645
9646
|
})(AuthTypeEnum || {});
|
|
9646
9647
|
var LoginMethodEnum = /* @__PURE__ */ ((LoginMethodEnum2) => {
|
|
@@ -15212,8 +15213,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
15212
15213
|
{ id: "dashboard", label: t2("gitCodeLayout.header.workbench"), icon: "gt-plane-user", to: getRouterLink("dashboard") },
|
|
15213
15214
|
{ id: "myOrg", label: t2("gitCodeLayout.header.myOrg"), icon: "gt-plane-organization", to: getRouterLink({ name: "settingOrganization" }) },
|
|
15214
15215
|
{ id: "myRepo", label: t2("gitCodeLayout.header.myRepo"), icon: "gt-plane-projectHome1", to: getRouterLink("settingRepo") },
|
|
15215
|
-
{ id: "myNotebook", label: t2("gitCodeLayout.header.myNotebook"), icon: "gt-plane-Notebook",
|
|
15216
|
-
{ id: "myOpenClaw", label: t2("gitCodeLayout.header.myOpenClaw"), icon: "gt-openclaw", link: `${layoutConfig2.VITE_AI_HOST}/user/${userInfo.value.username}/openclaw` },
|
|
15216
|
+
{ id: "myNotebook", label: t2("gitCodeLayout.header.myNotebook"), icon: "gt-plane-Notebook", to: getRouterLink("myNotebook") },
|
|
15217
15217
|
// { id: 'myCloudSpace', label: t('gitCodeLayout.header.myCloudSpace'), icon: 'gt-plane-cloud', target: '_blank', href: 'https://devstation.connect.huaweicloud.com/devdesktop/webide' },
|
|
15218
15218
|
{ id: "mySpaces", label: t2("gitCodeLayout.header.mySpace"), icon: "gt-plane-Space", to: getRouterLink("userSpaces") },
|
|
15219
15219
|
{ id: "myStar", label: t2("gitCodeLayout.header.myStar"), icon: "gt-plane-star", to: getRouterLink("userStars") }
|
|
@@ -15239,7 +15239,6 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
15239
15239
|
{ id: "myOrg", label: t2("gitCodeLayout.header.myOrg"), icon: "gt-plane-organization", link: "/setting/organization" },
|
|
15240
15240
|
{ id: "myRepo", label: t2("gitCodeLayout.header.myRepo"), icon: "gt-plane-projectHome1", link: "/setting/repo" },
|
|
15241
15241
|
{ id: "myNotebook", label: t2("gitCodeLayout.header.myNotebook"), icon: "gt-plane-Notebook", show: props.inAIHub, link: `/user/${userInfo.value.username}/notebook` },
|
|
15242
|
-
{ id: "myOpenClaw", label: t2("gitCodeLayout.header.myOpenClaw"), icon: "gt-openclaw", show: props.inAIHub, link: `/user/${userInfo.value.username}/openclaw` },
|
|
15243
15242
|
// { id: 'myCloudSpace', label: t('gitCodeLayout.header.myCloudSpace'), icon: 'gt-plane-cloud', link: 'https://devstation.connect.huaweicloud.com/devdesktop/webide' },
|
|
15244
15243
|
{ id: "mySpaces", label: t2("gitCodeLayout.header.mySpace"), icon: "gt-plane-Space", show: props.inAIHub, link: `/user/${userInfo.value.username}/spaces` },
|
|
15245
15244
|
{ id: "myStar", label: t2("gitCodeLayout.header.myStar"), icon: "gt-plane-star", link: `/user/${userInfo.value.username}/stars` }
|
|
@@ -15270,12 +15269,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
15270
15269
|
item.action();
|
|
15271
15270
|
}
|
|
15272
15271
|
if (item == null ? void 0 : item.link) {
|
|
15273
|
-
|
|
15274
|
-
if (/^https?:\/\//i.test(item.link)) {
|
|
15275
|
-
link = item.link;
|
|
15276
|
-
} else {
|
|
15277
|
-
link = `${layoutConfig2.VITE_HOST}${item.link}`;
|
|
15278
|
-
}
|
|
15272
|
+
const link = `${layoutConfig2.VITE_HOST}${item.link}`;
|
|
15279
15273
|
emit("link-click");
|
|
15280
15274
|
setTimeout(() => {
|
|
15281
15275
|
window.open(link, "_self");
|
|
@@ -15719,13 +15713,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
15719
15713
|
var _a;
|
|
15720
15714
|
const layoutConfig2 = useLayoutConfig();
|
|
15721
15715
|
const { t: $t } = i18n.global;
|
|
15722
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
15723
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
15724
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
15725
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
15726
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
15727
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
15728
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
15716
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-C-ZuiFNe.js"));
|
|
15717
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-DggTPss0.js"));
|
|
15718
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-Cc-EAfTj.js"));
|
|
15719
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-Cb-KkbKO.js"));
|
|
15720
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-BrCok_xU.js"));
|
|
15721
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-CG2Rapoz.js"));
|
|
15722
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-D-E5ydK1.js"));
|
|
15729
15723
|
const props = __props;
|
|
15730
15724
|
const repoInfo = inject("repoInfo");
|
|
15731
15725
|
const orgInfo = inject("orgInfo");
|
|
@@ -16499,7 +16493,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
|
|
|
16499
16493
|
loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
|
|
16500
16494
|
}
|
|
16501
16495
|
};
|
|
16502
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
16496
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-B-DrjcWz.js"));
|
|
16503
16497
|
function clearNotice() {
|
|
16504
16498
|
if (localStorage$2.getItem("validator_email")) {
|
|
16505
16499
|
localStorage$2.removeItem("validator_email");
|
|
@@ -17306,9 +17300,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
17306
17300
|
const layoutConfig2 = useLayoutConfig();
|
|
17307
17301
|
const { t: t2 } = i18n.global;
|
|
17308
17302
|
const route = useRoute();
|
|
17309
|
-
const MenuItem = defineAsyncComponent(() => import("./MenuItem-
|
|
17310
|
-
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-
|
|
17311
|
-
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-
|
|
17303
|
+
const MenuItem = defineAsyncComponent(() => import("./MenuItem-CO0zHVCU.js"));
|
|
17304
|
+
const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-Dzx7cemj.js"));
|
|
17305
|
+
const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-to0LshAc.js"));
|
|
17312
17306
|
const props = __props;
|
|
17313
17307
|
console.log("slotKeys", props.slotKeys);
|
|
17314
17308
|
console.log("props", props);
|
|
@@ -19307,7 +19301,7 @@ const createLoginConfig = (request) => {
|
|
|
19307
19301
|
afterWechatLogin(param) {
|
|
19308
19302
|
bindResultResolve(param, API);
|
|
19309
19303
|
},
|
|
19310
|
-
// 其他三方授权前(gitee、github、hbuilder
|
|
19304
|
+
// 其他三方授权前(gitee、github、hbuilder等)
|
|
19311
19305
|
beforeOtherLogin(param) {
|
|
19312
19306
|
const { type, validFunc } = param;
|
|
19313
19307
|
const check = validFunc ? validFunc() : true;
|
|
@@ -19707,8 +19701,13 @@ const __vite_glob_0_9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
|
|
|
19707
19701
|
__proto__: null,
|
|
19708
19702
|
default: logoMobile
|
|
19709
19703
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
19710
|
-
const
|
|
19704
|
+
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";
|
|
19711
19705
|
const __vite_glob_0_10 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
19706
|
+
__proto__: null,
|
|
19707
|
+
default: logoSjtu
|
|
19708
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
19709
|
+
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";
|
|
19710
|
+
const __vite_glob_0_11 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
19712
19711
|
__proto__: null,
|
|
19713
19712
|
default: logoWechat
|
|
19714
19713
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -23513,7 +23512,7 @@ const _SlidCaptchaManager = class _SlidCaptchaManager {
|
|
|
23513
23512
|
__publicField(_SlidCaptchaManager, "instance");
|
|
23514
23513
|
let SlidCaptchaManager = _SlidCaptchaManager;
|
|
23515
23514
|
const slidCaptchaManager = SlidCaptchaManager.getInstance();
|
|
23516
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
23515
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-TvzVWjfV.js"));
|
|
23517
23516
|
const useSlidCaptcha = () => {
|
|
23518
23517
|
const { mount, unMount, isMounted } = usePopup("slid-captcha-popup");
|
|
23519
23518
|
const open = (config) => {
|
|
@@ -23543,7 +23542,7 @@ const useSlidCaptcha = () => {
|
|
|
23543
23542
|
close
|
|
23544
23543
|
};
|
|
23545
23544
|
};
|
|
23546
|
-
const YunpianCaptcha = defineAsyncComponent(() => import("./index-
|
|
23545
|
+
const YunpianCaptcha = defineAsyncComponent(() => import("./index-C-H5jIRN.js"));
|
|
23547
23546
|
const useYunpianCaptcha = () => {
|
|
23548
23547
|
const { mount, unMount } = usePopup("yunpian-captcha-popup");
|
|
23549
23548
|
const open = (config) => {
|
|
@@ -24180,7 +24179,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24180
24179
|
const FormRules = getFormRules();
|
|
24181
24180
|
const { t: $t } = i18n.global;
|
|
24182
24181
|
const msgError = ref(false);
|
|
24183
|
-
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-
|
|
24182
|
+
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 });
|
|
24184
24183
|
const IconH = TransAssetsUrl(IconSource, "logo-gitee");
|
|
24185
24184
|
const IconC = TransAssetsUrl(IconSource, "logo-csdn");
|
|
24186
24185
|
const IconG = TransAssetsUrl(IconSource, "logo-github");
|
|
@@ -24189,6 +24188,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24189
24188
|
const IconW = TransAssetsUrl(IconSource, "logo-wechat");
|
|
24190
24189
|
const IconHb = TransAssetsUrl(IconSource, "logo-hb");
|
|
24191
24190
|
const IconHW = TransAssetsUrl(IconSource, "logo-huawei");
|
|
24191
|
+
const IconQiWu = TransAssetsUrl(IconSource, "logo-sjtu");
|
|
24192
24192
|
const logoConfig = getCurrentLogoMap();
|
|
24193
24193
|
const logoType = {
|
|
24194
24194
|
black: logoConfig.siteLogoWhite,
|
|
@@ -24224,6 +24224,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24224
24224
|
let timer = null;
|
|
24225
24225
|
let interval = null;
|
|
24226
24226
|
const logos = reactive([
|
|
24227
|
+
{
|
|
24228
|
+
src: IconQiWu,
|
|
24229
|
+
alt: "sjtu",
|
|
24230
|
+
describe: $t("gitCodeLayout.LoginModal.action.sjtuLogin") + $t("gitCodeLayout.LoginModal.action.AccountLogin"),
|
|
24231
|
+
loginMethodList: ["sjtu"]
|
|
24232
|
+
},
|
|
24227
24233
|
{
|
|
24228
24234
|
src: IconC,
|
|
24229
24235
|
alt: "csdn",
|
|
@@ -25484,7 +25490,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25484
25490
|
[AuthTypeEnum.GITEE]: () => LoginConfig.beforeOtherLogin(loginParams),
|
|
25485
25491
|
[AuthTypeEnum.GITHUB]: () => LoginConfig.beforeOtherLogin(loginParams),
|
|
25486
25492
|
[AuthTypeEnum.H_BUILDER]: () => LoginConfig.beforeOtherLogin(loginParams),
|
|
25487
|
-
[AuthTypeEnum.HUAWEI]: () => LoginConfig.beforeOtherLogin(loginParams)
|
|
25493
|
+
[AuthTypeEnum.HUAWEI]: () => LoginConfig.beforeOtherLogin(loginParams),
|
|
25494
|
+
[AuthTypeEnum.SJTU]: () => LoginConfig.beforeOtherLogin(loginParams)
|
|
25488
25495
|
};
|
|
25489
25496
|
loginMap[type]();
|
|
25490
25497
|
if (localStorage$2.getItem("utm_source")) {
|
|
@@ -26170,7 +26177,7 @@ function useLogin(request, globalStore) {
|
|
|
26170
26177
|
url = window.location.search;
|
|
26171
26178
|
}
|
|
26172
26179
|
const returnUrl = url.replace("?returnUrl=", "");
|
|
26173
|
-
if (!router2.hasRoute(type)) {
|
|
26180
|
+
if (!router2 || !router2.hasRoute(type)) {
|
|
26174
26181
|
location.href = `${layoutConfig2.VITE_HOST}/${type}?returnUrl=${returnUrl}`;
|
|
26175
26182
|
} else {
|
|
26176
26183
|
router2.replace(`/${type}?returnUrl=${returnUrl}`);
|
|
@@ -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-CBin7MhP.js";
|
|
4
|
+
import { t as transWebUrl } from "./transWebUrl-DUb856FS.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";
|
|
@@ -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-CBin7MhP.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:";
|
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-CBin7MhP.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";
|