vue-layout-gitcode 1.2.9 → 1.2.10
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-BGPB4NZR.js → GloabarSearch-lU1EPy9u.js} +2 -2
- package/{ProjectSearch-Dp7XIVeK.js → ProjectSearch-CoWSNdk2.js} +1 -1
- package/{SearchHistoryList-DHSvhy0G.js → SearchHistoryList-uSVZsqli.js} +1 -1
- package/{SearchPrefixTag-WbEGljgJ.js → SearchPrefixTag-6p-zjDc2.js} +1 -1
- package/{SearchRecommed-DOwz2jaR.js → SearchRecommed-BpVhQiO0.js} +2 -2
- package/{SearchScopeList-CLYsluML.js → SearchScopeList-CouHZlDD.js} +1 -1
- package/{UserSearch-BJBWn9OW.js → UserSearch-CKMN9sR1.js} +1 -1
- package/{index-BCeGXaZD.js → index-BNJ7WcsZ.js} +1 -1
- package/{index-Df5VJwhQ.js → index-C_naaHsq.js} +1 -1
- package/{index-CiQZc0G8.js → index-DvdU5Nsz.js} +75 -35
- package/index.d.ts +3 -1
- package/index.js +1 -1
- package/{notice-C9v6MqFw.js → notice-_CNKe5NF.js} +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { inject, ref, watch, onMounted, createElementBlock, createCommentVNode, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createBlock } from "vue";
|
|
2
2
|
import "vue-devui-lal/icon";
|
|
3
3
|
import "vue-devui-lal/icon/style.css";
|
|
4
|
-
import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_TYPE, e as extractRepoInfoWithURL, c as REPO_EVENT } from "./index-
|
|
5
|
-
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-
|
|
4
|
+
import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_TYPE, e as extractRepoInfoWithURL, c as REPO_EVENT } from "./index-DvdU5Nsz.js";
|
|
5
|
+
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-BNJ7WcsZ.js";
|
|
6
6
|
const _hoisted_1 = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "px-[8px] history-list-project pl-[8px]"
|
|
@@ -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-DvdU5Nsz.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-DvdU5Nsz.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-DvdU5Nsz.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, 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, c as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-
|
|
2
|
+
import { u as useReportRepo, S as SearchRepoCard } from "./index-BNJ7WcsZ.js";
|
|
3
|
+
import { a as i18n, h as headRequest, R as REPO_MODULE, c as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-DvdU5Nsz.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-DvdU5Nsz.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 } from "./index-
|
|
2
|
+
import { a as i18n, h as headRequest, G as GIcon } from "./index-DvdU5Nsz.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 { ref, watchEffect, defineComponent, toDisplayString, inject, createElementBlock, openBlock, normalizeClass, createElementVNode, withModifiers, withDirectives, vShow, createVNode, computed, createCommentVNode, unref, normalizeStyle, createTextVNode, onMounted, onUnmounted, Fragment, createBlock, renderList, reactive, withCtx } from "vue";
|
|
2
|
-
import { d as debounce, G as GIcon, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, _ as _export_sfc, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, L as LANG_KEY, j as LANG_ZH, k as usePageResize, m as isGstarRepo, n as _sfc_main$8, o as isIncubationRepo, p as highlightWords, t as transWebUrl, q as _frEventTrack, E as EVENT_NAME, b as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-
|
|
2
|
+
import { d as debounce, G as GIcon, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, _ as _export_sfc, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, L as LANG_KEY, j as LANG_ZH, k as usePageResize, m as isGstarRepo, n as _sfc_main$8, o as isIncubationRepo, p as highlightWords, t as transWebUrl, q as _frEventTrack, E as EVENT_NAME, b as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-DvdU5Nsz.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
4
|
import { Row, Col } from "vue-devui-lal/grid";
|
|
5
5
|
import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, onMounted, createBlock, openBlock, unref, withCtx, createElementVNode } from "vue";
|
|
2
2
|
import { FixedOverlay } from "vue-devui-lal/overlay";
|
|
3
|
-
import { v as useLayoutConfig, _ as _export_sfc } from "./index-
|
|
3
|
+
import { v as useLayoutConfig, _ as _export_sfc } from "./index-DvdU5Nsz.js";
|
|
4
4
|
import "vue-devui-lal/overlay/style.css";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "index",
|
|
@@ -7737,7 +7737,8 @@ const gitCodeLayout$1 = {
|
|
|
7737
7737
|
disAndQui: "不同意并退出",
|
|
7738
7738
|
agrAndSigIn: "同意并登录",
|
|
7739
7739
|
unusualLogin: "检测到异地登录,本次请使用",
|
|
7740
|
-
smsLogin: "短信登录"
|
|
7740
|
+
smsLogin: "短信登录",
|
|
7741
|
+
resetPwdSuccess: "修改密码成功"
|
|
7741
7742
|
},
|
|
7742
7743
|
link: {
|
|
7743
7744
|
agreement: "用户协议",
|
|
@@ -8019,7 +8020,8 @@ const gitCodeLayout = {
|
|
|
8019
8020
|
disAndQui: "Disagree and Exit",
|
|
8020
8021
|
agrAndSigIn: "Agree and Login",
|
|
8021
8022
|
unusualLogin: "unusual location login, ",
|
|
8022
|
-
smsLogin: "verify with SMS"
|
|
8023
|
+
smsLogin: "verify with SMS",
|
|
8024
|
+
resetPwdSuccess: "Password successfully changed"
|
|
8023
8025
|
},
|
|
8024
8026
|
link: {
|
|
8025
8027
|
agreement: "User Agreement",
|
|
@@ -17664,13 +17666,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
17664
17666
|
setup(__props) {
|
|
17665
17667
|
var _a;
|
|
17666
17668
|
const { t: $t } = i18n.global;
|
|
17667
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
17668
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
17669
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
17670
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
17671
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
17672
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
17673
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
17669
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-CoWSNdk2.js"));
|
|
17670
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-CKMN9sR1.js"));
|
|
17671
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-lU1EPy9u.js"));
|
|
17672
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-uSVZsqli.js"));
|
|
17673
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-CouHZlDD.js"));
|
|
17674
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-6p-zjDc2.js"));
|
|
17675
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-BpVhQiO0.js"));
|
|
17674
17676
|
const props = __props;
|
|
17675
17677
|
const repoInfo = inject("repoInfo");
|
|
17676
17678
|
const orgInfo = inject("orgInfo");
|
|
@@ -18228,7 +18230,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18228
18230
|
}
|
|
18229
18231
|
});
|
|
18230
18232
|
const Search = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
18231
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
18233
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-_CNKe5NF.js"));
|
|
18232
18234
|
function clearNotice() {
|
|
18233
18235
|
if (localStorage$2.getItem("validator_email")) {
|
|
18234
18236
|
localStorage$2.removeItem("validator_email");
|
|
@@ -18289,7 +18291,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18289
18291
|
headerBorder: { type: Boolean, default: false },
|
|
18290
18292
|
independence: { type: Boolean, default: true }
|
|
18291
18293
|
},
|
|
18292
|
-
emits: ["followDevCommunity", "followUser"],
|
|
18294
|
+
emits: ["followDevCommunity", "followUser", "resetPwdDirectlySuccess"],
|
|
18293
18295
|
setup(__props, { emit: __emit }) {
|
|
18294
18296
|
const layoutConfig2 = useLayoutConfig();
|
|
18295
18297
|
const route = useRoute();
|
|
@@ -18424,6 +18426,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18424
18426
|
props.loginSuccess(options);
|
|
18425
18427
|
});
|
|
18426
18428
|
addEventListener("notice", toNotice);
|
|
18429
|
+
addEventListener("resetPwdDirectlySuccess", () => {
|
|
18430
|
+
emit("resetPwdDirectlySuccess");
|
|
18431
|
+
});
|
|
18427
18432
|
window.addEventListener("message", (event) => {
|
|
18428
18433
|
var _a, _b;
|
|
18429
18434
|
const action = HandleParentWindowGetLoginInfo(props.request);
|
|
@@ -18437,6 +18442,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18437
18442
|
offEvent("updateUserInfo");
|
|
18438
18443
|
offEvent("login");
|
|
18439
18444
|
offEvent("logout");
|
|
18445
|
+
offEvent("resetPwdDirectlySuccess");
|
|
18440
18446
|
});
|
|
18441
18447
|
return (_ctx, _cache) => {
|
|
18442
18448
|
var _a, _b, _c, _d;
|
|
@@ -24612,7 +24618,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
24612
24618
|
}
|
|
24613
24619
|
});
|
|
24614
24620
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
24615
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
24621
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-C_naaHsq.js"));
|
|
24616
24622
|
const useSlidCaptcha = () => {
|
|
24617
24623
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
24618
24624
|
const open = (config) => {
|
|
@@ -24808,9 +24814,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24808
24814
|
route: {},
|
|
24809
24815
|
request: { default: () => Promise.resolve({ data: null }) },
|
|
24810
24816
|
openHarmonyGuide: { type: Boolean },
|
|
24811
|
-
loginSuccess: {}
|
|
24817
|
+
loginSuccess: {},
|
|
24818
|
+
resetPwdSource: { default: "" },
|
|
24819
|
+
showTitleBack: { type: Boolean, default: true }
|
|
24812
24820
|
},
|
|
24813
|
-
emits: ["update:modelValue", "login", "close", "link", "openHarmonyGuide"],
|
|
24821
|
+
emits: ["update:modelValue", "login", "close", "link", "openHarmonyGuide", "directClose"],
|
|
24814
24822
|
setup(__props, { emit: __emit }) {
|
|
24815
24823
|
const props = __props;
|
|
24816
24824
|
const request = props.request;
|
|
@@ -25128,7 +25136,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25128
25136
|
showLabel: true,
|
|
25129
25137
|
layout: "horizontal",
|
|
25130
25138
|
title: $t("gitCodeLayout.LoginModal.action.resetPassword"),
|
|
25131
|
-
showBack:
|
|
25139
|
+
showBack: props.showTitleBack
|
|
25132
25140
|
};
|
|
25133
25141
|
}
|
|
25134
25142
|
if (tabPanel.value === "verifyCode") {
|
|
@@ -25184,6 +25192,20 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25184
25192
|
};
|
|
25185
25193
|
const result2 = await API.resetUserPassword(data);
|
|
25186
25194
|
if (!result2.error) {
|
|
25195
|
+
if (resetPwdDirectly.value) {
|
|
25196
|
+
emitEvent("resetPwdDirectlySuccess");
|
|
25197
|
+
resetPwdDirectly.value = false;
|
|
25198
|
+
Message({
|
|
25199
|
+
message: $t("gitCodeLayout.LoginModal.tips.resetPwdSuccess"),
|
|
25200
|
+
duration: 2e3,
|
|
25201
|
+
type: "success"
|
|
25202
|
+
});
|
|
25203
|
+
setTimeout(() => {
|
|
25204
|
+
loading.value = false;
|
|
25205
|
+
emits("directClose");
|
|
25206
|
+
}, 500);
|
|
25207
|
+
return;
|
|
25208
|
+
}
|
|
25187
25209
|
dealLog($t("gitCodeLayout.LoginModal.tips.updatePassword"), "success", "login");
|
|
25188
25210
|
} else {
|
|
25189
25211
|
extraErrors.requestInfo = result2.error.error_message;
|
|
@@ -25640,6 +25662,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25640
25662
|
const handleBack = () => {
|
|
25641
25663
|
mfaCheck.value = false;
|
|
25642
25664
|
};
|
|
25665
|
+
const handleTitleBackClick = () => {
|
|
25666
|
+
if (resetPwdDirectly.value) {
|
|
25667
|
+
emits("directClose");
|
|
25668
|
+
return;
|
|
25669
|
+
}
|
|
25670
|
+
formType.value = "login";
|
|
25671
|
+
};
|
|
25643
25672
|
const miniProgramStatus = ref("WAITING");
|
|
25644
25673
|
const miniProgramLoading = ref(false);
|
|
25645
25674
|
const shouldMiniProgramPoll = ref(false);
|
|
@@ -25717,16 +25746,21 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25717
25746
|
shouldMiniProgramPoll.value = true;
|
|
25718
25747
|
startPoll();
|
|
25719
25748
|
};
|
|
25749
|
+
const resetPwdDirectly = ref(false);
|
|
25750
|
+
const resetPwdWhiteList = ["change_password"];
|
|
25720
25751
|
onMounted(() => {
|
|
25721
25752
|
if (tabPanel.value === "miniProgram" && formType.value === "login") {
|
|
25722
25753
|
handleTabPanelChange(tabPanel.value);
|
|
25723
25754
|
}
|
|
25755
|
+
if (resetPwdWhiteList.includes(props.resetPwdSource) && formType.value === "forget") {
|
|
25756
|
+
resetPwdDirectly.value = true;
|
|
25757
|
+
}
|
|
25724
25758
|
});
|
|
25725
25759
|
return (_ctx, _cache) => {
|
|
25726
25760
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
25727
25761
|
createVNode(unref(Modal), {
|
|
25728
25762
|
modelValue: unref(vModels),
|
|
25729
|
-
"onUpdate:modelValue": _cache[
|
|
25763
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => isRef(vModels) ? vModels.value = $event : null),
|
|
25730
25764
|
"show-close": false,
|
|
25731
25765
|
"lock-scroll": _ctx.lockScroll,
|
|
25732
25766
|
draggable: _ctx.draggable,
|
|
@@ -25754,21 +25788,21 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25754
25788
|
"login-modal-tab mr-[18px]",
|
|
25755
25789
|
tabPanel.value === "miniProgram" ? "login-modal-tab-active" : "login-modal-tab-inactive"
|
|
25756
25790
|
]),
|
|
25757
|
-
onClick: _cache[
|
|
25791
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleTabPanelChange("miniProgram"), ["stop"]))
|
|
25758
25792
|
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.title")), 3),
|
|
25759
25793
|
createElementVNode("div", {
|
|
25760
25794
|
class: normalizeClass([
|
|
25761
25795
|
"login-modal-tab mr-[18px] ml-[18px]",
|
|
25762
25796
|
tabPanel.value === "verifyCode" ? "login-modal-tab-active" : "login-modal-tab-inactive"
|
|
25763
25797
|
]),
|
|
25764
|
-
onClick: _cache[
|
|
25798
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleTabPanelChange("verifyCode"), ["stop"]))
|
|
25765
25799
|
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.sms")), 3),
|
|
25766
25800
|
createElementVNode("div", {
|
|
25767
25801
|
class: normalizeClass([
|
|
25768
25802
|
"login-modal-tab ml-[18px]",
|
|
25769
25803
|
tabPanel.value === "password" ? "login-modal-tab-active" : "login-modal-tab-inactive"
|
|
25770
25804
|
]),
|
|
25771
|
-
onClick: _cache[
|
|
25805
|
+
onClick: _cache[2] || (_cache[2] = withModifiers(($event) => handleTabPanelChange("password"), ["stop"]))
|
|
25772
25806
|
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.password")), 3)
|
|
25773
25807
|
])) : createCommentVNode("", true),
|
|
25774
25808
|
formType.value === "forget" ? (openBlock(), createElementBlock("div", _hoisted_5, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.bindMobileWithAccount")) + "/" + toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.resetYourPassword")), 1)) : createCommentVNode("", true),
|
|
@@ -25836,14 +25870,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25836
25870
|
errForRemoteLogin.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
25837
25871
|
createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.unusualLogin")), 1),
|
|
25838
25872
|
createElementVNode("span", {
|
|
25839
|
-
onClick: _cache[
|
|
25873
|
+
onClick: _cache[3] || (_cache[3] = ($event) => handleTabPanelChange("verifyCode")),
|
|
25840
25874
|
class: "login-modal-info-left__link"
|
|
25841
25875
|
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.smsLogin")), 1)
|
|
25842
25876
|
], 64)) : createCommentVNode("", true)
|
|
25843
25877
|
]),
|
|
25844
25878
|
withDirectives(createElementVNode("div", {
|
|
25845
25879
|
class: "login-modal-info-right",
|
|
25846
|
-
onClick: _cache[
|
|
25880
|
+
onClick: _cache[4] || (_cache[4] = withModifiers(($event) => formType.value = "forget", ["stop"]))
|
|
25847
25881
|
}, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.forgotPassword")), 513), [
|
|
25848
25882
|
[vShow, tabPanel.value === "password" && formType.value === "login"]
|
|
25849
25883
|
])
|
|
@@ -25869,7 +25903,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25869
25903
|
class: "text-[var(--theme-link)] text-center mt-[12px] cursor-pointer leading-[32px] openharmony-btn",
|
|
25870
25904
|
onClick: withModifiers(handleRegisterHarmony, ["stop"])
|
|
25871
25905
|
}, [
|
|
25872
|
-
_cache[
|
|
25906
|
+
_cache[16] || (_cache[16] = createElementVNode("img", {
|
|
25873
25907
|
src: "https://cdn-static.gitcode.com/static/images/guide/openharmony.svg",
|
|
25874
25908
|
alt: "",
|
|
25875
25909
|
class: "mr-[16px] inline-block"
|
|
@@ -25896,7 +25930,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25896
25930
|
createVNode(GTitle, {
|
|
25897
25931
|
icon: unref(IconB),
|
|
25898
25932
|
title: FormConfig.value.title,
|
|
25899
|
-
onBack:
|
|
25933
|
+
onBack: handleTitleBackClick,
|
|
25900
25934
|
"show-back": FormConfig.value.showBack,
|
|
25901
25935
|
class: "login-modal-title flex-1"
|
|
25902
25936
|
}, null, 8, ["icon", "title", "show-back"]),
|
|
@@ -25929,8 +25963,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25929
25963
|
createElementVNode("div", _hoisted_20, [
|
|
25930
25964
|
createVNode(_sfc_main$8, {
|
|
25931
25965
|
modelValue: status.value,
|
|
25932
|
-
"onUpdate:modelValue": _cache[
|
|
25933
|
-
onDeclares: _cache[
|
|
25966
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => status.value = $event),
|
|
25967
|
+
onDeclares: _cache[6] || (_cache[6] = (typ) => handleDisplay(typ))
|
|
25934
25968
|
}, null, 8, ["modelValue"])
|
|
25935
25969
|
])
|
|
25936
25970
|
], 2)
|
|
@@ -25946,19 +25980,19 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25946
25980
|
}, [
|
|
25947
25981
|
createVNode(_sfc_main$7, {
|
|
25948
25982
|
modelValue: hwStatus.value,
|
|
25949
|
-
"onUpdate:modelValue": _cache[
|
|
25950
|
-
onDeclares: _cache[
|
|
25983
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => hwStatus.value = $event),
|
|
25984
|
+
onDeclares: _cache[8] || (_cache[8] = (typ) => handleDisplay(typ, "huawei")),
|
|
25951
25985
|
"agreement-text": `《${unref($t)("gitCodeLayout.LoginModal.link.huaweiCloudAgreement")}》`,
|
|
25952
25986
|
"privacy-text": `《${unref($t)("gitCodeLayout.LoginModal.link.agreementPrivacy")}》`,
|
|
25953
|
-
onClick: _cache[
|
|
25987
|
+
onClick: _cache[9] || (_cache[9] = ($event) => agreementReport("signup_select", `hw${hwStatus.value ? 1 : 0}`))
|
|
25954
25988
|
}, null, 8, ["modelValue", "agreement-text", "privacy-text"]),
|
|
25955
25989
|
createVNode(_sfc_main$7, {
|
|
25956
25990
|
modelValue: status.value,
|
|
25957
|
-
"onUpdate:modelValue": _cache[
|
|
25958
|
-
onDeclares: _cache[
|
|
25991
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => status.value = $event),
|
|
25992
|
+
onDeclares: _cache[11] || (_cache[11] = (typ) => handleDisplay(typ)),
|
|
25959
25993
|
"agreement-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.agreement")}》`,
|
|
25960
25994
|
"privacy-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")}》`,
|
|
25961
|
-
onClick: _cache[
|
|
25995
|
+
onClick: _cache[12] || (_cache[12] = ($event) => agreementReport("signup_select", `gitcode${status.value ? 1 : 0}`))
|
|
25962
25996
|
}, null, 8, ["modelValue", "agreement-text", "privacy-text"])
|
|
25963
25997
|
], 2)) : createCommentVNode("", true),
|
|
25964
25998
|
createElementVNode("div", _hoisted_23, [
|
|
@@ -25985,9 +26019,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25985
26019
|
]), 1032, ["modelValue", "lock-scroll", "draggable", "escapable", "append-to-body", "class"]),
|
|
25986
26020
|
createVNode(_sfc_main$5, {
|
|
25987
26021
|
visible: showProtoCheck.value,
|
|
25988
|
-
"onUpdate:visible": _cache[
|
|
26022
|
+
"onUpdate:visible": _cache[14] || (_cache[14] = ($event) => showProtoCheck.value = $event),
|
|
25989
26023
|
onConfirm: agreeAndLogin,
|
|
25990
|
-
onDeclares: _cache[
|
|
26024
|
+
onDeclares: _cache[15] || (_cache[15] = (typ) => handleDisplay(typ))
|
|
25991
26025
|
}, null, 8, ["visible"])
|
|
25992
26026
|
], 64);
|
|
25993
26027
|
};
|
|
@@ -26001,8 +26035,8 @@ function useLogin(request, globalStore) {
|
|
|
26001
26035
|
const router2 = useRouter();
|
|
26002
26036
|
const route = useRoute();
|
|
26003
26037
|
const { useReport: useReport2 } = useRequestReport(request, globalStore);
|
|
26004
|
-
const login = (options = { Authorization: true, type: "login", triggerType: "", loginTriggerSource: "" }, loginSuccess, openHarmonyGuide) => {
|
|
26005
|
-
const { Authorization = true, type = "login", triggerType = "", loginTriggerSource = "" } = options;
|
|
26038
|
+
const login = (options = { Authorization: true, type: "login", triggerType: "", loginTriggerSource: "", resetPwdSource: "" }, loginSuccess, openHarmonyGuide) => {
|
|
26039
|
+
const { Authorization = true, type = "login", triggerType = "", loginTriggerSource = "", resetPwdSource = "" } = options;
|
|
26006
26040
|
if (isMounted()) {
|
|
26007
26041
|
return;
|
|
26008
26042
|
}
|
|
@@ -26028,6 +26062,9 @@ function useLogin(request, globalStore) {
|
|
|
26028
26062
|
triggerType,
|
|
26029
26063
|
loginSuccess,
|
|
26030
26064
|
openHarmonyGuide,
|
|
26065
|
+
resetPwdSource,
|
|
26066
|
+
showTitleBack: !resetPwdSource,
|
|
26067
|
+
// 直接进重置密码弹窗不显示 back 按钮
|
|
26031
26068
|
onLogin: async (conf) => {
|
|
26032
26069
|
unMount();
|
|
26033
26070
|
const { username, email } = conf;
|
|
@@ -26067,6 +26104,9 @@ function useLogin(request, globalStore) {
|
|
|
26067
26104
|
} else {
|
|
26068
26105
|
refreshModal();
|
|
26069
26106
|
}
|
|
26107
|
+
},
|
|
26108
|
+
onDirectClose: () => {
|
|
26109
|
+
unMount();
|
|
26070
26110
|
}
|
|
26071
26111
|
});
|
|
26072
26112
|
}
|
package/index.d.ts
CHANGED
|
@@ -66,6 +66,7 @@ declare type EventBus = {
|
|
|
66
66
|
openFilePath: void;
|
|
67
67
|
crossQuestion: void;
|
|
68
68
|
hisSearchValue: string;
|
|
69
|
+
resetPwdDirectlySuccess: void;
|
|
69
70
|
};
|
|
70
71
|
|
|
71
72
|
export declare const GitCodeAside: DefineComponent<ExtractPropTypes<{
|
|
@@ -282,7 +283,7 @@ export declare const GitCodeHeader: DefineComponent<ExtractPropTypes<{
|
|
|
282
283
|
required: false;
|
|
283
284
|
default: boolean;
|
|
284
285
|
};
|
|
285
|
-
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("followDevCommunity" | "followUser")[], "followDevCommunity" | "followUser", PublicProps, Readonly<ExtractPropTypes<{
|
|
286
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("resetPwdDirectlySuccess" | "followDevCommunity" | "followUser")[], "resetPwdDirectlySuccess" | "followDevCommunity" | "followUser", PublicProps, Readonly<ExtractPropTypes<{
|
|
286
287
|
sceneValue: {
|
|
287
288
|
type: PropType<SceneValue>;
|
|
288
289
|
required: true;
|
|
@@ -365,6 +366,7 @@ export declare const GitCodeHeader: DefineComponent<ExtractPropTypes<{
|
|
|
365
366
|
default: boolean;
|
|
366
367
|
};
|
|
367
368
|
}>> & Readonly<{
|
|
369
|
+
onResetPwdDirectlySuccess?: ((...args: any[]) => any) | undefined;
|
|
368
370
|
onFollowDevCommunity?: ((...args: any[]) => any) | undefined;
|
|
369
371
|
onFollowUser?: ((...args: any[]) => any) | undefined;
|
|
370
372
|
}>, {
|
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-DvdU5Nsz.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";
|