vue-layout-gitcode 1.5.10 → 1.5.12

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,8 +1,8 @@
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-DaUSZyyh.js";
5
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-ZTM5J8Ae.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-C1c_3-Zb.js";
5
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-2ashgiLc.js";
6
6
  import "vue-devui-lal/tooltip";
7
7
  import "vue-devui-lal/tooltip/style.css";
8
8
  import "vue-router";
@@ -1,5 +1,5 @@
1
1
  import { ref, computed, createElementBlock, openBlock, normalizeClass, createBlock, createElementVNode, toDisplayString } from "vue";
2
- import { _ as _export_sfc, y as ThemeType, z as currentTheme, j as LANG_ZH, A as LANG_EN, B as getLocaleLang, G as GIcon, C as isHttps } from "./index-DaUSZyyh.js";
2
+ import { _ as _export_sfc, y as ThemeType, z as currentTheme, j as LANG_ZH, A as LANG_EN, B as getLocaleLang, G as GIcon, C as isHttps } from "./index-C1c_3-Zb.js";
3
3
  import { useRouter } from "vue-router";
4
4
  const _hoisted_1 = ["src"];
5
5
  const _sfc_main = {
@@ -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-DaUSZyyh.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-C1c_3-Zb.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-DaUSZyyh.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-C1c_3-Zb.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-DaUSZyyh.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-C1c_3-Zb.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-ZTM5J8Ae.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-DaUSZyyh.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-2ashgiLc.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-C1c_3-Zb.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-DaUSZyyh.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-C1c_3-Zb.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-DaUSZyyh.js";
2
+ import { a as i18n, h as headRequest, G as GIcon } from "./index-C1c_3-Zb.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 { 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
- import { d as debounce, t as transferNumber, G as GIcon, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, _ as _export_sfc, 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$9, o as isIncubationRepo, p as highlightWords, q as transWebUrl, w as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-DaUSZyyh.js";
2
+ import { d as debounce, t as transferNumber, G as GIcon, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, _ as _export_sfc, 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$9, o as isIncubationRepo, p as highlightWords, q as transWebUrl, w as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-C1c_3-Zb.js";
3
3
  import { useRouter } from "vue-router";
4
4
  import { Row, Col } from "vue-devui-lal/grid";
5
5
  import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";
@@ -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 { x as useLayoutConfig, _ as _export_sfc } from "./index-DaUSZyyh.js";
3
+ import { x as useLayoutConfig, _ as _export_sfc } from "./index-C1c_3-Zb.js";
4
4
  import "vue-devui-lal/overlay/style.css";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "index",
@@ -18133,13 +18133,13 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
18133
18133
  var _a;
18134
18134
  const layoutConfig2 = useLayoutConfig();
18135
18135
  const { t: $t } = i18n.global;
18136
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-DHo71YL7.js"));
18137
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-CxZYH_Hw.js"));
18138
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-VP0NWc1f.js"));
18139
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-DpWR3U31.js"));
18140
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-BVRBSbvd.js"));
18141
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-BOGP5OHl.js"));
18142
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-B5AH3q9e.js"));
18136
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-BA1wIM3N.js"));
18137
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-D2y_JubE.js"));
18138
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-CA0GfMZ4.js"));
18139
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-63-D7zgu.js"));
18140
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-BiP61VP0.js"));
18141
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-DT4YcF5q.js"));
18142
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-X0hGPlog.js"));
18143
18143
  const props = __props;
18144
18144
  const repoInfo = inject("repoInfo");
18145
18145
  const orgInfo = inject("orgInfo");
@@ -18749,7 +18749,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
18749
18749
  }
18750
18750
  });
18751
18751
  const Search = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-gitcode-layout-lib"]]);
