vue-layout-gitcode 1.5.34 → 1.5.35

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.
@@ -7835,7 +7835,8 @@ const gitCodeLayout$1 = {
7835
7835
  tip03: "扫码完成",
7836
7836
  tip04: "请在手机上确认操作",
7837
7837
  tip05: "微信扫一扫,快速登录/注册",
7838
- tip06: "重新扫码"
7838
+ tip06: "重新扫码",
7839
+ qrCodeError: "二维码加载失败"
7839
7840
  },
7840
7841
  mfatip5: "为了确保你的账户安全,请完成多因素身份验证",
7841
7842
  mfatip1: "请打开你的身份验证器应用程序,查看并输入身份验证码",
@@ -8125,7 +8126,8 @@ const gitCodeLayout = {
8125
8126
  tip03: "Scan completed",
8126
8127
  tip04: "Please confirm the action on your phone",
8127
8128
  tip05: "Scan QR Code via WeChat to quickly log in or sign up",
8128
- tip06: "Refresh QR Code"
8129
+ tip06: "Refresh QR Code",
8130
+ qrCodeError: "QR code loading failed"
8129
8131
  },
8130
8132
  mfatip5: "To ensure the security of your account, please complete the multi-factor authentication.",
8131
8133
  mfatip1: "Open your authentication app and enter the verification code.",
@@ -16160,6 +16162,7 @@ var LoginMethodEnum = /* @__PURE__ */ ((LoginMethodEnum2) => {
16160
16162
  LoginMethodEnum2["ATOMGIT"] = "atomgit";
16161
16163
  LoginMethodEnum2["GITEE"] = "gitee";
16162
16164
  LoginMethodEnum2["GITHUB"] = "github";
16165
+ LoginMethodEnum2["HUAWEI"] = "huawei";
16163
16166
  LoginMethodEnum2["WECHAT_OPEN"] = "wechat_open";
16164
16167
  LoginMethodEnum2["WECHAT_MP"] = "wechat_mp";
16165
16168
  LoginMethodEnum2["H_BUILDER"] = "hbuilder";
@@ -17096,13 +17099,13 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
17096
17099
  var _a;
17097
17100
  const layoutConfig2 = useLayoutConfig();
17098
17101
  const { t: $t } = i18n.global;
17099
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-DD4VCM3b.js"));
17100
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-5iHIyvIN.js"));
17101
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-DZGmFA1m.js"));
17102
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-jKbcFGFu.js"));
17103
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-CwZ5Heoj.js"));
17104
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-CkJGOaJz.js"));
17105
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-CRw5pdbn.js"));
17102
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-B_ouVNCr.js"));
17103
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-BHOkE2tr.js"));
17104
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-DDI7DDBs.js"));
17105
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-B_7baeO8.js"));
17106
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-CP0nuyOk.js"));
17107
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-DL6yOTrL.js"));
17108
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-BgCSECGS.js"));
17106
17109
  const props = __props;
17107
17110
  const repoInfo = inject("repoInfo");
17108
17111
  const orgInfo = inject("orgInfo");
@@ -17712,7 +17715,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
17712
17715
  }
17713
17716
  });
17714
17717
  const Search = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-gitcode-layout-lib"]]);
17715
- const NoticeModal = defineAsyncComponent(() => import("./notice-Bj22S934.js"));
17718
+ const NoticeModal = defineAsyncComponent(() => import("./notice-CYWyJPRL.js"));
17716
17719
  function clearNotice() {
17717
17720
  if (localStorage$2.getItem("validator_email")) {
17718
17721
  localStorage$2.removeItem("validator_email");
@@ -18354,9 +18357,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18354
18357
  const layoutConfig2 = useLayoutConfig();
18355
18358
  const { t: t2 } = i18n.global;
18356
18359
  const route = useRoute();
18357
- const MenuItem = defineAsyncComponent(() => import("./MenuItem-BOkkvT6C.js"));
18358
- const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-avbI2UMz.js"));
18359
- const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-462YTAHk.js"));
18360
+ const MenuItem = defineAsyncComponent(() => import("./MenuItem-C27_1Qpf.js"));
18361
+ const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-DuSjqw0s.js"));
18362
+ const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-D4drto0B.js"));
18360
18363
  const props = __props;
18361
18364
  const useReport2 = inject("useReport");
18362
18365
  const userInfo = inject("userInfo");
@@ -23897,7 +23900,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
23897
23900
  }
23898
23901
  });
