vue-layout-gitcode 1.5.12 → 1.5.14
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-CA0GfMZ4.js → GloabarSearch-QIbVMwsv.js} +2 -2
- package/{MenuItem-BYsrT2LM.js → MenuItem-CE0MNV2N.js} +1 -1
- package/{ProjectSearch-BA1wIM3N.js → ProjectSearch-e2jbhVZ0.js} +1 -1
- package/{SearchHistoryList-63-D7zgu.js → SearchHistoryList-eLzoS_BT.js} +1 -1
- package/{SearchPrefixTag-DT4YcF5q.js → SearchPrefixTag-CvbSmJND.js} +1 -1
- package/{SearchRecommed-X0hGPlog.js → SearchRecommed-0YoSbwvK.js} +2 -2
- package/{SearchScopeList-BiP61VP0.js → SearchScopeList-DfS5e4ad.js} +1 -1
- package/{UserSearch-D2y_JubE.js → UserSearch-BEKGyBma.js} +1 -1
- package/{index-2ashgiLc.js → index-8FqJc_Xu.js} +1 -1
- package/{index-C1c_3-Zb.js → index-BchWl9qZ.js} +45 -30
- package/{index-BN1Zxk1U.js → index-f00aETfK.js} +1 -1
- package/index.js +1 -1
- package/{notice-MHhlZT7a.js → notice-ByFQcjwy.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-BchWl9qZ.js";
|
|
5
|
+
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-8FqJc_Xu.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-
|
|
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-BchWl9qZ.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-
|
|
2
|
+
import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-BchWl9qZ.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-BchWl9qZ.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-BchWl9qZ.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-8FqJc_Xu.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-BchWl9qZ.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-BchWl9qZ.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-BchWl9qZ.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-
|
|
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-BchWl9qZ.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";
|
|
@@ -455,7 +455,7 @@ var AsideReportEvent = /* @__PURE__ */ ((AsideReportEvent2) => {
|
|
|
455
455
|
return AsideReportEvent2;
|
|
456
456
|
})(AsideReportEvent || {});
|
|
457
457
|
const AICopilot_ROUTE_NAME = "aiCopilot";
|
|
458
|
-
const HELP_DOCS_URL
|
|
458
|
+
const HELP_DOCS_URL = "https://docs.gitcode.com";
|
|
459
459
|
const MENU_ITEM_ROUTE_NAME = ["home", "gStar", "trusted", "aiCopilot", "kanban", "contributed", "issues", "merge", "discussionCreated", "explore", "userFollowing", "userStars", "ai"];
|
|
460
460
|
const HOMEWEB_APP_NAME = "micoro-app-homeweb-app";
|
|
461
461
|
const AVATAR_VISITED_DATE = "avatar-visitedDate";
|
|
@@ -17733,7 +17733,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
17733
17733
|
],
|
|
17734
17734
|
[
|
|
17735
17735
|
{ id: "personalSetting", label: t2("gitCodeLayout.header.personSetting"), icon: "gt-plane-setting", to: getRouterLink("setting") },
|
|
17736
|
-
{ id: "help", label: t2("gitCodeLayout.header.helpDocument"), icon: "gt-plane-project-opened", href: HELP_DOCS_URL
|
|
17736
|
+
{ id: "help", label: t2("gitCodeLayout.header.helpDocument"), icon: "gt-plane-project-opened", href: HELP_DOCS_URL }
|
|
17737
17737
|
]
|
|
17738
17738
|
];
|
|
17739
17739
|
const routerHref = computed(() => {
|
|
@@ -17756,7 +17756,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
17756
17756
|
],
|
|
17757
17757
|
[
|
|
17758
17758
|
{ id: "personalSetting", label: t2("gitCodeLayout.header.personSetting"), icon: "gt-plane-setting", link: "/setting" },
|
|
17759
|
-
{ id: "help", label: t2("gitCodeLayout.header.helpDocument"), icon: "gt-plane-project-opened", target: "_blank", href: HELP_DOCS_URL
|
|
17759
|
+
{ id: "help", label: t2("gitCodeLayout.header.helpDocument"), icon: "gt-plane-project-opened", target: "_blank", href: HELP_DOCS_URL }
|
|
17760
17760
|
]
|
|
17761
17761
|
];
|
|
17762
17762
|
const hrefList = computed(() => {
|
|
@@ -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-
|
|
18137
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
18138
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
18139
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
18140
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
18141
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
18142
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
18136
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-e2jbhVZ0.js"));
|
|
18137
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-BEKGyBma.js"));
|
|
18138
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-QIbVMwsv.js"));
|
|
18139
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-eLzoS_BT.js"));
|
|
18140
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-DfS5e4ad.js"));
|
|
18141
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-CvbSmJND.js"));
|
|
18142
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-0YoSbwvK.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-
|
|
18752
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-ByFQcjwy.js"));
|
|
18753
18753
|
function clearNotice() {
|
|
18754
18754
|
if (localStorage$2.getItem("validator_email")) {
|
|
18755
18755
|
localStorage$2.removeItem("validator_email");
|
|
@@ -20615,7 +20615,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
20615
20615
|
createVNode(GLink, {
|
|
20616
20616
|
class: "custom-link",
|
|
20617
20617
|
target: "_blank",
|
|
20618
|
-
href: unref(HELP_DOCS_URL
|
|
20618
|
+
href: unref(HELP_DOCS_URL)
|
|
20619
20619
|
}, {
|
|
20620
20620
|
default: withCtx(() => [
|
|
20621
20621
|
createVNode(GIcon, {
|
|
@@ -20814,7 +20814,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
20814
20814
|
const layoutConfig2 = useLayoutConfig();
|
|
20815
20815
|
const { t: t2 } = i18n.global;
|
|
20816
20816
|
const route = useRoute();
|
|
20817
|
-
const MenuItem2 = defineAsyncComponent(() => import("./MenuItem-
|
|
20817
|
+
const MenuItem2 = defineAsyncComponent(() => import("./MenuItem-CE0MNV2N.js"));
|
|
20818
20818
|
const ProjectMenuListV22 = defineAsyncComponent(() => Promise.resolve().then(() => ProjectMenuListV2$1));
|
|
20819
20819
|
const ProjectMenuList2 = defineAsyncComponent(() => Promise.resolve().then(() => ProjectMenuList$1));
|
|
20820
20820
|
const props = __props;
|
|
@@ -20882,6 +20882,12 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
20882
20882
|
}
|
|
20883
20883
|
return MenuItem2;
|
|
20884
20884
|
};
|
|
20885
|
+
const hasOrg = computed(() => {
|
|
20886
|
+
return props.list.some((item) => isOrganization(item));
|
|
20887
|
+
});
|
|
20888
|
+
const hasProject = computed(() => {
|
|
20889
|
+
return props.list.some((item) => isProject(item));
|
|
20890
|
+
});
|
|
20885
20891
|
const defaultProject = ref({ loading: true });
|
|
20886
20892
|
const defaultOrg = ref({});
|
|
20887
20893
|
const getOrgProject = async () => {
|
|
@@ -20892,21 +20898,31 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
20892
20898
|
defaultProject.value = {
|
|
20893
20899
|
loading: true
|
|
20894
20900
|
};
|
|
20895
|
-
|
|
20896
|
-
|
|
20897
|
-
|
|
20898
|
-
|
|
20899
|
-
|
|
20900
|
-
|
|
20901
|
-
|
|
20902
|
-
|
|
20903
|
-
|
|
20904
|
-
|
|
20905
|
-
|
|
20906
|
-
|
|
20907
|
-
|
|
20908
|
-
|
|
20909
|
-
|
|
20901
|
+
if (hasProject.value) {
|
|
20902
|
+
loadUserProjectsInvolved((params) => API.getMyProjectsInvolved(params), {
|
|
20903
|
+
per_page: 50
|
|
20904
|
+
}).then((res) => {
|
|
20905
|
+
defaultProject.value = res;
|
|
20906
|
+
});
|
|
20907
|
+
}
|
|
20908
|
+
if (hasOrg.value) {
|
|
20909
|
+
loadAsideData(
|
|
20910
|
+
(params) => API.getMyGroups(params),
|
|
20911
|
+
{
|
|
20912
|
+
page: 1,
|
|
20913
|
+
per_page: 10
|
|
20914
|
+
},
|
|
20915
|
+
"team"
|
|
20916
|
+
).then((res) => {
|
|
20917
|
+
defaultOrg.value = res;
|
|
20918
|
+
});
|
|
20919
|
+
}
|
|
20920
|
+
defaultOrg.value = {
|
|
20921
|
+
loading: false
|
|
20922
|
+
};
|
|
20923
|
+
defaultProject.value = {
|
|
20924
|
+
loading: false
|
|
20925
|
+
};
|
|
20910
20926
|
} else {
|
|
20911
20927
|
defaultOrg.value = {
|
|
20912
20928
|
loading: false
|
|
@@ -21004,7 +21020,6 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
21004
21020
|
};
|
|
21005
21021
|
}
|
|
21006
21022
|
});
|
|
21007
|
-
const HELP_DOCS_URL = "https://gitcode.com/Gitcode-offical-team/GitCode-Docs/blob/main/docs/zh-CN/index.md";
|
|
21008
21023
|
const FEEDBACK_CENTER_URL = "https://gitcode.com/Gitcode-offical-team/GitCode-Docs/issues";
|
|
21009
21024
|
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
21010
21025
|
__name: "SubMenuList",
|
|
@@ -26049,7 +26064,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
26049
26064
|
}
|
|
26050
26065
|
});
|
|
26051
26066
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
26052
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
26067
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-f00aETfK.js"));
|
|
26053
26068
|
const useSlidCaptcha = () => {
|
|
26054
26069
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
26055
26070
|
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-BchWl9qZ.js";
|
|
4
4
|
import "vue-devui-lal/overlay/style.css";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "index",
|
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-BchWl9qZ.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";
|