vue-layout-gitcode 1.3.35 → 1.3.36
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-CEMWMCK1.js → GloabarSearch-B3vGpROj.js} +2 -2
- package/{ProjectSearch-BNrSMhdu.js → ProjectSearch-8CSEVMRv.js} +1 -1
- package/{SearchHistoryList-DEJ5U1BL.js → SearchHistoryList-DddGLd8X.js} +1 -1
- package/{SearchPrefixTag-Cc9VUnNq.js → SearchPrefixTag-C60r-Mw5.js} +1 -1
- package/{SearchRecommed-B2UiJbaY.js → SearchRecommed-BmmfMYRJ.js} +2 -2
- package/{SearchScopeList-D8THv6dg.js → SearchScopeList-BpRayWS1.js} +1 -1
- package/{UserSearch-BcvA5w6_.js → UserSearch-B27EKYf8.js} +1 -1
- package/{index-ErVr-3Lw.js → index-B9L9HJmZ.js} +1 -1
- package/{index-t0WPxKve.js → index-DfUrLKWV.js} +1 -1
- package/{index-Cr3bKdpI.js → index-JbmBhc8o.js} +33 -21
- package/index.js +1 -1
- package/{notice-YtZkV17M.js → notice-BQiiCjtx.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, 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, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-JbmBhc8o.js";
|
|
5
|
+
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-DfUrLKWV.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, 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-JbmBhc8o.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-JbmBhc8o.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-JbmBhc8o.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-DfUrLKWV.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-JbmBhc8o.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-JbmBhc8o.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-JbmBhc8o.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 { w as useLayoutConfig, _ as _export_sfc } from "./index-
|
|
3
|
+
import { w as useLayoutConfig, _ as _export_sfc } from "./index-JbmBhc8o.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, reactive, withCtx } 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$8, o as isIncubationRepo, p as highlightWords, q as transWebUrl, v 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$8, o as isIncubationRepo, p as highlightWords, q as transWebUrl, v as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-JbmBhc8o.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";
|
|
@@ -17449,6 +17449,12 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
17449
17449
|
});
|
|
17450
17450
|
return data;
|
|
17451
17451
|
};
|
|
17452
|
+
const userMenusFormat = computed(() => {
|
|
17453
|
+
if (props.userMenus) {
|
|
17454
|
+
return menueDataFormat(props.userMenus);
|
|
17455
|
+
}
|
|
17456
|
+
return [];
|
|
17457
|
+
});
|
|
17452
17458
|
const baseRouterMeus = [
|
|
17453
17459
|
[
|
|
17454
17460
|
{ id: "dashboard", label: t2("gitCodeLayout.header.workbench"), icon: "gt-plane-user", to: getRouterLink("dashboard") },
|
|
@@ -17466,12 +17472,15 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
17466
17472
|
{ id: "logout", label: t2("gitCodeLayout.header.logout"), icon: "gt-default", action: logout }
|
|
17467
17473
|
]
|
|
17468
17474
|
];
|
|
17469
|
-
const routerHref = computed(() =>
|
|
17470
|
-
|
|
17471
|
-
[
|
|
17472
|
-
|
|
17473
|
-
|
|
17474
|
-
|
|
17475
|
+
const routerHref = computed(() => {
|
|
17476
|
+
var _a;
|
|
17477
|
+
return [
|
|
17478
|
+
...((_a = userMenusFormat.value) == null ? void 0 : _a.length) ? userMenusFormat.value : baseRouterMeus,
|
|
17479
|
+
[
|
|
17480
|
+
{ id: "logout", label: t2("gitCodeLayout.header.logout"), icon: "gt-default", action: logout }
|
|
17481
|
+
]
|
|
17482
|
+
];
|
|
17483
|
+
});
|
|
17475
17484
|
const baseHrefMeus = [
|
|
17476
17485
|
[
|
|
17477
17486
|
{ id: "dashboard", label: t2("gitCodeLayout.header.workbench"), icon: "gt-plane-user", link: "/dashboard" },
|
|
@@ -17486,12 +17495,15 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
17486
17495
|
{ id: "help", label: t2("gitCodeLayout.header.helpDocument"), icon: "gt-plane-project-opened", target: "_blank", href: HELP_DOCS_URL }
|
|
17487
17496
|
]
|
|
17488
17497
|
];
|
|
17489
|
-
const hrefList = computed(() =>
|
|
17490
|
-
|
|
17491
|
-
[
|
|
17492
|
-
|
|
17493
|
-
|
|
17494
|
-
|
|
17498
|
+
const hrefList = computed(() => {
|
|
17499
|
+
var _a;
|
|
17500
|
+
return [
|
|
17501
|
+
...((_a = userMenusFormat.value) == null ? void 0 : _a.length) ? userMenusFormat.value : baseHrefMeus,
|
|
17502
|
+
[
|
|
17503
|
+
{ id: "logout", label: t2("gitCodeLayout.header.logout"), icon: "gt-default", action: logout }
|
|
17504
|
+
]
|
|
17505
|
+
];
|
|
17506
|
+
});
|
|
17495
17507
|
function handleClick(item) {
|
|
17496
17508
|
if (item == null ? void 0 : item.action) {
|
|
17497
17509
|
item.action();
|
|
@@ -17915,13 +17927,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
17915
17927
|
var _a;
|
|
17916
17928
|
const layoutConfig2 = useLayoutConfig();
|
|
17917
17929
|
const { t: $t } = i18n.global;
|
|
17918
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
17919
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
17920
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
17921
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
17922
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
17923
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
17924
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
17930
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-8CSEVMRv.js"));
|
|
17931
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-B27EKYf8.js"));
|
|
17932
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-B3vGpROj.js"));
|
|
17933
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-DddGLd8X.js"));
|
|
17934
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-BpRayWS1.js"));
|
|
17935
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-C60r-Mw5.js"));
|
|
17936
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-BmmfMYRJ.js"));
|
|
17925
17937
|
const props = __props;
|
|
17926
17938
|
const repoInfo = inject("repoInfo");
|
|
17927
17939
|
const orgInfo = inject("orgInfo");
|
|
@@ -18525,7 +18537,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18525
18537
|
}
|
|
18526
18538
|
});
|
|
18527
18539
|
const Search = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
18528
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
18540
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-BQiiCjtx.js"));
|
|
18529
18541
|
function clearNotice() {
|
|
18530
18542
|
if (localStorage$2.getItem("validator_email")) {
|
|
18531
18543
|
localStorage$2.removeItem("validator_email");
|
|
@@ -25159,7 +25171,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
25159
25171
|
}
|
|
25160
25172
|
});
|
|
25161
25173
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
25162
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
25174
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-B9L9HJmZ.js"));
|
|
25163
25175
|
const useSlidCaptcha = () => {
|
|
25164
25176
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
25165
25177
|
const open = (config) => {
|
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-JbmBhc8o.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";
|