vue-layout-gitcode 1.3.12 → 1.3.14

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 { 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-DMySrfnU.js";
5
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-DeWW4_eh.js";
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-CV8yNh_6.js";
5
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-DiWr6jsD.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-DMySrfnU.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-CV8yNh_6.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-DMySrfnU.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-CV8yNh_6.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-DMySrfnU.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-CV8yNh_6.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-DeWW4_eh.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-DMySrfnU.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-DiWr6jsD.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-CV8yNh_6.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-DMySrfnU.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-CV8yNh_6.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-DMySrfnU.js";
2
+ import { a as i18n, h as headRequest, G as GIcon } from "./index-CV8yNh_6.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-DMySrfnU.js";
3
+ import { w as useLayoutConfig, _ as _export_sfc } from "./index-CV8yNh_6.js";
4
4
  import "vue-devui-lal/overlay/style.css";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "index",
@@ -17768,13 +17768,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
17768
17768
  setup(__props) {
17769
17769
  var _a;
17770
17770
  const { t: $t } = i18n.global;
17771
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-Dsg_fEMW.js"));
17772
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-Dtn7wiZi.js"));
17773
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-PUHLASx2.js"));
17774
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-CygAe68G.js"));
17775
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-D2Fz0dAc.js"));
17776
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-W9_Mcaod.js"));
17777
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-Dab7AMhX.js"));
17771
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-Brvvbt_n.js"));
17772
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-DOmxC0JJ.js"));
17773
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-DDondZxI.js"));
17774
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-UGXr0e9c.js"));
17775
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-9nZztkiP.js"));
17776
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-BI4E9rIE.js"));
17777
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-MtjN74o3.js"));
17778
17778
  const props = __props;
17779
17779
  const repoInfo = inject("repoInfo");
17780
17780
  const orgInfo = inject("orgInfo");
@@ -18342,7 +18342,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18342
18342
  }
18343
18343
  });
18344
18344
  const Search = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
18345
- const NoticeModal = defineAsyncComponent(() => import("./notice-CIPSkRjI.js"));
18345
+ const NoticeModal = defineAsyncComponent(() => import("./notice-CCbW5YXy.js"));
18346
18346
  function clearNotice() {
18347
18347
  if (localStorage$2.getItem("validator_email")) {
18348
18348
  localStorage$2.removeItem("validator_email");
@@ -18416,6 +18416,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
18416
18416
  const layoutConfig2 = useLayoutConfig();
18417
18417
  const route = useRoute();
18418
18418
  const props = __props;
18419
+ console.log("props.bgConfig", props.sceneValue);
18419
18420
  const { useReport: useReport2 } = useRequestReport(props.request, props.globalStore);
18420
18421
  const emit = __emit;
18421
18422
  provide("request", props.request);
@@ -18515,15 +18516,16 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
18515
18516
  }
18516
18517
  };
18517
18518
  const isIndexHead = computed(() => {
18518
- return props.bgConfig.index_head && isHome.value;
18519
+ return props.bgConfig.index_head && isHome.value && window.location.pathname === "/";
18520
+ });
18521
+ const isShowStickyNotice = computed(() => {
18522
+ return ([SceneValue.repo, SceneValue.org, SceneValue.user].includes(props.sceneValue) || isHome.value && window.location.pathname === "/dashboard") && props.bgConfig.detail_toolbar;
18519
18523
  });
18520
18524
  const stickyNoticeInfo = computed(() => {
18521
- const isShowStickyNotice = [SceneValue.repo, SceneValue.org, SceneValue.user].includes(props.sceneValue) && props.bgConfig.detail_top;
18522
- return isShowStickyNotice ? props.bgConfig.detail_top : "";
18525
+ return isShowStickyNotice.value ? props.bgConfig.detail_top : "";
18523
18526
  });
18524
18527
  const detailBgInfo = computed(() => {
18525
- const isShowDetailBg = [SceneValue.repo, SceneValue.org, SceneValue.user].includes(props.sceneValue) && props.bgConfig.detail_toolbar;
18526
- return isShowDetailBg ? props.bgConfig.detail_toolbar : "";
18528
+ return isShowStickyNotice.value ? props.bgConfig.detail_toolbar : "";
18527
18529
  });
18528
18530
  const detailBgStyle = computed(() => {
18529
18531
  return detailBgInfo.value ? {
@@ -24926,7 +24928,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24926
24928
  }
24927
24929
  });
24928
24930
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
24929
- const SlidCaptcha = defineAsyncComponent(() => import("./index-Bvg-XzaC.js"));
24931
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-CQci_WA9.js"));
24930
24932
  const useSlidCaptcha = () => {
24931
24933
  const { mount, unMount } = usePopup("slid-captcha-popup");
24932
24934
  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-DMySrfnU.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, b as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-CV8yNh_6.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-DMySrfnU.js";
1
+ import { z, A, D, y, S, x, F, I, C, H, B } from "./index-CV8yNh_6.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-DMySrfnU.js";
2
+ import { i as isPhone, u as useModel } from "./index-CV8yNh_6.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.12",
3
+ "version": "1.3.14",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",