vue-layout-gitcode 1.4.10 → 1.4.12

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-CVjT02ky.js";
5
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-ClKx72Ma.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-DHBvgXQt.js";
5
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-C9jBpOwX.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-CVjT02ky.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-DHBvgXQt.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-CVjT02ky.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-DHBvgXQt.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-CVjT02ky.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-DHBvgXQt.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-ClKx72Ma.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-CVjT02ky.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-C9jBpOwX.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-DHBvgXQt.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-CVjT02ky.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-DHBvgXQt.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, t as transformUrl } from "./index-CVjT02ky.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-DHBvgXQt.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 { y as useLayoutConfig, _ as _export_sfc } from "./index-CVjT02ky.js";
3
+ import { y as useLayoutConfig, _ as _export_sfc } from "./index-DHBvgXQt.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, f as transferNumber, G as GIcon, s as setLoginTriggerSource, g as useRequestReport, r as reqCatch, h as headRequest, _ as _export_sfc, a as i18n, T as TOPIC_TYPE, j as useTimeFormat, L as LANG_KEY, k as LANG_ZH, m as usePageResize, n as isGstarRepo, o as _sfc_main$9, p as isIncubationRepo, q as highlightWords, w as transWebUrl, t as transformUrl, x as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-CVjT02ky.js";
2
+ import { d as debounce, f as transferNumber, G as GIcon, s as setLoginTriggerSource, g as useRequestReport, r as reqCatch, h as headRequest, _ as _export_sfc, a as i18n, T as TOPIC_TYPE, j as useTimeFormat, L as LANG_KEY, k as LANG_ZH, m as usePageResize, n as isGstarRepo, o as _sfc_main$9, p as isIncubationRepo, q as highlightWords, w as transWebUrl, t as transformUrl, x as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-DHBvgXQt.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";
@@ -102,7 +102,10 @@ const _export_sfc = (sfc, props) => {
102
102
  };
103
103
  const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-gitcode-layout-lib"]]);
104
104
  const transformUrl$1 = (url) => {
105
- return url == null ? void 0 : url.replace(/gitcode\.com/g, location.host);
105
+ if (typeof window !== "undefined" && typeof location !== "undefined") {
106
+ return url == null ? void 0 : url.replace(/gitcode\.com/g, location.host).replace(/ai\./g, "");
107
+ }
108
+ return url;
106
109
  };
107
110
  const defaultConfig = {
108
111
  VITE_ENV: "production",
@@ -17841,8 +17844,10 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
17841
17844
  });
17842
17845
  const UserAvatarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-gitcode-layout-lib"]]);
17843
17846
  const transformUrl = (url) => {
17844
- if (!url) return "";
17845
- return url.replace(/gitcode\.com/g, location.host);
17847
+ if (typeof window !== "undefined" && typeof location !== "undefined") {
17848
+ return url == null ? void 0 : url.replace(/gitcode\.com/g, location.host).replace(/ai\./g, "");
17849
+ }
17850
+ return url;
17846
17851
  };
17847
17852
  const _hoisted_1$l = { class: "g-user-avatar flex-center ml-1" };
17848
17853
  const _hoisted_2$f = {
@@ -18125,13 +18130,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18125
18130
  var _a;
18126
18131
  const layoutConfig2 = useLayoutConfig();
18127
18132
  const { t: $t } = i18n.global;
18128
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-tsW6d1n8.js"));
18129
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-LkhZJ71C.js"));
18130
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-DzhejpEc.js"));
18131
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-CYI6kYi_.js"));
18132
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-DsYQS7Yl.js"));
18133
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-C-DgtbEM.js"));
18134
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-s_gfzjxa.js"));
18133
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-C-3XhxsV.js"));
18134
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-B7O6u_TR.js"));
18135
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-DfulFbWV.js"));
18136
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-P5n-Q3C4.js"));
18137
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-BHHwMddL.js"));
18138
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-DSztOli9.js"));
18139
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-4621zEdg.js"));
18135
18140
  const props = __props;
18136
18141
  const repoInfo = inject("repoInfo");
18137
18142
  const orgInfo = inject("orgInfo");
@@ -18741,7 +18746,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18741
18746
  }
18742
18747
  });
18743
18748
  const Search = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
18744
- const NoticeModal = defineAsyncComponent(() => import("./notice-BUhX7eDm.js"));
18749
+ const NoticeModal = defineAsyncComponent(() => import("./notice-Die8A-YL.js"));
18745
18750
  function clearNotice() {
18746
18751
  if (localStorage$2.getItem("validator_email")) {
18747
18752
  localStorage$2.removeItem("validator_email");
@@ -25567,7 +25572,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
25567
25572
  }
25568
25573
  });
25569
25574
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
25570
- const SlidCaptcha = defineAsyncComponent(() => import("./index-CLIUYZdk.js"));
25575
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-BcqDSewq.js"));
25571
25576
  const useSlidCaptcha = () => {
25572
25577
  const { mount, unMount } = usePopup("slid-captcha-popup");
25573
25578
  const open = (config) => {
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B, C, H, A, S, z, I, K, F, J, D } from "./index-CVjT02ky.js";
1
+ import { B, C, H, A, S, z, I, K, F, J, D } from "./index-DHBvgXQt.js";
2
2
  export {
3
3
  B as GitCodeAside,
4
4
  C 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-CVjT02ky.js";
2
+ import { i as isPhone, u as useModel } from "./index-DHBvgXQt.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.4.10",
3
+ "version": "1.4.12",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",