vue-layout-gitcode 1.3.14 → 1.3.16
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-DDondZxI.js → GloabarSearch-BZI4nGJ6.js} +2 -2
- package/{ProjectSearch-Brvvbt_n.js → ProjectSearch-C8Ln8kkR.js} +1 -1
- package/{SearchHistoryList-UGXr0e9c.js → SearchHistoryList-CtbS3vo7.js} +1 -1
- package/{SearchPrefixTag-BI4E9rIE.js → SearchPrefixTag-Cm8j06Yk.js} +1 -1
- package/{SearchRecommed-MtjN74o3.js → SearchRecommed-BKVZXMJa.js} +2 -2
- package/{SearchScopeList-9nZztkiP.js → SearchScopeList-D5B-XUfv.js} +1 -1
- package/{UserSearch-DOmxC0JJ.js → UserSearch-CwWlVbfD.js} +1 -1
- package/{index-CV8yNh_6.js → index-BHt1CRSP.js} +24 -15
- package/{index-DiWr6jsD.js → index-BSK52r64.js} +1 -1
- package/{index-CQci_WA9.js → index-DqhnMgUQ.js} +1 -1
- package/index.d.ts +5 -0
- package/index.js +1 -1
- package/{notice-CCbW5YXy.js → notice-WsENv1Fj.js} +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { inject, ref, watch, onMounted, createElementBlock, createCommentVNode, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createBlock } from "vue";
|
|
2
2
|
import "vue-devui-lal/icon";
|
|
3
3
|
import "vue-devui-lal/icon/style.css";
|
|
4
|
-
import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_TYPE, e as extractRepoInfoWithURL, c as REPO_EVENT } from "./index-
|
|
5
|
-
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-
|
|
4
|
+
import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_TYPE, e as extractRepoInfoWithURL, c as REPO_EVENT } from "./index-BHt1CRSP.js";
|
|
5
|
+
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-BSK52r64.js";
|
|
6
6
|
const _hoisted_1 = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "px-[8px] history-list-project pl-[8px]"
|
|
@@ -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-BHt1CRSP.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-BHt1CRSP.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-BHt1CRSP.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, c as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-
|
|
2
|
+
import { u as useReportRepo, S as SearchRepoCard } from "./index-BSK52r64.js";
|
|
3
|
+
import { a as i18n, h as headRequest, R as REPO_MODULE, c as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-BHt1CRSP.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-BHt1CRSP.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-BHt1CRSP.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]" };
|
|
@@ -17768,13 +17768,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
17768
17768
|
setup(__props) {
|
|
17769
17769
|
var _a;
|
|
17770
17770
|
const { t: $t } = i18n.global;
|
|
17771
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
17772
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
17773
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
17774
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
17775
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
17776
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
17777
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
17771
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-C8Ln8kkR.js"));
|
|
17772
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-CwWlVbfD.js"));
|
|
17773
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-BZI4nGJ6.js"));
|
|
17774
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-CtbS3vo7.js"));
|
|
17775
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-D5B-XUfv.js"));
|
|
17776
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-Cm8j06Yk.js"));
|
|
17777
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-BKVZXMJa.js"));
|
|
17778
17778
|
const props = __props;
|
|
17779
17779
|
const repoInfo = inject("repoInfo");
|
|
17780
17780
|
const orgInfo = inject("orgInfo");
|
|
@@ -18342,7 +18342,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18342
18342
|
}
|
|
18343
18343
|
});
|
|
18344
18344
|
const Search = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
18345
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
18345
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-WsENv1Fj.js"));
|
|
18346
18346
|
function clearNotice() {
|
|
18347
18347
|
if (localStorage$2.getItem("validator_email")) {
|
|
18348
18348
|
localStorage$2.removeItem("validator_email");
|
|
@@ -18405,7 +18405,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18405
18405
|
bgConfig: { default: () => ({
|
|
18406
18406
|
index_head: "",
|
|
18407
18407
|
detail_top: "",
|
|
18408
|
-
detail_toolbar: ""
|
|
18408
|
+
detail_toolbar: "",
|
|
18409
|
+
detail_top_url: ""
|
|
18409
18410
|
}) }
|
|
18410
18411
|
},
|
|
18411
18412
|
emits: ["followDevCommunity", "followUser", "resetPwdDirectlySuccess"],
|
|
@@ -18531,16 +18532,23 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18531
18532
|
return detailBgInfo.value ? {
|
|
18532
18533
|
backgroundImage: `url(${detailBgInfo.value})`,
|
|
18533
18534
|
backgroundPosition: "center",
|
|
18534
|
-
backgroundRepeat: "no-repeat"
|
|
18535
|
+
backgroundRepeat: "no-repeat",
|
|
18536
|
+
backgroundSize: "cover"
|
|
18535
18537
|
} : {};
|
|
18536
18538
|
});
|
|
18537
18539
|
const stickyNoticeStyle = computed(() => {
|
|
18538
18540
|
return stickyNoticeInfo.value ? {
|
|
18539
18541
|
backgroundImage: `url(${stickyNoticeInfo.value})`,
|
|
18540
18542
|
backgroundPosition: "center",
|
|
18541
|
-
backgroundRepeat: "no-repeat"
|
|
18543
|
+
backgroundRepeat: "no-repeat",
|
|
18544
|
+
backgroundSize: "cover"
|
|
18542
18545
|
} : {};
|
|
18543
18546
|
});
|
|
18547
|
+
const handleStickyNoticeClick = () => {
|
|
18548
|
+
if (props.bgConfig.detail_top_url) {
|
|
18549
|
+
window.open(props.bgConfig.detail_top_url, "_blank");
|
|
18550
|
+
}
|
|
18551
|
+
};
|
|
18544
18552
|
onMounted(() => {
|
|
18545
18553
|
toNotice();
|
|
18546
18554
|
addEventListener("logout", (options) => {
|
|
@@ -18608,13 +18616,14 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18608
18616
|
}, [
|
|
18609
18617
|
stickyNoticeInfo.value && !closeStickyNotice.value ? (openBlock(), createElementBlock("div", {
|
|
18610
18618
|
key: 0,
|
|
18611
|
-
class: "w-full h-[64px]",
|
|
18612
|
-
style: normalizeStyle(stickyNoticeStyle.value)
|
|
18619
|
+
class: "w-full h-[64px] cursor-pointer",
|
|
18620
|
+
style: normalizeStyle(stickyNoticeStyle.value),
|
|
18621
|
+
onClick: handleStickyNoticeClick
|
|
18613
18622
|
}, [
|
|
18614
18623
|
createVNode(GIcon, {
|
|
18615
18624
|
class: "sticky-notice-icon",
|
|
18616
18625
|
name: "gt-close",
|
|
18617
|
-
onClick: handleCloseStickyNotice
|
|
18626
|
+
onClick: withModifiers(handleCloseStickyNotice, ["stop"])
|
|
18618
18627
|
})
|
|
18619
18628
|
], 4)) : createCommentVNode("", true),
|
|
18620
18629
|
createElementVNode("div", {
|
|
@@ -24928,7 +24937,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
24928
24937
|
}
|
|
24929
24938
|
});
|
|
24930
24939
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
24931
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
24940
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-DqhnMgUQ.js"));
|
|
24932
24941
|
const useSlidCaptcha = () => {
|
|
24933
24942
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
24934
24943
|
const open = (config) => {
|
|
@@ -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, b 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, b as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-BHt1CRSP.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 { w as useLayoutConfig, _ as _export_sfc } from "./index-
|
|
3
|
+
import { w as useLayoutConfig, _ as _export_sfc } from "./index-BHt1CRSP.js";
|
|
4
4
|
import "vue-devui-lal/overlay/style.css";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "index",
|
package/index.d.ts
CHANGED
|
@@ -310,12 +310,14 @@ export declare const GitCodeHeader: DefineComponent<ExtractPropTypes<{
|
|
|
310
310
|
index_head: string;
|
|
311
311
|
detail_top: string;
|
|
312
312
|
detail_toolbar: string;
|
|
313
|
+
detail_top_url: string;
|
|
313
314
|
} | undefined>;
|
|
314
315
|
required: false;
|
|
315
316
|
default: () => {
|
|
316
317
|
index_head: string;
|
|
317
318
|
detail_top: string;
|
|
318
319
|
detail_toolbar: string;
|
|
320
|
+
detail_top_url: string;
|
|
319
321
|
};
|
|
320
322
|
};
|
|
321
323
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("resetPwdDirectlySuccess" | "followDevCommunity" | "followUser")[], "resetPwdDirectlySuccess" | "followDevCommunity" | "followUser", PublicProps, Readonly<ExtractPropTypes<{
|
|
@@ -405,12 +407,14 @@ export declare const GitCodeHeader: DefineComponent<ExtractPropTypes<{
|
|
|
405
407
|
index_head: string;
|
|
406
408
|
detail_top: string;
|
|
407
409
|
detail_toolbar: string;
|
|
410
|
+
detail_top_url: string;
|
|
408
411
|
} | undefined>;
|
|
409
412
|
required: false;
|
|
410
413
|
default: () => {
|
|
411
414
|
index_head: string;
|
|
412
415
|
detail_top: string;
|
|
413
416
|
detail_toolbar: string;
|
|
417
|
+
detail_top_url: string;
|
|
414
418
|
};
|
|
415
419
|
};
|
|
416
420
|
}>> & Readonly<{
|
|
@@ -432,6 +436,7 @@ export declare const GitCodeHeader: DefineComponent<ExtractPropTypes<{
|
|
|
432
436
|
index_head: string;
|
|
433
437
|
detail_top: string;
|
|
434
438
|
detail_toolbar: string;
|
|
439
|
+
detail_top_url: string;
|
|
435
440
|
} | undefined;
|
|
436
441
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
437
442
|
|
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-BHt1CRSP.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";
|