vue-layout-gitcode 1.3.26 → 1.3.28

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.
@@ -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-BYT6vV5V.js";
5
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-D3q4EUnq.js";
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-CivtTLHe.js";
5
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-DawSK7PK.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-BYT6vV5V.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-CivtTLHe.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-BYT6vV5V.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-CivtTLHe.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-BYT6vV5V.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-CivtTLHe.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-D3q4EUnq.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-BYT6vV5V.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-DawSK7PK.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-CivtTLHe.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-BYT6vV5V.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-CivtTLHe.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-BYT6vV5V.js";
2
+ import { a as i18n, h as headRequest, G as GIcon } from "./index-CivtTLHe.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]" };
@@ -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-DRqIYuRa.js"));
17841
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-CoYIxR82.js"));
17842
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-jFuTLWIT.js"));
17843
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-B2bIvzab.js"));
17844
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-BkrASZDr.js"));
17845
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-B-kq4k0s.js"));
17846
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-MiT0AQ3u.js"));
17840
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-DTx05MGJ.js"));
17841
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-2bQCJb2L.js"));
17842
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-CAHK15iY.js"));
17843
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-C4WoOmnn.js"));
17844
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-B11Xb3IZ.js"));
17845
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-hcrxfKVP.js"));
17846
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-0Boft_Od.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: toSearch,
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-C0rOjRir.js"));
18446
+ const NoticeModal = defineAsyncComponent(() => import("./notice-DFQFDJ40.js"));
18441
18447
  function clearNotice() {
18442
18448
  if (localStorage$2.getItem("validator_email")) {
18443
18449
  localStorage$2.removeItem("validator_email");
@@ -18671,7 +18677,6 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
18671
18677
  if (isShowStickyNotice.value && props.bgConfig.detail_toolbar_url) {
18672
18678
  window.open(props.bgConfig.detail_toolbar_url, "_blank");
18673
18679
  }
18674
- window.open("https://www.baidu.com", "_blank");
18675
18680
  };
18676
18681
  onMounted(() => {
18677
18682
  toNotice();
@@ -25067,7 +25072,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
25067
25072
  }
25068
25073
  });
25069
25074
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
25070
- const SlidCaptcha = defineAsyncComponent(() => import("./index-B4_q-aJ0.js"));
25075
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-D7A36GSA.js"));
25071
25076
  const useSlidCaptcha = () => {
25072
25077
  const { mount, unMount } = usePopup("slid-captcha-popup");
25073
25078
  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 { w as useLayoutConfig, _ as _export_sfc } from "./index-BYT6vV5V.js";
3
+ import { w as useLayoutConfig, _ as _export_sfc } from "./index-CivtTLHe.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-BYT6vV5V.js";
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-CivtTLHe.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,4 +1,4 @@
1
- import { z, A, D, y, S, x, F, I, C, H, B } from "./index-BYT6vV5V.js";
1
+ import { z, A, D, y, S, x, F, I, C, H, B } from "./index-CivtTLHe.js";
2
2
  export {
3
3
  z as GitCodeAside,
4
4
  A as GitCodeHeader,
@@ -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-BYT6vV5V.js";
2
+ import { i as isPhone, u as useModel } from "./index-CivtTLHe.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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-layout-gitcode",
3
- "version": "1.3.26",
3
+ "version": "1.3.28",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",