23899
23902
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
23900
- const SlidCaptcha = defineAsyncComponent(() => import("./index-DJKMd4NN.js"));
23903
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-ClSQmVwu.js"));
23901
23904
  const useSlidCaptcha = () => {
23902
23905
  const { mount, unMount } = usePopup("slid-captcha-popup");
23903
23906
  const open = (config) => {
@@ -24021,74 +24024,85 @@ function useVisibilityPoll(pollFunction, options = {}, shouldPoll) {
24021
24024
  };
24022
24025
  }
24023
24026
  const _hoisted_1$1 = { class: "flex items-center gap-1 h-[48px]" };
24024
- const _hoisted_2 = { class: "devui-icon__container devui-icon--operable devui-icon--no-slots self-start min-w-[34px] mt-[-6px]" };
24025
- const _hoisted_3 = {
24026
- key: 1,
24027
- class: "login-modal-content"
24027
+ const _hoisted_2 = {
24028
+ key: 0,
24029
+ class: "align-self-start"
24028
24030
  };
24029
- const _hoisted_4 = ["src"];
24030
- const _hoisted_5 = { class: "text-[var(--theme-text)] mt-[6px]" };
24031
- const _hoisted_6 = { class: "qrcode-container flex flex-col items-center justify-center" };
24032
- const _hoisted_7 = { class: "flex flex-col items-center justify-center w-[180px] h-[180px] relative" };
24033
- const _hoisted_8 = ["src"];
24034
- const _hoisted_9 = {
24031
+ const _hoisted_3 = ["src"];
24032
+ const _hoisted_4 = { class: "text-[var(--theme-text)] mt-[6px]" };
24033
+ const _hoisted_5 = { class: "devui-icon__container devui-icon--operable devui-icon--no-slots self-start min-w-[34px] mt-[-6px]" };
24034
+ const _hoisted_6 = {
24035
24035
  key: 0,
24036
- class: "mask"
24036
+ class: "w-[470px] login-modal-content-left login-modal-content-left-register"
24037
24037
  };
24038
- const _hoisted_10 = { class: "flex gap-1 items-center justify-center text-[16px] flex-wrap font-medium" };
24039
- const _hoisted_11 = { class: "text-[#252B3A]" };
24040
- const _hoisted_12 = { class: "text-[var(--theme-link)]" };
24038
+ const _hoisted_7 = { class: "login-modal-content-left-register-logo" };
24039
+ const _hoisted_8 = ["src"];
24040
+ const _hoisted_9 = { class: "text-[var(--theme-text)] mt-[6px]" };
24041
+ const _hoisted_10 = { class: "ml-[44px] mt-[32px] mr-[44px] text-[var(--theme-text)] leading-[22px]" };
24042
+ const _hoisted_11 = { class: "font-medium text-[20px]" };
24043
+ const _hoisted_12 = { class: "mt-[16px]" };
24041
24044
  const _hoisted_13 = {
24042
- key: 1,
24043
- class: "flex flex-col gap-3 items-center justify-center"
24044
- };
24045
- const _hoisted_14 = { class: "text-[var(--color-success)]" };
24046
- const _hoisted_15 = { class: "text-center" };
24047
- const _hoisted_16 = {
24048
24045
  key: 0,
24049
- class: "text-center text-[16px] mt-[40px] text-[var(--devui-text-weak)] font-bold"
24046
+ class: "flex items-baseline justify-between mb-[16px]"
24050
24047
  };
24051
- const _hoisted_17 = {
24048
+ const _hoisted_14 = { class: "w-[50px] h-[20px] last-login-img" };
24049
+ const _hoisted_15 = ["src"];
24050
+ const _hoisted_16 = { class: "w-[50px] h-[20px] last-login-img" };
24051
+ const _hoisted_17 = ["src"];
24052
+ const _hoisted_18 = { class: "w-[50px] h-[20px] last-login-img" };
24053
+ const _hoisted_19 = ["src"];
24054
+ const _hoisted_20 = {
24052
24055
  key: 1,
24053
- class: "ml-[44px] mt-[32px] mr-[44px] text-[var(--theme-text)] leading-[22px]"
24056
+ class: "forget-tips text-[var(--devui-link)] my-[16px] min-h-[32px] leading-[32px] px-[12px] tracking-[.5px]"
24054
24057
  };
24055
- const _hoisted_18 = { class: "font-medium text-[20px]" };
24056
- const _hoisted_19 = { class: "mt-[16px]" };
24057
- const _hoisted_20 = {
24058
+ const _hoisted_21 = { key: 2 };
24059
+ const _hoisted_22 = { class: "flex items-center justify-between" };
24060
+ const _hoisted_23 = { class: "text-[var(--devui-text-weak)] font-bold text-[16px]" };
24061
+ const _hoisted_24 = { class: "text-[12px] leading-[32px]" };
24062
+ const _hoisted_25 = { class: "text-[12px] leading-[20px] mt-[16px] text-[var(--devui-placeholder)] font-normal" };
24063
+ const _hoisted_26 = {
24064
+ key: 3,
24065
+ class: "text-[12px] leading-[32px] text-right"
24066
+ };
24067
+ const _hoisted_27 = { class: "qrcode-container flex flex-col items-center justify-center" };
24068
+ const _hoisted_28 = { class: "flex flex-col items-center justify-center w-[180px] h-[180px] relative" };
24069
+ const _hoisted_29 = ["src"];
24070
+ const _hoisted_30 = {
24058
24071
  key: 0,
24059
- class: "flex items-baseline justify-between mb-[24px]"
24072
+ class: "mask"
24060
24073
  };
24061
- const _hoisted_21 = { class: "flex items-center" };
24062
- const _hoisted_22 = { class: "w-[50px] h-[20px] last-login-img" };
24063
- const _hoisted_23 = ["src"];
24064
- const _hoisted_24 = { class: "w-[50px] h-[20px] last-login-img" };
24065
- const _hoisted_25 = ["src"];
24066
- const _hoisted_26 = { class: "text-[12px] leading-[32px] text-center" };
24067
- const _hoisted_27 = {
24074
+ const _hoisted_31 = { class: "flex gap-1 items-center justify-center text-[16px] flex-wrap font-medium" };
24075
+ const _hoisted_32 = { class: "text-[#252B3A]" };
24076
+ const _hoisted_33 = { class: "text-[var(--theme-link)]" };
24077
+ const _hoisted_34 = {
24068
24078
  key: 1,
24069
- class: "forget-tips text-[var(--devui-link)] my-[16px] min-h-[32px] leading-[32px] px-[12px] tracking-[.5px]"
24079
+ class: "flex flex-col gap-3 items-center justify-center"
24080
+ };
24081
+ const _hoisted_35 = { class: "text-[var(--color-success)]" };
24082
+ const _hoisted_36 = { class: "text-center" };
24083
+ const _hoisted_37 = {
24084
+ key: 0,
24085
+ class: "text-center text-[16px] mt-[40px] text-[var(--devui-text-weak)] font-bold"
24070
24086
  };
24071
- const _hoisted_28 = { key: 2 };
24072
- const _hoisted_29 = { class: "flex items-center justify-between" };
24073
- const _hoisted_30 = { class: "text-[var(--devui-text-weak)] font-bold text-[16px]" };
24074
- const _hoisted_31 = { class: "text-[12px] leading-[32px]" };
24075
- const _hoisted_32 = { class: "text-[12px] leading-[20px] mt-[16px] text-[var(--devui-placeholder)] font-normal" };
24076
- const _hoisted_33 = {
24087
+ const _hoisted_38 = {
24077
24088
  key: 0,
24078
24089
  class: "login-modal-info h-[20px]"
24079
24090
  };
24080
- const _hoisted_34 = { class: "login-modal-info-left" };
24081
- const _hoisted_35 = { class: "mt-[18px]" };
24082
- const _hoisted_36 = { class: "flex justify-center" };
24083
- const _hoisted_37 = { class: "flex items-center justify-center pr-[16px] mt-[16px]" };
24084
- const _hoisted_38 = { class: "harmony-icon" };
24085
- const _hoisted_39 = { class: "w-[50px] h-[20px] last-login-img" };
24086
- const _hoisted_40 = ["src"];
24087
- const _hoisted_41 = { class: "ml-[8px] text-[12px]" };
24088
- const _hoisted_42 = { class: "login-modal-footer flex items-center justify-center" };
24089
- const _hoisted_43 = { key: 2 };
24090
- const _hoisted_44 = { class: "line-clamp-2" };
24091
- const _hoisted_45 = { class: "absolute-btn" };
24091
+ const _hoisted_39 = { class: "login-modal-info-left" };
24092
+ const _hoisted_40 = {
24093
+ key: 0,
24094
+ class: "mt-[18px]"
24095
+ };
24096
+ const _hoisted_41 = { class: "flex justify-center" };
24097
+ const _hoisted_42 = { class: "flex items-center justify-center pr-[16px] mt-[16px]" };
24098
+ const _hoisted_43 = { class: "harmony-icon" };
24099
+ const _hoisted_44 = { class: "w-[50px] h-[20px] last-login-img" };
24100
+ const _hoisted_45 = ["src"];
24101
+ const _hoisted_46 = { class: "ml-[8px] text-[12px]" };
24102
+ const _hoisted_47 = { class: "login-modal-footer flex items-center justify-center" };
24103
+ const _hoisted_48 = { key: 2 };
24104
+ const _hoisted_49 = { class: "line-clamp-2" };
24105
+ const _hoisted_50 = { class: "absolute-btn" };
24092
24106
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24093
24107
  ...{
24094
24108
  name: "GLoginModal"
@@ -24201,15 +24215,17 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24201
24215
  key: "mobile",
24202
24216
  label: $t("gitCodeLayout.userSetting.account.phone"),
24203
24217
  required: true,
24204
- rules: [{
24205
- message: $t("gitCodeLayout.LoginModal.tips.fillNecessaryInfo"),
24206
- trigger: "change",
24207
- validator: (rule, value, cb) => {
24208
- var _a;
24209
- const { country } = ((_a = FormRef.value) == null ? void 0 : _a.Data) || {};
24210
- return mobilePhoneValidator(rule, value, cb, country);
24218
+ rules: [
24219
+ {
24220
+ message: $t("gitCodeLayout.LoginModal.tips.fillNecessaryInfo"),
24221
+ trigger: "change",
24222
+ validator: (rule, value, cb) => {
24223
+ var _a;
24224
+ const { country } = ((_a = FormRef.value) == null ? void 0 : _a.Data) || {};
24225
+ return mobilePhoneValidator(rule, value, cb, country);
24226
+ }
24211
24227
  }
24212
- }]
24228
+ ]
24213
24229
  },
24214
24230
  {
24215
24231
  type: "inputButton",
@@ -24362,15 +24378,17 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24362
24378
  key: "mobile",
24363
24379
  label: $t("gitCodeLayout.LoginModal.subtitle.phone"),
24364
24380
  required: true,
24365
- rules: [{
24366
- message: $t("gitCodeLayout.LoginModal.tips.fillNecessaryInfo"),
24367
- trigger: "change",
24368
- validator: (rule, value, cb) => {
24369
- var _a;
24370
- const { country } = ((_a = FormRef.value) == null ? void 0 : _a.Data) || {};
24371
- return mobilePhoneValidator(rule, value, cb, country);
24381
+ rules: [
24382
+ {
24383
+ message: $t("gitCodeLayout.LoginModal.tips.fillNecessaryInfo"),
24384
+ trigger: "change",
24385
+ validator: (rule, value, cb) => {
24386
+ var _a;
24387
+ const { country } = ((_a = FormRef.value) == null ? void 0 : _a.Data) || {};
24388
+ return mobilePhoneValidator(rule, value, cb, country);
24389
+ }
24372
24390
  }
24373
- }]
24391
+ ]
24374
24392
  },
24375
24393
  {
24376
24394
  type: "inputButton",
@@ -24412,7 +24430,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24412
24430
  const status = ref(false);
24413
24431
  const hwStatus = ref(false);
24414
24432
  const FormRef = shallowRef(null);
24415
- const tabPanel = ref("verifyCode");
24433
+ const tabPanel = ref("miniProgram");
24416
24434
  const formType = ref(props.defaultType);
24417
24435
  const showProtoCheck = ref(false);
24418
24436
  const agreeAndLogin = () => {
@@ -24627,7 +24645,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24627
24645
  mobile,
24628
24646
  code: res.code
24629
24647
  };
24630
- await loginFunction({ validFunc: LoginCheck, successFunc: loginSuccess, failFunc: loginFail, loginDeviceType: "pc", country }, params, graphValidate, handleRemoteLogin);
24648
+ await loginFunction(
24649
+ { validFunc: LoginCheck, successFunc: loginSuccess, failFunc: loginFail, loginDeviceType: "pc", country },
24650
+ params,
24651
+ graphValidate,
24652
+ handleRemoteLogin
24653
+ );
24631
24654
  }
24632
24655
  setTimeout(() => {
24633
24656
  loading.value = false;
@@ -24702,7 +24725,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24702
24725
  const isDomesticNumber = country === "CN" || !country;
24703
24726
  const isLoginOrRegister = formType.value === "login" || formType.value === "register";
24704
24727
  if (!isDomesticNumber && !conf.noVerificationRequired && isLoginOrRegister) {
24705
- slidCaptcha.open({ onSuccess: (captchaData) => handleCountDown({ ...conf, captchaId: captchaData.id, noVerificationRequired: true }) });
24728
+ slidCaptcha.open({
24729
+ onSuccess: (captchaData) => handleCountDown({ ...conf, captchaId: captchaData.id, noVerificationRequired: true })
24730
+ });
24706
24731
  return;
24707
24732
  }
24708
24733
  if (formType.value === "forget" && !conf.captchaId) {
@@ -24722,10 +24747,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24722
24747
  if (!res.error) {
24723
24748
  cacheForm.mobile = conf.value;
24724
24749
  cacheForm.country = conf.country || "";
24725
- localStorage$2.setItem("cache_countdown", JSON.stringify({
24726
- mobile: conf.value,
24727
- country: conf.country || ""
24728
- }));
24750
+ localStorage$2.setItem(
24751
+ "cache_countdown",
24752
+ JSON.stringify({
24753
+ mobile: conf.value,
24754
+ country: conf.country || ""
24755
+ })
24756
+ );
24729
24757
  if (Number((res == null ? void 0 : res.data.data.type) === 1)) {
24730
24758
  formType.value = "register";
24731
24759
  isRegister.value = true;
@@ -24999,7 +25027,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24999
25027
  };
25000
25028
  const fetchMiniProgramStatus = async () => {
25001
25029
  var _a;
25002
- if (formType.value !== "login") {
25030
+ if (formType.value !== "login" || tabPanel.value !== "miniProgram") {
25003
25031
  stopPoll();
25004
25032
  return;
25005
25033
  }
@@ -25018,10 +25046,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25018
25046
  startPoll();
25019
25047
  }
25020
25048
  };
25021
- const { startPoll, stopPoll } = useVisibilityPoll(fetchMiniProgramStatus, {
25022
- interval: 1500,
25023
- immediate: false
25024
- }, shouldMiniProgramPoll);
25049
+ const { startPoll, stopPoll } = useVisibilityPoll(
25050
+ fetchMiniProgramStatus,
25051
+ {
25052
+ interval: 1500,
25053
+ immediate: false
25054
+ },
25055
+ shouldMiniProgramPoll
25056
+ );
25025
25057
  const getMiniProgramQrCode = async () => {
25026
25058
  var _a;
25027
25059
  if (miniProgramLoading.value) return;
@@ -25042,6 +25074,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25042
25074
  tabPanel.value = val;
25043
25075
  authType.value = null;
25044
25076
  useReport(LOGIN_MODAL_TAB_SWITCH, { source: `tab_${val}` }, API.report);
25077
+ if (val !== "miniProgram") {
25078
+ stopPoll();
25079
+ handleMiniProgramReset();
25080
+ return;
25081
+ } else {
25082
+ checkMiniProgramStatus();
25083
+ }
25045
25084
  };
25046
25085
  const checkMiniProgramStatus = async () => {
25047
25086
  if (!miniProgramInfo.value.scene_id) {
@@ -25072,7 +25111,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25072
25111
  const resetPwdDirectly = ref(false);
25073
25112
  const resetPwdWhiteList = ["change_password"];
25074
25113
  onMounted(() => {
25075
- if (formType.value === "login") {
25114
+ if (tabPanel.value === "miniProgram" && formType.value === "login") {
25076
25115
  getMiniProgramQrCode();
25077
25116
  }
25078
25117
  getRecentLogin();
@@ -25085,7 +25124,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25085
25124
  return openBlock(), createElementBlock(Fragment, null, [
25086
25125
  createVNode(unref(Modal), {
25087
25126
  modelValue: unref(vModels),
25088
- "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => isRef(vModels) ? vModels.value = $event : null),
25127
+ "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => isRef(vModels) ? vModels.value = $event : null),
25089
25128
  "show-close": false,
25090
25129
  "lock-scroll": _ctx.lockScroll,
25091
25130
  draggable: _ctx.draggable,
@@ -25109,137 +25148,154 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25109
25148
  onBack: handleBack,
25110
25149
  onSuccess: handleMFALogin,
25111
25150
  mask: cacheForm.mask
25112
- }, null, 8, ["API", "mask"])) : (openBlock(), createElementBlock("div", _hoisted_3, [
25113
- formType.value === "login" || formType.value === "register" ? (openBlock(), createElementBlock("div", {
25114
- key: 0,
25115
- class: normalizeClass(["w-[470px] login-modal-content-left", formType.value === "register" ? "login-modal-content-left-register" : "login-modal-content-left-login"])
25116
- }, [
25117
- createElementVNode("div", {
25118
- class: normalizeClass(formType.value === "register" ? "login-modal-content-left-register-logo" : "flex flex-col items-center")
25119
- }, [
25151
+ }, null, 8, ["API", "mask"])) : (openBlock(), createElementBlock("div", {
25152
+ key: 1,
25153
+ class: normalizeClass(["login-modal-content", formType.value === "login" ? "justify-center mt-[32px]" : ""])
25154
+ }, [
25155
+ formType.value === "register" ? (openBlock(), createElementBlock("div", _hoisted_6, [
25156
+ createElementVNode("div", _hoisted_7, [
25120
25157
  createElementVNode("img", {
25121
25158
  src: logoType[unref(currentTheme)],
25122
25159
  alt: "gitcode-logo",
25123
25160
  class: "w-[130px] h-[30px]"
25124
- }, null, 8, _hoisted_4),
25125
- createElementVNode("div", _hoisted_5, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.desc")), 1)
25126
- ], 2),
25161
+ }, null, 8, _hoisted_8),
25162
+ createElementVNode("div", _hoisted_9, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.desc")), 1)
25163
+ ]),
25127
25164
  createElementVNode("div", {
25128
25165
  class: normalizeClass(["login-modal-left-bg", "login-modal-left-bg-" + unref(currentTheme)])
25129
25166
  }, [
25130
- formType.value === "login" ? (openBlock(), createBlock(DataPanel, {
25131
- key: 0,
25132
- loading: miniProgramLoading.value,
25133
- empty: false,
25134
- card: false,
25135
- class: "mini-program-qrcode",
25136
- border: false,
25137
- animation: true
25138
- }, {
25139
- default: withCtx(() => [
25140
- createElementVNode("div", _hoisted_6, [
25141
- createElementVNode("div", _hoisted_7, [
25142
- createElementVNode("img", {
25143
- src: miniProgramInfo.value.qrcode,
25144
- alt: "小程序二维码",
25145
- class: "w-[180px] h-[180px]"
25146
- }, null, 8, _hoisted_8),
25147
- miniProgramStatus.value !== "WAITING" ? (openBlock(), createElementBlock("div", _hoisted_9, [
25148
- miniProgramStatus.value === "TIMEOUT" ? (openBlock(), createElementBlock("div", {
25149
- key: 0,
25150
- onClick: getMiniProgramQrCode,
25151
- class: "flex flex-col gap-2 items-center justify-center cursor-pointer gap-[40px]"
25152
- }, [
25153
- createVNode(GIcon, {
25154
- name: "gt-line-update",
25155
- size: "18",
25156
- color: "#3B3E55"
25157
- }),
25158
- createElementVNode("div", _hoisted_10, [
25159
- createElementVNode("div", _hoisted_11, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip01")), 1),
25160
- createElementVNode("button", _hoisted_12, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip02")), 1)
25161
- ])
25162
- ])) : createCommentVNode("", true),
25163
- ["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("div", _hoisted_13, [
25164
- createElementVNode("div", _hoisted_14, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip03")), 1),
25165
- createElementVNode("div", _hoisted_15, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip04")), 1)
25166
- ])) : createCommentVNode("", true)
25167
- ])) : createCommentVNode("", true)
25168
- ]),
25169
- !["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("p", _hoisted_16, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip05")), 1)) : (openBlock(), createElementBlock("button", {
25170
- key: 1,
25171
- onClick: getMiniProgramQrCode,
25172
- class: "mt-2"
25173
- }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip06")), 1))
25174
- ])
25175
- ]),
25176
- _: 1
25177
- }, 8, ["loading"])) : formType.value === "register" ? (openBlock(), createElementBlock("div", _hoisted_17, [
25178
- createElementVNode("div", _hoisted_18, toDisplayString$1((_a = todayTechHistory.value) == null ? void 0 : _a.title), 1),
25179
- createElementVNode("div", _hoisted_19, toDisplayString$1((_b = todayTechHistory.value) == null ? void 0 : _b.content), 1)
25180
- ])) : createCommentVNode("", true)
25167
+ createElementVNode("div", _hoisted_10, [
25168
+ createElementVNode("div", _hoisted_11, toDisplayString$1((_a = todayTechHistory.value) == null ? void 0 : _a.title), 1),
25169
+ createElementVNode("div", _hoisted_12, toDisplayString$1((_b = todayTechHistory.value) == null ? void 0 : _b.content), 1)
25170
+ ])
25181
25171
  ], 2)
25182
- ], 2)) : createCommentVNode("", true),
25172
+ ])) : createCommentVNode("", true),
25183
25173
  createElementVNode("div", {
25184
25174
  class: normalizeClass(formType.value === "forget" ? "w-[512px]" : "w-[370px]")
25185
25175
  }, [
25186
- formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_20, [
25187
- createElementVNode("div", _hoisted_21, [
25188
- createElementVNode("div", {
25189
- class: normalizeClass([
25190
- "login-modal-tab",
25191
- tabPanel.value === "verifyCode" ? "login-modal-tab-active" : "login-modal-tab-inactive"
25192
- ]),
25193
- onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleTabPanelChange("verifyCode"), ["stop"]))
25194
- }, [
25195
- createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.sms")) + " ", 1),
25196
- createElementVNode("div", _hoisted_22, [
25197
- recentLoginType.value === unref(LoginMethodEnum).PHONE ? (openBlock(), createElementBlock("img", {
25198
- key: 0,
25199
- src: unref(recentLoginImg),
25200
- class: "w-[50px] h-[20px]"
25201
- }, null, 8, _hoisted_23)) : createCommentVNode("", true)
25202
- ])
25203
- ], 2),
25204
- createElementVNode("div", {
25205
- class: normalizeClass([
25206
- "login-modal-tab ml-[24px]",
25207
- tabPanel.value === "password" ? "login-modal-tab-active" : "login-modal-tab-inactive"
25208
- ]),
25209
- onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleTabPanelChange("password"), ["stop"]))
25210
- }, [
25211
- createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.password")) + " ", 1),
25212
- createElementVNode("div", _hoisted_24, [
25213
- recentLoginType.value === unref(LoginMethodEnum).PASSWORD ? (openBlock(), createElementBlock("img", {
25214
- key: 0,
25215
- src: unref(recentLoginImg),
25216
- class: "w-[50px] h-[20px]"
25217
- }, null, 8, _hoisted_25)) : createCommentVNode("", true)
25218
- ])
25219
- ], 2)
25220
- ]),
25221
- createElementVNode("div", _hoisted_26, [
25222
- createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.noAccount")) + " ", 1),
25223
- createElementVNode("span", {
25224
- onClick: clickRegister,
25225
- class: "text-[var(--theme-link)] cursor-pointer hover:underline"
25226
- }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.registerAgain")), 1)
25227
- ])
25176
+ formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_13, [
25177
+ createElementVNode("div", {
25178
+ class: normalizeClass([
25179
+ "login-modal-tab",
25180
+ tabPanel.value === "miniProgram" ? "login-modal-tab-active" : "login-modal-tab-inactive"
25181
+ ]),
25182
+ onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleTabPanelChange("miniProgram"), ["stop"]))
25183
+ }, [
25184
+ createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.title")) + " ", 1),
25185
+ createElementVNode("div", _hoisted_14, [
25186
+ recentLoginType.value === unref(LoginMethodEnum).MINI_PROGRAM ? (openBlock(), createElementBlock("img", {
25187
+ key: 0,
25188
+ src: unref(recentLoginImg),
25189
+ class: "w-[50px] h-[20px]"
25190
+ }, null, 8, _hoisted_15)) : createCommentVNode("", true)
25191
+ ])
25192
+ ], 2),
25193
+ createElementVNode("div", {
25194
+ class: normalizeClass([
25195
+ "login-modal-tab",
25196
+ tabPanel.value === "verifyCode" ? "login-modal-tab-active" : "login-modal-tab-inactive"
25197
+ ]),
25198
+ onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleTabPanelChange("verifyCode"), ["stop"]))
25199
+ }, [
25200
+ createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.sms")) + " ", 1),
25201
+ createElementVNode("div", _hoisted_16, [
25202
+ recentLoginType.value === unref(LoginMethodEnum).PHONE ? (openBlock(), createElementBlock("img", {
25203
+ key: 0,
25204
+ src: unref(recentLoginImg),
25205
+ class: "w-[50px] h-[20px]"
25206
+ }, null, 8, _hoisted_17)) : createCommentVNode("", true)
25207
+ ])
25208
+ ], 2),
25209
+ createElementVNode("div", {
25210
+ class: normalizeClass([
25211
+ "login-modal-tab",
25212
+ tabPanel.value === "password" ? "login-modal-tab-active" : "login-modal-tab-inactive"
25213
+ ]),
25214
+ onClick: _cache[2] || (_cache[2] = withModifiers(($event) => handleTabPanelChange("password"), ["stop"]))
25215
+ }, [
25216
+ createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.password")) + " ", 1),
25217
+ createElementVNode("div", _hoisted_18, [
25218
+ recentLoginType.value === unref(LoginMethodEnum).PASSWORD ? (openBlock(), createElementBlock("img", {
25219
+ key: 0,
25220
+ src: unref(recentLoginImg),
25221
+ class: "w-[50px] h-[20px]"
25222
+ }, null, 8, _hoisted_19)) : createCommentVNode("", true)
25223
+ ])
25224
+ ], 2)
25228
25225
  ])) : createCommentVNode("", true),
25229
- formType.value === "forget" ? (openBlock(), createElementBlock("div", _hoisted_27, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.bindMobileWithAccount")) + "/" + toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.resetYourPassword")), 1)) : createCommentVNode("", true),
25230
- formType.value === "register" ? (openBlock(), createElementBlock("div", _hoisted_28, [
25231
- createElementVNode("div", _hoisted_29, [
25232
- createElementVNode("div", _hoisted_30, "🎉 " + toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.title.register")), 1),
25233
- createElementVNode("div", _hoisted_31, [
25226
+ formType.value === "forget" ? (openBlock(), createElementBlock("div", _hoisted_20, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.bindMobileWithAccount")) + "/" + toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.resetYourPassword")), 1)) : createCommentVNode("", true),
25227
+ formType.value === "register" ? (openBlock(), createElementBlock("div", _hoisted_21, [
25228
+ createElementVNode("div", _hoisted_22, [
25229
+ createElementVNode("div", _hoisted_23, " 🎉 " + toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.title.register")), 1),
25230
+ createElementVNode("div", _hoisted_24, [
25234
25231
  createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.haveAccount")) + " ", 1),
25235
25232
  createElementVNode("span", {
25236
- onClick: _cache[2] || (_cache[2] = ($event) => handleTitleBackClick("register")),
25233
+ onClick: _cache[3] || (_cache[3] = ($event) => handleTitleBackClick("register")),
25237
25234
  class: "text-[var(--theme-link)] cursor-pointer hover:underline"
25238
25235
  }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.backLogin")), 1)
25239
25236
  ])
25240
25237
  ]),
25241
- createElementVNode("div", _hoisted_32, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.registerDesc")), 1)
25238
+ createElementVNode("div", _hoisted_25, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.registerDesc")), 1)
25239
+ ])) : createCommentVNode("", true),
25240
+ formType.value === "login" && tabPanel.value !== "miniProgram" ? (openBlock(), createElementBlock("div", _hoisted_26, [
25241
+ createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.noAccount")) + " ", 1),
25242
+ createElementVNode("span", {
25243
+ onClick: clickRegister,
25244
+ class: "text-[var(--theme-link)] cursor-pointer hover:underline"
25245
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.registerAgain")), 1)
25242
25246
  ])) : createCommentVNode("", true),
25247
+ formType.value === "login" && tabPanel.value === "miniProgram" ? (openBlock(), createBlock(DataPanel, {
25248
+ key: 4,
25249
+ loading: miniProgramLoading.value,
25250
+ empty: false,
25251
+ card: false,
25252
+ class: "mini-program-qrcode",
25253
+ border: false,
25254
+ animation: true,
25255
+ onError: _cache[4] || (_cache[4] = (error) => {
25256
+ console.error("小程序二维码加载失败:", error);
25257
+ unref($t) && unref(Message).error(unref($t)("gitCodeLayout.LoginModal.miniProgram.qrCodeError") || "二维码加载失败");
25258
+ })
25259
+ }, {
25260
+ default: withCtx(() => [
25261
+ createElementVNode("div", _hoisted_27, [
25262
+ createElementVNode("div", _hoisted_28, [
25263
+ createElementVNode("img", {
25264
+ src: miniProgramInfo.value.qrcode,
25265
+ alt: "小程序二维码",
25266
+ class: "w-[180px] h-[180px]"
25267
+ }, null, 8, _hoisted_29),
25268
+ miniProgramStatus.value !== "WAITING" ? (openBlock(), createElementBlock("div", _hoisted_30, [
25269
+ miniProgramStatus.value === "TIMEOUT" ? (openBlock(), createElementBlock("div", {
25270
+ key: 0,
25271
+ onClick: getMiniProgramQrCode,
25272
+ class: "flex flex-col items-center justify-center cursor-pointer gap-[40px]"
25273
+ }, [
25274
+ createVNode(GIcon, {
25275
+ name: "gt-line-update",
25276
+ size: "18",
25277
+ color: "#3B3E55"
25278
+ }),
25279
+ createElementVNode("div", _hoisted_31, [
25280
+ createElementVNode("div", _hoisted_32, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip01")), 1),
25281
+ createElementVNode("button", _hoisted_33, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip02")), 1)
25282
+ ])
25283
+ ])) : createCommentVNode("", true),
25284
+ ["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("div", _hoisted_34, [
25285
+ createElementVNode("div", _hoisted_35, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip03")), 1),
25286
+ createElementVNode("div", _hoisted_36, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip04")), 1)
25287
+ ])) : createCommentVNode("", true)
25288
+ ])) : createCommentVNode("", true)
25289
+ ]),
25290
+ !["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("p", _hoisted_37, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip05")), 1)) : (openBlock(), createElementBlock("button", {
25291
+ key: 1,
25292
+ onClick: getMiniProgramQrCode,
25293
+ class: "mt-2"
25294
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip06")), 1))
25295
+ ])
25296
+ ]),
25297
+ _: 1
25298
+ }, 8, ["loading"])) : createCommentVNode("", true),
25243
25299
  (openBlock(), createBlock(unref(_sfc_main$a), {
25244
25300
  key: formType.value,
25245
25301
  DataList: FormConfig.value.dict,
@@ -25263,26 +25319,26 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25263
25319
  submit: withCtx(() => {
25264
25320
  var _a2;
25265
25321
  return [
25266
- formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_33, [
25267
- createElementVNode("div", _hoisted_34, [
25322
+ formType.value === "login" && tabPanel.value !== "miniProgram" ? (openBlock(), createElementBlock("div", _hoisted_38, [
25323
+ createElementVNode("div", _hoisted_39, [
25268
25324
  createTextVNode(toDisplayString$1(errorMsg.value) + " ", 1),
25269
25325
  errForRemoteLogin.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
25270
25326
  createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.unusualLogin")), 1),
25271
25327
  createElementVNode("span", {
25272
- onClick: _cache[3] || (_cache[3] = ($event) => handleTabPanelChange("verifyCode")),
25328
+ onClick: _cache[5] || (_cache[5] = ($event) => handleTabPanelChange("verifyCode")),
25273
25329
  class: "login-modal-info-left__link"
25274
25330
  }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.smsLogin")), 1)
25275
25331
  ], 64)) : createCommentVNode("", true)
25276
25332
  ]),
25277
25333
  withDirectives(createElementVNode("div", {
25278
25334
  class: "login-modal-info-right",
25279
- onClick: _cache[4] || (_cache[4] = withModifiers(($event) => formType.value = "forget", ["stop"]))
25335
+ onClick: _cache[6] || (_cache[6] = withModifiers(($event) => formType.value = "forget", ["stop"]))
25280
25336
  }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.forgotPassword")), 513), [
25281
25337
  [vShow, tabPanel.value === "password" && formType.value === "login"]
25282
25338
  ])
25283
25339
  ])) : createCommentVNode("", true),
25284
25340
  formType.value === "login" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
25285
- createElementVNode("div", _hoisted_35, [
25341
+ tabPanel.value !== "miniProgram" ? (openBlock(), createElementBlock("div", _hoisted_40, [
25286
25342
  createVNode(unref(Button), {
25287
25343
  color: "primary",
25288
25344
  variant: "solid",
@@ -25300,39 +25356,39 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25300
25356
  createElementVNode("div", {
25301
25357
  class: normalizeClass([["login-modal-footer-args", AgreementWarn.value ? "shaking-box" : ""], "mt-[16px]"])
25302
25358
  }, [
25303
- createElementVNode("div", _hoisted_36, [
25359
+ createElementVNode("div", _hoisted_41, [
25304
25360
  createVNode(_sfc_main$8, {
25305
25361
  modelValue: status.value,
25306
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => status.value = $event),
25307
- onDeclares: _cache[6] || (_cache[6] = (typ) => handleDisplay(typ))
25362
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => status.value = $event),
25363
+ onDeclares: _cache[8] || (_cache[8] = (typ) => handleDisplay(typ))
25308
25364
  }, null, 8, ["modelValue"])
25309
25365
  ])
25310
25366
  ], 2),
25311
- createElementVNode("div", _hoisted_37, [
25367
+ createElementVNode("div", _hoisted_42, [
25312
25368
  _ctx.openHarmonyGuide ? (openBlock(), createElementBlock("div", {
25313
25369
  key: 0,
25314
25370
  class: "text-[var(--theme-link)] flex items-center mt-[12px] cursor-pointer",
25315
25371
  onClick: withModifiers(handleRegisterHarmony, ["stop"])
25316
25372
  }, [
25317
- createElementVNode("div", _hoisted_38, [
25318
- _cache[16] || (_cache[16] = createElementVNode("img", {
25373
+ createElementVNode("div", _hoisted_43, [
25374
+ _cache[18] || (_cache[18] = createElementVNode("img", {
25319
25375
  src: "https://cdn-static.gitcode.com/static/images/guide/openharmony.svg",
25320
25376
  alt: "",
25321
25377
  class: "w-[32px] h-[32px] inline-block harmony-icon-img"
25322
25378
  }, null, -1)),
25323
- createElementVNode("div", _hoisted_39, [
25379
+ createElementVNode("div", _hoisted_44, [
25324
25380
  recentLoginType.value === unref(LoginMethodEnum).HARMONY ? (openBlock(), createElementBlock("img", {
25325
25381
  key: 0,
25326
25382
  src: unref(recentLoginImg),
25327
25383
  class: "w-[50px] h-[20px]"
25328
- }, null, 8, _hoisted_40)) : createCommentVNode("", true)
25384
+ }, null, 8, _hoisted_45)) : createCommentVNode("", true)
25329
25385
  ])
25330
25386
  ]),
25331
- createElementVNode("span", _hoisted_41, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.oh")), 1)
25387
+ createElementVNode("span", _hoisted_46, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.oh")), 1)
25332
25388
  ])) : createCommentVNode("", true)
25333
25389
  ])
25334
- ]),
25335
- createElementVNode("div", _hoisted_42, [
25390
+ ])) : createCommentVNode("", true),
25391
+ createElementVNode("div", _hoisted_47, [
25336
25392
  createVNode(GAuth, {
25337
25393
  logos,
25338
25394
  onAuth: pcAuthLogin,
@@ -25341,33 +25397,36 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25341
25397
  }, null, 8, ["logos", "recentLoginType"])
25342
25398
  ])
25343
25399
  ], 64)) : createCommentVNode("", true),
25344
- formType.value === "register" || formType.value === "forget" ? (openBlock(), createElementBlock("div", _hoisted_43, [
25400
+ formType.value === "register" || formType.value === "forget" ? (openBlock(), createElementBlock("div", _hoisted_48, [
25345
25401
  createElementVNode("div", {
25346
- class: normalizeClass(["text-[var(--devui-danger)] text-[14px] break-all box-border leading-[20px] h-[40px]", formType.value === "register" ? "mt-[-8px]" : ((_a2 = formErrors == null ? void 0 : formErrors.username) == null ? void 0 : _a2.length) > 42 ? "cursor-pointer" : ""])
25402
+ class: normalizeClass([
25403
+ "text-[var(--devui-danger)] text-[14px] break-all box-border leading-[20px] h-[40px]",
25404
+ formType.value === "register" ? "mt-[-8px]" : ((_a2 = formErrors == null ? void 0 : formErrors.username) == null ? void 0 : _a2.length) > 42 ? "cursor-pointer" : ""
25405
+ ])
25347
25406
  }, [
25348
- createElementVNode("span", _hoisted_44, toDisplayString$1(errorMsg.value), 1)
25407
+ createElementVNode("span", _hoisted_49, toDisplayString$1(errorMsg.value), 1)
25349
25408
  ], 2),
25350
25409
  createElementVNode("div", {
25351
25410
  class: normalizeClass(["register-agree mt-[16px]", [AgreementWarn.value ? "shaking-box" : ""]])
25352
25411
  }, [
25353
25412
  createVNode(_sfc_main$7, {
25354
25413
  modelValue: hwStatus.value,
25355
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => hwStatus.value = $event),
25356
- onDeclares: _cache[8] || (_cache[8] = (typ) => handleDisplay(typ, "huawei")),
25414
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => hwStatus.value = $event),
25415
+ onDeclares: _cache[10] || (_cache[10] = (typ) => handleDisplay(typ, "huawei")),
25357
25416
  "agreement-text": `《${unref($t)("gitCodeLayout.LoginModal.link.huaweiCloudAgreement")}》`,
25358
25417
  "privacy-text": `《${unref($t)("gitCodeLayout.LoginModal.link.agreementPrivacy")}》`,
25359
- onClick: _cache[9] || (_cache[9] = ($event) => agreementReport("signup_select", `hw${hwStatus.value ? 1 : 0}`))
25418
+ onClick: _cache[11] || (_cache[11] = ($event) => agreementReport("signup_select", `hw${hwStatus.value ? 1 : 0}`))
25360
25419
  }, null, 8, ["modelValue", "agreement-text", "privacy-text"]),
25361
25420
  createVNode(_sfc_main$7, {
25362
25421
  modelValue: status.value,
25363
- "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => status.value = $event),
25364
- onDeclares: _cache[11] || (_cache[11] = (typ) => handleDisplay(typ)),
25422
+ "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => status.value = $event),
25423
+ onDeclares: _cache[13] || (_cache[13] = (typ) => handleDisplay(typ)),
25365
25424
  "agreement-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.agreement")}》`,
25366
25425
  "privacy-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")}》`,
25367
- onClick: _cache[12] || (_cache[12] = ($event) => agreementReport("signup_select", `gitcode${status.value ? 1 : 0}`))
25426
+ onClick: _cache[14] || (_cache[14] = ($event) => agreementReport("signup_select", `gitcode${status.value ? 1 : 0}`))
25368
25427
  }, null, 8, ["modelValue", "agreement-text", "privacy-text"])
25369
25428
  ], 2),
25370
- createElementVNode("div", _hoisted_45, [
25429
+ createElementVNode("div", _hoisted_50, [
25371
25430
  createVNode(unref(Button), {
25372
25431
  color: "primary",
25373
25432
  variant: "solid",
@@ -25389,7 +25448,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25389
25448
  _: 1
25390
25449
  }, 8, ["DataList", "show-label", "layout", "class", "errors", "formErrors", "is-forget"]))
25391
25450
  ], 2)
25392
- ]))
25451
+ ], 2))
25393
25452
  ];
25394
25453
  }),
25395
25454
  _: 2
@@ -25398,6 +25457,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25398
25457
  name: "header",
25399
25458
  fn: withCtx(() => [
25400
25459
  createElementVNode("div", _hoisted_1$1, [
25460
+ formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_2, [
25461
+ createElementVNode("img", {
25462
+ src: logoType[unref(currentTheme)],
25463
+ alt: "gitcode-logo",
25464
+ class: "w-[130px] h-[30px]"
25465
+ }, null, 8, _hoisted_3),
25466
+ createElementVNode("div", _hoisted_4, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.desc")), 1)
25467
+ ])) : createCommentVNode("", true),
25401
25468
  createVNode(GTitle, {
25402
25469
  icon: unref(IconB),
25403
25470
  title: FormConfig.value.title,
@@ -25406,7 +25473,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25406
25473
  "show-back": FormConfig.value.showBack,
25407
25474
  class: "login-modal-title flex-1"
25408
25475
  }, null, 8, ["icon", "title", "show-title", "show-back"]),
25409
- createElementVNode("div", _hoisted_2, [
25476
+ createElementVNode("div", _hoisted_5, [
25410
25477
  _ctx.showClose && !showProtoCheck.value ? (openBlock(), createBlock(GIcon, {
25411
25478
  key: 0,
25412
25479
  onClick: onClickModalClose,
@@ -25421,9 +25488,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25421
25488
  ]), 1032, ["modelValue", "lock-scroll", "draggable", "escapable", "append-to-body", "class"]),
25422
25489
  createVNode(_sfc_main$5, {
25423
25490
  visible: showProtoCheck.value,
25424
- "onUpdate:visible": _cache[14] || (_cache[14] = ($event) => showProtoCheck.value = $event),
25491
+ "onUpdate:visible": _cache[16] || (_cache[16] = ($event) => showProtoCheck.value = $event),
25425
25492
  onConfirm: agreeAndLogin,
25426
- onDeclares: _cache[15] || (_cache[15] = (typ) => handleDisplay(typ))
25493
+ onDeclares: _cache[17] || (_cache[17] = (typ) => handleDisplay(typ))
25427
25494
  }, null, 8, ["visible"])
25428
25495
  ], 64);
25429
25496
  };