vue-layout-gitcode 1.1.21 → 1.1.22

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.
@@ -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-CLx8tyts.js";
5
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-uEHR0VZt.js";
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-C6ERtJZs.js";
5
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-CpQ2OtIW.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-CLx8tyts.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-C6ERtJZs.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-CLx8tyts.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-C6ERtJZs.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-CLx8tyts.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-C6ERtJZs.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-uEHR0VZt.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-CLx8tyts.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-CpQ2OtIW.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-C6ERtJZs.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-CLx8tyts.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-C6ERtJZs.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-CLx8tyts.js";
2
+ import { a as i18n, h as headRequest, G as GIcon } from "./index-C6ERtJZs.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]" };
@@ -17568,13 +17568,13 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
17568
17568
  setup(__props) {
17569
17569
  var _a;
17570
17570
  const { t: $t } = i18n.global;
17571
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-Df6SVTL3.js"));
17572
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-BSGSjBV9.js"));
17573
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-Dr0VSu2v.js"));
17574
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-BS5aTLKu.js"));
17575
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-BrmprIad.js"));
17576
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-LSqh_YHt.js"));
17577
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-C2E23CZf.js"));
17571
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-BLv5vMoA.js"));
17572
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-Cp9zlHCo.js"));
17573
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-DS840YnC.js"));
17574
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-DoAWsHSW.js"));
17575
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-Caw4SMyx.js"));
17576
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-wsmtS3aG.js"));
17577
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-DNeL2Xau.js"));
17578
17578
  const props = __props;
17579
17579
  const repoInfo = inject("repoInfo");
17580
17580
  const orgInfo = inject("orgInfo");
@@ -18094,7 +18094,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
18094
18094
  }
18095
18095
  });
18096
18096
  const Search = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-gitcode-layout-lib"]]);
18097
- const NoticeModal = defineAsyncComponent(() => import("./notice-kPXHskSq.js"));
18097
+ const NoticeModal = defineAsyncComponent(() => import("./notice-DHhVluSC.js"));
18098
18098
  function clearNotice() {
18099
18099
  if (localStorage$2.getItem("validator_email")) {
18100
18100
  localStorage$2.removeItem("validator_email");
@@ -24235,7 +24235,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24235
24235
  }
24236
24236
  });
24237
24237
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
24238
- const SlidCaptcha = defineAsyncComponent(() => import("./index-DnIsQr7j.js"));
24238
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-DdVypc7G.js"));
24239
24239
  const useSlidCaptcha = () => {
24240
24240
  const { mount, unMount } = usePopup("slid-captcha-popup");
24241
24241
  const open = (config) => {
@@ -24891,9 +24891,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24891
24891
  const handleRemoteLogin = () => {
24892
24892
  errForRemoteLogin.value = true;
24893
24893
  };
24894
- const goToVerifyCode = () => {
24895
- tabPanel.value = "verifyCode";
24896
- };
24897
24894
  const handleConfirm = async (info) => {
24898
24895
  var _a, _b;
24899
24896
  if (formType.value === "register") {
@@ -24912,7 +24909,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24912
24909
  if (!check) return;
24913
24910
  await registerAction(res, mobile);
24914
24911
  } else {
24915
- errForRemoteLogin.value = false;
24916
24912
  const loginFunction = tabPanel.value === "password" ? LoginConfig.password : LoginConfig.phone;
24917
24913
  const params = tabPanel.value === "password" ? { ...res, captchaId: info == null ? void 0 : info.captchaId } : {
24918
24914
  mobile,
@@ -25338,7 +25334,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25338
25334
  return openBlock(), createElementBlock(Fragment, null, [
25339
25335
  createVNode(unref(Modal), {
25340
25336
  modelValue: unref(vModels),
25341
- "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => isRef(vModels) ? vModels.value = $event : null),
25337
+ "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => isRef(vModels) ? vModels.value = $event : null),
25342
25338
  "show-close": false,
25343
25339
  "lock-scroll": _ctx.lockScroll,
25344
25340
  draggable: _ctx.draggable,
@@ -25448,14 +25444,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25448
25444
  errForRemoteLogin.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
25449
25445
  createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.unusualLogin")), 1),
25450
25446
  createElementVNode("span", {
25451
- onClick: goToVerifyCode,
25447
+ onClick: _cache[4] || (_cache[4] = ($event) => handleTabPanelChange("verifyCode")),
25452
25448
  class: "login-modal-info-left__link"
25453
25449
  }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.smsLogin")), 1)
25454
25450
  ], 64)) : createCommentVNode("", true)
25455
25451
  ]),
25456
25452
  withDirectives(createElementVNode("div", {
25457
25453
  class: "login-modal-info-right",
25458
- onClick: _cache[4] || (_cache[4] = withModifiers(($event) => formType.value = "forget", ["stop"]))
25454
+ onClick: _cache[5] || (_cache[5] = withModifiers(($event) => formType.value = "forget", ["stop"]))
25459
25455
  }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.forgotPassword")), 513), [
25460
25456
  [vShow, tabPanel.value === "password" && formType.value === "login"]
25461
25457
  ])
@@ -25481,7 +25477,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25481
25477
  class: "text-[var(--theme-link)] text-center mt-[12px] cursor-pointer leading-[32px] openharmony-btn",
25482
25478
  onClick: withModifiers(handleRegisterHarmony, ["stop"])
25483
25479
  }, [
25484
- _cache[16] || (_cache[16] = createElementVNode("img", {
25480
+ _cache[17] || (_cache[17] = createElementVNode("img", {
25485
25481
  src: "https://cdn-static.gitcode.com/static/images/guide/openharmony.svg",
25486
25482
  alt: "",
25487
25483
  class: "mr-[16px] inline-block"
@@ -25541,8 +25537,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25541
25537
  createElementVNode("div", _hoisted_20, [
25542
25538
  createVNode(_sfc_main$8, {
25543
25539
  modelValue: status.value,
25544
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => status.value = $event),
25545
- onDeclares: _cache[6] || (_cache[6] = (typ) => handleDisplay(typ))
25540
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => status.value = $event),
25541
+ onDeclares: _cache[7] || (_cache[7] = (typ) => handleDisplay(typ))
25546
25542
  }, null, 8, ["modelValue"])
25547
25543
  ])
25548
25544
  ], 2)
@@ -25558,19 +25554,19 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25558
25554
  }, [
25559
25555
  createVNode(_sfc_main$7, {
25560
25556
  modelValue: hwStatus.value,
25561
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => hwStatus.value = $event),
25562
- onDeclares: _cache[8] || (_cache[8] = (typ) => handleDisplay(typ, "huawei")),
25557
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => hwStatus.value = $event),
25558
+ onDeclares: _cache[9] || (_cache[9] = (typ) => handleDisplay(typ, "huawei")),
25563
25559
  "agreement-text": `《${unref($t)("gitCodeLayout.LoginModal.link.huaweiCloudAgreement")}》`,
25564
25560
  "privacy-text": `《${unref($t)("gitCodeLayout.LoginModal.link.agreementPrivacy")}》`,
25565
- onClick: _cache[9] || (_cache[9] = ($event) => agreementReport("signup_select", `hw${hwStatus.value ? 1 : 0}`))
25561
+ onClick: _cache[10] || (_cache[10] = ($event) => agreementReport("signup_select", `hw${hwStatus.value ? 1 : 0}`))
25566
25562
  }, null, 8, ["modelValue", "agreement-text", "privacy-text"]),
25567
25563
  createVNode(_sfc_main$7, {
25568
25564
  modelValue: status.value,
25569
- "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => status.value = $event),
25570
- onDeclares: _cache[11] || (_cache[11] = (typ) => handleDisplay(typ)),
25565
+ "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => status.value = $event),
25566
+ onDeclares: _cache[12] || (_cache[12] = (typ) => handleDisplay(typ)),
25571
25567
  "agreement-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.agreement")}》`,
25572
25568
  "privacy-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")}》`,
25573
- onClick: _cache[12] || (_cache[12] = ($event) => agreementReport("signup_select", `gitcode${status.value ? 1 : 0}`))
25569
+ onClick: _cache[13] || (_cache[13] = ($event) => agreementReport("signup_select", `gitcode${status.value ? 1 : 0}`))
25574
25570
  }, null, 8, ["modelValue", "agreement-text", "privacy-text"])
25575
25571
  ], 2)) : createCommentVNode("", true),
