vue-layout-gitcode 1.8.15 → 1.8.16

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,10 +1,10 @@
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-DPOjnDNY.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-qGsEG9PB.js";
5
5
  import "lodash/debounce";
6
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-C2G7nbEf.js";
7
- import "./transWebUrl-CcebxoyM.js";
6
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-C0q0FNWm.js";
7
+ import "./transWebUrl-D_uP_hL5.js";
8
8
  import "vue-devui-lal/tooltip";
9
9
  import "vue-devui-lal/tooltip/style.css";
10
10
  import "vue-router";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, inject, useSlots, ref, computed, createBlock, openBlock, unref, withCtx, createElementVNode, normalizeClass, createElementBlock, createTextVNode, createCommentVNode, toDisplayString, renderSlot } from "vue";
2
- import { x as useLayoutConfig, y as ThemeType, z as currentTheme, j as LANG_ZH, A as LANG_EN, w as getLocaleLang, G as GIcon, B as emitEvent, C as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-DPOjnDNY.js";
2
+ import { x as useLayoutConfig, y as ThemeType, z as currentTheme, j as LANG_ZH, A as LANG_EN, w as getLocaleLang, G as GIcon, B as emitEvent, C as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-qGsEG9PB.js";
3
3
  import { useRouter } from "vue-router";
4
4
  import { Popover } from "vue-devui-lal/popover";
5
5
  import "vue-devui-lal/popover/style.css";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, inject, ref, reactive, watch, computed, createElementBlock, openBlock, createCommentVNode, createBlock, withDirectives, Fragment, createElementVNode, createVNode, toDisplayString, unref, withModifiers, normalizeClass, withCtx, renderList, createTextVNode, vShow } from "vue";
2
- import { a as i18n, x as useLayoutConfig, G as GIcon, t as transformUrl, D as _sfc_main$1, F as loadAsideData, B as emitEvent, s as setLoginTriggerSource, f as useRequestReport, H as asideRequest, _ as _export_sfc } from "./index-DPOjnDNY.js";
2
+ import { a as i18n, x as useLayoutConfig, G as GIcon, t as transformUrl, D as _sfc_main$1, F as loadAsideData, B as emitEvent, s as setLoginTriggerSource, f as useRequestReport, H as asideRequest, _ as _export_sfc } from "./index-qGsEG9PB.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-CcebxoyM.js";
4
+ import { t as transWebUrl } from "./transWebUrl-D_uP_hL5.js";
5
5
  import { Select, Option } from "vue-devui-lal/select";
6
6
  import { Input } from "vue-devui-lal/input";
7
7
  import { Skeleton } from "vue-devui-lal/skeleton";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, inject, ref, reactive, computed, watch, createElementBlock, openBlock, createElementVNode, createVNode, createBlock, createCommentVNode, withDirectives, toDisplayString, unref, withModifiers, normalizeClass, withCtx, Fragment, renderList, createTextVNode, vShow } from "vue";
2
- import { a as i18n, x as useLayoutConfig, G as GIcon, B as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-DPOjnDNY.js";
2
+ import { a as i18n, x as useLayoutConfig, G as GIcon, B as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-qGsEG9PB.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-CcebxoyM.js";
4
+ import { t as transWebUrl } from "./transWebUrl-D_uP_hL5.js";
5
5
  import { Input } from "vue-devui-lal/input";
6
6
  import { Skeleton } from "vue-devui-lal/skeleton";
7
7
  import { MenuItem } from "vue-devui-lal/menu";
@@ -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-DPOjnDNY.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-qGsEG9PB.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-DPOjnDNY.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-qGsEG9PB.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-DPOjnDNY.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-qGsEG9PB.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, renderSlot, createBlock, createVNode, withCtx } from "vue";
2
- import { u as useReportRepo, S as SearchRepoCard } from "./index-C2G7nbEf.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-DPOjnDNY.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-C0q0FNWm.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-qGsEG9PB.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-DPOjnDNY.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-qGsEG9PB.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-DPOjnDNY.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-qGsEG9PB.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]" };
@@ -8,7 +8,7 @@ import { Message } from "vue-devui-lal/message";
8
8
  import "vue-devui-lal/message/style.css";
