vue-layout-gitcode 1.12.15-beta.43 → 1.12.15-beta.44

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,14 +1,19 @@
1
- import { defineComponent, inject, createElementBlock, openBlock, Fragment, createElementVNode, toDisplayString, createVNode, unref, renderList, withDirectives, createBlock, ref, watch, onMounted, createCommentVNode } from "vue";
2
- import "vue-devui-lal/icon";
3
- 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-DZTs-ePt.js";
1
+ import { defineComponent, inject, openBlock, createElementBlock, Fragment, createElementVNode, toDisplayString, unref, createVNode, renderList, withDirectives, createBlock, ref, watch, onMounted, createCommentVNode } from "vue";
2
+ 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-Bhv07cir.js";
4
3
  import "lodash/debounce";
5
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-DRs0zGoG.js";
6
- import "./transWebUrl--iZn6BtB.js";
4
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-CtM76hG4.js";
5
+ import "./transWebUrl-CjAKBQUN.js";
7
6
  import "vue-devui-lal/tooltip";
7
+ import "vue-devui-lal/tooltip/style.css";
8
8
  import "vue-router";
9
9
  import "vue-devui-lal/grid";
10
10
  import "vue-devui-lal/skeleton";
11
+ import "vue-devui-lal/grid/style.css";
12
+ import "vue-devui-lal/skeleton/style.css";
11
13
  import "vue-devui-lal/popover";
14
+ import "vue-devui-lal/popover/style.css";
15
+ import "vue-devui-lal/icon";
16
+ import "vue-devui-lal/icon/style.css";
12
17
  const _hoisted_1$1 = { class: "search-repo-list-header" };
13
18
  const _hoisted_2$1 = { class: "title" };
14
19
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
@@ -161,13 +166,24 @@ const _sfc_main = {
161
166
  });
162
167
  return (_ctx, _cache) => {
163
168
  return openBlock(), createElementBlock(Fragment, null, [
169
+ createElementVNode("button", {
170
+ type: "button",
171
+ class: "global-search-all",
172
+ onClick: _cache[0] || (_cache[0] = ($event) => handleMore("all"))
173
+ }, [
174
+ createVNode(GIcon, {
175
+ name: "gt-search",
176
+ color: "var(--theme-placeholder)"
177
+ }),
178
+ createElementVNode("span", null, toDisplayString(unref($t)("gitCodeLayout.header.searchAll", { keyword: __props.searchStr })), 1)
179
+ ]),
164
180
  projectList.value.length ? (openBlock(), createElementBlock("div", _hoisted_1, [
165
181
  createVNode(SearchRepoCardList, {
166
182
  "data-list": projectList.value,
167
183
  "search-str": __props.searchStr,
168
184
  name: unref($t)("gitCodeLayout.header.repo"),
169
185
  type: "repo",
170
- onMore: _cache[0] || (_cache[0] = () => handleMore("repo"))
186
+ onMore: _cache[1] || (_cache[1] = () => handleMore("repo"))
171
187
  }, null, 8, ["data-list", "search-str", "name"])
172
188
  ])) : createCommentVNode("", true),
173
189
  modelList.value.length ? (openBlock(), createElementBlock("div", _hoisted_2, [
@@ -176,7 +192,7 @@ const _sfc_main = {
176
192
  "search-str": __props.searchStr,
177
193
  name: unref($t)("gitCodeLayout.aihub.model"),
178
194
  type: "model",
179
- onMore: _cache[1] || (_cache[1] = () => handleMore("model"))
195
+ onMore: _cache[2] || (_cache[2] = () => handleMore("model"))
180
196
  }, null, 8, ["data-list", "search-str", "name"])
181
197
  ])) : createCommentVNode("", true),
182
198
  datasetList.value.length ? (openBlock(), createElementBlock("div", _hoisted_3, [
@@ -185,7 +201,7 @@ const _sfc_main = {
185
201
  "search-str": __props.searchStr,
186
202
  name: unref($t)("gitCodeLayout.aihub.dataSet"),
187
203
  type: "dataset",
188
- onMore: _cache[2] || (_cache[2] = () => handleMore("dataset"))
204
+ onMore: _cache[3] || (_cache[3] = () => handleMore("dataset"))
189
205
  }, null, 8, ["data-list", "search-str", "name"])
190
206
  ])) : createCommentVNode("", true)
191
207
  ], 64);
