vue-layout-gitcode 1.1.37 → 1.1.38
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-BBhtnOqp.js → GloabarSearch-DhLmGoiu.js} +2 -2
- package/{ProjectSearch-CzT6LRe3.js → ProjectSearch-tHcACYhR.js} +1 -1
- package/{SearchHistoryList-rgSoTt_k.js → SearchHistoryList-rm4idsru.js} +1 -1
- package/{SearchPrefixTag-CgRSifOW.js → SearchPrefixTag-OLM6rUho.js} +1 -1
- package/{SearchRecommed-gB2jJd8N.js → SearchRecommed-qdlUyQuI.js} +2 -2
- package/{SearchScopeList-CW905SpW.js → SearchScopeList-fp_sRSjb.js} +1 -1
- package/{UserSearch-BCEq8aD9.js → UserSearch-wjijjPyR.js} +1 -1
- package/{index-BoQC34ar.js → index-BAGbI3Px.js} +1 -1
- package/{index-nYlQ63Ct.js → index-BhEzpQr9.js} +1 -1
- package/{index-B-fkvBTP.js → index-D8x6JGVn.js} +22 -13
- package/index.js +1 -1
- package/{notice-Dy6GRCYl.js → notice-CJ0gtQy_.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-D8x6JGVn.js";
|
|
5
|
+
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-BhEzpQr9.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-D8x6JGVn.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-D8x6JGVn.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-D8x6JGVn.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-BhEzpQr9.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-D8x6JGVn.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-D8x6JGVn.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-D8x6JGVn.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 { s as useLayoutConfig, _ as _export_sfc } from "./index-
|
|
3
|
+
import { s as useLayoutConfig, _ as _export_sfc } from "./index-D8x6JGVn.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, inject, createElementBlock, openBlock, normalizeClass, createElementVNode, withModifiers, withDirectives, vShow, createVNode, computed, createCommentVNode, unref, normalizeStyle, createTextVNode, onMounted, onUnmounted, Fragment, createBlock, renderList, reactive, withCtx } from "vue";
|
|
2
|
-
import { d as debounce, G as GIcon, 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, t as transWebUrl, q as _frEventTrack, E as EVENT_NAME, b as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-
|
|
2
|
+
import { d as debounce, G as GIcon, 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, t as transWebUrl, q as _frEventTrack, E as EVENT_NAME, b as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-D8x6JGVn.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";
|
|
@@ -17608,13 +17608,13 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
17608
17608
|
setup(__props) {
|
|
17609
17609
|
var _a;
|
|
17610
17610
|
const { t: $t } = i18n.global;
|
|
17611
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
17612
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
17613
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
17614
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
17615
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
17616
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
17617
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
17611
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-tHcACYhR.js"));
|
|
17612
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-wjijjPyR.js"));
|
|
17613
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-DhLmGoiu.js"));
|
|
17614
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-rm4idsru.js"));
|
|
17615
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-fp_sRSjb.js"));
|
|
17616
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-OLM6rUho.js"));
|
|
17617
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-qdlUyQuI.js"));
|
|
17618
17618
|
const props = __props;
|
|
17619
17619
|
const repoInfo = inject("repoInfo");
|
|
17620
17620
|
const orgInfo = inject("orgInfo");
|
|
@@ -17667,12 +17667,16 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
17667
17667
|
"ollama"
|
|
17668
17668
|
];
|
|
17669
17669
|
const activeSearchKey = ref(0);
|
|
17670
|
+
const interval = ref(null);
|
|
17670
17671
|
const showRecommendSearch = computed(() => {
|
|
17671
17672
|
return !searchStr.value && !projectTagVisible.value && !languageTagVisible.value;
|
|
17672
17673
|
});
|
|
17673
|
-
const
|
|
17674
|
-
|
|
17675
|
-
|
|
17674
|
+
const scrollRecommend = () => {
|
|
17675
|
+
interval.value = setInterval(() => {
|
|
17676
|
+
activeSearchKey.value = (activeSearchKey.value + 1) % RECOMMEND_SEARCH_KEYS.length;
|
|
17677
|
+
}, 3e3);
|
|
17678
|
+
};
|
|
17679
|
+
scrollRecommend();
|
|
17676
17680
|
const isSearchPage = ref(false);
|
|
17677
17681
|
const language = ref("");
|
|
17678
17682
|
const localSearchInfo = ref({});
|
|
@@ -17851,11 +17855,16 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
17851
17855
|
localSearchInfo.value = {};
|
|
17852
17856
|
};
|
|
17853
17857
|
let memorySearchKey = "";
|
|
17854
|
-
watch(isFocus, () => {
|
|
17858
|
+
watch(() => isFocus.value, () => {
|
|
17855
17859
|
if (!isFocus.value && !isSearchPage.value) {
|
|
17856
17860
|
memorySearchKey = searchStr.value;
|
|
17857
17861
|
searchStr.value = "";
|
|
17858
17862
|
}
|
|
17863
|
+
if (isFocus.value) {
|
|
17864
|
+
clearInterval(interval.value);
|
|
17865
|
+
} else {
|
|
17866
|
+
scrollRecommend();
|
|
17867
|
+
}
|
|
17859
17868
|
});
|
|
17860
17869
|
const onFocus = () => {
|
|
17861
17870
|
useReport2(REPO_EVENT.CLICK, {
|
|
@@ -18155,7 +18164,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18155
18164
|
}
|
|
18156
18165
|
});
|
|
18157
18166
|
const Search = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
18158
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
18167
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-CJ0gtQy_.js"));
|
|
18159
18168
|
function clearNotice() {
|
|
18160
18169
|
if (localStorage$2.getItem("validator_email")) {
|
|
18161
18170
|
localStorage$2.removeItem("validator_email");
|
|
@@ -24324,7 +24333,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
24324
24333
|
}
|
|
24325
24334
|
});
|
|
24326
24335
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
24327
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
24336
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-BAGbI3Px.js"));
|
|
24328
24337
|
const useSlidCaptcha = () => {
|
|
24329
24338
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
24330
24339
|
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-D8x6JGVn.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";
|