vue-layout-gitcode 1.3.55 → 1.3.56

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-Bis_nUz0.js";
5
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-CBiREgjU.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-BqzlVbeO.js";
5
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-BLhMfwuj.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-Bis_nUz0.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-BqzlVbeO.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-Bis_nUz0.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-BqzlVbeO.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-Bis_nUz0.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-BqzlVbeO.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-CBiREgjU.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-Bis_nUz0.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-BLhMfwuj.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-BqzlVbeO.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-Bis_nUz0.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-BqzlVbeO.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-Bis_nUz0.js";
2
+ import { a as i18n, h as headRequest, G as GIcon } from "./index-BqzlVbeO.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,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-Bis_nUz0.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-BqzlVbeO.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";
@@ -18120,13 +18120,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18120
18120
  var _a;
18121
18121
  const layoutConfig2 = useLayoutConfig();
18122
18122
  const { t: $t } = i18n.global;
18123
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-BT2pR7hb.js"));
18124
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-C8T1d4yQ.js"));
18125
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-CEQngV6E.js"));
18126
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-CVPDaTru.js"));
18127
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-D8kSTW2f.js"));
18128
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-CC8su242.js"));
18129
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-DTkim2Ld.js"));
18123
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-Bt1i5X8H.js"));
18124
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-Di5IprrQ.js"));
18125
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-1ZHP1EnU.js"));
18126
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-Bsq09hrV.js"));
18127
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-Bcd_jyE_.js"));
18128
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-D1_CIbD1.js"));
18129
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-BxfxC9Vy.js"));
18130
18130
  const props = __props;
18131
18131
  const repoInfo = inject("repoInfo");
18132
18132
  const orgInfo = inject("orgInfo");
@@ -18736,7 +18736,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18736
18736
  }
18737
18737
  });
18738
18738
  const Search = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
18739
- const NoticeModal = defineAsyncComponent(() => import("./notice-Cx07SGWP.js"));
18739
+ const NoticeModal = defineAsyncComponent(() => import("./notice-CvRSCXfA.js"));
18740
18740
  function clearNotice() {
18741
18741
  if (localStorage$2.getItem("validator_email")) {
18742
18742
  localStorage$2.removeItem("validator_email");
@@ -19142,8 +19142,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
19142
19142
  createVNode(GIcon, {
19143
19143
  name: "gt-line-NotLoggedIn",
19144
19144
  size: "24px",
19145
- color: "var(--devui-aide-text)"
19146
- })
19145
+ color: _ctx.sceneValue === unref(SceneValue).aiHome ? "#FFF" : "var(--devui-aide-text)"
19146
+ }, null, 8, ["color"])
19147
19147
  ])) : createCommentVNode("", true),
19148
19148
  !unref(isMobile) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
19149
19149
  createVNode(unref(Button), {
@@ -25545,7 +25545,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
25545
25545
  }
25546
25546
  });
25547
25547
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
25548
- const SlidCaptcha = defineAsyncComponent(() => import("./index-DbwJam0s.js"));
25548
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-Bwn9jiam.js"));
25549
25549
  const useSlidCaptcha = () => {
25550
25550
  const { mount, unMount } = usePopup("slid-captcha-popup");
25551
25551
  const open = (config) => {
@@ -27077,6 +27077,7 @@ function useLogin(request, globalStore) {
27077
27077
  const router2 = useRouter();
27078
27078
  const route = useRoute();
27079
27079
  const { useReport: useReport2 } = useRequestReport(request, globalStore);
27080
+ const layoutConfig2 = useLayoutConfig();
27080
27081
  const login = (options = { Authorization: true, type: "login", triggerType: "", loginTriggerSource: "", resetPwdSource: "" }, loginSuccess, openHarmonyGuide) => {
27081
27082
  const { Authorization = true, type = "login", triggerType = "", loginTriggerSource = "", resetPwdSource = "" } = options;
27082
27083
  if (isMounted()) {
@@ -27093,7 +27094,11 @@ function useLogin(request, globalStore) {
27093
27094
  url = window.location.search;
27094
27095
  }
27095
27096
  const returnUrl = url.replace("?returnUrl=", "");
27096
- router2.replace(`/${type}?returnUrl=${returnUrl}`);
27097
+ if (!router2.hasRoute(type)) {
27098
+ location.href = `${layoutConfig2.VITE_HOST}/${type}?returnUrl=${returnUrl}`;
27099
+ } else {
27100
+ router2.replace(`/${type}?returnUrl=${returnUrl}`);
27101
+ }
27097
27102
  } else {
27098
27103
  closeModal();
27099
27104
  route.name !== "oauth" && mount(LoginModal, {
@@ -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-Bis_nUz0.js";
3
+ import { x as useLayoutConfig, _ as _export_sfc } from "./index-BqzlVbeO.js";
4
4
  import "vue-devui-lal/overlay/style.css";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "index",
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A, B, F, z, S, y, H, J, D, I, C } from "./index-Bis_nUz0.js";
1
+ import { A, B, F, z, S, y, H, J, D, I, C } from "./index-BqzlVbeO.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-Bis_nUz0.js";
2
+ import { i as isPhone, u as useModel } from "./index-BqzlVbeO.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.55",
3
+ "version": "1.3.56",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",