vue-layout-gitcode 1.8.16 → 1.8.17

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-qGsEG9PB.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-CNV-z0yg.js";
5
5
  import "lodash/debounce";
6
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-C0q0FNWm.js";
7
- import "./transWebUrl-D_uP_hL5.js";
6
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-D6XftEMr.js";
7
+ import "./transWebUrl-GZ3VtByG.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-qGsEG9PB.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-CNV-z0yg.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-qGsEG9PB.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-CNV-z0yg.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-D_uP_hL5.js";
4
+ import { t as transWebUrl } from "./transWebUrl-GZ3VtByG.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";
@@ -231,7 +231,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
231
231
  if (router.hasRoute(targetRoute.name)) {
232
232
  router.push(targetRoute);
233
233
  } else {
234
- window.location.href = `${layoutConfig.VITE_HOST}/${props.type !== "project" ? "org/" : ""}create?position=nav_top`;
234
+ window.location.href = `${transformUrl(layoutConfig.VITE_HOST)}/${props.type !== "project" ? "org/" : ""}create?position=nav_top`;
235
235
  }
236
236
  };
237
237
  return (_ctx, _cache) => {
@@ -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-qGsEG9PB.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-CNV-z0yg.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-D_uP_hL5.js";
4
+ import { t as transWebUrl } from "./transWebUrl-GZ3VtByG.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";
@@ -131,7 +131,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
131
131
  query: { position: "nav_top" }
132
132
  });
133
133
  } else {
134
- window.location.href = `${layoutConfig.VITE_HOST}/create?position=nav_top`;
134
+ window.location.href = `${transformUrl(layoutConfig.VITE_HOST)}/create?position=nav_top`;
135
135
  }
136
136
  };
137
137
  return (_ctx, _cache) => {
@@ -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-qGsEG9PB.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-CNV-z0yg.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-qGsEG9PB.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-CNV-z0yg.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-qGsEG9PB.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-CNV-z0yg.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-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";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-D6XftEMr.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-CNV-z0yg.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-qGsEG9PB.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-CNV-z0yg.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-qGsEG9PB.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-CNV-z0yg.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]" };
@@ -16250,7 +16250,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
16250
16250
  });
