vue-layout-gitcode 1.3.26 → 1.3.27
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-jFuTLWIT.js → GloabarSearch-xzm7TRMi.js} +2 -2
- package/{ProjectSearch-DRqIYuRa.js → ProjectSearch-D2ZbmV1o.js} +1 -1
- package/{SearchHistoryList-B2bIvzab.js → SearchHistoryList-DNs43lPw.js} +1 -1
- package/{SearchPrefixTag-B-kq4k0s.js → SearchPrefixTag-DMjHXE7T.js} +1 -1
- package/{SearchRecommed-MiT0AQ3u.js → SearchRecommed-CYq38WxK.js} +2 -2
- package/{SearchScopeList-BkrASZDr.js → SearchScopeList-Bh_xxwky.js} +1 -1
- package/{UserSearch-CoYIxR82.js → UserSearch-DqLiue3b.js} +1 -1
- package/{index-B4_q-aJ0.js → index-BiozG9lE.js} +1 -1
- package/{index-D3q4EUnq.js → index-CsmOkepx.js} +1 -1
- package/{index-BYT6vV5V.js → index-Qm86kKeu.js} +17 -11
- package/index.js +1 -1
- package/{notice-C0rOjRir.js → notice-BMcQo5xB.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-Qm86kKeu.js";
|
|
5
|
+
import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-CsmOkepx.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-Qm86kKeu.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-Qm86kKeu.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-Qm86kKeu.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-CsmOkepx.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-Qm86kKeu.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-Qm86kKeu.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-Qm86kKeu.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-Qm86kKeu.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-Qm86kKeu.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";
|
|
@@ -17837,13 +17837,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
17837
17837
|
setup(__props) {
|
|
17838
17838
|
var _a;
|
|
17839
17839
|
const { t: $t } = i18n.global;
|
|
17840
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
17841
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
17842
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
17843
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
17844
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
17845
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
17846
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
17840
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-D2ZbmV1o.js"));
|
|
17841
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-DqLiue3b.js"));
|
|
17842
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-xzm7TRMi.js"));
|
|
17843
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-DNs43lPw.js"));
|
|
17844
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-Bh_xxwky.js"));
|
|
17845
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-DMjHXE7T.js"));
|
|
17846
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-CYq38WxK.js"));
|
|
17847
17847
|
const props = __props;
|
|
17848
17848
|
const repoInfo = inject("repoInfo");
|
|
17849
17849
|
const orgInfo = inject("orgInfo");
|
|
@@ -18040,6 +18040,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18040
18040
|
searchParams.type = type;
|
|
18041
18041
|
onSearch();
|
|
18042
18042
|
};
|
|
18043
|
+
const isSearchHistory = ref(false);
|
|
18044
|
+
const searchHistory = (data) => {
|
|
18045
|
+
isSearchHistory.value = true;
|
|
18046
|
+
toSearch(data);
|
|
18047
|
+
};
|
|
18043
18048
|
const toSearch = (data) => {
|
|
18044
18049
|
if (typeof data === "string") {
|
|
18045
18050
|
searchStr.value = data;
|
|
@@ -18062,10 +18067,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18062
18067
|
return;
|
|
18063
18068
|
}
|
|
18064
18069
|
const targetHotWord = searchHotWords.value[activeSearchKey.value];
|
|
18065
|
-
if (!searchStr.value && (targetHotWord == null ? void 0 : targetHotWord.url)) {
|
|
18070
|
+
if (!searchStr.value && (targetHotWord == null ? void 0 : targetHotWord.url) && !isSearchHistory.value) {
|
|
18066
18071
|
window.open(targetHotWord.url, "_blank");
|
|
18067
18072
|
return;
|
|
18068
18073
|
}
|
|
18074
|
+
isSearchHistory.value = false;
|
|
18069
18075
|
searchStr.value = searchStr.value || (targetHotWord == null ? void 0 : targetHotWord.content);
|
|
18070
18076
|
const queryKey = searchStr.value;
|
|
18071
18077
|
const query = { q: queryKey, l: language.value ? language.value : void 0, ...searchParams };
|
|
@@ -18313,7 +18319,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18313
18319
|
onOnDeleteHistory: onDeleteHistory,
|
|
18314
18320
|
onOnDeleteVist: onDeleteVist,
|
|
18315
18321
|
onOnVistPage: onVistPage,
|
|
18316
|
-
onToSearch:
|
|
18322
|
+
onToSearch: searchHistory,
|
|
18317
18323
|
onOnSearchEnter: onSearchEnter,
|
|
18318
18324
|
onResetIndex: resetIndex
|
|
18319
18325
|
}, null, 8, ["searchHistoryList", "visitHistoryList", "activeIndex"]), [
|
|
@@ -18437,7 +18443,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18437
18443
|
}
|
|
18438
18444
|
});
|
|
18439
18445
|
const Search = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
18440
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-
|
|
18446
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-BMcQo5xB.js"));
|
|
18441
18447
|
function clearNotice() {
|
|
18442
18448
|
if (localStorage$2.getItem("validator_email")) {
|
|
18443
18449
|
localStorage$2.removeItem("validator_email");
|
|
@@ -25067,7 +25073,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
25067
25073
|
}
|
|
25068
25074
|
});
|
|
25069
25075
|
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
25070
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-
|
|
25076
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-BiozG9lE.js"));
|
|
25071
25077
|
const useSlidCaptcha = () => {
|
|
25072
25078
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
25073
25079
|
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-Qm86kKeu.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";
|