vue-layout-gitcode 1.1.39 → 1.1.41
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-B0YRJEvD.js → GloabarSearch-BJR4BLN1.js} +2 -2
- package/{ProjectSearch-BGEBnBWC.js → ProjectSearch-GQNGkQ2Q.js} +1 -1
- package/{SearchHistoryList-C_2N8wKu.js → SearchHistoryList-CEO39RoN.js} +1 -1
- package/{SearchPrefixTag-CjiGswjX.js → SearchPrefixTag-Now4cz_A.js} +1 -1
- package/{SearchRecommed-CXdW58P8.js → SearchRecommed-CBxvu1BO.js} +2 -2
- package/{SearchScopeList-BbVboaUU.js → SearchScopeList-C0EiAk8K.js} +1 -1
- package/{UserSearch-D3gXPDTb.js → UserSearch-CuuO69Xi.js} +1 -1
- package/{index-DWQ_w0od.js → index-C9w26Mpk.js} +22 -14
- package/{index-DbNBsvK_.js → index-CHD3stJs.js} +1 -1
- package/{index-6xRiobzE.js → index-Cb5rbVax.js} +1 -1
- package/index.js +1 -1
- package/{notice-BgdF1iQJ.js → notice-8TQTAWpR.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-C9w26Mpk.js";
|
|
5
|
+
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-Cb5rbVax.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-C9w26Mpk.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-C9w26Mpk.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-C9w26Mpk.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-Cb5rbVax.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-C9w26Mpk.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-C9w26Mpk.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-C9w26Mpk.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]" };
|
|
@@ -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-GQNGkQ2Q.js"));
|
|
17612
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-CuuO69Xi.js"));
|
|
17613
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-BJR4BLN1.js"));
|
|
17614
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-CEO39RoN.js"));
|
|
17615
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-C0EiAk8K.js"));
|
|
17616
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-Now4cz_A.js"));
|
|
17617
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-CBxvu1BO.js"));
|
|
17618
17618
|
const props = __props;
|
|
17619
17619
|
const repoInfo = inject("repoInfo");
|
|
17620
17620
|
const orgInfo = inject("orgInfo");
|
|
@@ -17676,7 +17676,6 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
17676
17676
|
activeSearchKey.value = (activeSearchKey.value + 1) % RECOMMEND_SEARCH_KEYS.length;
|
|
17677
17677
|
}, 3e3);
|
|
17678
17678
|
};
|
|
17679
|
-
scrollRecommend();
|
|
17680
17679
|
const isSearchPage = ref(false);
|
|
17681
17680
|
const language = ref("");
|
|
17682
17681
|
const localSearchInfo = ref({});
|
|
@@ -17828,7 +17827,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
17828
17827
|
(_a2 = document.querySelector("#golbalSearch")) == null ? void 0 : _a2.blur();
|
|
17829
17828
|
return;
|
|
17830
17829
|
}
|
|
17831
|
-
|
|
17830
|
+
searchStr.value = searchStr.value || RECOMMEND_SEARCH_KEYS[activeSearchKey.value];
|
|
17831
|
+
const queryKey = searchStr.value;
|
|
17832
17832
|
const query = { q: queryKey, l: language.value ? language.value : void 0, ...searchParams };
|
|
17833
17833
|
searchHistoryList.value = setlocalVistHistory(query, "localSearchText");
|
|
17834
17834
|
router2.push({ name: "search", query });
|
|
@@ -17860,11 +17860,15 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
17860
17860
|
memorySearchKey = searchStr.value;
|
|
17861
17861
|
searchStr.value = "";
|
|
17862
17862
|
}
|
|
17863
|
-
|
|
17864
|
-
|
|
17863
|
+
});
|
|
17864
|
+
watch([() => searchStr.value, () => isFocus.value], () => {
|
|
17865
|
+
if (isFocus.value || searchStr.value) {
|
|
17866
|
+
interval.value && clearInterval(interval.value);
|
|
17865
17867
|
} else {
|
|
17866
17868
|
scrollRecommend();
|
|
17867
17869
|
}
|
|
17870
|
+
}, {
|
|
17871
|
+
immediate: true
|
|
17868
17872
|
});
|
|
17869
17873
|
const onFocus = () => {
|
|
17870
17874
|
useReport2(REPO_EVENT.CLICK, {
|
|
@@ -17956,10 +17960,14 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
17956
17960
|
{ immediate: true }
|
|
17957
17961
|
);
|
|
17958
17962
|
onMounted(() => {
|
|
17963
|
+
var _a2;
|
|
17959
17964
|
useReport2(REPO_EVENT.SHOW, {
|
|
17960
17965
|
module_name: REPO_MODULE.SEARCH_BAR_EXPO
|
|
17961
17966
|
}, () => {
|
|
17962
17967
|
});
|
|
17968
|
+
searchStr.value = ((_a2 = route == null ? void 0 : route.query) == null ? void 0 : _a2.q) || "";
|
|
17969
|
+
const index2 = RECOMMEND_SEARCH_KEYS.findIndex((item) => item === searchStr.value);
|
|
17970
|
+
activeSearchKey.value = index2 === -1 ? 0 : index2;
|
|
17963
17971
|
document.addEventListener("keydown", function(event) {
|
|
17964
17972
|
if (event.key === "Escape") {
|
|
17965
17973
|
isFocus.value = false;
|
|
@@ -17984,7 +17992,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
17984
17992
|
router2.push({ name: "search", query });
|
|
17985
17993
|
};
|
|
17986
17994
|
onUnmounted(() => {
|
|
17987
|
-
clearInterval(interval);
|
|
17995
|
+
interval.value && clearInterval(interval.value);
|
|
17988
17996
|
});
|
|
17989
17997
|
return (_ctx, _cache) => {
|
|
17990
17998
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
@@ -18164,7 +18172,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18164
18172
|
}
|
|
18165
18173
|
});
|
|
18166
18174
|
const Search = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
18167
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
18175
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-8TQTAWpR.js"));
|
|
18168
18176
|
function clearNotice() {
|
|
18169
18177
|
if (localStorage$2.getItem("validator_email")) {
|
|
18170
18178
|
localStorage$2.removeItem("validator_email");
|
|
@@ -24333,7 +24341,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
24333
24341
|
}
|
|
24334
24342
|
});
|
|
24335
24343
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
24336
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
24344
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-CHD3stJs.js"));
|
|
24337
24345
|
const useSlidCaptcha = () => {
|
|
24338
24346
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
24339
24347
|
const open = (config) => {
|
|
@@ -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-C9w26Mpk.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-C9w26Mpk.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";
|
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-C9w26Mpk.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";
|