16251
16251
  return (_ctx, _cache) => {
16252
16252
  return openBlock(), createBlock(GLink, {
16253
- href: `${unref(layoutConfig2).VITE_HOST}/notice?message_sate=countNotRead`
16253
+ href: `${unref(transformUrl)(unref(layoutConfig2).VITE_HOST)}/notice?message_sate=countNotRead`
16254
16254
  }, {
16255
16255
  default: withCtx(() => [
16256
16256
  createVNode(unref(Badge), {
@@ -16324,7 +16324,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
16324
16324
  if (router2.hasRoute("settingPoints")) {
16325
16325
  router2.push("/setting/points");
16326
16326
  } else {
16327
- location.href = `${layoutConfig2.VITE_HOST}/setting/points`;
16327
+ location.href = `${transformUrl(layoutConfig2.VITE_HOST)}/setting/points`;
16328
16328
  }
16329
16329
  };
16330
16330
  const levelInfo = computed(() => {
@@ -16504,7 +16504,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
16504
16504
  item.action();
16505
16505
  }
16506
16506
  if (item == null ? void 0 : item.link) {
16507
- const link = `${layoutConfig2.VITE_HOST}${item.link}`;
16507
+ const link = `${transformUrl(layoutConfig2.VITE_HOST)}${item.link}`;
16508
16508
  window.open(link, "_self");
16509
16509
  }
16510
16510
  }
@@ -16521,7 +16521,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
16521
16521
  return openBlock(), createElementBlock("div", null, [
16522
16522
  createVNode(GLink, {
16523
16523
  class: "g-user-drawer-info pl-[32px] pr-[16px] cursor-pointer",
16524
- href: `${unref(layoutConfig2).VITE_HOST}/${__props.accountInfo.username}`,
16524
+ href: `${unref(transformUrl)(unref(layoutConfig2).VITE_HOST)}/${__props.accountInfo.username}`,
16525
16525
  key: "myPage",
16526
16526
  target: __props.isChatBot ? "_blank" : ""
16527
16527
  }, {
@@ -16867,13 +16867,13 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
16867
16867
  var _a;
16868
16868
  const layoutConfig2 = useLayoutConfig();
16869
16869
  const { t: $t } = i18n.global;
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"));
16870
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-DOswQQGe.js"));
16871
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-j6NxjoS4.js"));
16872
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-TUo4nn83.js"));
16873
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-DeNV1yOx.js"));
16874
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-DxPjaKfI.js"));
16875
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-CoIhPekg.js"));
16876
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-DkBRd__0.js"));
16877
16877
  const props = __props;
16878
16878
  const repoInfo = inject("repoInfo");
16879
16879
  const orgInfo = inject("orgInfo");
@@ -17527,7 +17527,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
17527
17527
  loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
17528
17528
  }
17529
17529
  };
17530
- const NoticeModal = defineAsyncComponent(() => import("./notice-COzAZwma.js"));
17530
+ const NoticeModal = defineAsyncComponent(() => import("./notice-DKvkMz7S.js"));
17531
17531
  function clearNotice() {
17532
17532
  if (localStorage$2.getItem("validator_email")) {
17533
17533
  localStorage$2.removeItem("validator_email");
@@ -18295,9 +18295,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18295
18295
  const layoutConfig2 = useLayoutConfig();
18296
18296
  const { t: t2 } = i18n.global;
18297
18297
  const route = useRoute();
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"));
18298
+ const MenuItem = defineAsyncComponent(() => import("./MenuItem-n5uAtSzm.js"));
18299
+ const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-5MZSguqA.js"));
18300
+ const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList--jQyMTlG.js"));
18301
18301
  const props = __props;
18302
18302
  console.log("slotKeys", props.slotKeys);
18303
18303
  console.log("props", props);
@@ -19162,7 +19162,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
19162
19162
  createVNode(GLink, {
19163
19163
  class: normalizeClass(["g-toolbar-left-logo", unref(currentTheme)]),
19164
19164
  to: _ctx.independence ? "" : { name: "home" },
19165
- href: _ctx.independence ? unref(layoutConfig2).VITE_HOST : ""
19165
+ href: _ctx.independence ? unref(transformUrl)(unref(layoutConfig2).VITE_HOST) : ""
19166
19166
  }, null, 8, ["class", "to", "href"]),
19167
19167
  createVNode(unref(Button), {
19168
19168
  class: "cursor-pointer draw-side-bar-close",
@@ -24010,7 +24010,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24010
24010
  }
24011
24011
  });
24012
24012
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
24013
- const SlidCaptcha = defineAsyncComponent(() => import("./index-BuVk4m7Z.js"));
24013
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-FV44K1EC.js"));
24014
24014
  const useSlidCaptcha = () => {
24015
24015
  const { mount, unMount } = usePopup("slid-captcha-popup");
24016
24016
  const open = (config) => {
@@ -24029,7 +24029,7 @@ const useSlidCaptcha = () => {
24029
24029
  close: unMount
24030
24030
  };
24031
24031
  };
24032
- const YunpianCaptcha = defineAsyncComponent(() => import("./index-B8QyODaD.js"));
24032
+ const YunpianCaptcha = defineAsyncComponent(() => import("./index-lPvPZwC8.js"));
24033
24033
  const useYunpianCaptcha = () => {
24034
24034
  const { mount, unMount } = usePopup("yunpian-captcha-popup");
24035
24035
  const open = (config) => {
@@ -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-qGsEG9PB.js";
4
- import { t as transWebUrl } from "./transWebUrl-D_uP_hL5.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-CNV-z0yg.js";
4
+ import { t as transWebUrl } from "./transWebUrl-GZ3VtByG.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";
@@ -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-qGsEG9PB.js";
2
+ import { w as getLocaleLang, j as LANG_ZH, x as useLayoutConfig, _ as _export_sfc } from "./index-CNV-z0yg.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-qGsEG9PB.js";
11
+ import { a as i18n, k as usePageResize, w as getLocaleLang, j as LANG_ZH, _ as _export_sfc } from "./index-CNV-z0yg.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-qGsEG9PB.js";
1
+ import { K, M, P, J, S, I, z, U, O, Q, N } from "./index-CNV-z0yg.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-qGsEG9PB.js";
2
+ import { i as isPhone, u as useModel } from "./index-CNV-z0yg.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.16",
3
+ "version": "1.8.17",
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-qGsEG9PB.js";
1
+ import { x as useLayoutConfig } from "./index-CNV-z0yg.js";
2
2
  const layoutConfig = useLayoutConfig();
3
3
  const transWebUrl = (url, params) => {
4
4
  if (!url) return url;