9
9
  import { FixedOverlay } from "vue-devui-lal/overlay";
10
10
  import "vue-devui-lal/overlay/style.css";
11
- import { a as i18n, k as usePageResize, w as getLocaleLang, j as LANG_ZH, _ as _export_sfc } from "./index-DPOjnDNY.js";
11
+ import { a as i18n, k as usePageResize, w as getLocaleLang, j as LANG_ZH, _ as _export_sfc } from "./index-qGsEG9PB.js";
12
12
  const _YunpianCaptchaManager = class _YunpianCaptchaManager {
13
13
  constructor() {
14
14
  __publicField(this, "ypRiddlerInstance", null);
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, onMounted, onUnmounted, createBlock, openBlock, unref, withCtx, createElementVNode } from "vue";
2
- import { w as getLocaleLang, j as LANG_ZH, x as useLayoutConfig, _ as _export_sfc } from "./index-DPOjnDNY.js";
2
+ import { w as getLocaleLang, j as LANG_ZH, x as useLayoutConfig, _ as _export_sfc } from "./index-qGsEG9PB.js";
3
3
  import { FixedOverlay } from "vue-devui-lal/overlay";
4
4
  import "vue-devui-lal/overlay/style.css";
5
5
  const TARGET_TEXT = "Click in order:";
@@ -1,7 +1,7 @@
1
1
  import { ref, watchEffect, defineComponent, toDisplayString, unref, mergeModels, useModel, watch, createElementBlock, openBlock, createVNode, withDirectives, normalizeClass, createElementVNode, vShow, inject, withModifiers, createBlock, Fragment, computed, createCommentVNode, normalizeStyle, createTextVNode, onMounted, onUnmounted, renderList, withCtx, reactive } from "vue";
2
2
  import debounce from "lodash/debounce";
3
- import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, 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$b, o as isIncubationRepo, p as highlightWords, t as transformUrl, q as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-DPOjnDNY.js";
4
- import { t as transWebUrl } from "./transWebUrl-CcebxoyM.js";
3
+ import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, 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$b, o as isIncubationRepo, p as highlightWords, t as transformUrl, q as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-qGsEG9PB.js";
4
+ import { t as transWebUrl } from "./transWebUrl-D_uP_hL5.js";
5
5
  import { useRouter } from "vue-router";
6
6
  import { Row, Col } from "vue-devui-lal/grid";
7
7
  import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";
@@ -120,12 +120,12 @@ const defaultConfig = {
120
120
  VITE_SECRET_KEY: "SA!nUNPZ5o!OSV&B",
121
121
  VITE_SECRET_IV: "SA!nwwwZ5o!OSV&B"
122
122
  };
123
- const layoutConfig$7 = reactive({ ...defaultConfig });
123
+ const layoutConfig$6 = reactive({ ...defaultConfig });
124
124
  function setLayoutConfig(customConfig) {
125
- Object.assign(layoutConfig$7, customConfig);
125
+ Object.assign(layoutConfig$6, customConfig);
126
126
  }
127
127
  function useLayoutConfig() {
128
- return readonly(layoutConfig$7);
128
+ return readonly(layoutConfig$6);
129
129
  }
130
130
  async function reqCatch(req, params) {
131
131
  try {
@@ -8225,7 +8225,7 @@ const $i18n = setupI18n({
8225
8225
  }
8226
8226
  });
8227
8227
  const i18n = $i18n;
8228
- const layoutConfig$6 = useLayoutConfig();
8228
+ const layoutConfig$5 = useLayoutConfig();
8229
8229
  function scrollToTop() {
8230
8230
  if (typeof window !== "undefined" && window.pageYOffset) {
8231
8231
  const c = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop;
@@ -8254,7 +8254,7 @@ function extractRepoInfoWithURL(repoUrl) {
8254
8254
  return parts.join("/");
8255
8255
  }
8256
8256
  const isGstarRepo = (topics) => {
8257
- const gstarTopicIds = layoutConfig$6.VITE_GSTAR_TOPIC.split(",");
8257
+ const gstarTopicIds = layoutConfig$5.VITE_GSTAR_TOPIC.split(",");
8258
8258
  let isGstar = false;
8259
8259
  topics && topics.forEach((item) => {
8260
8260
  if (gstarTopicIds.includes(item.topic_id || item.id)) {
@@ -8264,7 +8264,7 @@ const isGstarRepo = (topics) => {
8264
8264
  return isGstar;
8265
8265
  };
8266
8266
  const isTrustedRepo = (topics) => {
8267
- const trustedTopicIds = layoutConfig$6.VITE_TRUSTED_TOPIC.split(",");
8267
+ const trustedTopicIds = layoutConfig$5.VITE_TRUSTED_TOPIC.split(",");
8268
8268
  let isTrusted = false;
8269
8269
  topics && topics.forEach((item) => {
8270
8270
  if (trustedTopicIds.includes(item.topic_id || item.id)) {
@@ -8273,7 +8273,7 @@ const isTrustedRepo = (topics) => {
8273
8273
  });
8274
8274
  return isTrusted;
8275
8275
  };
8276
- const INCUBATION_TOPICS = layoutConfig$6.VITE_INCUBATION_TOPIC || "";
8276
+ const INCUBATION_TOPICS = layoutConfig$5.VITE_INCUBATION_TOPIC || "";
8277
8277
  const isIncubationRepo = (topics = []) => {
8278
8278
  if (!topics) return false;
8279
8279
  const incubationIds = INCUBATION_TOPICS.split(",");
@@ -8316,7 +8316,7 @@ const getLastTimeRepoId = () => {
8316
8316
  };
8317
8317
  const setUtmSourceSign = (utm_source) => {
8318
8318
  const time = new Date((/* @__PURE__ */ new Date()).getTime() + 60 * 60 * 1e3);
8319
- return api.set("utm_source_sign", utm_source, { expires: time, domain: layoutConfig$6.VITE_COOKIE_DOMAIN });
8319
+ return api.set("utm_source_sign", utm_source, { expires: time, domain: layoutConfig$5.VITE_COOKIE_DOMAIN });
8320
8320
  };
8321
8321
  const getUtmSourceSign = () => {
8322
8322
  return api.get("utm_source_sign") || "";
@@ -10876,7 +10876,7 @@ const getCommonHeadInfo = (isAiHub) => {
10876
10876
  "X-Device-ID": "unknown"
10877
10877
  };
10878
10878
  };
10879
- const layoutConfig$5 = useLayoutConfig();
10879
+ const layoutConfig$4 = useLayoutConfig();
10880
10880
  const setPassportPrefix = (url, method) => {
10881
10881
  const prefix = "/uc";
10882
10882
  {
@@ -10900,7 +10900,7 @@ const setPassportPrefix = (url, method) => {
10900
10900
  };
10901
10901
  const proxyService = (params, customConfigs) => {
10902
10902
  const service = axios.create({
10903
- baseURL: layoutConfig$5.VITE_API_HOST,
10903
+ baseURL: layoutConfig$4.VITE_API_HOST,
10904
10904
  timeout: (customConfigs == null ? void 0 : customConfigs.customTimeout) || 3e4,
10905
10905
  withCredentials: true
10906
10906
  });
@@ -11604,7 +11604,7 @@ var REPO_TYPE = /* @__PURE__ */ ((REPO_TYPE2) => {
11604
11604
  REPO_TYPE2[REPO_TYPE2["HUGGINGFACE_MIRRORS"] = 2] = "HUGGINGFACE_MIRRORS";
11605
11605
  return REPO_TYPE2;
11606
11606
  })(REPO_TYPE || {});
11607
- const layoutConfig$4 = useLayoutConfig();
11607
+ const layoutConfig$3 = useLayoutConfig();
11608
11608
  const registerLoginMethodMap = {
11609
11609
  [LoginMethodEnum.PHONE]: "短信",
11610
11610
  [LoginMethodEnum.PASSWORD]: "密码",
@@ -11638,7 +11638,7 @@ const collectRegisterLoginEvent = ({ isRegister, registerLoginMethod, success, e
11638
11638
  userid_fast_application: searchParams["uuid_tt_dd"] || "",
11639
11639
  gitcode_utm_source: searchParams["utm_source"] || "",
11640
11640
  page_url: location.href || "",
11641
- env: layoutConfig$4.VITE_ENV,
11641
+ env: layoutConfig$3.VITE_ENV,
11642
11642
  namespace: extraData.namespace || "",
11643
11643
  ...extraData,
11644
11644
  ...searchParams
@@ -12232,7 +12232,6 @@ if (isBrowser) {
12232
12232
  }
12233
12233
  const sessionStorage$1 = sessionStorage;
12234
12234
  const _imports_0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAmsSURBVHgB7VpdbxxnFT7nfccmRam6/gXZXIBy1y3qRe8YR6kUoUpdbhACJNtShFJUSCyBBFd2I1ClAoklVAE32BYXRAJqIwEyUOrNL4h70dtm+wvqNG7deGbe03PO+7Gzlr27/kpzsSeazO5kZvZ95jnnOR8TgLGNbWxjG9vYDjWEp8zyNjUg22lBiS1TuOeNo5YFbBgyTUMAFgz4PXYnDE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NpRk1gNX0BO4DqdgZhRwnAZakhZ4LfnVq70OnCdfW8aZeY0pCnNLrSf9GyDjAjBhTjvx0BHYmkpmQWgyVKDqnpnQX440kjg2wDo4yYVZSuDY14G/8+65JSbjlk/aRgXEhpFEHL2r+5rohqjllzKVEZhYivETUbCBwZ/9YaIDZwkQYIcHtk7BCQvowhgdcLZ9ld8K1ezuu88sctjMsQt/JC6JFAe0Rl2Vi2Sf2zxbJHspx2RLzPnc5/OhwQ6ckh0K0Mo7uirlLazFklQvy9+9utusn//n9yZXVt+bvIhEcxnRvfSiJDSrPgWI/OsGsQyzNbeMdSczuwVnDfD//3x2+vxXqqmswhdSJ06hM+BRAlRm8wdXuOvYZ3/qTK78sZNNy1CWF7uqOU3Z8e6X1DMd90OkkOxD/JmRBkonAigmM0t+yg27r8XxsQVNbjs2Zy/vLV87AKgMZTNrHphepRJryyQq3j1DUpcyLdNOovvjpdNR0KEAxfg3W2mkUJuraCog7Q1moMLNH+buw+t5P1BTYybLVDUpxCKpm6ZeT87V7kEGSieuXo4EkJ/zq71SLPV2aHsvJH1sAl3k5JD33TxUK6FhpSyopWctdQuh7lT3nH/t9mjTslFtaKKX/+Vgomv29pReK8euHczK2x1c7Lv5pNOXzCE1qFJpM5tRck3f97FqUjn/o99Mnpq4jASwnX/cCFVJlxN6B8m9n7lJjo9ShrGbCSgquLn91xumS1XReLc0me/5bOr54GNm+dbrS2YJzsgGAlzvTG2323Txr+v9b3Gu57vgaBJC4bx6EDi9eVZ9pNWo1pYI/eCwU1mc+8nSyevNQXbsfvC13K2xi24fBk5scZYaWUUfcgxOxZqT43Cbg3d+/nenG2uH2Zn/T6e3ZvdarCJrIjA8w181k9nS/NLw93pjG9vYxja2p8G+ADz7MtW/3lU1AAAAAElFTkSuQmCC";
12235
- const layoutConfig$3 = useLayoutConfig();
12236
12235
  const transformUrl = (url) => {
12237
12236
  var _a;
12238
12237
  if (!url) return url;
@@ -12255,20 +12254,21 @@ const transformUrl = (url) => {
12255
12254
  return url;
12256
12255
  };
12257
12256
  const transformUrlWithSpecialPrefix = ({ url, host }) => {
12258
- const testEnv = ["development", "test", "loc"];
12259
- const preEnv = ["pre", "loc-pre"];
12260
- const specialPrefix = ["-tianqi", "-ai", "-news", "-link", "-competition"];
12261
- if (layoutConfig$3.VITE_ENV === "production") {
12257
+ const specialPrefix = ["-tianqi", "-ai", "-news", "-competition"];
12258
+ const isTestEnv = /^(test|local)\./i.test(host);
12259
+ const isPreEnv = /^(pre|loc-pre)\./i.test(host);
12260
+ const isNonProdEnv = isTestEnv || isPreEnv;
12261
+ if (!isNonProdEnv) {
12262
12262
  return url == null ? void 0 : url.replace(/gitcode\.com/g, host);
12263
12263
  }
12264
- if (specialPrefix.some((prefix) => url == null ? void 0 : url.includes(prefix)) && (testEnv.includes(layoutConfig$3.VITE_ENV) || preEnv.includes(layoutConfig$3.VITE_ENV))) {
12264
+ if (specialPrefix.some((prefix) => url == null ? void 0 : url.includes(prefix))) {
12265
12265
  try {
12266
12266
  const urlObj = new URL(url);
12267
12267
  const urlHost = urlObj.host;
12268
12268
  const specialPrefixMatch = specialPrefix.find((prefix) => urlHost.includes(prefix));
12269
12269
  if (specialPrefixMatch) {
12270
12270
  const prefixPart = urlHost.split(".gitcode.")[0];
12271
- const mainDomain = host.replace(/^(test|pre|loc|loc-pre)\./, "");
12271
+ const mainDomain = host.replace(/^(test|pre|local|loc-pre)\./, "");
12272
12272
  urlObj.host = `${prefixPart}.${mainDomain}`;
12273
12273
  return urlObj.toString();
12274
12274
  }
@@ -12282,7 +12282,12 @@ const replaceHost = ({ url, customHost }) => {
12282
12282
  if (!url || !customHost) return url;
12283
12283
  try {
12284
12284
  const urlObj = new URL(url);
12285
- urlObj.host = customHost;
12285
+ let pureHost = customHost;
12286
+ if (customHost.includes("://")) {
12287
+ const customUrlObj = new URL(customHost);
12288
+ pureHost = customUrlObj.host;
12289
+ }
12290
+ urlObj.host = pureHost;
12286
12291
  return urlObj.toString();
12287
12292
  } catch (error) {
12288
12293
  return url;
@@ -13663,7 +13668,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
13663
13668
  function goPage() {
13664
13669
  let url = "";
13665
13670
  if (!tianqiButtonConfig.value.url) {
13666
- url = layoutConfig2.VITE_HOST_TIANQI + "?utm_source=toolbar";
13671
+ url = transformUrlWithSpecialPrefix({ url: layoutConfig2.VITE_HOST_TIANQI, host: window.location.host }) + "?utm_source=toolbar";
13667
13672
  } else {
13668
13673
  url = transformUrl(tianqiButtonConfig.value.url) + "?utm_source=toolbar";
13669
13674
  }
@@ -16862,13 +16867,13 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
16862
16867
  var _a;
16863
16868
  const layoutConfig2 = useLayoutConfig();
16864
16869
  const { t: $t } = i18n.global;
16865
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-CpCOtL4V.js"));
16866
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-DukNoXsJ.js"));
16867
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-CxScZrZQ.js"));
16868
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-BAvkX64s.js"));
16869
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-Cqk5DRNL.js"));
16870
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-y9-TbkOG.js"));
16871
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-Ch_LjURo.js"));
16870
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-Dy5juUra.js"));
16871
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-CFJ6J59F.js"));
16872
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-CMO6j_Zi.js"));
16873
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-B_4tgYKg.js"));
16874
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-Dlt8QZuF.js"));
16875
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-CcD-4iZz.js"));
16876
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-CMMJRn4n.js"));
16872
16877
  const props = __props;
16873
16878
  const repoInfo = inject("repoInfo");
16874
16879
  const orgInfo = inject("orgInfo");
@@ -17522,7 +17527,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
17522
17527
  loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
17523
17528
  }
17524
17529
  };
17525
- const NoticeModal = defineAsyncComponent(() => import("./notice-Ch6dTG8d.js"));
17530
+ const NoticeModal = defineAsyncComponent(() => import("./notice-COzAZwma.js"));
17526
17531
  function clearNotice() {
17527
17532
  if (localStorage$2.getItem("validator_email")) {
17528
17533
  localStorage$2.removeItem("validator_email");
@@ -18290,9 +18295,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18290
18295
  const layoutConfig2 = useLayoutConfig();
18291
18296
  const { t: t2 } = i18n.global;
18292
18297
  const route = useRoute();
18293
- const MenuItem = defineAsyncComponent(() => import("./MenuItem-CENzFBxI.js"));
18294
- const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-B0fQkRZP.js"));
18295
- const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-Cq6cMciT.js"));
18298
+ const MenuItem = defineAsyncComponent(() => import("./MenuItem-kmd_ryIz.js"));
18299
+ const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-Bu60-I4F.js"));
18300
+ const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-vTH15HYB.js"));
18296
18301
  const props = __props;
18297
18302
  console.log("slotKeys", props.slotKeys);
18298
18303
  console.log("props", props);
@@ -24005,7 +24010,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24005
24010
  }
24006
24011
  });
24007
24012
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
24008
- const SlidCaptcha = defineAsyncComponent(() => import("./index-Dx7Xm0MA.js"));
24013
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-BuVk4m7Z.js"));
24009
24014
  const useSlidCaptcha = () => {
24010
24015
  const { mount, unMount } = usePopup("slid-captcha-popup");
24011
24016
  const open = (config) => {
@@ -24024,7 +24029,7 @@ const useSlidCaptcha = () => {
24024
24029
  close: unMount
24025
24030
  };
24026
24031
  };
24027
- const YunpianCaptcha = defineAsyncComponent(() => import("./index-Btj7WgSR.js"));
24032
+ const YunpianCaptcha = defineAsyncComponent(() => import("./index-B8QyODaD.js"));
24028
24033
  const useYunpianCaptcha = () => {
24029
24034
  const { mount, unMount } = usePopup("yunpian-captcha-popup");
24030
24035
  const open = (config) => {
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { K, M, P, J, S, I, z, U, O, Q, N } from "./index-DPOjnDNY.js";
1
+ import { K, M, P, J, S, I, z, U, O, Q, N } from "./index-qGsEG9PB.js";
2
2
  export {
3
3
  K as GitCodeAside,
4
4
  M 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-DPOjnDNY.js";
2
+ import { i as isPhone, u as useModel } from "./index-qGsEG9PB.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.8.15",
3
+ "version": "1.8.16",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",
@@ -1,4 +1,4 @@
1
- import { x as useLayoutConfig } from "./index-DPOjnDNY.js";
1
+ import { x as useLayoutConfig } from "./index-qGsEG9PB.js";
2
2
  const layoutConfig = useLayoutConfig();
3
3
  const transWebUrl = (url, params) => {
4
4
  if (!url) return url;