25576
25572
  createElementVNode("div", _hoisted_23, [
@@ -25597,9 +25593,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25597
25593
  ]), 1032, ["modelValue", "lock-scroll", "draggable", "escapable", "append-to-body", "class"]),
25598
25594
  createVNode(_sfc_main$5, {
25599
25595
  visible: showProtoCheck.value,
25600
- "onUpdate:visible": _cache[14] || (_cache[14] = ($event) => showProtoCheck.value = $event),
25596
+ "onUpdate:visible": _cache[15] || (_cache[15] = ($event) => showProtoCheck.value = $event),
25601
25597
  onConfirm: agreeAndLogin,
25602
- onDeclares: _cache[15] || (_cache[15] = (typ) => handleDisplay(typ))
25598
+ onDeclares: _cache[16] || (_cache[16] = (typ) => handleDisplay(typ))
25603
25599
  }, null, 8, ["visible"])
25604
25600
  ], 64);
25605
25601
  };
@@ -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, h as headRequest, G as GIcon, r as reqCatch, _ as _export_sfc, a as i18n, T as TOPIC_TYPE, f as useTimeFormat, L as LANG_KEY, g as LANG_ZH, j as usePageResize, k as isGstarRepo, m as _sfc_main$8, n as isIncubationRepo, o as highlightWords, t as transWebUrl, p as _frEventTrack, E as EVENT_NAME, b as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-CLx8tyts.js";
2
+ import { d as debounce, h as headRequest, G as GIcon, r as reqCatch, _ as _export_sfc, a as i18n, T as TOPIC_TYPE, f as useTimeFormat, L as LANG_KEY, g as LANG_ZH, j as usePageResize, k as isGstarRepo, m as _sfc_main$8, n as isIncubationRepo, o as highlightWords, t as transWebUrl, p as _frEventTrack, E as EVENT_NAME, b as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-C6ERtJZs.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 { q as useLayoutConfig, _ as _export_sfc } from "./index-CLx8tyts.js";
3
+ import { q as useLayoutConfig, _ as _export_sfc } from "./index-C6ERtJZs.js";
4
4
  import "vue-devui-lal/overlay/style.css";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "index",
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { w, x, A, v, S, s, B, D, z, C, y } from "./index-CLx8tyts.js";
1
+ import { w, x, A, v, S, s, B, D, z, C, y } from "./index-C6ERtJZs.js";
2
2
  export {
3
3
  w as GitCodeAside,
4
4
  x as GitCodeHeader,
@@ -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-CLx8tyts.js";
2
+ import { i as isPhone, u as useModel } from "./index-C6ERtJZs.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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-layout-gitcode",
3
- "version": "1.1.21",
3
+ "version": "1.1.22",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",