vue-layout-gitcode 1.9.14 → 1.9.15

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-B1VTfjaS.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-CwX2W7Sb.js";
5
5
  import "lodash/debounce";
6
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-CqvQv2f1.js";
7
- import "./transWebUrl-B5jv0n8n.js";
6
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-pAtMPmIk.js";
7
+ import "./transWebUrl-CJbKGboA.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 { a as i18n, 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-B1VTfjaS.js";
2
+ import { a as i18n, 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-CwX2W7Sb.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-B1VTfjaS.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-CwX2W7Sb.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-B5jv0n8n.js";
4
+ import { t as transWebUrl } from "./transWebUrl-CJbKGboA.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, t as transformUrl, _ as _export_sfc } from "./index-B1VTfjaS.js";
2
+ import { a as i18n, x as useLayoutConfig, G as GIcon, B as emitEvent, s as setLoginTriggerSource, f as useRequestReport, t as transformUrl, _ as _export_sfc } from "./index-CwX2W7Sb.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-B5jv0n8n.js";
4
+ import { t as transWebUrl } from "./transWebUrl-CJbKGboA.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-B1VTfjaS.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-CwX2W7Sb.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-B1VTfjaS.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-CwX2W7Sb.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-B1VTfjaS.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-CwX2W7Sb.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-CqvQv2f1.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-B1VTfjaS.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-pAtMPmIk.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-CwX2W7Sb.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-B1VTfjaS.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-CwX2W7Sb.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-B1VTfjaS.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-CwX2W7Sb.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]" };
@@ -12446,21 +12446,27 @@ const transformNewsUrl = (url) => {
12446
12446
  return transformedUrl;
12447
12447
  }
12448
12448
  }
12449
+ let needAppendPath = false;
12449
12450
  if (host === "local.atomgit.com" || host === "local.gitcode.net" || transformedUrl.includes("news.local.")) {
12450
12451
  transformedUrl = isGitcodeHost ? "https://test-news.gitcode.net" : "https://test-news.atomgit.com";
12452
+ needAppendPath = true;
12451
12453
  } else if (transformedUrl.includes("news.test.")) {
12452
12454
  transformedUrl = isGitcodeHost ? "https://test-news.gitcode.net" : "https://test-news.atomgit.com";
12455
+ needAppendPath = true;
12453
12456
  } else if (transformedUrl.includes("news.pre.")) {
12454
12457
  transformedUrl = isGitcodeHost ? "https://pre-news.gitcode.com" : "https://pre-news.atomgit.com";
12458
+ needAppendPath = true;
12455
12459
  }
12456
- try {
12457
- const originalUrlObj = new URL(url);
12458
- const pathAndQuery = originalUrlObj.pathname + originalUrlObj.search + originalUrlObj.hash;
12459
- if (pathAndQuery && pathAndQuery !== "/") {
12460
- transformedUrl = transformedUrl + pathAndQuery;
12460
+ if (needAppendPath) {
12461
+ try {
12462
+ const originalUrlObj = new URL(url);
12463
+ const pathAndQuery = originalUrlObj.pathname + originalUrlObj.search + originalUrlObj.hash;
12464
+ if (pathAndQuery && pathAndQuery !== "/") {
12465
+ transformedUrl = transformedUrl + pathAndQuery;
12466
+ }
12467
+ } catch (error) {
12468
+ console.error("transformNewsUrl: URL 解析失败", error);
12461
12469
  }
12462
- } catch (error) {
12463
- console.error("transformNewsUrl: URL 解析失败", error);
12464
12470
  }
12465
12471
  }
12466
12472
  return transformedUrl;
@@ -17105,13 +17111,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
17105
17111
  var _a;
17106
17112
  const layoutConfig2 = useLayoutConfig();
17107
17113
  const { t: $t } = i18n.global;
17108
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-CcXPrVNo.js"));
17109
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-HrA3muvI.js"));
17110
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-ttMopCB3.js"));
17111
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-Bk_AMspF.js"));
17112
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-BSzLLlRH.js"));
17113
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-Bckkk6D2.js"));
17114
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-IDjmdZUN.js"));
17114
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-BGClMDbA.js"));
17115
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-uut_Tutp.js"));
17116
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-DCBE43mK.js"));
17117
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-aDQcJTP3.js"));
17118
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-Bz61B5-R.js"));
17119
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-D0PuFWoe.js"));
17120
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-DOW6qP2X.js"));
17115
17121
  const props = __props;
17116
17122
  const repoInfo = inject("repoInfo");
17117
17123
  const orgInfo = inject("orgInfo");
@@ -17876,7 +17882,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
17876
17882
  loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
17877
17883
  }
