vue-layout-gitcode 1.12.15-beta.53 → 1.12.15-beta.55

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,6 +1,6 @@
1
1
  import { defineComponent, inject, openBlock, createElementBlock, Fragment, renderList, withDirectives, createBlock, unref, ref, watch, createElementVNode, createVNode, toDisplayString, createCommentVNode } from "vue";
2
- import { h as headRequest, R as REPO_MODULE, v as vElementExposure, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL, a as i18n, G as GIcon } from "./index-CNwxTlYz.js";
3
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./useReportRepo-PsNbZstD.js";
2
+ import { h as headRequest, R as REPO_MODULE, v as vElementExposure, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL, a as i18n, G as GIcon } from "./index-DBTIV-gu.js";
3
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./useReportRepo-B3HT41mc.js";
4
4
  import "vue-devui-lal/icon";
5
5
  import "vue-devui-lal/icon/style.css";
6
6
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, inject, useSlots, computed, ref, openBlock, createBlock, unref, withCtx, createElementVNode, normalizeClass, createElementBlock, createCommentVNode, createTextVNode, toDisplayString, renderSlot } from "vue";
2
- import { a as i18n, z as useLayoutConfig, B as ThemeType, C as currentTheme, L as LANG_ZH, D as LANG_EN, F as getLocaleLang, G as GIcon, H as emitEvent, b as REPO_EVENT, I as ASIDE_MENU_REPO, J as isHttps, K as navigateWithMigrationGuard, _ as _export_sfc } from "./index-CNwxTlYz.js";
2
+ import { a as i18n, z as useLayoutConfig, B as ThemeType, C as currentTheme, L as LANG_ZH, D as LANG_EN, F as getLocaleLang, G as GIcon, H as emitEvent, b as REPO_EVENT, I as ASIDE_MENU_REPO, J as isHttps, K as navigateWithMigrationGuard, _ as _export_sfc } from "./index-DBTIV-gu.js";
3
3
  import { useRouter } from "vue-router";
4
4
  import { Popover } from "vue-devui-lal/popover";
5
5
  import "vue-devui-lal/popover/style.css";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, inject, ref, reactive, watch, computed, openBlock, createElementBlock, Fragment, createElementVNode, toDisplayString, unref, createVNode, withModifiers, normalizeClass, withCtx, renderList, createBlock, createCommentVNode, createTextVNode, withDirectives, vShow } from "vue";
2
- import { a as i18n, z as useLayoutConfig, G as GIcon, t as transformUrl, N as _sfc_main$1, O as loadAsideData, K as navigateWithMigrationGuard, H as emitEvent, s as setLoginTriggerSource, f as useRequestReport, M as asideRequest, _ as _export_sfc } from "./index-CNwxTlYz.js";
2
+ import { a as i18n, z as useLayoutConfig, G as GIcon, t as transformUrl, N as _sfc_main$1, O as loadAsideData, K as navigateWithMigrationGuard, H as emitEvent, s as setLoginTriggerSource, f as useRequestReport, M as asideRequest, _ as _export_sfc } from "./index-DBTIV-gu.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-BXm7XMOP.js";
4
+ import { t as transWebUrl } from "./transWebUrl-H_rfM4OA.js";
5
5
  import { Select, Option } from "vue-devui-lal/select";
6
6
  import { Input } from "vue-devui-lal/input";
7
7
  import { Skeleton } from "vue-devui-lal/skeleton";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, inject, ref, reactive, computed, watch, openBlock, createElementBlock, createElementVNode, toDisplayString, unref, createVNode, withModifiers, normalizeClass, withCtx, createBlock, createCommentVNode, Fragment, renderList, createTextVNode, withDirectives, vShow } from "vue";
