vue-layout-gitcode 1.3.4 → 1.3.5

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-C37aHH8x.js";
5
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-ExeTEcC8.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-_-y_pTbO.js";
5
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-Dx2WwTQG.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-C37aHH8x.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-_-y_pTbO.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-C37aHH8x.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-_-y_pTbO.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-C37aHH8x.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-_-y_pTbO.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-ExeTEcC8.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-C37aHH8x.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-Dx2WwTQG.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-_-y_pTbO.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-C37aHH8x.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-_-y_pTbO.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-C37aHH8x.js";
2
+ import { a as i18n, h as headRequest, G as GIcon } from "./index-_-y_pTbO.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-C37aHH8x.js";
3
+ import { w as useLayoutConfig, _ as _export_sfc } from "./index-_-y_pTbO.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, b as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-C37aHH8x.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-_-y_pTbO.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";
@@ -17748,13 +17748,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
17748
17748
  setup(__props) {
17749
17749
  var _a;
17750
17750
  const { t: $t } = i18n.global;
17751
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-BZRnJoQX.js"));
17752
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-BSgYNwv-.js"));
17753
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-CWp399rn.js"));
17754
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-BpXxu789.js"));
17755
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-BvcFcjUv.js"));
17756
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-b0VY74dd.js"));
17757
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-CR_zPDBu.js"));
17751
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-BtHGbabX.js"));
17752
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-DYolvk7T.js"));
17753
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-BGjPsN7R.js"));
17754
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-fIfTj4xY.js"));
17755
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-B6X4KuBk.js"));
17756
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-BmBbMZU-.js"));
17757
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-AHYE7hpE.js"));
17758
17758
  const props = __props;
17759
17759
  const repoInfo = inject("repoInfo");
17760
17760
  const orgInfo = inject("orgInfo");
@@ -18312,7 +18312,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18312
18312
  }
18313
18313
  });
18314
18314
  const Search = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
18315
- const NoticeModal = defineAsyncComponent(() => import("./notice-PGiT3J9W.js"));
18315
+ const NoticeModal = defineAsyncComponent(() => import("./notice-CeRKzrLR.js"));
18316
18316
  function clearNotice() {
18317
18317
  if (localStorage$2.getItem("validator_email")) {
18318
18318
  localStorage$2.removeItem("validator_email");
@@ -20130,8 +20130,10 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
20130
20130
  const mainMarginLeftWidth = computed(() => {
20131
20131
  if (!asideSetShow.value || sizeStore.isMobile.value) {
20132
20132
  return 0;
20133
+ } else if (props.collapseMode) {
20134
+ return Math.min(asideDefaultWidth.value, asideSize.value.expand);
20133
20135
  } else {
20134
- return asideDefaultWidth.value;
20136
+ return Math.max(asideDefaultWidth.value, asideSize.value.expand);
20135
20137
  }
20136
20138
  });
20137
20139
  const asideVisible = ref(false);
@@ -20148,7 +20150,6 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
20148
20150
  asideDefaultWidth.value = asideDefaultWidth.value >= expand ? collapse : expand;
20149
20151
  emitEvent("handleAsideVisible", asideDefaultWidth.value >= expand);
20150
20152
  asideSetShowLittle.value = props.collapseMode || !(asideDefaultWidth.value >= expand);
20151
- console.log(asideSetShowLittle.value, "asideSetShowLittle.value");
20152
20153
  }
20153
20154
  };
20154
20155
  onMounted(() => {
@@ -24791,7 +24792,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24791
24792
  }
24792
24793
  });
24793
24794
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
24794
- const SlidCaptcha = defineAsyncComponent(() => import("./index-C87NgTF6.js"));
24795
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-Cma1kh0R.js"));
24795
24796
  const useSlidCaptcha = () => {
24796
24797
  const { mount, unMount } = usePopup("slid-captcha-popup");
24797
24798
  const open = (config) => {
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { z, A, D, y, S, x, F, I, C, H, B } from "./index-C37aHH8x.js";
1
+ import { z, A, D, y, S, x, F, I, C, H, B } from "./index-_-y_pTbO.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-C37aHH8x.js";
2
+ import { i as isPhone, u as useModel } from "./index-_-y_pTbO.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.4",
3
+ "version": "1.3.5",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",