vue-layout-gitcode 1.10.7 → 1.10.8

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, 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-CuA6Xb62.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-0KJy9paC.js";
5
5
  import "lodash/debounce";
6
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-_UQNaVaL.js";
7
- import "./transWebUrl-DgtOBXr_.js";
6
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-B8XBtYoE.js";
7
+ import "./transWebUrl-CXAIc112.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, ref, computed, createBlock, openBlock, unref, withCtx, createElementVNode, normalizeClass, createElementBlock, createTextVNode, createCommentVNode, toDisplayString, renderSlot } from "vue";
2
- import { a as i18n, y as useLayoutConfig, z as ThemeType, A as currentTheme, L as LANG_ZH, B as LANG_EN, x as getLocaleLang, G as GIcon, C as emitEvent, D as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-CuA6Xb62.js";
2
+ import { a as i18n, y as useLayoutConfig, z as ThemeType, A as currentTheme, L as LANG_ZH, B as LANG_EN, x as getLocaleLang, G as GIcon, C as emitEvent, D as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-0KJy9paC.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, 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, H as _sfc_main$1, I as loadAsideData, C as emitEvent, s as setLoginTriggerSource, f as useRequestReport, F as asideRequest, _ as _export_sfc } from "./index-CuA6Xb62.js";
2
+ import { a as i18n, y as useLayoutConfig, G as GIcon, t as transformUrl, H as _sfc_main$1, I as loadAsideData, C as emitEvent, s as setLoginTriggerSource, f as useRequestReport, F as asideRequest, _ as _export_sfc } from "./index-0KJy9paC.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-DgtOBXr_.js";
4
+ import { t as transWebUrl } from "./transWebUrl-CXAIc112.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";
@@ -236,7 +236,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
236
236
  };
237
237
  return (_ctx, _cache) => {
238
238
  return openBlock(), createElementBlock("ul", _hoisted_1, [
239
- _ctx.type === "project" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
239
+ __props.type === "project" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
240
240
  createElementVNode("div", _hoisted_2, [
241
241
  _cache[12] || (_cache[12] = createElementVNode("span", { class: "devui-menu-icon" }, null, -1)),
242
242
  createElementVNode("span", _hoisted_3, [
@@ -297,7 +297,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
297
297
  }, 8, ["modelValue", "placeholder"])
298
298
  ], 2)
299
299
  ], 64)) : createCommentVNode("", true),