18752
- const NoticeModal = defineAsyncComponent(() => import("./notice-DCRC2b3v.js"));
18752
+ const NoticeModal = defineAsyncComponent(() => import("./notice-MHhlZT7a.js"));
18753
18753
  function clearNotice() {
18754
18754
  if (localStorage$2.getItem("validator_email")) {
18755
18755
  localStorage$2.removeItem("validator_email");
@@ -20811,12 +20811,14 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
20811
20811
  isLogin: { type: Boolean }
20812
20812
  },
20813
20813
  setup(__props) {
20814
- const { t: t2 } = useI18n();
20814
+ const layoutConfig2 = useLayoutConfig();
20815
+ const { t: t2 } = i18n.global;
20815
20816
  const route = useRoute();
20816
- const MenuItem2 = defineAsyncComponent(() => import("./MenuItem-Bvr58z0W.js"));
20817
+ const MenuItem2 = defineAsyncComponent(() => import("./MenuItem-BYsrT2LM.js"));
20817
20818
  const ProjectMenuListV22 = defineAsyncComponent(() => Promise.resolve().then(() => ProjectMenuListV2$1));
20818
20819
  const ProjectMenuList2 = defineAsyncComponent(() => Promise.resolve().then(() => ProjectMenuList$1));
20819
20820
  const props = __props;
20821
+ const useReport2 = inject("useReport");
20820
20822
  const userInfo = inject("userInfo");
20821
20823
  const request = inject("request");
20822
20824
  const API = asideRequest(request);
@@ -20915,9 +20917,29 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
20915
20917
  }
20916
20918
  };
20917
20919
  getOrgProject();
20920
+ const onMenuClick = (e) => {
20921
+ const parentNode = e.el.parentNode;
20922
+ const openMode = (parentNode == null ? void 0 : parentNode.getAttribute("data-openBlank")) ? "_blank" : "_self";
20923
+ const url = (parentNode == null ? void 0 : parentNode.getAttribute("data-href")) || "";
20924
+ const host = (parentNode == null ? void 0 : parentNode.getAttribute("data-host")) || "";
20925
+ const key = (parentNode == null ? void 0 : parentNode.getAttribute("data-key")) || "";
20926
+ const REPOKEY = (key || "").toUpperCase();
20927
+ const reportName = ASIDE_MENU_REPO[REPOKEY] || "";
20928
+ if (reportName) {
20929
+ useReport2(REPO_EVENT.CLICK, { module_name: reportName });
20930
+ }
20931
+ if (host === layoutConfig2.VITE_AI_HOST) {
20932
+ useReport2(AsideReportEvent.AI_CLICK, {});
20933
+ }
20934
+ window.open(url, openMode);
20935
+ };
20918
20936
  return (_ctx, _cache) => {
20919
20937
  return openBlock(), createElementBlock("div", _hoisted_1$g, [
20920
- createVNode(unref(Menu), { class: "menu" }, {
20938
+ createVNode(unref(Menu), {
20939
+ class: "menu",
20940
+ onSelect: onMenuClick,
20941
+ "open-keys": ["team", "project"]
20942
+ }, {
20921
20943
  default: withCtx(() => [
20922
20944
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item) => {
20923
20945
  return openBlock(), createBlock(resolveDynamicComponent(renderComponent(item)), mergeProps({
@@ -21160,7 +21182,6 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
21160
21182
  const asideSetShow = computed(() => {
21161
21183
  return (props.sceneValue === SceneValue.home || props.collapseMode) && !props.disableFlatMode;
21162
21184
  });
21163
- console.log(11111, route.name);
21164
21185
  const isHome = computed(() => {
21165
21186
  return props.sceneValue === SceneValue.home && ["home", "issues", "kanban", "discussionCreated", "merge"].includes(route.name);
21166
21187
  });
@@ -26028,7 +26049,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
26028
26049
  }
26029
26050
  });
26030
26051
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
26031
- const SlidCaptcha = defineAsyncComponent(() => import("./index-DkD9ALND.js"));
26052
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-BN1Zxk1U.js"));
26032
26053
  const useSlidCaptcha = () => {
26033
26054
  const { mount, unMount } = usePopup("slid-captcha-popup");
26034
26055
  const open = (config) => {
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { H, I, M, F, S, D, z, O, K, N, J } from "./index-DaUSZyyh.js";
1
+ import { H, I, M, F, S, D, z, O, K, N, J } from "./index-C1c_3-Zb.js";
2
2
  export {
3
3
  H as GitCodeAside,
4
4
  I 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-DaUSZyyh.js";
2
+ import { i as isPhone, u as useModel } from "./index-C1c_3-Zb.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.10",
3
+ "version": "1.5.12",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",