vue-layout-gitcode 1.3.23 → 1.3.25
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-DYx5z1Da.js → GloabarSearch-6WFsL-u2.js} +2 -2
- package/{ProjectSearch-ButAm79X.js → ProjectSearch-ya1e6OoL.js} +1 -1
- package/{SearchHistoryList-DonFthJ7.js → SearchHistoryList-kpostvHy.js} +1 -1
- package/{SearchPrefixTag-BlgJeNxu.js → SearchPrefixTag-C-UVAa3F.js} +1 -1
- package/{SearchRecommed-DNpdx6oz.js → SearchRecommed-BFkpytID.js} +2 -2
- package/{SearchScopeList-DTdzfdMH.js → SearchScopeList-C190ytHj.js} +1 -1
- package/{UserSearch-BKDVmCTW.js → UserSearch-R1dNKzoX.js} +1 -1
- package/{index-DKFp1NIJ.js → index-DY9VX3UN.js} +1 -1
- package/{index-HOUvAjiR.js → index-DriJo7MZ.js} +1 -1
- package/{index-GfreO8FI.js → index-hyQi2LMz.js} +29 -14
- package/index.d.ts +7 -0
- package/index.js +1 -1
- package/{notice-CDW8fVCI.js → notice-DJVrqSxG.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-hyQi2LMz.js";
|
|
5
|
+
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-DriJo7MZ.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-hyQi2LMz.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-hyQi2LMz.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-hyQi2LMz.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-DriJo7MZ.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-hyQi2LMz.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-hyQi2LMz.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-hyQi2LMz.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-hyQi2LMz.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-hyQi2LMz.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";
|
|
@@ -16897,7 +16897,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
16897
16897
|
return (_ctx, _cache) => {
|
|
16898
16898
|
return openBlock(), createElementBlock("div", {
|
|
16899
16899
|
class: normalizeClass(["agent-tips", customClass.value]),
|
|
16900
|
-
onClick: goPage
|
|
16900
|
+
onClick: withModifiers(goPage, ["stop"])
|
|
16901
16901
|
}, [
|
|
16902
16902
|
loaded.value ? (openBlock(), createElementBlock("img", {
|
|
16903
16903
|
key: 0,
|
|
@@ -17859,13 +17859,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
17859
17859
|
setup(__props) {
|
|
17860
17860
|
var _a;
|
|
17861
17861
|
const { t: $t } = i18n.global;
|
|
17862
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
17863
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
17864
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
17865
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
17866
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
17867
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
17868
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
17862
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-ya1e6OoL.js"));
|
|
17863
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-R1dNKzoX.js"));
|
|
17864
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-6WFsL-u2.js"));
|
|
17865
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-kpostvHy.js"));
|
|
17866
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-C190ytHj.js"));
|
|
17867
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-C-UVAa3F.js"));
|
|
17868
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-BFkpytID.js"));
|
|
17869
17869
|
const props = __props;
|
|
17870
17870
|
const repoInfo = inject("repoInfo");
|
|
17871
17871
|
const orgInfo = inject("orgInfo");
|
|
@@ -18048,6 +18048,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18048
18048
|
onSearch();
|
|
18049
18049
|
};
|
|
18050
18050
|
const onSearchBefore = (e) => {
|
|
18051
|
+
e.stopPropagation();
|
|
18051
18052
|
if (e.keyCode === 13) {
|
|
18052
18053
|
if (activeIndex.value !== -1 && !searchStr.value) {
|
|
18053
18054
|
toSearch(searchHistoryList.value[activeIndex.value]);
|
|
@@ -18458,7 +18459,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18458
18459
|
}
|
|
18459
18460
|
});
|
|
18460
18461
|
const Search = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
18461
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
18462
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-DJVrqSxG.js"));
|
|
18462
18463
|
function clearNotice() {
|
|
18463
18464
|
if (localStorage$2.getItem("validator_email")) {
|
|
18464
18465
|
localStorage$2.removeItem("validator_email");
|
|
@@ -18521,7 +18522,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18521
18522
|
index_head: "",
|
|
18522
18523
|
detail_top: "",
|
|
18523
18524
|
detail_toolbar: "",
|
|
18524
|
-
detail_top_url: ""
|
|
18525
|
+
detail_top_url: "",
|
|
18526
|
+
index_head_url: "",
|
|
18527
|
+
detail_toolbar_url: ""
|
|
18525
18528
|
}) }
|
|
18526
18529
|
},
|
|
18527
18530
|
emits: ["followDevCommunity", "followUser", "resetPwdDirectlySuccess"],
|
|
@@ -18634,8 +18637,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18634
18637
|
const isIndexHead = computed(() => {
|
|
18635
18638
|
return props.bgConfig.index_head && isHome.value && window.location.pathname === "/";
|
|
18636
18639
|
});
|
|
18640
|
+
const homeTabPage = ["/issues", "/pulls", "/kanban", "/discussions"];
|
|
18637
18641
|
const isShowStickyNotice = computed(() => {
|
|
18638
|
-
return ([SceneValue.repo, SceneValue.org, SceneValue.user, SceneValue.aiRepo].includes(props.sceneValue) || isHome.value && window.location.pathname
|
|
18642
|
+
return ([SceneValue.repo, SceneValue.org, SceneValue.user, SceneValue.aiRepo].includes(props.sceneValue) || isHome.value && window.location.pathname != "/" && !homeTabPage.includes(window.location.pathname)) && props.bgConfig.detail_toolbar;
|
|
18639
18643
|
});
|
|
18640
18644
|
const stickyNoticeInfo = computed(() => {
|
|
18641
18645
|
return isShowStickyNotice.value ? props.bgConfig.detail_top : "";
|
|
@@ -18673,6 +18677,16 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18673
18677
|
window.open(props.bgConfig.index_head_url, "_blank");
|
|
18674
18678
|
}
|
|
18675
18679
|
};
|
|
18680
|
+
const handleToolbarClick = (e) => {
|
|
18681
|
+
console.log("handleToolbarClick", e);
|
|
18682
|
+
if (!e.target.classList.contains("allow-click-stop")) {
|
|
18683
|
+
return;
|
|
18684
|
+
}
|
|
18685
|
+
if (isShowStickyNotice.value && props.bgConfig.detail_toolbar_url) {
|
|
18686
|
+
window.open(props.bgConfig.detail_toolbar_url, "_blank");
|
|
18687
|
+
}
|
|
18688
|
+
window.open("https://www.baidu.com", "_blank");
|
|
18689
|
+
};
|
|
18676
18690
|
onMounted(() => {
|
|
18677
18691
|
toNotice();
|
|
18678
18692
|
addEventListener("logout", (options) => {
|
|
@@ -18752,8 +18766,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18752
18766
|
})
|
|
18753
18767
|
], 4)) : createCommentVNode("", true),
|
|
18754
18768
|
createElementVNode("div", {
|
|
18755
|
-
class: normalizeClass(["g-toolbar w-full overflow-hidden bg-[var(--theme-default-bg)]", [isHome.value && showHeaderShadow.value ? "head-shadow" : "", _ctx.headerBorder ? "oldBorder" : "", headerClassName.value, isIndexHead.value && !showHeaderShadow.value ? "g-toolbar-index-head" : ""]]),
|
|
18756
|
-
style: normalizeStyle(detailBgStyle.value)
|
|
18769
|
+
class: normalizeClass(["g-toolbar w-full overflow-hidden bg-[var(--theme-default-bg)] allow-click-stop", [isHome.value && showHeaderShadow.value ? "head-shadow" : "", _ctx.headerBorder ? "oldBorder" : "", headerClassName.value, isIndexHead.value && !showHeaderShadow.value ? "g-toolbar-index-head" : ""]]),
|
|
18770
|
+
style: normalizeStyle(detailBgStyle.value),
|
|
18771
|
+
onClick: withModifiers(handleToolbarClick, ["stop"])
|
|
18757
18772
|
}, [
|
|
18758
18773
|
createElementVNode("div", {
|
|
18759
18774
|
class: normalizeClass(["g-toolbar-left items-center allow-click-stop", { "flex-[1] min-w-0": !inAIHub.value }])
|
|
@@ -25062,7 +25077,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
25062
25077
|
}
|
|
25063
25078
|
});
|
|
25064
25079
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
25065
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
25080
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-DY9VX3UN.js"));
|
|
25066
25081
|
const useSlidCaptcha = () => {
|
|
25067
25082
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
25068
25083
|
const open = (config) => {
|
package/index.d.ts
CHANGED
|
@@ -312,6 +312,7 @@ export declare const GitCodeHeader: DefineComponent<ExtractPropTypes<{
|
|
|
312
312
|
detail_toolbar: string;
|
|
313
313
|
detail_top_url: string;
|
|
314
314
|
index_head_url: string;
|
|
315
|
+
detail_toolbar_url: string;
|
|
315
316
|
} | undefined>;
|
|
316
317
|
required: false;
|
|
317
318
|
default: () => {
|
|
@@ -319,6 +320,8 @@ export declare const GitCodeHeader: DefineComponent<ExtractPropTypes<{
|
|
|
319
320
|
detail_top: string;
|
|
320
321
|
detail_toolbar: string;
|
|
321
322
|
detail_top_url: string;
|
|
323
|
+
index_head_url: string;
|
|
324
|
+
detail_toolbar_url: string;
|
|
322
325
|
};
|
|
323
326
|
};
|
|
324
327
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("resetPwdDirectlySuccess" | "followDevCommunity" | "followUser")[], "resetPwdDirectlySuccess" | "followDevCommunity" | "followUser", PublicProps, Readonly<ExtractPropTypes<{
|
|
@@ -410,6 +413,7 @@ export declare const GitCodeHeader: DefineComponent<ExtractPropTypes<{
|
|
|
410
413
|
detail_toolbar: string;
|
|
411
414
|
detail_top_url: string;
|
|
412
415
|
index_head_url: string;
|
|
416
|
+
detail_toolbar_url: string;
|
|
413
417
|
} | undefined>;
|
|
414
418
|
required: false;
|
|
415
419
|
default: () => {
|
|
@@ -417,6 +421,8 @@ export declare const GitCodeHeader: DefineComponent<ExtractPropTypes<{
|
|
|
417
421
|
detail_top: string;
|
|
418
422
|
detail_toolbar: string;
|
|
419
423
|
detail_top_url: string;
|
|
424
|
+
index_head_url: string;
|
|
425
|
+
detail_toolbar_url: string;
|
|
420
426
|
};
|
|
421
427
|
};
|
|
422
428
|
}>> & Readonly<{
|
|
@@ -440,6 +446,7 @@ export declare const GitCodeHeader: DefineComponent<ExtractPropTypes<{
|
|
|
440
446
|
detail_toolbar: string;
|
|
441
447
|
detail_top_url: string;
|
|
442
448
|
index_head_url: string;
|
|
449
|
+
detail_toolbar_url: string;
|
|
443
450
|
} | undefined;
|
|
444
451
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
445
452
|
|
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-hyQi2LMz.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";
|