vue-layout-gitcode 1.12.18 → 1.12.20

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,10 +1,10 @@
1
1
  import { defineComponent, inject, openBlock, createElementBlock, Fragment, createElementVNode, toDisplayString, unref, createVNode, 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-ClSFH0IZ.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-Bj4u8zQ4.js";
5
5
  import "lodash/debounce";
6
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-C3lVh7L5.js";
7
- import "./transWebUrl-phEOd1Ye.js";
6
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-DxxrXUPE.js";
7
+ import "./transWebUrl-DNhy-gwP.js";
8
8
  import "vue-devui-lal/tooltip";
9
9
  import "vue-devui-lal/tooltip/style.css";
10
10
  import "vue-router";
@@ -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, y as useLayoutConfig, A as ThemeType, B as currentTheme, L as LANG_ZH, C as LANG_EN, D as getLocaleLang, G as GIcon, F as emitEvent, H as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-ClSFH0IZ.js";
2
+ import { a as i18n, y as useLayoutConfig, A as ThemeType, B as currentTheme, L as LANG_ZH, C as LANG_EN, D as getLocaleLang, G as GIcon, F as emitEvent, H as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-Bj4u8zQ4.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, y as useLayoutConfig, G as GIcon, t as transformUrl, J as _sfc_main$1, K as loadAsideData, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, I as asideRequest, _ as _export_sfc } from "./index-ClSFH0IZ.js";
2
+ import { a as i18n, y as useLayoutConfig, G as GIcon, t as transformUrl, J as _sfc_main$1, K as loadAsideData, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, I as asideRequest, _ as _export_sfc } from "./index-Bj4u8zQ4.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-phEOd1Ye.js";
4
+ import { t as transWebUrl } from "./transWebUrl-DNhy-gwP.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, y as useLayoutConfig, t as transformUrl, G as GIcon, I as asideRequest, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-ClSFH0IZ.js";
2
+ import { a as i18n, y as useLayoutConfig, t as transformUrl, G as GIcon, I as asideRequest, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-Bj4u8zQ4.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-phEOd1Ye.js";
4
+ import { t as transWebUrl } from "./transWebUrl-DNhy-gwP.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,5 +1,5 @@
1
1
  import { 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-ClSFH0IZ.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-Bj4u8zQ4.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, openBlock, createElementBlock, Fragment, renderList, normalizeClass, createElementVNode, createVNode, toDisplayString, withModifiers, createCommentVNode } from "vue";
2
- import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-ClSFH0IZ.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-Bj4u8zQ4.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" };
@@ -87,9 +87,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
87
87
  };
88
88
  const historyList = computed(() => {
89
89
  var _a;
90
- return (_a = props.searchHistoryList) == null ? void 0 : _a.map((item) => {
90
+ return (_a = props.searchHistoryList) == null ? void 0 : _a.map((raw) => typeof raw === "string" ? { q: raw } : raw).filter((item) => item == null ? void 0 : item.q).map((item) => {
91
91
  const repoTitle = item.repo ? `${t("gitCodeLayout.header.repo")} ${decodeURIComponent(item.repo)}:` : "";
92
- const namespaceTitle = item.namespace ? `${item.scope === "group" ? t("gitCodeLayout.header.org") : t("gitCodeLayout.header.user")} ${decodeURIComponent(item.namespace)}:` : "";
92
+ const userVal = item.user || (item.scope === "user" ? item.namespace : "");
93
+ const orgVal = item.org || (item.scope === "user" ? "" : item.namespace);
94
+ let namespaceTitle = "";
95
+ if (userVal) {
96
+ namespaceTitle = `${t("gitCodeLayout.header.user")} ${decodeURIComponent(userVal)}:`;
97
+ } else if (orgVal) {
98
+ namespaceTitle = `${t("gitCodeLayout.header.org")} ${decodeURIComponent(orgVal)}:`;
99
+ }
93
100
  return { ...item, repoTitle, namespaceTitle };
94
101
  });
95
102
  });
@@ -137,7 +144,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
137
144
  class: "whitespace-nowrap overflow-hidden text-ellipsis",
138
145
  title: item.namespaceTitle
139
146
  }, toDisplayString(item.namespaceTitle), 9, _hoisted_6),
140
- createElementVNode("span", _hoisted_7, toDisplayString(item.q || item), 1)
147
+ createElementVNode("span", _hoisted_7, toDisplayString(item.q), 1)
141
148
  ]),
142
149
  createElementVNode("div", _hoisted_8, [
143
150
  createElementVNode("span", {
@@ -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 "./index-C3lVh7L5.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-ClSFH0IZ.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-DxxrXUPE.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-Bj4u8zQ4.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-ClSFH0IZ.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-Bj4u8zQ4.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  const _hoisted_1 = ["onClick"];
@@ -10,13 +10,11 @@ const _hoisted_4 = {
10
10
  class: "ml-[4px]"
11
11
  };
12
12
  const _hoisted_5 = { key: 1 };
13
- const _hoisted_6 = { class: "ml-[4px]" };
14
- const _hoisted_7 = { class: "right-text" };
13
+ const _hoisted_6 = { class: "right-text" };
15
14
  const _sfc_main = /* @__PURE__ */ defineComponent({
16
15
  __name: "SearchScopeList",
17
16
  props: {
18
- searchScopeList: {},
19
- searchStr: {}
17
+ searchScopeList: {}
20
18
  },
21
19
  emits: ["scopeSearch"],
22
20
  setup(__props, { emit: __emit }) {
@@ -40,10 +38,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
40
38
  class: "g-header-search-icon"
41
39
  }),
42
40
  item.label ? (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(item.label) + ":", 1)) : createCommentVNode("", true),
43
- item.value ? (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(item.value), 1)) : createCommentVNode("", true),
44
- createElementVNode("span", _hoisted_6, toDisplayString(__props.searchStr), 1)
41
+ item.value ? (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(item.value), 1)) : createCommentVNode("", true)
45
42
  ]),
46
- createElementVNode("p", _hoisted_7, [
43
+ createElementVNode("p", _hoisted_6, [
47
44
  createElementVNode("span", null, toDisplayString(item.label ? `${item.label}${unref($t)("gitCodeLayout.header.underSearch")}` : item.title), 1),
48
45
  createVNode(GIcon, { name: "gt-line-right" })
49
46
  ])
@@ -1,5 +1,5 @@
1
1
  import { 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-ClSFH0IZ.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-Bj4u8zQ4.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]" };