vue-layout-gitcode 1.5.68 → 1.5.70

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-C9jGW5mh.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-Bxhc6nCo.js";
5
5
  import "lodash/debounce";
6
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-FGP5-sua.js";
7
- import "./transWebUrl-C6eX_MeF.js";
6
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-XjwMbIbJ.js";
7
+ import "./transWebUrl-DTXUrWYK.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 { q as useLayoutConfig, w as ThemeType, x as currentTheme, g as LANG_ZH, y as LANG_EN, z as getLocaleLang, G as GIcon, A as emitEvent, B as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-C9jGW5mh.js";
2
+ import { q as useLayoutConfig, w as ThemeType, x as currentTheme, g as LANG_ZH, y as LANG_EN, z as getLocaleLang, G as GIcon, A as emitEvent, B as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-Bxhc6nCo.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, q as useLayoutConfig, G as GIcon, C as _sfc_main$1, D as loadAsideData, A as emitEvent, s as setLoginTriggerSource, d as useRequestReport, F as asideRequest, _ as _export_sfc } from "./index-C9jGW5mh.js";
2
+ import { a as i18n, q as useLayoutConfig, G as GIcon, C as _sfc_main$1, D as loadAsideData, A as emitEvent, s as setLoginTriggerSource, d as useRequestReport, F as asideRequest, _ as _export_sfc } from "./index-Bxhc6nCo.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-C6eX_MeF.js";
4
+ import { t as transWebUrl } from "./transWebUrl-DTXUrWYK.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, q as useLayoutConfig, G as GIcon, A as emitEvent, s as setLoginTriggerSource, d as useRequestReport, _ as _export_sfc } from "./index-C9jGW5mh.js";
2
+ import { a as i18n, q as useLayoutConfig, G as GIcon, A as emitEvent, s as setLoginTriggerSource, d as useRequestReport, _ as _export_sfc } from "./index-Bxhc6nCo.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-C6eX_MeF.js";
4
+ import { t as transWebUrl } from "./transWebUrl-DTXUrWYK.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-C9jGW5mh.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-Bxhc6nCo.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-C9jGW5mh.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-Bxhc6nCo.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-C9jGW5mh.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-Bxhc6nCo.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-FGP5-sua.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-C9jGW5mh.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-XjwMbIbJ.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-Bxhc6nCo.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-C9jGW5mh.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-Bxhc6nCo.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 } from "./index-C9jGW5mh.js";
2
+ import { a as i18n, h as headRequest, G as GIcon } from "./index-Bxhc6nCo.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 { q as useLayoutConfig, _ as _export_sfc } from "./index-C9jGW5mh.js";
3
+ import { q as useLayoutConfig, _ as _export_sfc } from "./index-Bxhc6nCo.js";
4
4
  import "vue-devui-lal/overlay/style.css";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "index",
@@ -10967,8 +10967,8 @@ const _hoisted_3$j = {
10967
10967
  key: 0,
10968
10968
  class: "tooltip-sign"
10969
10969
  };