300
- _ctx.type === "team" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
300
+ __props.type === "team" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
301
301
  createElementVNode("div", _hoisted_4, [
302
302
  _cache[13] || (_cache[13] = createElementVNode("span", { class: "devui-menu-icon" }, null, -1)),
303
303
  createElementVNode("span", _hoisted_5, [
@@ -346,10 +346,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
346
346
  "data-openBlank": true,
347
347
  "data-href": unref(transformUrl)(unref(transWebUrl)(item.web_url)),
348
348
  class: "text",
349
- title: _ctx.type === "project" ? `${item.namespace}/${item.label}` : item.label
349
+ title: __props.type === "project" ? `${item.namespace}/${item.label}` : item.label
350
350
  }, {
351
351
  icon: withCtx(() => [
352
- _ctx.type === "project" ? (openBlock(), createBlock(GIcon, {
352
+ __props.type === "project" ? (openBlock(), createBlock(GIcon, {
353
353
  key: 0,
354
354
  name: "gt-line-project",
355
355
  color: "var(--theme-menu-icon-fill)",
@@ -364,7 +364,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
364
364
  }, null, 8, ["src", "name", "class"]))
365
365
  ]),
366
366
  default: withCtx(() => [
367
- _ctx.type === "project" ? (openBlock(), createElementBlock("span", _hoisted_6, [
367
+ __props.type === "project" ? (openBlock(), createElementBlock("span", _hoisted_6, [
368
368
  createElementVNode("span", _hoisted_7, toDisplayString((item.namespace || "").slice(0, 10)) + toDisplayString((item.namespace || "").length > 10 ? "..." : ""), 1),
369
369
  createElementVNode("span", _hoisted_8, "/" + toDisplayString(item.label), 1)
370
370
  ])) : (openBlock(), createElementBlock("span", _hoisted_9, toDisplayString(item.label), 1))
@@ -379,7 +379,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
379
379
  onClick: withModifiers(createRepoOrOrg, ["stop"])
380
380
  }, {
381
381
  default: withCtx(() => [
382
- createTextVNode(toDisplayString(_ctx.buttonText), 1)
382
+ createTextVNode(toDisplayString(__props.buttonText), 1)
383
383
  ]),
384
384
  _: 1
385
385
  })) : createCommentVNode("", true),
@@ -1,7 +1,7 @@
1
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, F as asideRequest, G as GIcon, C as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-CuA6Xb62.js";
2
+ import { a as i18n, y as useLayoutConfig, t as transformUrl, F as asideRequest, G as GIcon, C as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-0KJy9paC.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-DgtOBXr_.js";
4
+ import { t as transWebUrl } from "./transWebUrl-CXAIc112.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";
@@ -220,7 +220,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
220
220
  onClick: withModifiers(createRepoOrOrg, ["stop"])
221
221
  }, {
222
222
  default: withCtx(() => [
223
- createTextVNode(toDisplayString(_ctx.buttonText), 1)
223
+ createTextVNode(toDisplayString(__props.buttonText), 1)
224
224
  ]),
225
225
  _: 1
226
226
  })) : createCommentVNode("", true),
@@ -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-CuA6Xb62.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-0KJy9paC.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-CuA6Xb62.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-0KJy9paC.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" };
@@ -105,7 +105,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
105
105
  };
106
106
  return (_ctx, _cache) => {
107
107
  return openBlock(), createElementBlock("div", _hoisted_1, [
108
- _ctx.searchHistoryList.length ? (openBlock(), createElementBlock("ul", {
108
+ __props.searchHistoryList.length ? (openBlock(), createElementBlock("ul", {
109
109
  key: 0,
110
110
  class: "history-list-box mt-[16px]",
111
111
  onMouseleave: resetIndex
@@ -113,7 +113,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
113
113
  (openBlock(true), createElementBlock(Fragment, null, renderList(historyList.value, (item, index) => {
114
114
  return openBlock(), createElementBlock("li", {
115
115
  key: item,
116
- class: normalizeClass(_ctx.activeIndex === index ? "hoverbg" : ""),
116
+ class: normalizeClass(__props.activeIndex === index ? "hoverbg" : ""),
117
117
  onClick: ($event) => toSearch(item),
118
118
  onMouseenter: ($event) => onSearchEnter(index)
119
119
  }, [
@@ -136,10 +136,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
136
136
  ]),
137
137
  createElementVNode("div", _hoisted_8, [
138
138
  createElementVNode("span", {
139
- class: normalizeClass(_ctx.activeIndex === index ? "text-[var(--theme-text)]" : "text-[var(--theme-placeholder)]")
139
+ class: normalizeClass(__props.activeIndex === index ? "text-[var(--theme-text)]" : "text-[var(--theme-placeholder)]")
140
140
  }, toDisplayString(getRepoType(item).text), 3),
141
141
  createVNode(GIcon, {
142
- name: _ctx.activeIndex === index ? getRepoType(item).hoverIcon : getRepoType(item).icon
142
+ name: __props.activeIndex === index ? getRepoType(item).hoverIcon : getRepoType(item).icon
143
143
  }, null, 8, ["name"])
144
144
  ])
145
145
  ]),
@@ -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-CuA6Xb62.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-0KJy9paC.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  const _hoisted_1 = { class: "ellipsis" };
@@ -23,7 +23,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
23
23
  class: "g-header-search-projectname flex items-center px-[16px]",
24
24
  onClick: onInputClick
25
25
  }, [
26
- createElementVNode("span", _hoisted_1, toDisplayString(_ctx.tag), 1),
26
+ createElementVNode("span", _hoisted_1, toDisplayString(__props.tag), 1),
27
27
  withDirectives(createElementVNode("span", {
28
28
  class: "g-header-search-projectname-close ml-[12px] flex",
29
29
  onClick: withModifiers(onCloseTag, ["stop"])
@@ -34,7 +34,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
34
34
  size: "7px"
35
35
  })
36
36
  ], 512), [
37
- [vShow, _ctx.closeVisible]
37
+ [vShow, __props.closeVisible]
38
38
  ])
39
39
  ]);
40
40
  };
@@ -1,6 +1,6 @@
1
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-_UQNaVaL.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-CuA6Xb62.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-B8XBtYoE.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-0KJy9paC.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-CuA6Xb62.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-0KJy9paC.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  const _hoisted_1 = ["onClick"];
@@ -27,7 +27,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
27
27
  };
28
28
  return (_ctx, _cache) => {
29
29
  return openBlock(), createElementBlock("ul", null, [
30
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.searchScopeList, (item, index) => {
30
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.searchScopeList, (item, index) => {
31
31
  return openBlock(), createElementBlock("li", {
32
32
  key: index,
33
33
  class: "g-header-search-scopechoose pt-[16px] px-[8px]",
@@ -41,7 +41,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41
41
  }),
42
42
  item.label ? (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(item.label) + ":", 1)) : createCommentVNode("", true),
43
43
  item.value ? (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(item.value), 1)) : createCommentVNode("", true),
44
- createElementVNode("span", _hoisted_6, toDisplayString(_ctx.searchStr), 1)
44
+ createElementVNode("span", _hoisted_6, toDisplayString(__props.searchStr), 1)
45
45
  ]),
46
46
  createElementVNode("p", _hoisted_7, [
47
47
  createElementVNode("span", null, toDisplayString(item.label ? `${item.label}${unref($t)("gitCodeLayout.header.underSearch")}` : item.title), 1),
@@ -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, t as transformUrl } from "./index-CuA6Xb62.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-0KJy9paC.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]" };