2
- import { a as i18n, z as useLayoutConfig, t as transformUrl, G as GIcon, M as asideRequest, K as navigateWithMigrationGuard, H as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-CNwxTlYz.js";
2
+ import { a as i18n, z as useLayoutConfig, t as transformUrl, G as GIcon, M as asideRequest, K as navigateWithMigrationGuard, H as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-DBTIV-gu.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-BXm7XMOP.js";
4
+ import { t as transWebUrl } from "./transWebUrl-H_rfM4OA.js";
5
5
  import { Input } from "vue-devui-lal/input";
6
6
  import { Skeleton } from "vue-devui-lal/skeleton";
7
7
  import { MenuItem } from "vue-devui-lal/menu";
@@ -1,8 +1,13 @@
1
- import { defineComponent, ref, inject, computed, withDirectives, openBlock, createElementBlock, 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-CNwxTlYz.js";
1
+ import { defineComponent, ref, inject, watch, computed, withDirectives, openBlock, createElementBlock, 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-DBTIV-gu.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";
6
+ const extractSearchFileList = (response) => {
7
+ const responseData = Array.isArray(response) ? response : response == null ? void 0 : response.data;
8
+ const data = responseData && typeof responseData === "object" && !Array.isArray(responseData) && "data" in responseData ? responseData.data : responseData;
9
+ return Array.isArray(data) ? data.filter((item) => typeof item === "string") : [];
10
+ };
6
11
  const _hoisted_1 = { class: "history-list-project history-list-project--padded" };
7
12
  const _hoisted_2 = { class: "history-list-project-globartitle history-list-project-globartitle--gap" };
8
13
  const _hoisted_3 = ["href"];
@@ -23,17 +28,33 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
23
28
  const route = useRoute();
24
29
  const router = useRouter();
25
30
  const API = headRequest(inject("request", () => Promise.resolve({ data: {} })));
31
+ let fileListRequestId = 0;
26
32
  const loadFileList = async () => {
27
- var _a, _b, _c;
28
- if (!((_a = props == null ? void 0 : props.searchInfo) == null ? void 0 : _a.searchScopeName)) return;
33
+ var _a, _b;
34
+ const searchScopeName = (_a = props == null ? void 0 : props.searchInfo) == null ? void 0 : _a.searchScopeName;
35
+ const requestId = ++fileListRequestId;
36
+ if (!searchScopeName) {
37
+ filedList.value = [];
38
+ return;
39
+ }
29
40
  const params = {
30
- repoId: encodeURIComponent(props.searchInfo.searchScopeName),
41
+ repoId: encodeURIComponent(searchScopeName),
31
42
  ref_name: ((_b = props.searchInfo) == null ? void 0 : _b.branch) || ""
32
43
  };
33
44
  const res = await reqCatch(API.getRepoFileList, params);
34
- filedList.value = ((_c = res == null ? void 0 : res.data) == null ? void 0 : _c.data) || [];
45
+ if (requestId !== fileListRequestId) return;
46
+ filedList.value = extractSearchFileList(res == null ? void 0 : res.data);
35
47
  };
36
- loadFileList();
48
+ watch(
49
+ () => {
50
+ var _a, _b;
51
+ return [(_a = props.searchInfo) == null ? void 0 : _a.searchScopeName, (_b = props.searchInfo) == null ? void 0 : _b.branch];
52
+ },
53
+ () => {
54
+ void loadFileList();
55
+ },
56
+ { immediate: true }
57
+ );
37
58
  const searchFileList = computed(() => {
38
59
  return filedList.value.filter((item) => {
39
60
  var _a;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, openBlock, createElementBlock, Fragment, renderList, normalizeClass, createElementVNode, createVNode, toDisplayString, withModifiers, createCommentVNode } from "vue";
2
- import { a as i18n, n as normalizeSearchHistoryEntry, G as GIcon, _ as _export_sfc } from "./index-CNwxTlYz.js";
2
+ import { a as i18n, n as normalizeSearchHistoryEntry, G as GIcon, _ as _export_sfc } from "./index-DBTIV-gu.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,6 +1,6 @@
1
1
  import { defineComponent, inject, ref, onMounted, openBlock, createElementBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, renderSlot, createBlock, createVNode, withCtx } from "vue";
2
- import { u as useReportRepo, S as SearchRepoCard } from "./useReportRepo-PsNbZstD.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-CNwxTlYz.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./useReportRepo-B3HT41mc.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-DBTIV-gu.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, openBlock, createElementBlock, Fragment, renderList, createElementVNode, createVNode, toDisplayString, createCommentVNode, unref } from "vue";
2
- import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-CNwxTlYz.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-DBTIV-gu.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 { defineComponent, inject, ref, watch, withDirectives, openBlock, createElementBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createVNode, vShow } from "vue";
2
- import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-CNwxTlYz.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-DBTIV-gu.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-project history-list-project--padded" };
@@ -8,7 +8,7 @@ import { Message } from "vue-devui-lal/message";
8
8
  import "vue-devui-lal/message/style.css";
9
9
  import { FixedOverlay } from "vue-devui-lal/overlay";
10
10
  import "vue-devui-lal/overlay/style.css";
11
- import { a as i18n, k as usePageResize, A as isZh, _ as _export_sfc } from "./index-CNwxTlYz.js";
11
+ import { a as i18n, k as usePageResize, A as isZh, _ as _export_sfc } from "./index-DBTIV-gu.js";
12
12
  const _YunpianCaptchaManager = class _YunpianCaptchaManager {
13
13
  // eslint-disable-next-line no-useless-constructor
14
14
  constructor() {
@@ -16811,12 +16811,12 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
16811
16811
  setup(__props) {
16812
16812
  const layoutConfig2 = useLayoutConfig();
16813
16813
  const { t: $t } = i18n.global;
16814
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-Cmh0TAzF.js"));
16815
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-CXHigWlM.js"));
16816
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-BQ-rySNi.js"));
16817
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-Bn2Fo_ma.js"));
16818
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-DicYYBTI.js"));
16819
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-CPgpZb1h.js"));
16814
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-D68_33qZ.js"));
16815
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-Dm4Xvimb.js"));
16816
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-BR17CTm_.js"));
16817
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-CVuDPhqI.js"));
16818
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-BV7CRGr3.js"));
16819
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-_2Z-M7dm.js"));
16820
16820
  const props = __props;
16821
16821
  const repoInfo = inject("repoInfo", computed(() => void 0));
16822
16822
  const orgInfo = inject("orgInfo", computed(() => void 0));
@@ -18150,7 +18150,7 @@ const vElementExposure = {
18150
18150
  beforeUnmount() {
18151
18151
  }
18152
18152
  };
18153
- const NoticeModal = defineAsyncComponent(() => import("./notice-CdXRJcwU.js"));
18153
+ const NoticeModal = defineAsyncComponent(() => import("./notice-DrIhP0Vs.js"));
18154
18154
  function clearNotice() {
18155
18155
  if (localStorage$2.getItem("validator_email")) {
18156
18156
  localStorage$2.removeItem("validator_email");
@@ -19965,7 +19965,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
19965
19965
  loginChildComponents: { default: void 0 },
19966
19966
  atomcodeLaunchQs: { default: "" },
19967
19967
  showAtomCodeLauncher: { type: Boolean, default: false },
19968
- launchAtomCode: { type: Function, default: void 0 }
19968
+ launchAtomCode: { type: Function, default: void 0 },
19969
+ defaultGlobalSearchType: { default: "repo" }
19969
19970
  },
19970
19971
  emits: ["followDevCommunity", "followUser", "resetPwdDirectlySuccess"],
19971
19972
  setup(__props, { emit: __emit }) {
@@ -20185,7 +20186,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
20185
20186
  inAIHub: false,
20186
20187
  key: _ctx.$route.fullPath,
20187
20188
  sceneValue: unref(SceneValue).home,
20188
- isShowStickyNotice: false
20189
+ isShowStickyNotice: false,
20190
+ defaultGlobalSearchType: __props.defaultGlobalSearchType
20189
20191
  }, createSlots({ _: 2 }, [
20190
20192
  _ctx.$slots.searchRecommend ? {
20191
20193
  name: "searchRecommend",
@@ -20201,7 +20203,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
20201
20203
  ]),
20202
20204
  key: "1"
20203
20205
  } : void 0
20204
- ]), 1032, ["sceneValue"]))
20206
+ ]), 1032, ["sceneValue", "defaultGlobalSearchType"]))
20205
20207
  ], true, 0) : createCommentVNode("", true)
20206
20208
  ]),
