vue-layout-gitcode 1.3.16 → 1.3.18
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-BZI4nGJ6.js → GloabarSearch-Bivgs3eE.js} +2 -2
- package/{ProjectSearch-C8Ln8kkR.js → ProjectSearch-DihKoxUn.js} +1 -1
- package/{SearchHistoryList-CtbS3vo7.js → SearchHistoryList-CsKVa3LP.js} +1 -1
- package/{SearchPrefixTag-Cm8j06Yk.js → SearchPrefixTag-_SwFGdMW.js} +1 -1
- package/{SearchRecommed-BKVZXMJa.js → SearchRecommed--tgQhVky.js} +2 -2
- package/{SearchScopeList-D5B-XUfv.js → SearchScopeList-B7g-rtZk.js} +1 -1
- package/{UserSearch-CwWlVbfD.js → UserSearch-CCUEwW3n.js} +1 -1
- package/{index-BHt1CRSP.js → index-CEapdIQY.js} +25 -15
- package/{index-BSK52r64.js → index-CeR5y-VD.js} +1 -1
- package/{index-DqhnMgUQ.js → index-DeLP5ZuC.js} +1 -1
- package/index.d.ts +3 -0
- package/index.js +1 -1
- package/{notice-WsENv1Fj.js → notice-C3yB7SLa.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-CEapdIQY.js";
|
|
5
|
+
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-CeR5y-VD.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-CEapdIQY.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-CEapdIQY.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-CEapdIQY.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-CeR5y-VD.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-CEapdIQY.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-CEapdIQY.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-CEapdIQY.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]" };
|
|
@@ -16837,11 +16837,13 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
16837
16837
|
const res = await API.getTianqiRouteConfig();
|
|
16838
16838
|
const data = ((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.data) || {};
|
|
16839
16839
|
const { top_button: topButton } = data;
|
|
16840
|
-
|
|
16841
|
-
|
|
16842
|
-
|
|
16843
|
-
|
|
16844
|
-
|
|
16840
|
+
if (topButton) {
|
|
16841
|
+
tianqiButtonConfig.value = {
|
|
16842
|
+
img: topButton.img,
|
|
16843
|
+
img_black: topButton.img_black,
|
|
16844
|
+
url: topButton.url
|
|
16845
|
+
};
|
|
16846
|
+
}
|
|
16845
16847
|
};
|
|
16846
16848
|
getTianqiRouteConfig();
|
|
16847
16849
|
const logo = computed(() => {
|
|
@@ -17768,13 +17770,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
17768
17770
|
setup(__props) {
|
|
17769
17771
|
var _a;
|
|
17770
17772
|
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
|
|
17773
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-DihKoxUn.js"));
|
|
17774
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-CCUEwW3n.js"));
|
|
17775
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-Bivgs3eE.js"));
|
|
17776
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-CsKVa3LP.js"));
|
|
17777
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-B7g-rtZk.js"));
|
|
17778
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-_SwFGdMW.js"));
|
|
17779
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed--tgQhVky.js"));
|
|
17778
17780
|
const props = __props;
|
|
17779
17781
|
const repoInfo = inject("repoInfo");
|
|
17780
17782
|
const orgInfo = inject("orgInfo");
|
|
@@ -18342,7 +18344,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18342
18344
|
}
|
|
18343
18345
|
});
|
|
18344
18346
|
const Search = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
18345
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
18347
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-C3yB7SLa.js"));
|
|
18346
18348
|
function clearNotice() {
|
|
18347
18349
|
if (localStorage$2.getItem("validator_email")) {
|
|
18348
18350
|
localStorage$2.removeItem("validator_email");
|
|
@@ -18520,7 +18522,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18520
18522
|
return props.bgConfig.index_head && isHome.value && window.location.pathname === "/";
|
|
18521
18523
|
});
|
|
18522
18524
|
const isShowStickyNotice = computed(() => {
|
|
18523
|
-
return ([SceneValue.repo, SceneValue.org, SceneValue.user].includes(props.sceneValue) || isHome.value && window.location.pathname === "/dashboard") && props.bgConfig.detail_toolbar;
|
|
18525
|
+
return ([SceneValue.repo, SceneValue.org, SceneValue.user, SceneValue.aiRepo].includes(props.sceneValue) || isHome.value && window.location.pathname === "/dashboard") && props.bgConfig.detail_toolbar;
|
|
18524
18526
|
});
|
|
18525
18527
|
const stickyNoticeInfo = computed(() => {
|
|
18526
18528
|
return isShowStickyNotice.value ? props.bgConfig.detail_top : "";
|
|
@@ -18549,6 +18551,11 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18549
18551
|
window.open(props.bgConfig.detail_top_url, "_blank");
|
|
18550
18552
|
}
|
|
18551
18553
|
};
|
|
18554
|
+
const handleHeaderClick = () => {
|
|
18555
|
+
if (props.bgConfig.index_head_url) {
|
|
18556
|
+
window.open(props.bgConfig.index_head_url, "_blank");
|
|
18557
|
+
}
|
|
18558
|
+
};
|
|
18552
18559
|
onMounted(() => {
|
|
18553
18560
|
toNotice();
|
|
18554
18561
|
addEventListener("logout", (options) => {
|
|
@@ -18606,10 +18613,13 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18606
18613
|
return (_ctx, _cache) => {
|
|
18607
18614
|
var _a, _b, _c, _d;
|
|
18608
18615
|
return openBlock(), createElementBlock("div", {
|
|
18616
|
+
onClick: withModifiers(handleHeaderClick, ["prevent", "stop"]),
|
|
18609
18617
|
class: "gitcode-header-wrapper w-full",
|
|
18610
18618
|
style: normalizeStyle({ height: `${unref(height)}px` })
|
|
18611
18619
|
}, [
|
|
18612
18620
|
createElementVNode("div", {
|
|
18621
|
+
onClick: _cache[6] || (_cache[6] = withModifiers(() => {
|
|
18622
|
+
}, ["prevent", "stop"])),
|
|
18613
18623
|
class: normalizeClass(["g-header fixed z-20", { "ai-hub": inAIHub.value }]),
|
|
18614
18624
|
ref_key: "headerRef",
|
|
18615
18625
|
ref: headerRef
|
|
@@ -24937,7 +24947,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
24937
24947
|
}
|
|
24938
24948
|
});
|
|
24939
24949
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
24940
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
24950
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-DeLP5ZuC.js"));
|
|
24941
24951
|
const useSlidCaptcha = () => {
|
|
24942
24952
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
24943
24953
|
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-CEapdIQY.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-CEapdIQY.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
|
@@ -311,6 +311,7 @@ export declare const GitCodeHeader: DefineComponent<ExtractPropTypes<{
|
|
|
311
311
|
detail_top: string;
|
|
312
312
|
detail_toolbar: string;
|
|
313
313
|
detail_top_url: string;
|
|
314
|
+
index_head_url: string;
|
|
314
315
|
} | undefined>;
|
|
315
316
|
required: false;
|
|
316
317
|
default: () => {
|
|
@@ -408,6 +409,7 @@ export declare const GitCodeHeader: DefineComponent<ExtractPropTypes<{
|
|
|
408
409
|
detail_top: string;
|
|
409
410
|
detail_toolbar: string;
|
|
410
411
|
detail_top_url: string;
|
|
412
|
+
index_head_url: string;
|
|
411
413
|
} | undefined>;
|
|
412
414
|
required: false;
|
|
413
415
|
default: () => {
|
|
@@ -437,6 +439,7 @@ export declare const GitCodeHeader: DefineComponent<ExtractPropTypes<{
|
|
|
437
439
|
detail_top: string;
|
|
438
440
|
detail_toolbar: string;
|
|
439
441
|
detail_top_url: string;
|
|
442
|
+
index_head_url: string;
|
|
440
443
|
} | undefined;
|
|
441
444
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
442
445
|
|
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-CEapdIQY.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";
|