vue-layout-gitcode 1.5.19 → 1.5.21
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.
- package/{GloabarSearch-D-H_VTBh.js → GloabarSearch-B1sxRIzV.js} +2 -2
- package/{MenuItem-DeOVYMYs.js → MenuItem-Ba3_OmXu.js} +15 -4
- package/{ProjectSearch-DRk7vdZ2.js → ProjectSearch-BmzvkTDx.js} +1 -1
- package/{SearchHistoryList-CBQUKsrk.js → SearchHistoryList-CoEKxYuo.js} +1 -1
- package/{SearchPrefixTag-B8XiSmmb.js → SearchPrefixTag-DQDcIiNp.js} +1 -1
- package/{SearchRecommed-BHhR3S7B.js → SearchRecommed-CUQHMmAS.js} +2 -2
- package/{SearchScopeList-OJoCyUf-.js → SearchScopeList-DjpAbCrw.js} +1 -1
- package/{UserSearch-BND8lzxl.js → UserSearch-CrnLmeBI.js} +1 -1
- package/{index-CERylfaB.js → index-CMs24Cvb.js} +14 -13
- package/{index-CnlCQcsz.js → index-Dt3kXyam.js} +1 -1
- package/{index-DfCAV_j6.js → index-YmqhiEu4.js} +1 -1
- package/index.js +1 -1
- package/{notice-BSVRFFuz.js → notice-B-gdMCIm.js} +1 -1
- package/package.json +1 -1
|
@@ -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-
|
|
5
|
-
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-
|
|
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-CMs24Cvb.js";
|
|
5
|
+
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-YmqhiEu4.js";
|
|
6
6
|
import "vue-devui-lal/tooltip";
|
|
7
7
|
import "vue-devui-lal/tooltip/style.css";
|
|
8
8
|
import "vue-router";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ref, computed, createElementBlock, openBlock, normalizeClass, createBlock, createElementVNode, toDisplayString } from "vue";
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent, inject, ref, computed, createElementBlock, openBlock, normalizeClass, createBlock, createElementVNode, toDisplayString } from "vue";
|
|
2
|
+
import { y as ThemeType, z as currentTheme, j as LANG_ZH, A as LANG_EN, B as getLocaleLang, G as GIcon, C as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-CMs24Cvb.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
4
|
const _hoisted_1 = ["src"];
|
|
5
|
-
const _sfc_main = {
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "MenuItem",
|
|
7
7
|
props: {
|
|
8
8
|
item: {
|
|
@@ -16,6 +16,7 @@ const _sfc_main = {
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
setup(__props) {
|
|
19
|
+
const useReport = inject("useReport");
|
|
19
20
|
const router = useRouter();
|
|
20
21
|
const props = __props;
|
|
21
22
|
const isHover = ref(false);
|
|
@@ -52,6 +53,15 @@ const _sfc_main = {
|
|
|
52
53
|
const handleMouseLeave = () => {
|
|
53
54
|
isHover.value = false;
|
|
54
55
|
};
|
|
56
|
+
const clickMenuReport = () => {
|
|
57
|
+
if (!useReport) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
const reportName = props.item.left_menu_name_cn;
|
|
61
|
+
if (reportName) {
|
|
62
|
+
useReport(REPO_EVENT.CLICK, { module_name: `侧边栏_${reportName}` });
|
|
63
|
+
}
|
|
64
|
+
};
|
|
55
65
|
const handleMenuClick = () => {
|
|
56
66
|
const currentHref = window.location.href;
|
|
57
67
|
if (props.item.left_menu_url === currentHref) {
|
|
@@ -66,6 +76,7 @@ const _sfc_main = {
|
|
|
66
76
|
path: props.item.left_menu_url
|
|
67
77
|
});
|
|
68
78
|
}
|
|
79
|
+
clickMenuReport();
|
|
69
80
|
};
|
|
70
81
|
return (_ctx, _cache) => {
|
|
71
82
|
return openBlock(), createElementBlock("div", {
|
|
@@ -90,7 +101,7 @@ const _sfc_main = {
|
|
|
90
101
|
], 34);
|
|
91
102
|
};
|
|
92
103
|
}
|
|
93
|
-
};
|
|
104
|
+
});
|
|
94
105
|
const MenuItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
95
106
|
export {
|
|
96
107
|
MenuItem as default
|
|
@@ -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-
|
|
2
|
+
import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-CMs24Cvb.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-
|
|
2
|
+
import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-CMs24Cvb.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-
|
|
2
|
+
import { G as GIcon, _ as _export_sfc } from "./index-CMs24Cvb.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-
|
|
3
|
-
import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-
|
|
2
|
+
import { u as useReportRepo, S as SearchRepoCard } from "./index-YmqhiEu4.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-CMs24Cvb.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-
|
|
2
|
+
import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-CMs24Cvb.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-
|
|
2
|
+
import { a as i18n, h as headRequest, G as GIcon } from "./index-CMs24Cvb.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]" };
|
|
@@ -18215,13 +18215,13 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
18215
18215
|
var _a;
|
|
18216
18216
|
const layoutConfig2 = useLayoutConfig();
|
|
18217
18217
|
const { t: $t } = i18n.global;
|
|
18218
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
18219
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
18220
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
18221
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
18222
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
18223
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
18224
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
18218
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-BmzvkTDx.js"));
|
|
18219
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-CrnLmeBI.js"));
|
|
18220
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-B1sxRIzV.js"));
|
|
18221
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-CoEKxYuo.js"));
|
|
18222
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-DjpAbCrw.js"));
|
|
18223
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-DQDcIiNp.js"));
|
|
18224
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-CUQHMmAS.js"));
|
|
18225
18225
|
const props = __props;
|
|
18226
18226
|
const repoInfo = inject("repoInfo");
|
|
18227
18227
|
const orgInfo = inject("orgInfo");
|
|
@@ -18831,7 +18831,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
18831
18831
|
}
|
|
18832
18832
|
});
|
|
18833
18833
|
const Search = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
18834
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
18834
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-B-gdMCIm.js"));
|
|
18835
18835
|
function clearNotice() {
|
|
18836
18836
|
if (localStorage$2.getItem("validator_email")) {
|
|
18837
18837
|
localStorage$2.removeItem("validator_email");
|
|
@@ -20814,7 +20814,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
20814
20814
|
});
|
|
20815
20815
|
const AsideContent = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
20816
20816
|
const useConfigSide = (request) => {
|
|
20817
|
-
|
|
20817
|
+
useLayoutConfig();
|
|
20818
20818
|
const API = asideRequest(request);
|
|
20819
20819
|
const route = useRoute();
|
|
20820
20820
|
const isEn = computed(() => {
|
|
@@ -20841,7 +20841,7 @@ const useConfigSide = (request) => {
|
|
|
20841
20841
|
left_menu_logo_hover: "gt-plane-home-2",
|
|
20842
20842
|
left_menu_logo_hover_black: "gt-plane-home-2",
|
|
20843
20843
|
search_type: 1,
|
|
20844
|
-
left_menu_url:
|
|
20844
|
+
left_menu_url: "/",
|
|
20845
20845
|
id: 0
|
|
20846
20846
|
}
|
|
20847
20847
|
];
|
|
@@ -20888,7 +20888,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
20888
20888
|
const layoutConfig2 = useLayoutConfig();
|
|
20889
20889
|
const { t: t2 } = i18n.global;
|
|
20890
20890
|
const route = useRoute();
|
|
20891
|
-
const MenuItem2 = defineAsyncComponent(() => import("./MenuItem-
|
|
20891
|
+
const MenuItem2 = defineAsyncComponent(() => import("./MenuItem-Ba3_OmXu.js"));
|
|
20892
20892
|
const ProjectMenuListV22 = defineAsyncComponent(() => Promise.resolve().then(() => ProjectMenuListV2$1));
|
|
20893
20893
|
const ProjectMenuList2 = defineAsyncComponent(() => Promise.resolve().then(() => ProjectMenuList$1));
|
|
20894
20894
|
const props = __props;
|
|
@@ -21187,6 +21187,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
21187
21187
|
isScroll.value = false;
|
|
21188
21188
|
};
|
|
21189
21189
|
const handleAsideMenuExpo = (type) => {
|
|
21190
|
+
console.log("handleAsideMenuExpo", type);
|
|
21190
21191
|
useReport2(REPO_EVENT.SHOW, { module_name: ASIDE_MENU_REPO.ASIDEEXPO });
|
|
21191
21192
|
};
|
|
21192
21193
|
return (_ctx, _cache) => {
|
|
@@ -21225,7 +21226,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
21225
21226
|
})
|
|
21226
21227
|
])
|
|
21227
21228
|
])), [
|
|
21228
|
-
[_directive_element_exposure, { trigger: (type) => handleAsideMenuExpo() }]
|
|
21229
|
+
[_directive_element_exposure, { trigger: (type) => handleAsideMenuExpo(type) }]
|
|
21229
21230
|
])
|
|
21230
21231
|
], 34)
|
|
21231
21232
|
]),
|
|
@@ -26138,7 +26139,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
26138
26139
|
}
|
|
26139
26140
|
});
|
|
26140
26141
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
26141
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
26142
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-Dt3kXyam.js"));
|
|
26142
26143
|
const useSlidCaptcha = () => {
|
|
26143
26144
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
26144
26145
|
const open = (config) => {
|
|
@@ -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-
|
|
3
|
+
import { x as useLayoutConfig, _ as _export_sfc } from "./index-CMs24Cvb.js";
|
|
4
4
|
import "vue-devui-lal/overlay/style.css";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "index",
|
|
@@ -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-
|
|
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-CMs24Cvb.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";
|
package/index.js
CHANGED
|
@@ -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-
|
|
2
|
+
import { i as isPhone, u as useModel } from "./index-CMs24Cvb.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";
|