@@ -1,7 +1,8 @@
1
- import { defineComponent, inject, useSlots, computed, ref, createBlock, openBlock, 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, b as REPO_EVENT, H as ASIDE_MENU_REPO, I as isHttps, J as navigateWithMigrationGuard, _ as _export_sfc } from "./index-DZTs-ePt.js";
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-Bhv07cir.js";
3
3
  import { useRouter } from "vue-router";
4
4
  import { Popover } from "vue-devui-lal/popover";
5
+ import "vue-devui-lal/popover/style.css";
5
6
  const _hoisted_1 = ["src"];
6
7
  const _hoisted_2 = {
7
8
  key: 2,
@@ -1,12 +1,17 @@
1
- import { defineComponent, inject, ref, reactive, watch, computed, createElementBlock, openBlock, createCommentVNode, createBlock, withDirectives, Fragment, createElementVNode, createVNode, toDisplayString, unref, withModifiers, normalizeClass, withCtx, renderList, createTextVNode, vShow } from "vue";
2
- import { a as i18n, y as useLayoutConfig, G as GIcon, t as transformUrl, M as _sfc_main$1, N as loadAsideData, J as navigateWithMigrationGuard, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, K as asideRequest, _ as _export_sfc } from "./index-DZTs-ePt.js";
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-Bhv07cir.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl--iZn6BtB.js";
4
+ import { t as transWebUrl } from "./transWebUrl-CjAKBQUN.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";
8
8
  import { MenuItem } from "vue-devui-lal/menu";
9
9
  import { Button } from "vue-devui-lal/button";
10
+ import "vue-devui-lal/select/style.css";
11
+ import "vue-devui-lal/input/style.css";
12
+ import "vue-devui-lal/skeleton/style.css";
13
+ import "vue-devui-lal/menu/style.css";
14
+ import "vue-devui-lal/button/style.css";
10
15
  const _hoisted_1 = { class: "devui-submenu layer_2 my-work-platform submenu-item my-work-platform--relative" };
11
16
  const _hoisted_2 = {
12
17
  class: "devui-submenu-title layer_2",
@@ -1,11 +1,15 @@
1
- import { defineComponent, inject, ref, reactive, computed, watch, createElementBlock, openBlock, createElementVNode, createVNode, createBlock, createCommentVNode, withDirectives, toDisplayString, unref, withModifiers, normalizeClass, withCtx, Fragment, renderList, createTextVNode, vShow } from "vue";
2
- import { a as i18n, y as useLayoutConfig, t as transformUrl, K as asideRequest, G as GIcon, J as navigateWithMigrationGuard, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-DZTs-ePt.js";
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-Bhv07cir.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl--iZn6BtB.js";
4
+ import { t as transWebUrl } from "./transWebUrl-CjAKBQUN.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";
8
8
  import { Button } from "vue-devui-lal/button";
9
+ import "vue-devui-lal/input/style.css";
10
+ import "vue-devui-lal/skeleton/style.css";
11
+ import "vue-devui-lal/menu/style.css";
12
+ import "vue-devui-lal/button/style.css";
9
13
  const _hoisted_1 = { class: "devui-submenu layer_2 my-work-platform submenu-item my-work-platform--relative" };
10
14
  const _hoisted_2 = {
11
15
  class: "devui-submenu-title layer_2",
@@ -1,7 +1,8 @@
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-DZTs-ePt.js";
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-Bhv07cir.js";
3
3
  import { useRoute, useRouter } from "vue-router";
4
4
  import "vue-devui-lal/icon";
5
+ import "vue-devui-lal/icon/style.css";
5
6
  const _hoisted_1 = { class: "history-list-project history-list-project--padded" };
6
7
  const _hoisted_2 = { class: "history-list-project-globartitle history-list-project-globartitle--gap" };
7
8
  const _hoisted_3 = ["href"];
@@ -1,6 +1,7 @@
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-DZTs-ePt.js";
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-Bhv07cir.js";
3
3
  import "vue-devui-lal/icon";
4
+ import "vue-devui-lal/icon/style.css";
4
5
  const _hoisted_1 = { class: "history-list" };
5
6
  const _hoisted_2 = ["onClick", "onMouseenter"];
6
7
  const _hoisted_3 = { class: "history-list-box__content" };
@@ -41,6 +42,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41
42
  icon: "gt-plane-project",
42
43
  hoverIcon: "gt-plane-project-red"
43
44
  },
45
+ all: {
46
+ text: t("gitCodeLayout.common.all"),
47
+ icon: "gt-search",
48
+ hoverIcon: "gt-search"
49
+ },
44
50
  model: {
45
51
  text: t("gitCodeLayout.aihub.model"),
46
52
  icon: "gt-plane-Models",
@@ -82,11 +88,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
82
88
  hoverIcon: "gt-plane-topic-red"
83
89
  }
84
90
  };
85
- return typeMap[item.type] || typeMap["repo"];
91
+ const type = normalizeSearchHistoryEntry(item).type;
92
+ return typeMap[type] || typeMap["repo"];
86
93
  };
87
94
  const historyList = computed(() => {
88
95
  var _a;
89
- 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) => {
96
+ return (_a = props.searchHistoryList) == null ? void 0 : _a.map((raw) => normalizeSearchHistoryEntry(raw)).filter((item) => item == null ? void 0 : item.q).map((item) => {
90
97
  const repoTitle = item.repo ? `${t("gitCodeLayout.header.repo")} ${decodeURIComponent(item.repo)}:` : "";
91
98
  const userVal = item.user || (item.scope === "user" ? item.namespace : "");
92
99
  const orgVal = item.org || (item.scope === "user" ? "" : item.namespace);
@@ -123,7 +130,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
123
130
  }, [
124
131
  (openBlock(true), createElementBlock(Fragment, null, renderList(historyList.value, (item, index) => {
125
132
  return openBlock(), createElementBlock("li", {
126
- key: item,
133
+ key: `${item.q}-${item.type || "repo"}-${index}`,
127
134
  class: normalizeClass(__props.activeIndex === index ? "hoverbg" : ""),
128
135
  onClick: ($event) => toSearch(item),
129
136
  onMouseenter: ($event) => onSearchEnter(index)
@@ -1,8 +1,10 @@
1
- import { defineComponent, inject, ref, onMounted, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, renderSlot, createBlock, createVNode, withCtx } from "vue";
2
- import { u as useReportRepo, S as SearchRepoCard } from "./index-DRs0zGoG.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-DZTs-ePt.js";
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-CtM76hG4.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-Bhv07cir.js";
4
4
  import { Row, Col } from "vue-devui-lal/grid";
5
5
  import { SkeletonItem } from "vue-devui-lal/skeleton";
6
+ import "vue-devui-lal/grid/style.css";
7
+ import "vue-devui-lal/skeleton/style.css";
6
8
  const _hoisted_1 = { class: "g-header-search-recommed" };
7
9
  const _hoisted_2 = { key: 0 };
8
10
  const _hoisted_3 = { class: "g-header-search-recommed-title" };
@@ -55,7 +57,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
55
57
  createElementVNode("div", _hoisted_3, toDisplayString(unref($t)("gitCodeLayout.search.trendingToday")), 1),
56
58
  (openBlock(true), createElementBlock(Fragment, null, renderList(recommendRepoList.value, (item, index) => {
57
59
  return renderSlot(_ctx.$slots, "default", {
58
- key: item.id,
59
60
  item,
60
61
  index
61
62
  }, () => [
@@ -70,7 +71,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
70
71
  cardType: (item == null ? void 0 : item.repo_type) || "repo",
71
72
  "url-params": { source_module: "search_box_discovery" }
72
73
  }, null, 8, ["info", "onReport", "cardType"]))
73
- ], true);
74
+ ], true, item.id);
74
75
  }), 128))
75
76
  ])) : (openBlock(), createElementBlock("div", _hoisted_4, [
76
77
  (openBlock(), createElementBlock(Fragment, null, renderList(5, (item) => {
@@ -1,6 +1,7 @@
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-DZTs-ePt.js";
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-Bhv07cir.js";
3
3
  import "vue-devui-lal/icon";
4
+ import "vue-devui-lal/icon/style.css";
4
5
  const _hoisted_1 = ["onClick"];
5
6
  const _hoisted_2 = { class: "linkItem" };
6
7
  const _hoisted_3 = { class: "leftTx ellipsis" };
@@ -1,6 +1,7 @@
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, t as transformUrl } from "./index-DZTs-ePt.js";
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-Bhv07cir.js";
3
3
  import "vue-devui-lal/icon";
4
+ import "vue-devui-lal/icon/style.css";
4
5
  const _hoisted_1 = { class: "history-list-project history-list-project--padded" };
5
6
  const _hoisted_2 = { class: "history-list-project-globartitle history-list-project-globartitle--gap" };
6
7
  const _hoisted_3 = ["href"];