vue-layout-gitcode 1.2.1 → 1.2.2

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-C1JExHMa.js";
5
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-DTd5WI7b.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-50gBvRq3.js";
5
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-CTItrn9G.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-C1JExHMa.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-50gBvRq3.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-C1JExHMa.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-50gBvRq3.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-C1JExHMa.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-50gBvRq3.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-DTd5WI7b.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-C1JExHMa.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-CTItrn9G.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-50gBvRq3.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-C1JExHMa.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-50gBvRq3.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-C1JExHMa.js";
2
+ import { a as i18n, h as headRequest, G as GIcon } from "./index-50gBvRq3.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]" };
@@ -14215,7 +14215,7 @@ function headRequest(request) {
14215
14215
  data,
14216
14216
  headers: {
14217
14217
  "last-repo-id": getLastTimeRepoId(),
14218
- "X-Source": getLoginTriggerSource()
14218
+ "X-Source": getRegisterSourceTab()
14219
14219
  }
14220
14220
  })
14221
14221
  );
@@ -17615,13 +17615,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
17615
17615
  setup(__props) {
17616
17616
  var _a;
17617
17617
  const { t: $t } = i18n.global;
17618
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-CkXs5Zol.js"));
17619
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-sJKoX39E.js"));
17620
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-C81eBQli.js"));
17621
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-BX_OdTVL.js"));
17622
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-C5UXYFfz.js"));
17623
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-DKWkKXeO.js"));
17624
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-BUNnDwkp.js"));
17618
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-CnymV5fU.js"));
17619
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-DE_W7_Dg.js"));
17620
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-C8TasGXl.js"));
17621
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-BRHUa9Jt.js"));
17622
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-B60GU3n7.js"));
17623
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-BvFEVuJg.js"));
17624
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-Cv2fhrtH.js"));
17625
17625
  const props = __props;
17626
17626
  const repoInfo = inject("repoInfo");
17627
17627
  const orgInfo = inject("orgInfo");
@@ -18179,7 +18179,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18179
18179
  }
18180
18180
  });
18181
18181
  const Search = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
18182
- const NoticeModal = defineAsyncComponent(() => import("./notice--nrqmZoG.js"));
18182
+ const NoticeModal = defineAsyncComponent(() => import("./notice-CKRH2mf1.js"));
18183
18183
  function clearNotice() {
18184
18184
  if (localStorage$2.getItem("validator_email")) {
18185
18185
  localStorage$2.removeItem("validator_email");
@@ -21014,6 +21014,9 @@ function setLoginTriggerSource(triggerSource) {
21014
21014
  function getLoginTriggerSource() {
21015
21015
  return sessionStorage.getItem(LOGIN_MODAL_TRIGGER_SOURCE);
21016
21016
  }
21017
+ function getRegisterSourceTab() {
21018
+ return sessionStorage.getItem(REGISTER_SOURCE_TAB);
21019
+ }
21017
21020
  function getLoginReturnUrl() {
21018
21021
  return api.get("third_utm_source_sign_path") || localStorage$2.getItem("loginReturnUrl") || "/";
21019
21022
  }
@@ -24583,7 +24586,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24583
24586
  }
24584
24587
  });
24585
24588
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
24586
- const SlidCaptcha = defineAsyncComponent(() => import("./index-WLpSdyKt.js"));
24589
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-DanD_ZjE.js"));
24587
24590
  const useSlidCaptcha = () => {
24588
24591
  const { mount, unMount } = usePopup("slid-captcha-popup");
24589
24592
  const open = (config) => {
@@ -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-C1JExHMa.js";
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-50gBvRq3.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-C1JExHMa.js";
3
+ import { v as useLayoutConfig, _ as _export_sfc } from "./index-50gBvRq3.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 { y, z, C, x, S, w, D, H, B, F, A } from "./index-C1JExHMa.js";
1
+ import { y, z, C, x, S, w, D, H, B, F, A } from "./index-50gBvRq3.js";
2
2
  export {
3
3
  y as GitCodeAside,
4
4
  z 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-C1JExHMa.js";
2
+ import { i as isPhone, u as useModel } from "./index-50gBvRq3.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.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",