vue-layout-gitcode 1.3.51 → 1.3.53

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 { 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-Dftg04Vf.js";
5
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-3WzFHjiN.js";
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-MYl0BMUs.js";
5
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-DQpcGai-.js";
6
6
  import "vue-devui-lal/tooltip";
7
7
  import "vue-devui-lal/tooltip/style.css";
8
8
  import "vue-router";
@@ -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-Dftg04Vf.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-MYl0BMUs.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-Dftg04Vf.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-MYl0BMUs.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-Dftg04Vf.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-MYl0BMUs.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-3WzFHjiN.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-Dftg04Vf.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-DQpcGai-.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-MYl0BMUs.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-Dftg04Vf.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-MYl0BMUs.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-Dftg04Vf.js";
2
+ import { a as i18n, h as headRequest, G as GIcon } from "./index-MYl0BMUs.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,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 { x as useLayoutConfig, _ as _export_sfc } from "./index-Dftg04Vf.js";
3
+ import { x as useLayoutConfig, _ as _export_sfc } from "./index-MYl0BMUs.js";
4
4
  import "vue-devui-lal/overlay/style.css";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "index",
@@ -1,5 +1,5 @@
1
1
  import { ref, watchEffect, defineComponent, toDisplayString, unref, inject, createElementBlock, openBlock, normalizeClass, createElementVNode, withModifiers, withDirectives, vShow, createVNode, computed, createCommentVNode, normalizeStyle, createTextVNode, onMounted, onUnmounted, Fragment, createBlock, renderList, withCtx, reactive } from "vue";
2
- import { d as debounce, t as transferNumber, 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$9, o as isIncubationRepo, p as highlightWords, q as transWebUrl, w as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-Dftg04Vf.js";
2
+ import { d as debounce, t as transferNumber, 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$9, o as isIncubationRepo, p as highlightWords, q as transWebUrl, w as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-MYl0BMUs.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";
@@ -7815,7 +7815,7 @@ const gitCodeLayout$1 = {
7815
7815
  tip02: "点击重试",
7816
7816
  tip03: "扫码完成",
7817
7817
  tip04: "请在手机上确认操作",
7818
- tip05: "打开微信扫一扫,快速登录/注册",
7818
+ tip05: "微信扫一扫,快速登录/注册",
7819
7819
  tip06: "重新扫码"
7820
7820
  },
7821
7821
  mfatip5: "为了确保你的账户安全,请完成多因素身份验证",
@@ -17552,6 +17552,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
17552
17552
  __name: "UserLevel",
17553
17553
  props: ["accountInfo"],
17554
17554
  setup(__props) {
17555
+ const layoutConfig2 = useLayoutConfig();
17555
17556
  const { t: t2 } = i18n.global;
17556
17557
  const props = __props;
17557
17558
  const levelMap = {
@@ -17579,7 +17580,11 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
17579
17580
  const handleUpgrade = () => {
17580
17581
  handleAvatarRedPoint(CLICK_TIME_MODULE.GROWTH_CENTER, props.accountInfo.username);
17581
17582
  useReport2("score_entrance_click", {});
17582
- router2.push("/setting/points");
17583
+ if (router2.hasRoute("/setting/points")) {
17584
+ router2.push("/setting/points");
17585
+ } else {
17586
+ location.href = `${layoutConfig2.VITE_HOST}/setting/points`;
17587
+ }
17583
17588
  };
17584
17589
  const levelInfo = computed(() => {
17585
17590
  const lv = `v${userLevel.value}`;
@@ -18115,13 +18120,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18115
18120
  var _a;
18116
18121
  const layoutConfig2 = useLayoutConfig();
18117
18122
  const { t: $t } = i18n.global;
18118
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-DKm29IN0.js"));
18119
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-C6tK2jK5.js"));
18120
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-CrEZC6wl.js"));
18121
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-ea4q1vjY.js"));
18122
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-BNf3P3Ld.js"));
18123
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-C5wNKs_U.js"));
18124
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-CpIKqAnL.js"));
18123
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-w6VrC_EZ.js"));
18124
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-Clo55MM_.js"));
18125
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-DUGjIAxL.js"));
18126
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-Cnvbh_Zp.js"));
18127
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-DpwC3Qdn.js"));
18128
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-B6fK6QpJ.js"));
18129
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-C2g5Zerg.js"));
18125
18130
  const props = __props;
18126
18131
  const repoInfo = inject("repoInfo");
18127
18132
  const orgInfo = inject("orgInfo");
@@ -18731,7 +18736,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18731
18736
  }
18732
18737
  });
18733
18738
  const Search = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
18734
- const NoticeModal = defineAsyncComponent(() => import("./notice-DqvvM9v_.js"));
18739
+ const NoticeModal = defineAsyncComponent(() => import("./notice-DyTdRgDJ.js"));
18735
18740
  function clearNotice() {
18736
18741
  if (localStorage$2.getItem("validator_email")) {
18737
18742
  localStorage$2.removeItem("validator_email");
@@ -25540,7 +25545,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
25540
25545
  }
25541
25546
  });
25542
25547
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
25543
- const SlidCaptcha = defineAsyncComponent(() => import("./index-BfMyaz8a.js"));
25548
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-DHzHhx_B.js"));
25544
25549
  const useSlidCaptcha = () => {
25545
25550
  const { mount, unMount } = usePopup("slid-captcha-popup");
25546
25551
  const open = (config) => {
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A, B, F, z, S, y, H, J, D, I, C } from "./index-Dftg04Vf.js";
1
+ import { A, B, F, z, S, y, H, J, D, I, C } from "./index-MYl0BMUs.js";
2
2
  export {
3
3
  A as GitCodeAside,
4
4
  B 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-Dftg04Vf.js";
2
+ import { i as isPhone, u as useModel } from "./index-MYl0BMUs.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.3.51",
3
+ "version": "1.3.53",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",