vue-layout-gitcode 1.5.22 → 1.5.23
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-D3FltEhh.js → GloabarSearch-DkHz9Zz_.js} +2 -2
- package/{MenuItem-D2HskyG5.js → MenuItem-BcDTE1r_.js} +11 -1
- package/{ProjectSearch-cDK0UiDC.js → ProjectSearch-CTmfCRBU.js} +1 -1
- package/{SearchHistoryList-hnUwSPQP.js → SearchHistoryList-Cu8ePK-S.js} +1 -1
- package/{SearchPrefixTag-XlmXFjnV.js → SearchPrefixTag-DqMHg3gN.js} +1 -1
- package/{SearchRecommed-Bh_esdbP.js → SearchRecommed-D0Nomqdw.js} +2 -2
- package/{SearchScopeList-CKBt03zN.js → SearchScopeList-BofqZJX7.js} +1 -1
- package/{UserSearch-CUshyq3c.js → UserSearch-BljhZMhv.js} +1 -1
- package/{index-D34AqPB_.js → index-CpRy3d9h.js} +24 -24
- package/{index-D81-AAhb.js → index-Z6BbpwFy.js} +1 -1
- package/{index-ByCTlzyt.js → index-ey9IU_uN.js} +1 -1
- package/index.js +11 -11
- package/{notice-DPT07XxY.js → notice-C970_l70.js} +1 -1
- package/package.json +1 -1
- package/style.css +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-CpRy3d9h.js";
|
|
5
|
+
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-ey9IU_uN.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 { defineComponent, inject, ref, computed, createElementBlock, openBlock, normalizeClass, createBlock, createElementVNode, toDisplayString } from "vue";
|
|
2
|
-
import { y as
|
|
2
|
+
import { y as currentTheme, z as ThemeType, j as LANG_ZH, A as LANG_EN, B as getLocaleLang, G as GIcon, C as isHttps, D as emitEvent, b as REPO_EVENT, _ as _export_sfc } from "./index-CpRy3d9h.js";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
4
|
const _hoisted_1 = ["src"];
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -13,6 +13,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
13
|
active: {
|
|
14
14
|
type: Boolean,
|
|
15
15
|
default: false
|
|
16
|
+
},
|
|
17
|
+
isLogin: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: false
|
|
16
20
|
}
|
|
17
21
|
},
|
|
18
22
|
setup(__props) {
|
|
@@ -24,6 +28,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
28
|
return props.active || isHover.value;
|
|
25
29
|
});
|
|
26
30
|
const currentImg = computed(() => {
|
|
31
|
+
console.log("currentTheme", currentTheme.value, "left_menu_logo_black", props.item.left_menu_logo_black);
|
|
27
32
|
const imgMap = {
|
|
28
33
|
[ThemeType.WHITE]: {
|
|
29
34
|
selected: props.item.left_menu_logo_hover,
|
|
@@ -40,6 +45,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40
45
|
return imgMap[currentTheme.value].unselected;
|
|
41
46
|
}
|
|
42
47
|
});
|
|
48
|
+
console.log("currentImg", currentImg.value);
|
|
43
49
|
const currentName = computed(() => {
|
|
44
50
|
const nameMap = {
|
|
45
51
|
[LANG_EN]: props.item.left_menu_name_en,
|
|
@@ -72,6 +78,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
72
78
|
} else if (isHttps(props.item.left_menu_url)) {
|
|
73
79
|
window.location.href = props.item.left_menu_url;
|
|
74
80
|
} else {
|
|
81
|
+
if (props.item.left_menu_url != "/" && !props.isLogin) {
|
|
82
|
+
emitEvent("login", { loginTriggerSource: `aside_${props.item.left_menu_url}` });
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
75
85
|
router.push({
|
|
76
86
|
path: props.item.left_menu_url
|
|
77
87
|
});
|
|
@@ -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-CpRy3d9h.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-CpRy3d9h.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-CpRy3d9h.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-ey9IU_uN.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-CpRy3d9h.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-CpRy3d9h.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-CpRy3d9h.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-CTmfCRBU.js"));
|
|
18219
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-BljhZMhv.js"));
|
|
18220
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-DkHz9Zz_.js"));
|
|
18221
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-Cu8ePK-S.js"));
|
|
18222
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-BofqZJX7.js"));
|
|
18223
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-DqMHg3gN.js"));
|
|
18224
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-D0Nomqdw.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-C970_l70.js"));
|
|
18835
18835
|
function clearNotice() {
|
|
18836
18836
|
if (localStorage$2.getItem("validator_email")) {
|
|
18837
18837
|
localStorage$2.removeItem("validator_email");
|
|
@@ -20891,7 +20891,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
20891
20891
|
const layoutConfig2 = useLayoutConfig();
|
|
20892
20892
|
const { t: t2 } = i18n.global;
|
|
20893
20893
|
const route = useRoute();
|
|
20894
|
-
const MenuItem2 = defineAsyncComponent(() => import("./MenuItem-
|
|
20894
|
+
const MenuItem2 = defineAsyncComponent(() => import("./MenuItem-BcDTE1r_.js"));
|
|
20895
20895
|
const ProjectMenuListV22 = defineAsyncComponent(() => Promise.resolve().then(() => ProjectMenuListV2$1));
|
|
20896
20896
|
const ProjectMenuList2 = defineAsyncComponent(() => Promise.resolve().then(() => ProjectMenuList$1));
|
|
20897
20897
|
const props = __props;
|
|
@@ -20913,7 +20913,6 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
20913
20913
|
const projectProps = computed(() => {
|
|
20914
20914
|
return {
|
|
20915
20915
|
subShow: subShow.value.project,
|
|
20916
|
-
isLogin: props.isLogin,
|
|
20917
20916
|
key: "project",
|
|
20918
20917
|
type: "project",
|
|
20919
20918
|
defaultData: defaultProject.value,
|
|
@@ -20924,7 +20923,6 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
20924
20923
|
const orgProps = computed(() => {
|
|
20925
20924
|
return {
|
|
20926
20925
|
subShow: subShow.value.team,
|
|
20927
|
-
isLogin: props.isLogin,
|
|
20928
20926
|
type: "team",
|
|
20929
20927
|
defaultData: defaultOrg.value,
|
|
20930
20928
|
title: t2("gitCodeLayout.common.organize"),
|
|
@@ -21037,9 +21035,10 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
21037
21035
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item) => {
|
|
21038
21036
|
return openBlock(), createBlock(resolveDynamicComponent(renderComponent(item)), mergeProps({
|
|
21039
21037
|
key: item.id,
|
|
21038
|
+
isLogin: _ctx.isLogin,
|
|
21040
21039
|
item,
|
|
21041
21040
|
ref_for: true
|
|
21042
|
-
}, getProps(item)), null, 16, ["item"]);
|
|
21041
|
+
}, getProps(item)), null, 16, ["isLogin", "item"]);
|
|
21043
21042
|
}), 128))
|
|
21044
21043
|
]),
|
|
21045
21044
|
_: 1
|
|
@@ -26151,7 +26150,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
26151
26150
|
}
|
|
26152
26151
|
});
|
|
26153
26152
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
26154
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
26153
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-Z6BbpwFy.js"));
|
|
26155
26154
|
const useSlidCaptcha = () => {
|
|
26156
26155
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
26157
26156
|
const open = (config) => {
|
|
@@ -27860,18 +27859,19 @@ export {
|
|
|
27860
27859
|
LANG_EN as A,
|
|
27861
27860
|
getLocaleLang as B,
|
|
27862
27861
|
isHttps as C,
|
|
27863
|
-
|
|
27862
|
+
emitEvent as D,
|
|
27864
27863
|
EVENT_NAME as E,
|
|
27865
|
-
|
|
27864
|
+
ToolsFloat as F,
|
|
27866
27865
|
GIcon as G,
|
|
27867
|
-
|
|
27868
|
-
|
|
27869
|
-
|
|
27870
|
-
|
|
27866
|
+
_sfc_main as H,
|
|
27867
|
+
GitCodeAside as I,
|
|
27868
|
+
GitCodeHeader as J,
|
|
27869
|
+
useLogin as K,
|
|
27871
27870
|
LANG_KEY as L,
|
|
27872
|
-
|
|
27873
|
-
|
|
27874
|
-
|
|
27871
|
+
setLayoutConfig as M,
|
|
27872
|
+
GitCodeLayoutEmitter as N,
|
|
27873
|
+
setTheme as O,
|
|
27874
|
+
index as P,
|
|
27875
27875
|
REPO_MODULE as R,
|
|
27876
27876
|
SceneValue as S,
|
|
27877
27877
|
TOPIC_TYPE as T,
|
|
@@ -27900,6 +27900,6 @@ export {
|
|
|
27900
27900
|
vElementExposure as v,
|
|
27901
27901
|
_frEventTrack as w,
|
|
27902
27902
|
useLayoutConfig as x,
|
|
27903
|
-
|
|
27904
|
-
|
|
27903
|
+
currentTheme as y,
|
|
27904
|
+
ThemeType as z
|
|
27905
27905
|
};
|
|
@@ -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-CpRy3d9h.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-CpRy3d9h.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,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { I, J, N, H, S, F, y, P, M, O, K } from "./index-CpRy3d9h.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
I as GitCodeAside,
|
|
4
|
+
J as GitCodeHeader,
|
|
5
|
+
N as GitCodeLayoutEmitter,
|
|
6
|
+
H as Login,
|
|
7
7
|
S as SceneValue,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
F as ToolsFloat,
|
|
9
|
+
y as currentTheme,
|
|
10
|
+
P as default,
|
|
11
|
+
M as setLayoutConfig,
|
|
12
|
+
O as setTheme,
|
|
13
|
+
K as useLogin
|
|
14
14
|
};
|
|
@@ -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-CpRy3d9h.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";
|