17878
17884
  };
17879
- const NoticeModal = defineAsyncComponent(() => import("./notice-D8IKP_f9.js"));
17885
+ const NoticeModal = defineAsyncComponent(() => import("./notice-DANhvhbs.js"));
17880
17886
  function clearNotice() {
17881
17887
  if (localStorage$2.getItem("validator_email")) {
17882
17888
  localStorage$2.removeItem("validator_email");
@@ -18670,9 +18676,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18670
18676
  const layoutConfig2 = useLayoutConfig();
18671
18677
  const { t: t2 } = i18n.global;
18672
18678
  const route = useRoute();
18673
- const MenuItem = defineAsyncComponent(() => import("./MenuItem-BVE58wLS.js"));
18674
- const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-BdksmW70.js"));
18675
- const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-BPIhuRXD.js"));
18679
+ const MenuItem = defineAsyncComponent(() => import("./MenuItem-B629djf-.js"));
18680
+ const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-CxiRFJk0.js"));
18681
+ const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-D0r4PwMe.js"));
18676
18682
  const props = __props;
18677
18683
  console.log("slotKeys", props.slotKeys);
18678
18684
  console.log("props", props);
@@ -24415,7 +24421,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24415
24421
  }
24416
24422
  });
24417
24423
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
24418
- const SlidCaptcha = defineAsyncComponent(() => import("./index-Bt8SvYFk.js"));
24424
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-DuseNVgV.js"));
24419
24425
  const useSlidCaptcha = () => {
24420
24426
  const { mount, unMount } = usePopup("slid-captcha-popup");
24421
24427
  const open = (config) => {
@@ -24434,7 +24440,7 @@ const useSlidCaptcha = () => {
24434
24440
  close: unMount
24435
24441
  };
24436
24442
  };
24437
- const YunpianCaptcha = defineAsyncComponent(() => import("./index-Cy_laCAQ.js"));
24443
+ const YunpianCaptcha = defineAsyncComponent(() => import("./index-pXrnlYMi.js"));
24438
24444
  const useYunpianCaptcha = () => {
24439
24445
  const { mount, unMount } = usePopup("yunpian-captcha-popup");
24440
24446
  const open = (config) => {
@@ -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-B1VTfjaS.js";
2
+ import { w as getLocaleLang, j as LANG_ZH, x as useLayoutConfig, _ as _export_sfc } from "./index-CwX2W7Sb.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-B1VTfjaS.js";
4
- import { t as transWebUrl } from "./transWebUrl-B5jv0n8n.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-CwX2W7Sb.js";
4
+ import { t as transWebUrl } from "./transWebUrl-CJbKGboA.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";
@@ -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-B1VTfjaS.js";
11
+ import { a as i18n, k as usePageResize, w as getLocaleLang, j as LANG_ZH, _ as _export_sfc } from "./index-CwX2W7Sb.js";
12
12
  const _YunpianCaptchaManager = class _YunpianCaptchaManager {
13
13
  constructor() {
14
14
  __publicField(this, "ypRiddlerInstance", null);
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { K, M, P, J, S, I, z, U, O, Q, N } from "./index-B1VTfjaS.js";
1
+ import { K, M, P, J, S, I, z, U, O, Q, N } from "./index-CwX2W7Sb.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-B1VTfjaS.js";
2
+ import { i as isPhone, u as useModel } from "./index-CwX2W7Sb.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.9.14",
3
+ "version": "1.9.15",
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-B1VTfjaS.js";
1
+ import { x as useLayoutConfig } from "./index-CwX2W7Sb.js";
2
2
  const layoutConfig = useLayoutConfig();
3
3
  const transWebUrl = (url, params) => {
4
4
  if (!url) return url;