vue-layout-gitcode 1.5.36 → 1.5.38

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-BqBr_GoX.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-BZl6bFOh.js";
5
5
  import "lodash/debounce";
6
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-Cw2AlYDo.js";
7
- import "./transWebUrl-BV1Y3bDh.js";
6
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-Bcz2w0mg.js";
7
+ import "./transWebUrl-Cbporvxq.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 { w as ThemeType, x as currentTheme, g as LANG_ZH, y as LANG_EN, z as getLocaleLang, G as GIcon, A as emitEvent, B as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-BqBr_GoX.js";
2
+ import { q as useLayoutConfig, w as ThemeType, x as currentTheme, g as LANG_ZH, y as LANG_EN, z as getLocaleLang, G as GIcon, A as emitEvent, B as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-BZl6bFOh.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";
@@ -27,9 +27,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
27
27
  }
28
28
  },
29
29
  setup(__props) {
30
+ const layoutConfig = useLayoutConfig();
30
31
  const asideSetShow = inject("asideSetShow");
31
32
  const slots = useSlots();
32
33
  const useReport = inject("useReport");
34
+ const independence = inject("independence");
33
35
  const router = useRouter();
34
36
  const props = __props;
35
37
  const isHover = ref(false);
@@ -92,6 +94,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
92
94
  } else if (isHttps(props.item.left_menu_url)) {
93
95
  window.open(props.item.left_menu_url, "_self");
94
96
  } else {
97
+ if (independence) {
98
+ window.open(layoutConfig.VITE_HOST + props.item.left_menu_url, "_self");
99
+ return;
100
+ }
95
101
  router.push({
96
102
  path: props.item.left_menu_url
97
103
  });
@@ -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, G as GIcon, C as _sfc_main$1, D as loadAsideData, s as setLoginTriggerSource, d as useRequestReport, F as asideRequest, _ as _export_sfc } from "./index-BqBr_GoX.js";
2
+ import { a as i18n, G as GIcon, C as _sfc_main$1, D as loadAsideData, s as setLoginTriggerSource, d as useRequestReport, F as asideRequest, _ as _export_sfc } from "./index-BZl6bFOh.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-BV1Y3bDh.js";
4
+ import { t as transWebUrl } from "./transWebUrl-Cbporvxq.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, createElementBlock, openBlock, createElementVNode, createVNode, createBlock, createCommentVNode, withDirectives, toDisplayString, unref, withModifiers, normalizeClass, withCtx, Fragment, renderList, createTextVNode, vShow } from "vue";
2
- import { a as i18n, G as GIcon, s as setLoginTriggerSource, d as useRequestReport, _ as _export_sfc } from "./index-BqBr_GoX.js";
2
+ import { a as i18n, G as GIcon, s as setLoginTriggerSource, d as useRequestReport, _ as _export_sfc } from "./index-BZl6bFOh.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-BV1Y3bDh.js";
4
+ import { t as transWebUrl } from "./transWebUrl-Cbporvxq.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, 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-BqBr_GoX.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-BZl6bFOh.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-BqBr_GoX.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-BZl6bFOh.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" };
@@ -52,7 +52,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
52
52
  icon: "gt-plane-issues",
53
53
  hoverIcon: "gt-plane-issues-red"
54
54
  },
55
- pull: {
55
+ pullrequest: {
56
56
  text: "Pull requests",
57
57
  icon: "gt-plane-pullRequest",
58
58
  hoverIcon: "gt-plane-pullRequest-red"
@@ -66,6 +66,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
66
66
  text: t("gitCodeLayout.header.user"),
67
67
  icon: "gt-plane-user",
68
68
  hoverIcon: "gt-plane-user-red"
69
+ },
70
+ tag: {
71
+ text: t("gitCodeLayout.header.tags"),
72
+ icon: "gt-plane-topics",
73
+ hoverIcon: "gt-plane-topics-red"
74
+ },
75
+ topic: {
76
+ text: t("gitCodeLayout.header.topic"),
77
+ icon: "gt-plane-topic",
78
+ hoverIcon: "gt-plane-topic-red"
69
79
  }
70
80
  };
71
81
  return typeMap[item.type] || typeMap["repo"];
@@ -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-BqBr_GoX.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-BZl6bFOh.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-Cw2AlYDo.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-BqBr_GoX.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-Bcz2w0mg.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-BZl6bFOh.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";
@@ -64,9 +64,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
64
64
  hover: "",
65
65
  hideTopicTags: "",
66
66
  onReport: (evt) => handleReport(item, index, evt),
67
- cardType: "repo",
67
+ cardType: (item == null ? void 0 : item.repo_type) || "repo",
68
68
  "url-params": { source_module: "today_trending" }
69
- }, null, 8, ["info", "onReport"]);
69
+ }, null, 8, ["info", "onReport", "cardType"]);
70
70
  }), 128))
71
71
  ])) : (openBlock(), createElementBlock("div", _hoisted_4, [
72
72
  (openBlock(), createElementBlock(Fragment, null, renderList(5, (item) => {
@@ -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-BqBr_GoX.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-BZl6bFOh.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-BqBr_GoX.js";
2
+ import { a as i18n, h as headRequest, G as GIcon } from "./index-BZl6bFOh.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]" };