20207
20209
  createElementVNode("div", _hoisted_7$3, [
@@ -20259,7 +20261,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
20259
20261
  color: "var(--theme-light-text)",
20260
20262
  class: "btn-add-icon"
20261
20263
  }),
20262
- createTextVNode(toDisplayString$1(unref(t2)("gitCodeLayout.header.createRepo_01")), 1)
20264
+ createTextVNode(toDisplayString$1(unref(t2)("gitCodeLayout.header.create")), 1)
20263
20265
  ]),
20264
20266
  _: 1
20265
20267
  })) : createCommentVNode("", true),
@@ -20534,9 +20536,9 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
20534
20536
  const layoutConfig2 = useLayoutConfig();
20535
20537
  const { t: t2 } = i18n.global;
20536
20538
  const route = useRoute();
20537
- const MenuItem = defineAsyncComponent(() => import("./MenuItem-DS0ThOdK.js"));
20538
- const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-KoHJljxZ.js"));
20539
- const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-Fs46UOeM.js"));
20539
+ const MenuItem = defineAsyncComponent(() => import("./MenuItem-CVI6iQ6X.js"));
20540
+ const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-5UpZZX6F.js"));
20541
+ const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-BQLnYb3a.js"));
20540
20542
  const props = __props;
20541
20543
  const useReport2 = inject("useReport");
