vue-layout-gitcode 1.3.44 → 1.3.46

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, v as vElementExposure, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-zCCv_wAa.js";
5
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-CCJ1uPTS.js";
4
+ import { h as headRequest, R as REPO_MODULE, a as i18n, G as GIcon, v as vElementExposure, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-A5QqlpWp.js";
5
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-Cg6fQE1y.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-zCCv_wAa.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-A5QqlpWp.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-zCCv_wAa.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-A5QqlpWp.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-zCCv_wAa.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-A5QqlpWp.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-CCJ1uPTS.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-zCCv_wAa.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-Cg6fQE1y.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-A5QqlpWp.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-zCCv_wAa.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-A5QqlpWp.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-zCCv_wAa.js";
2
+ import { a as i18n, h as headRequest, G as GIcon } from "./index-A5QqlpWp.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]" };
@@ -14605,7 +14605,8 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
14605
14605
  whiteIcon: "gt-a-Property1white",
14606
14606
  to: "/theme",
14607
14607
  url: `${layoutConfig2.VITE_AI_HOST}/theme`,
14608
- menueKey: RouteNameEnum.AI_THEME
14608
+ menueKey: RouteNameEnum.AI_THEME,
14609
+ repoType: "theme"
14609
14610
  },
14610
14611
  {
14611
14612
  label: "大赛",
@@ -14614,7 +14615,8 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
14614
14615
  whiteIcon: "gt-a-plane-GrowthCenter-2",
14615
14616
  to: "/competition",
14616
14617
  url: `${layoutConfig2.VITE_AI_HOST}/competition`,
14617
- menueKey: RouteNameEnum.AI_COMPETITION
14618
+ menueKey: RouteNameEnum.AI_COMPETITION,
14619
+ repoType: "competition"
14618
14620
  }
14619
14621
  ];
14620
14622
  const activeMenu = computed(() => {
@@ -18078,13 +18080,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18078
18080
  var _a;
18079
18081
  const layoutConfig2 = useLayoutConfig();
18080
18082
  const { t: $t } = i18n.global;
18081
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-Dw-71hIG.js"));
18082
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-DAun9jLj.js"));
18083
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-BW-VkkPg.js"));
18084
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-C9lveOS9.js"));
18085
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-DF3j65Cp.js"));
18086
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-CpfgDZ3n.js"));
18087
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-D0QBWZAk.js"));
18083
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-ColsLOLj.js"));
18084
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-Cxw15FUd.js"));
18085
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-BTaUyNbU.js"));
18086
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-XiT5gUYm.js"));
18087
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-Dl0JYRVQ.js"));
18088
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-6dCqMFU7.js"));
18089
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-CGe1ULRs.js"));
18088
18090
  const props = __props;
18089
18091
  const repoInfo = inject("repoInfo");
18090
18092
  const orgInfo = inject("orgInfo");
@@ -18694,7 +18696,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18694
18696
  }
18695
18697
  });
18696
18698
  const Search = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
18697
- const NoticeModal = defineAsyncComponent(() => import("./notice-Cz9oJJ0w.js"));
18699
+ const NoticeModal = defineAsyncComponent(() => import("./notice-RKIQwyIl.js"));
18698
18700
  function clearNotice() {
18699
18701
  if (localStorage$2.getItem("validator_email")) {
18700
18702
  localStorage$2.removeItem("validator_email");
@@ -18815,7 +18817,6 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
18815
18817
  const { widthType } = usePageResize();
18816
18818
  const headerRef = ref(null);
18817
18819
  const { height = 56 } = useElementSize(headerRef);
18818
- theme.initAutoTheme();
18819
18820
  const GrayBgSceneValue = [SceneValue.repo, SceneValue.org, SceneValue.user];
18820
18821
  const headerClassName = computed(() => {
18821
18822
  var _a, _b;
@@ -18833,6 +18834,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
18833
18834
  });
18834
18835
  const aiHubSceneValue = [SceneValue.aiHome, SceneValue.aiGuide, SceneValue.aiRepo];
18835
18836
  const inAIHub = computed(() => aiHubSceneValue.includes(props.sceneValue));
18837
+ if (!inAIHub.value) {
18838
+ theme.initAutoTheme();
18839
+ }
18836
18840
  const isChatBot = ref(false);
18837
18841
  const isHome = computed(() => props.sceneValue === SceneValue.home);
18838
18842
  const showHeaderShadow = ref(false);
@@ -25357,7 +25361,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
25357
25361
  }
25358
25362
  });
25359
25363
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
25360
- const SlidCaptcha = defineAsyncComponent(() => import("./index-DhDCBXmX.js"));
25364
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-CSsn5IHf.js"));
25361
25365
  const useSlidCaptcha = () => {
25362
25366
  const { mount, unMount } = usePopup("slid-captcha-popup");
25363
25367
  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 { x as useLayoutConfig, _ as _export_sfc } from "./index-zCCv_wAa.js";
3
+ import { x as useLayoutConfig, _ as _export_sfc } from "./index-A5QqlpWp.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, withCtx, reactive } 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$9, o as isIncubationRepo, p as highlightWords, q as transWebUrl, w as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-zCCv_wAa.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$9, o as isIncubationRepo, p as highlightWords, q as transWebUrl, w as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-A5QqlpWp.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 { A, B, F, z, S, y, H, J, D, I, C } from "./index-zCCv_wAa.js";
1
+ import { A, B, F, z, S, y, H, J, D, I, C } from "./index-A5QqlpWp.js";
2
2
  export {
3
3
  A as GitCodeAside,
4
4
  B 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-zCCv_wAa.js";
2
+ import { i as isPhone, u as useModel } from "./index-A5QqlpWp.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.44",
3
+ "version": "1.3.46",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",