vue-layout-gitcode 1.8.11 → 1.8.13

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-B4OllvtZ.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-HAA3F5Te.js";
5
5
  import "lodash/debounce";
6
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-CKz_Gi48.js";
7
- import "./transWebUrl-nClhQnWb.js";
6
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-tbNoovZi.js";
7
+ import "./transWebUrl-wQ1yWCFq.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-B4OllvtZ.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-HAA3F5Te.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, D as transformUrl, F as _sfc_main$1, H as loadAsideData, B as emitEvent, s as setLoginTriggerSource, f as useRequestReport, I as asideRequest, _ as _export_sfc } from "./index-B4OllvtZ.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-HAA3F5Te.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-nClhQnWb.js";
4
+ import { t as transWebUrl } from "./transWebUrl-wQ1yWCFq.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-B4OllvtZ.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-HAA3F5Te.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-nClhQnWb.js";
4
+ import { t as transWebUrl } from "./transWebUrl-wQ1yWCFq.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-B4OllvtZ.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-HAA3F5Te.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-B4OllvtZ.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-HAA3F5Te.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-B4OllvtZ.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-HAA3F5Te.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-CKz_Gi48.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-B4OllvtZ.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-tbNoovZi.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-HAA3F5Te.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-B4OllvtZ.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-HAA3F5Te.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-B4OllvtZ.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-HAA3F5Te.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,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-B4OllvtZ.js";
2
+ import { w as getLocaleLang, j as LANG_ZH, x as useLayoutConfig, _ as _export_sfc } from "./index-HAA3F5Te.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:";
@@ -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-B4OllvtZ.js";
11
+ import { a as i18n, k as usePageResize, w as getLocaleLang, j as LANG_ZH, _ as _export_sfc } from "./index-HAA3F5Te.js";
12
12
  const _YunpianCaptchaManager = class _YunpianCaptchaManager {
13
13
  constructor() {
14
14
  __publicField(this, "ypRiddlerInstance", null);
@@ -105,7 +105,7 @@ const _export_sfc = (sfc, props) => {
105
105
  return target;
106
106
  };
107
107
  const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-vue-layout-gitcode"]]);
108
- const transformUrl$1 = (url) => {
108
+ const transformUrl = (url) => {
109
109
  if (!url || typeof url !== "string") {
110
110
  return url;
111
111
  }
@@ -125,14 +125,17 @@ const transformUrl$1 = (url) => {
125
125
  try {
126
126
  const urlObj = new URL(url);
127
127
  const originalHostname = urlObj.hostname;
128
- const parseHostname = (hostname = "") => {
128
+ const parseHostname = (hostname, isLocationHost = false) => {
129
129
  const parts = hostname.split(".");
130
130
  const baseDomain = parts.length >= 2 ? parts.slice(-2).join(".") : hostname;
131
- const subdomainPrefix = parts.length > 2 ? parts[0] : "";
131
+ let subdomainPrefix = parts.length > 2 ? parts[0] : "";
132
+ if (isLocationHost && subdomainPrefix && subdomainPrefix.includes("-")) {
133
+ subdomainPrefix = subdomainPrefix.split("-")[0];
134
+ }
132
135
  return { baseDomain, subdomainPrefix };
133
136
  };
134
- const { subdomainPrefix: urlSubdomain } = parseHostname(originalHostname);
135
- const { baseDomain: targetBaseDomain, subdomainPrefix: targetEnvPrefix } = parseHostname(targetHost);
137
+ const { subdomainPrefix: urlSubdomain } = parseHostname(originalHostname, false);
138
+ const { baseDomain: targetBaseDomain, subdomainPrefix: targetEnvPrefix } = parseHostname(targetHost, true);
136
139
  let finalHostname = targetBaseDomain;
137
140
  if (targetEnvPrefix) {
138
141
  finalHostname = `${targetEnvPrefix}.${finalHostname}`;
@@ -162,7 +165,7 @@ const defaultConfig = {
162
165
  VITE_SECRET_KEY: "SA!nUNPZ5o!OSV&B",
163
166
  VITE_SECRET_IV: "SA!nwwwZ5o!OSV&B"
164
167
  };
165
- const layoutConfig$5 = reactive({ ...defaultConfig, VITE_HOST_TIANQI: transformUrl$1(defaultConfig.VITE_HOST_TIANQI) });
168
+ const layoutConfig$5 = reactive({ ...defaultConfig, VITE_HOST_TIANQI: transformUrl(defaultConfig.VITE_HOST_TIANQI) });
166
169
  function setLayoutConfig(customConfig) {
167
170
  Object.assign(layoutConfig$5, customConfig);
168
171
  }
@@ -12274,48 +12277,6 @@ if (isBrowser) {
12274
12277
  }
12275
12278
  const sessionStorage$1 = sessionStorage;
12276
12279
  const _imports_0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAmsSURBVHgB7VpdbxxnFT7nfccmRam6/gXZXIBy1y3qRe8YR6kUoUpdbhACJNtShFJUSCyBBFd2I1ClAoklVAE32BYXRAJqIwEyUOrNL4h70dtm+wvqNG7deGbe03PO+7Gzlr27/kpzsSeazO5kZvZ95jnnOR8TgLGNbWxjG9vYDjWEp8zyNjUg22lBiS1TuOeNo5YFbBgyTUMAFgz4PXYnDEzf3XimO+h+GTwFls9S43G5O2NLaLtqp2VKaJiSCB0yGEQEJAHFIMkwKXxMjl8AopwvXxl07y8V4EvXdnMo3cye+6xtK3jOVISmYCAlb/KZgTBT4Pd8TD+TfGegiApyiH0pAF+6vpvzOhegoNxUvNiSwZS88II32VcAniVhTIAya6AgeS9/A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IcHtk7BCQvowhgdcLZ9ld8K1ezuu88sctjMsQt/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";
12277
- const transformUrl = (url) => {
12278
- if (!url || typeof url !== "string") {
12279
- return url;
12280
- }
12281
- if (url.startsWith("/") && !url.startsWith("//") || url.startsWith("./") || url.startsWith("../")) {
12282
- return url;
12283
- }
12284
- if (url.startsWith("https://cdn-") || url.startsWith("http://cdn-") || url.startsWith("//cdn-")) {
12285
- return url;
12286
- }
12287
- if (typeof window === "undefined" || typeof location === "undefined") {
12288
- return url;
12289
- }
12290
- const targetHost = location.host;
12291
- if (!targetHost) {
12292
- return url;
12293
- }
12294
- try {
12295
- const urlObj = new URL(url);
12296
- const originalHostname = urlObj.hostname;
12297
- const parseHostname = (hostname = "") => {
12298
- const parts = hostname.split(".");
12299
- const baseDomain = parts.length >= 2 ? parts.slice(-2).join(".") : hostname;
12300
- const subdomainPrefix = parts.length > 2 ? parts[0] : "";
12301
- return { baseDomain, subdomainPrefix };
12302
- };
12303
- const { subdomainPrefix: urlSubdomain } = parseHostname(originalHostname);
12304
- const { baseDomain: targetBaseDomain, subdomainPrefix: targetEnvPrefix } = parseHostname(targetHost);
12305
- let finalHostname = targetBaseDomain;
12306
- if (targetEnvPrefix) {
12307
- finalHostname = `${targetEnvPrefix}.${finalHostname}`;
12308
- }
12309
- if (urlSubdomain && urlSubdomain !== targetEnvPrefix) {
12310
- finalHostname = `${urlSubdomain}.${finalHostname}`;
12311
- }
12312
- const transformed = url.replace(originalHostname, finalHostname);
12313
- return transformed;
12314
- } catch (error) {
12315
- console.warn("URL解析失败:", url, error);
12316
- return url;
12317
- }
12318
- };
12319
12280
  const _sfc_main$z = /* @__PURE__ */ defineComponent({
12320
12281
  ...{
12321
12282
  name: "GAvatar"
@@ -13689,7 +13650,13 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
13689
13650
  };
13690
13651
  });
13691
13652
  function goPage() {
13692
- const url = transformUrl$1(tianqiButtonConfig.value.url || layoutConfig2.VITE_HOST_TIANQI + "?utm_source=toolbar");
13653
+ let url = transformUrl(tianqiButtonConfig.value.url || layoutConfig2.VITE_HOST_TIANQI + "?utm_source=toolbar");
13654
+ if (location.host === "test.atomgit.com") {
13655
+ url = "https://test-tianqi.atomgit.com";
13656
+ }
13657
+ if (location.host === "pre.atomgit.com") {
13658
+ url = "https://pre-tianqi.atomgit.com";
13659
+ }
13693
13660
  useReport2(REPO_EVENT.CLICK, { module_name: ASIDE_MENU_REPO.CHATBOTCLICK });
13694
13661
  window.open(url);
13695
13662
  }
@@ -16885,13 +16852,13 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
16885
16852
  var _a;
16886
16853
  const layoutConfig2 = useLayoutConfig();
16887
16854
  const { t: $t } = i18n.global;
16888
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-C0O4aa4G.js"));
16889
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-Bwtvovub.js"));
16890
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-BP1DcgjO.js"));
16891
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-BYmtQDPB.js"));
16892
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-CHcLZTmS.js"));
16893
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-zBtI4Sk0.js"));
16894
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-oZ4s6Rzj.js"));
16855
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-CISPcBR4.js"));
16856
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-D1O_0E6r.js"));
16857
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-DOry7z_v.js"));
16858
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-DLoXPObe.js"));
16859
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-BrP-M0Ot.js"));
16860
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-DvPHRrol.js"));
16861
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-Ch939xlF.js"));
16895
16862
  const props = __props;
16896
16863
  const repoInfo = inject("repoInfo");
16897
16864
  const orgInfo = inject("orgInfo");
@@ -17129,7 +17096,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
17129
17096
  } else {
17130
17097
  hotUrl = `${hotUrl}?source_module=search_box_hot_word`;
17131
17098
  }
17132
- window.open(transformUrl$1(hotUrl), "_blank");
17099
+ window.open(transformUrl(hotUrl), "_blank");
17133
17100
  return;
17134
17101
  }
17135
17102
  isSearchHistory.value = false;
@@ -17545,7 +17512,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
17545
17512
  loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
17546
17513
  }
17547
17514
  };
17548
- const NoticeModal = defineAsyncComponent(() => import("./notice-DZ7ENFVI.js"));
17515
+ const NoticeModal = defineAsyncComponent(() => import("./notice-CjlIawkW.js"));
17549
17516
  function clearNotice() {
17550
17517
  if (localStorage$2.getItem("validator_email")) {
17551
17518
  localStorage$2.removeItem("validator_email");
@@ -18173,11 +18140,11 @@ const useConfigSide = (request, sceneValue) => {
18173
18140
  let asideList = (((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.data) || []).map((item) => {
18174
18141
  return {
18175
18142
  ...item,
18176
- left_menu_url: transformUrl$1(item.left_menu_url),
18177
- left_menu_logo: transformUrl$1(item.left_menu_logo),
18178
- left_menu_logo_black: transformUrl$1(item.left_menu_logo_black),
18179
- left_menu_logo_hover: transformUrl$1(item.left_menu_logo_hover),
18180
- left_menu_logo_hover_black: transformUrl$1(item.left_menu_logo_hover_black)
18143
+ left_menu_url: transformUrl(item.left_menu_url),
18144
+ left_menu_logo: transformUrl(item.left_menu_logo),
18145
+ left_menu_logo_black: transformUrl(item.left_menu_logo_black),
18146
+ left_menu_logo_hover: transformUrl(item.left_menu_logo_hover),
18147
+ left_menu_logo_hover_black: transformUrl(item.left_menu_logo_hover_black)
18181
18148
  };
18182
18149
  });
18183
18150
  if (typeof window !== "undefined" && GUI_YANG_GITCODE_HOST && ((_b = window.location) == null ? void 0 : _b.origin.includes(GUI_YANG_GITCODE_HOST))) {
@@ -18252,8 +18219,8 @@ const loadUserProjectsInvolved = async (requestFn, params = {}) => {
18252
18219
  var _a;
18253
18220
  return {
18254
18221
  key: item.name,
18255
- web_url: transformUrl$1(item.web_url),
18256
- avatar: transformUrl$1(item.avatar),
18222
+ web_url: transformUrl(item.web_url),
18223
+ avatar: transformUrl(item.avatar),
18257
18224
  id: item.id,
18258
18225
  label: item.name,
18259
18226
  namespace: (_a = item.namespace_info) == null ? void 0 : _a.name
@@ -18304,9 +18271,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18304
18271
  const layoutConfig2 = useLayoutConfig();
18305
18272
  const { t: t2 } = i18n.global;
18306
18273
  const route = useRoute();
18307
- const MenuItem = defineAsyncComponent(() => import("./MenuItem-CMxHaSS7.js"));
18308
- const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-Dgl0Lihi.js"));
18309
- const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-SX4Q9mej.js"));
18274
+ const MenuItem = defineAsyncComponent(() => import("./MenuItem-CIgzVojf.js"));
18275
+ const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-D4Inlf47.js"));
18276
+ const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-NN6EMNRA.js"));
18310
18277
  const props = __props;
18311
18278
  console.log("slotKeys", props.slotKeys);
18312
18279
  console.log("props", props);
@@ -18689,7 +18656,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
18689
18656
  {
18690
18657
  name: t2("gitCodeLayout.home.feedbackCenter"),
18691
18658
  icon: "gt-line-Checks",
18692
- url: transformUrl$1(FEEDBACK_CENTER_URL),
18659
+ url: transformUrl(FEEDBACK_CENTER_URL),
18693
18660
  target: "_self"
18694
18661
  }
18695
18662
  ];
@@ -20316,7 +20283,7 @@ async function successResolve(params, API, isRegister = false) {
20316
20283
  const { path, userInfo, type, loginMethod } = params;
20317
20284
  const transformUserInfo = {
20318
20285
  ...userInfo,
20319
- avatar: transformUrl$1(userInfo == null ? void 0 : userInfo.avatar)
20286
+ avatar: transformUrl(userInfo == null ? void 0 : userInfo.avatar)
20320
20287
  };
20321
20288
  if (userInfo) {
20322
20289
  emitEvent("updateUserInfo", transformUserInfo);
@@ -24018,7 +23985,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24018
23985
  }
24019
23986
  });
24020
23987
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
24021
- const SlidCaptcha = defineAsyncComponent(() => import("./index-Cb6YsYq9.js"));
23988
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-BD5XMKew.js"));
24022
23989
  const useSlidCaptcha = () => {
24023
23990
  const { mount, unMount } = usePopup("slid-captcha-popup");
24024
23991
  const open = (config) => {
@@ -24037,7 +24004,7 @@ const useSlidCaptcha = () => {
24037
24004
  close: unMount
24038
24005
  };
24039
24006
  };
24040
- const YunpianCaptcha = defineAsyncComponent(() => import("./index-BU9qKi4Y.js"));
24007
+ const YunpianCaptcha = defineAsyncComponent(() => import("./index-BDXYe6YR.js"));
24041
24008
  const useYunpianCaptcha = () => {
24042
24009
  const { mount, unMount } = usePopup("yunpian-captcha-popup");
24043
24010
  const open = (config) => {
@@ -26052,25 +26019,24 @@ export {
26052
26019
  LANG_EN as A,
26053
26020
  emitEvent as B,
26054
26021
  isHttps as C,
26055
- transformUrl as D,
26022
+ _sfc_main$z as D,
26056
26023
  EVENT_NAME as E,
26057
- _sfc_main$z as F,
26024
+ loadAsideData as F,
26058
26025
  GIcon as G,
26059
- loadAsideData as H,
26060
- asideRequest as I,
26061
- ToolsFloat as J,
26062
- _sfc_main as K,
26026
+ asideRequest as H,
26027
+ ToolsFloat as I,
26028
+ _sfc_main as J,
26029
+ GitCodeAside as K,
26063
26030
  LANG_KEY as L,
26064
- GitCodeAside as M,
26065
- GitCodeHeader as N,
26066
- useLogin as O,
26067
- setLayoutConfig as P,
26068
- GitCodeLayoutEmitter as Q,
26031
+ GitCodeHeader as M,
26032
+ useLogin as N,
26033
+ setLayoutConfig as O,
26034
+ GitCodeLayoutEmitter as P,
26035
+ setTheme as Q,
26069
26036
  REPO_MODULE as R,
26070
26037
  SceneValue as S,
26071
26038
  TOPIC_TYPE as T,
26072
- setTheme as U,
26073
- index as V,
26039
+ index as U,
26074
26040
  _export_sfc as _,
26075
26041
  i18n as a,
26076
26042
  REPO_EVENT as b,
@@ -26091,7 +26057,7 @@ export {
26091
26057
  _frEventTrack as q,
26092
26058
  reqCatch as r,
26093
26059
  setLoginTriggerSource as s,
26094
- transformUrl$1 as t,
26060
+ transformUrl as t,
26095
26061
  useModel as u,
26096
26062
  vElementExposure as v,
26097
26063
  getLocaleLang as w,
@@ -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-B4OllvtZ.js";
4
- import { t as transWebUrl } from "./transWebUrl-nClhQnWb.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-HAA3F5Te.js";
4
+ import { t as transWebUrl } from "./transWebUrl-wQ1yWCFq.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";
package/index.js CHANGED
@@ -1,14 +1,14 @@
1
- import { M, N, Q, K, S, J, z, V, P, U, O } from "./index-B4OllvtZ.js";
1
+ import { K, M, P, J, S, I, z, U, O, Q, N } from "./index-HAA3F5Te.js";
2
2
  export {
3
- M as GitCodeAside,
4
- N as GitCodeHeader,
5
- Q as GitCodeLayoutEmitter,
6
- K as Login,
3
+ K as GitCodeAside,
4
+ M as GitCodeHeader,
5
+ P as GitCodeLayoutEmitter,
6
+ J as Login,
7
7
  S as SceneValue,
8
- J as ToolsFloat,
8
+ I as ToolsFloat,
9
9
  z as currentTheme,
10
- V as default,
11
- P as setLayoutConfig,
12
- U as setTheme,
13
- O as useLogin
10
+ U as default,
11
+ O as setLayoutConfig,
12
+ Q as setTheme,
13
+ N as useLogin
14
14
  };
@@ -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-B4OllvtZ.js";
2
+ import { i as isPhone, u as useModel } from "./index-HAA3F5Te.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.11",
3
+ "version": "1.8.13",
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-B4OllvtZ.js";
1
+ import { x as useLayoutConfig } from "./index-HAA3F5Te.js";
2
2
  const layoutConfig = useLayoutConfig();
3
3
  const transWebUrl = (url, params) => {
4
4
  if (!url) return url;