20542
20544
  const userInfo = inject("userInfo");
@@ -27059,7 +27061,7 @@ const _SlidCaptchaManager = class _SlidCaptchaManager {
27059
27061
  __publicField(_SlidCaptchaManager, "instance");
27060
27062
  let SlidCaptchaManager = _SlidCaptchaManager;
27061
27063
  const slidCaptchaManager = SlidCaptchaManager.getInstance();
27062
- const SlidCaptcha = defineAsyncComponent(() => import("./index-Cd70cgkB.js"));
27064
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-yQd8f4tI.js"));
27063
27065
  const useSlidCaptcha = () => {
27064
27066
  const { mount, unMount, isMounted } = usePopup("slid-captcha-popup");
27065
27067
  const open = (config) => {
@@ -27089,7 +27091,7 @@ const useSlidCaptcha = () => {
27089
27091
  close
27090
27092
  };
27091
27093
  };
27092
- const YunpianCaptcha = defineAsyncComponent(() => import("./index-CNS_IHBq.js"));
27094
+ const YunpianCaptcha = defineAsyncComponent(() => import("./index-CXNKytvC.js"));
27093
27095
  const useYunpianCaptcha = () => {
27094
27096
  const { mount, unMount } = usePopup("yunpian-captcha-popup");
27095
27097
  const open = (config) => {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, onMounted, nextTick, onUnmounted, openBlock, createBlock, unref, withCtx, createElementVNode } from "vue";
2
- import { y as slidCaptchaManager, z as useLayoutConfig, A as isZh, _ as _export_sfc } from "./index-CNwxTlYz.js";
2
+ import { y as slidCaptchaManager, z as useLayoutConfig, A as isZh, _ as _export_sfc } from "./index-DBTIV-gu.js";
3
3
  import { FixedOverlay } from "vue-devui-lal/overlay";
4
4
  import "vue-devui-lal/overlay/style.css";
5
5
  const TARGET_TEXT = "Click in order:";
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { P, Q, S, U, V, W, X, Y, Z, $, a0, a1, a2, a3, a4, C, a5, a6, a7, a8 } from "./index-CNwxTlYz.js";
1
+ import { P, Q, S, U, V, W, X, Y, Z, $, a0, a1, a2, a3, a4, C, a5, a6, a7, a8 } from "./index-DBTIV-gu.js";
2
2
  export {
3
3
  P as AsideFooterTools,
4
4
  Q as AtomCodeLauncher,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, openBlock, createBlock, unref, isRef, withCtx, createElementVNode, normalizeClass, createVNode, createTextVNode } from "vue";
2
- import { i as isPhone, u as useModel, _ as _export_sfc } from "./index-CNwxTlYz.js";
2
+ import { i as isPhone, u as useModel, _ as _export_sfc } from "./index-DBTIV-gu.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.12.15-beta.53",
3
+ "version": "1.12.15-beta.55",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",