10970
- const _hoisted_4$f = { class: "home-nav-tooltip-wrapper" };
10971
- const _hoisted_5$c = { class: "home-nav-text" };
10970
+ const _hoisted_4$g = { class: "home-nav-tooltip-wrapper" };
10971
+ const _hoisted_5$d = { class: "home-nav-text" };
10972
10972
  const _hoisted_6$9 = {
10973
10973
  key: 1,
10974
10974
  class: "tools-list"
@@ -11235,8 +11235,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
11235
11235
  "overlay-class": "tools-tag-tooltip"
11236
11236
  }, {
11237
11237
  content: withCtx(() => [
11238
- createElementVNode("div", _hoisted_4$f, [
11239
- createElementVNode("div", _hoisted_5$c, toDisplayString$1(unref(t2)("gitCodeLayout.userSetting.menu.growthCenter")), 1)
11238
+ createElementVNode("div", _hoisted_4$g, [
11239
+ createElementVNode("div", _hoisted_5$d, toDisplayString$1(unref(t2)("gitCodeLayout.userSetting.menu.growthCenter")), 1)
11240
11240
  ])
11241
11241
  ]),
11242
11242
  default: withCtx(() => [
@@ -14608,8 +14608,10 @@ const _hoisted_1$u = {
14608
14608
  key: 0,
14609
14609
  class: "ai-home-mb-menu-wrap md:!hidden"
14610
14610
  };
14611
- const _hoisted_2$k = { class: "right-content cursor-pointer" };
14612
- const _hoisted_3$i = { class: "list-menu-ai-home" };
14611
+ const _hoisted_2$k = ["src"];
14612
+ const _hoisted_3$i = { class: "right-content cursor-pointer" };
14613
+ const _hoisted_4$f = { class: "list-menu-ai-home" };
14614
+ const _hoisted_5$c = ["src"];
14613
14615
  const _sfc_main$A = /* @__PURE__ */ defineComponent({
14614
14616
  __name: "AiHubMenusMobile",
14615
14617
  props: ["activeMenu", "menuList", "isRouterLink", "scene"],
@@ -14625,17 +14627,23 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
14625
14627
  const dynamicStyle = computed(() => !isHome.value ? "isBlack" : "isWhite");
14626
14628
  return (_ctx, _cache) => {
14627
14629
  return __props.activeMenu.menueKey ? (openBlock(), createElementBlock("section", _hoisted_1$u, [
14628
- __props.activeMenu.icon ? (openBlock(), createBlock(GIcon, {
14629
- key: 0,
14630
- class: "gt-line-ok1",
14631
- name: isHome.value ? __props.activeMenu.whiteIcon : __props.activeMenu.icon
14632
- }, null, 8, ["name"])) : createCommentVNode("", true),
14630
+ __props.activeMenu.icon || __props.activeMenu.img ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
14631
+ __props.activeMenu.img ? (openBlock(), createElementBlock("img", {
14632
+ key: 0,
14633
+ src: __props.activeMenu.img,
14634
+ class: "w-[16px]"
14635
+ }, null, 8, _hoisted_2$k)) : (openBlock(), createBlock(GIcon, {
14636
+ key: 1,
14637
+ class: "gt-line-ok1",
14638
+ name: isHome.value ? __props.activeMenu.whiteIcon : __props.activeMenu.icon
14639
+ }, null, 8, ["name"]))
14640
+ ], 64)) : createCommentVNode("", true),
14633
14641
  createVNode(unref(Dropdown), {
14634
14642
  "overlay-class": "list-menu-ai-home-drop-wrap",
14635
14643
  class: normalizeClass(["menu-bg", { "menu-bg-white": !isHome.value }])
14636
14644
  }, {
14637
14645
  menu: withCtx(() => [
14638
- createElementVNode("ul", _hoisted_3$i, [
14646
+ createElementVNode("ul", _hoisted_4$f, [
14639
14647
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.menuList, (item) => {
14640
14648
  var _a;
14641
14649
  return openBlock(), createElementBlock("li", {
@@ -14644,14 +14652,19 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
14644
14652
  }, [
14645
14653
  createVNode(GLink, {
14646
14654
  class: "icon-title-wrap w-full py-[12px]",
14647
- href: __props.isRouterLink ? void 0 : item.url,
14648
- to: __props.isRouterLink ? item.to : void 0
14655
+ href: __props.isRouterLink && item.to ? void 0 : item.url,
14656
+ to: __props.isRouterLink && item.to ? item.to : void 0
14649
14657
  }, {
14650
14658
  default: withCtx(() => [
14651
- createVNode(GIcon, {
14659
+ item.img ? (openBlock(), createElementBlock("img", {
14660
+ key: 0,
14661
+ src: item.img,
14662
+ class: "w-[16px]"
14663
+ }, null, 8, _hoisted_5$c)) : (openBlock(), createBlock(GIcon, {
14664
+ key: 1,
14652
14665
  class: "menue-icon",
14653
14666
  name: isHome.value ? item.whiteIcon : item.icon
14654
- }, null, 8, ["name"]),
14667
+ }, null, 8, ["name"])),
14655
14668
  createElementVNode("span", null, toDisplayString$1(item.label), 1)
14656
14669
  ]),
14657
14670
  _: 2
@@ -14667,7 +14680,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
14667
14680
  ])
14668
14681
  ]),
14669
14682
  default: withCtx(() => [
14670
- createElementVNode("section", _hoisted_2$k, [
14683
+ createElementVNode("section", _hoisted_3$i, [
14671
14684
  createElementVNode("span", {
14672
14685
  class: normalizeClass(["title", [dynamicStyle.value]])
14673
14686
  }, toDisplayString$1(__props.activeMenu.label), 3),
@@ -17155,13 +17168,13 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
17155
17168
  var _a;
17156
17169
  const layoutConfig2 = useLayoutConfig();
17157
17170
  const { t: $t } = i18n.global;
17158
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-C9Piqxuu.js"));
17159
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-BcEgtpS7.js"));
17160
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-DZbe1EPo.js"));
17161
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-B-He8V-f.js"));
17162
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-CawKlDDT.js"));
17163
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-cdsfO_8h.js"));
17164
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-SW8gX8Sj.js"));
17171
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-10Vyr8h_.js"));
17172
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-Bx0G5NV8.js"));
17173
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-BZb_AQ_p.js"));
17174
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-sF4YL25O.js"));
17175
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-B22z5UAY.js"));
17176
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-t4kN1J7O.js"));
17177
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-D76hxxeA.js"));
17165
17178
  const props = __props;
17166
17179
  const repoInfo = inject("repoInfo");
17167
17180
  const orgInfo = inject("orgInfo");
@@ -17782,7 +17795,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
17782
17795
  loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
17783
17796
  }
17784
17797
  };
17785
- const NoticeModal = defineAsyncComponent(() => import("./notice-CH2wVdcp.js"));
17798
+ const NoticeModal = defineAsyncComponent(() => import("./notice-DaYgpSkE.js"));
17786
17799
  function clearNotice() {
17787
17800
  if (localStorage$2.getItem("validator_email")) {
17788
17801
  localStorage$2.removeItem("validator_email");
@@ -18454,9 +18467,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18454
18467
  const layoutConfig2 = useLayoutConfig();
18455
18468
  const { t: t2 } = i18n.global;
18456
18469
  const route = useRoute();
18457
- const MenuItem = defineAsyncComponent(() => import("./MenuItem-DaeTZMCH.js"));
18458
- const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-CsMj0bCV.js"));
18459
- const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-PRXZUS8n.js"));
18470
+ const MenuItem = defineAsyncComponent(() => import("./MenuItem-DzFWRd3i.js"));
18471
+ const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-wIv5Ewd6.js"));
18472
+ const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-DFZFG7Uj.js"));
18460
18473
  const props = __props;
18461
18474
  const useReport2 = inject("useReport");
18462
18475
  const userInfo = inject("userInfo");
@@ -24001,7 +24014,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24001
24014
  }
24002
24015
  });
24003
24016
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
24004
- const SlidCaptcha = defineAsyncComponent(() => import("./index-CJ5_FXC8.js"));
24017
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-Br6vcucJ.js"));
24005
24018
  const useSlidCaptcha = () => {
24006
24019
  const { mount, unMount } = usePopup("slid-captcha-popup");
24007
24020
  const open = (config) => {
@@ -1,7 +1,7 @@
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
2
  import debounce from "lodash/debounce";
3
- import { t as transferNumber, G as GIcon, s as setLoginTriggerSource, d as useRequestReport, r as reqCatch, h as headRequest, _ as _export_sfc, a as i18n, T as TOPIC_TYPE, f as useTimeFormat, L as LANG_KEY, g as LANG_ZH, j as usePageResize, k as isGstarRepo, m as _sfc_main$9, n as isIncubationRepo, o as highlightWords, p as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-C9jGW5mh.js";
4
- import { t as transWebUrl } from "./transWebUrl-C6eX_MeF.js";
3
+ import { t as transferNumber, G as GIcon, s as setLoginTriggerSource, d as useRequestReport, r as reqCatch, h as headRequest, _ as _export_sfc, a as i18n, T as TOPIC_TYPE, f as useTimeFormat, L as LANG_KEY, g as LANG_ZH, j as usePageResize, k as isGstarRepo, m as _sfc_main$9, n as isIncubationRepo, o as highlightWords, p as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-Bxhc6nCo.js";
4
+ import { t as transWebUrl } from "./transWebUrl-DTXUrWYK.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,4 +1,4 @@
1
- import { J, K, O, I, S, H, x, Q, N, P, M } from "./index-C9jGW5mh.js";
1
+ import { J, K, O, I, S, H, x, Q, N, P, M } from "./index-Bxhc6nCo.js";
2
2
  export {
3
3
  J as GitCodeAside,
4
4
  K 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-C9jGW5mh.js";
2
+ import { i as isPhone, u as useModel } from "./index-Bxhc6nCo.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.5.68",
3
+ "version": "1.5.70",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",
@@ -1,4 +1,4 @@
1
- import { q as useLayoutConfig } from "./index-C9jGW5mh.js";
1
+ import { q as useLayoutConfig } from "./index-Bxhc6nCo.js";
2
2
  const layoutConfig = useLayoutConfig();
3
3
  const transWebUrl = (url, params) => {
4
4
  if (!url) return url;