vue-layout-gitcode 1.0.18 → 1.0.19

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
- import { inject, ref, watch, onMounted, openBlock, createElementBlock, createElementVNode, toDisplayString, Fragment, renderList, unref, createVNode, createCommentVNode } from "vue";
2
- import { h as headRequest, R as REPO_MODULE, t as transWebUrl, I as Icon, a as useReport, b as REPO_EVENT, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-f54d7926.js";
3
- import { u as useReportRepo, f as formatNameSpace } from "./formatNameSpace-9196273a.js";
1
+ import { inject, ref, watch, onMounted, openBlock, createElementBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createVNode, createCommentVNode } from "vue";
2
+ import { a as i18n, h as headRequest, R as REPO_MODULE, t as transWebUrl, I as Icon, b as useReport, c as REPO_EVENT, d as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-291ee909.js";
3
+ import { u as useReportRepo, f as formatNameSpace } from "./formatNameSpace-b20908aa.js";
4
4
  import "vue-devui-lal/icon";
5
5
  import "vue-devui-lal/icon/style.css";
6
6
  import "vue-devui-lal/button";
@@ -11,7 +11,6 @@ import "vue-devui-lal/button/style.css";
11
11
  import "vue-devui-lal/popover/style.css";
12
12
  import "vue-devui-lal/tooltip/style.css";
13
13
  import "vue-devui-lal/textarea/style.css";
14
- import "vue-i18n";
15
14
  import "vue-router";
16
15
  import "@vueuse/core";
17
16
  import "vue-devui-lal/avatar";
@@ -60,6 +59,7 @@ const _sfc_main = {
60
59
  __name: "GloabarSearch",
61
60
  props: ["searchStr"],
62
61
  setup(__props) {
62
+ const { t: $t } = i18n.global;
63
63
  const API = headRequest(inject("request"));
64
64
  const { triggerReport } = useReportRepo({ moduleName: REPO_MODULE.SEARCH_SUGGESTION_CARD }, API.viewReport);
65
65
  const searchFileList = ref([]);
@@ -114,7 +114,7 @@ const _sfc_main = {
114
114
  });
115
115
  return (_ctx, _cache) => {
116
116
  return searchFileList.value.length ? (openBlock(), createElementBlock("div", _hoisted_1, [
117
- createElementVNode("p", _hoisted_2, toDisplayString(_ctx.$t("gitCodeLayout.header.repo")), 1),
117
+ createElementVNode("p", _hoisted_2, toDisplayString(unref($t)("gitCodeLayout.header.repo")), 1),
118
118
  (openBlock(true), createElementBlock(Fragment, null, renderList(searchFileList.value, (item) => {
119
119
  return openBlock(), createElementBlock("a", {
120
120
  href: unref(transWebUrl)(item.path, { source_module: "search_project" }),
@@ -1,5 +1,5 @@
1
- import { ref, inject, computed, withDirectives, openBlock, createElementBlock, createElementVNode, toDisplayString, Fragment, renderList, createVNode, vShow } from "vue";
2
- import { h as headRequest, I as Icon, r as reqCatch } from "./index-f54d7926.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, I as Icon, r as reqCatch } from "./index-291ee909.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";
@@ -11,7 +11,6 @@ import "vue-devui-lal/button/style.css";
11
11
  import "vue-devui-lal/popover/style.css";
12
12
  import "vue-devui-lal/tooltip/style.css";
13
13
  import "vue-devui-lal/textarea/style.css";
14
- import "vue-i18n";
15
14
  import "@vueuse/core";
16
15
  import "vue-devui-lal/avatar";
17
16
  import "vue-devui-lal/avatar/style.css";
@@ -56,6 +55,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({ name: "SearchFileList" }, {
56
55
  __name: "ProjectSearch",
57
56
  props: ["searchStr", "searchInfo", "isSearchPage"],
58
57
  setup(__props) {
58
+ const { t: $t } = i18n.global;
59
59
  const props = __props;
60
60
  const filedList = ref([]);
61
61
  const route = useRoute();
@@ -105,7 +105,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({ name: "SearchFileList" }, {
105
105
  };
106
106
  return (_ctx, _cache) => {
107
107
  return withDirectives((openBlock(), createElementBlock("div", _hoisted_1, [
108
- createElementVNode("p", _hoisted_2, toDisplayString(_ctx.$t("gitCodeLayout.header.file")), 1),
108
+ createElementVNode("p", _hoisted_2, toDisplayString(unref($t)("gitCodeLayout.header.file")), 1),
109
109
  (openBlock(true), createElementBlock(Fragment, null, renderList(searchFileList.value, (item, index) => {
110
110
  return openBlock(), createElementBlock("a", {
111
111
  key: index,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, openBlock, createElementBlock, Fragment, renderList, normalizeClass, createElementVNode, createVNode, toDisplayString, withModifiers, createCommentVNode } from "vue";
2
- import { d as i18n, I as Icon, _ as _export_sfc } from "./index-f54d7926.js";
2
+ import { a as i18n, I as Icon, _ as _export_sfc } from "./index-291ee909.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  import "vue-devui-lal/button";
@@ -10,7 +10,6 @@ import "vue-devui-lal/button/style.css";
10
10
  import "vue-devui-lal/popover/style.css";
11
11
  import "vue-devui-lal/tooltip/style.css";
12
12
  import "vue-devui-lal/textarea/style.css";
13
- import "vue-i18n";
14
13
  import "vue-router";
15
14
  import "@vueuse/core";
16
15
  import "vue-devui-lal/avatar";
@@ -137,8 +136,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
137
136
  };
138
137
  }
139
138
  });
140
- const SearchHistoryList_vue_vue_type_style_index_0_scoped_08742604_lang = "";
141
- const SearchHistoryList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-08742604"]]);
139
+ const SearchHistoryList_vue_vue_type_style_index_0_scoped_291bc28d_lang = "";
140
+ const SearchHistoryList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-291bc28d"]]);
142
141
  export {
143
142
  SearchHistoryList as default
144
143
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, withDirectives, withModifiers, createVNode, vShow } from "vue";
2
- import { I as Icon, _ as _export_sfc } from "./index-f54d7926.js";
2
+ import { I as Icon, _ as _export_sfc } from "./index-291ee909.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  import "vue-devui-lal/button";
@@ -10,7 +10,6 @@ import "vue-devui-lal/button/style.css";
10
10
  import "vue-devui-lal/popover/style.css";
11
11
  import "vue-devui-lal/tooltip/style.css";
12
12
  import "vue-devui-lal/textarea/style.css";
13
- import "vue-i18n";
14
13
  import "vue-router";
15
14
  import "@vueuse/core";
16
15
  import "vue-devui-lal/avatar";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, toDisplayString, inject, ref, openBlock, createElementBlock, normalizeClass, createElementVNode, withModifiers, withDirectives, vShow, createVNode, computed, unref, normalizeStyle, createCommentVNode, createTextVNode, onMounted, onUnmounted, Fragment, createBlock, renderList, reactive, resolveComponent, withCtx } from "vue";
2
- import { h as headRequest, I as Icon, r as reqCatch, _ as _export_sfc, T as TOPIC_TYPE, f as useTimeFormat, g as usePageResize, d as i18n, j as highlightWords, t as transWebUrl, k as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL, R as REPO_MODULE, a as useReport, b as REPO_EVENT } from "./index-f54d7926.js";
3
- import { f as formatNameSpace, u as useReportRepo } from "./formatNameSpace-9196273a.js";
2
+ import { h as headRequest, I as Icon, r as reqCatch, _ as _export_sfc, a as i18n, T as TOPIC_TYPE, f as useTimeFormat, g as usePageResize, j as highlightWords, t as transWebUrl, k as _frEventTrack, E as EVENT_NAME, d as REPO_TYPE, e as extractRepoInfoWithURL, R as REPO_MODULE, b as useReport, c as REPO_EVENT } from "./index-291ee909.js";
3
+ import { f as formatNameSpace, u as useReportRepo } from "./formatNameSpace-b20908aa.js";
4
4
  import { useRouter } from "vue-router";
5
5
  import { Row, Col } from "vue-devui-lal/grid";
6
6
  import "vue-devui-lal/grid/style.css";
@@ -14,7 +14,6 @@ import "vue-devui-lal/tooltip/style.css";
14
14
  import "vue-devui-lal/textarea/style.css";
15
15
  import "vue-devui-lal/icon";
16
16
  import "vue-devui-lal/icon/style.css";
17
- import "vue-i18n";
18
17
  import "@vueuse/core";
19
18
  import "vue-devui-lal/avatar";
20
19
  import "vue-devui-lal/avatar/style.css";
@@ -265,6 +264,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
265
264
  hideText: { type: Boolean }
266
265
  },
267
266
  setup(__props) {
267
+ const { t: $t } = i18n.global;
268
268
  return (_ctx, _cache) => {
269
269
  return openBlock(), createElementBlock("div", _hoisted_1$4, [
270
270
  createVNode(Icon, {
@@ -272,7 +272,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
272
272
  color: "var(--theme-home-card-color-placeholder)",
273
273
  size: "14"
274
274
  }),
275
- !_ctx.hideText ? (openBlock(), createElementBlock("span", _hoisted_2$4, toDisplayString(_ctx.$t("gitCodeLayout.components.repo.today")), 1)) : createCommentVNode("", true),
275
+ !_ctx.hideText ? (openBlock(), createElementBlock("span", _hoisted_2$4, toDisplayString(unref($t)("gitCodeLayout.components.repo.today")), 1)) : createCommentVNode("", true),
276
276
  createVNode(_sfc_main$8, {
277
277
  number: _ctx.starCountOne || 0
278
278
  }, null, 8, ["number"])
@@ -280,8 +280,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
280
280
  };
281
281
  }
282
282
  });
283
- const index_vue_vue_type_style_index_0_scoped_e09fabb0_lang = "";
284
- const StarCountOne = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-e09fabb0"]]);
283
+ const index_vue_vue_type_style_index_0_scoped_de8d9362_lang = "";
284
+ const StarCountOne = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-de8d9362"]]);
285
285
  const _hoisted_1$3 = { class: "github-star-num" };
286
286
  const _hoisted_2$3 = { class: "leading-none" };
287
287
  const _sfc_main$3 = /* @__PURE__ */ defineComponent({
@@ -600,6 +600,7 @@ const _hoisted_4 = { key: 1 };
600
600
  const _sfc_main = /* @__PURE__ */ defineComponent({
601
601
  __name: "SearchRecommed",
602
602
  setup(__props) {
603
+ const { t: $t } = i18n.global;
603
604
  const API = headRequest(inject("request"));
604
605
  const { triggerReport } = useReportRepo({ moduleName: REPO_MODULE.SEARCH_SUGGESTION_CARD }, API.viewReport);
605
606
  const recommendRepoList = ref([]);
@@ -641,7 +642,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
641
642
  const _component_DSkeletonItem = resolveComponent("DSkeletonItem");
642
643
  return openBlock(), createElementBlock("div", _hoisted_1, [
643
644
  recommendRepoList.value.length ? (openBlock(), createElementBlock("div", _hoisted_2, [
644
- createElementVNode("div", _hoisted_3, toDisplayString(_ctx.$t("gitCodeLayout.search.trendingToday")), 1),
645
+ createElementVNode("div", _hoisted_3, toDisplayString(unref($t)("gitCodeLayout.search.trendingToday")), 1),
645
646
  (openBlock(true), createElementBlock(Fragment, null, renderList(recommendRepoList.value, (item, index) => {
646
647
  return openBlock(), createBlock(SearchRepoCard, {
647
648
  key: item.id,
@@ -724,8 +725,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
724
725
  };
725
726
  }
726
727
  });
727
- const SearchRecommed_vue_vue_type_style_index_0_scoped_e287f852_lang = "";
728
- const SearchRecommed = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e287f852"]]);
728
+ const SearchRecommed_vue_vue_type_style_index_0_scoped_8c46cbc3_lang = "";
729
+ const SearchRecommed = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8c46cbc3"]]);
729
730
  export {
730
731
  SearchRecommed as default
731
732
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent, openBlock, createElementBlock, Fragment, renderList, createElementVNode, createVNode, toDisplayString, createCommentVNode } from "vue";
2
- import { I as Icon, _ as _export_sfc } from "./index-f54d7926.js";
1
+ import { defineComponent, openBlock, createElementBlock, Fragment, renderList, createElementVNode, createVNode, toDisplayString, createCommentVNode, unref } from "vue";
2
+ import { a as i18n, I as Icon, _ as _export_sfc } from "./index-291ee909.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  import "vue-devui-lal/button";
@@ -10,7 +10,6 @@ import "vue-devui-lal/button/style.css";
10
10
  import "vue-devui-lal/popover/style.css";
11
11
  import "vue-devui-lal/tooltip/style.css";
12
12
  import "vue-devui-lal/textarea/style.css";
13
- import "vue-i18n";
14
13
  import "vue-router";
15
14
  import "@vueuse/core";
16
15
  import "vue-devui-lal/avatar";
@@ -64,6 +63,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
64
63
  },
65
64
  emits: ["scopeSearch"],
66
65
  setup(__props, { emit: __emit }) {
66
+ const { t: $t } = i18n.global;
67
67
  const emit = __emit;
68
68
  const onScopeSearch = (item) => {
69
69
  emit("scopeSearch", item);
@@ -87,7 +87,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
87
87
  createElementVNode("span", _hoisted_6, toDisplayString(_ctx.searchStr), 1)
88
88
  ]),
89
89
  createElementVNode("p", _hoisted_7, [
90
- createElementVNode("span", null, toDisplayString(item.label ? `${item.label}${_ctx.$t("gitCodeLayout.header.underSearch")}` : item.title), 1),
90
+ createElementVNode("span", null, toDisplayString(item.label ? `${item.label}${unref($t)("gitCodeLayout.header.underSearch")}` : item.title), 1),
91
91
  createVNode(Icon, { name: "gt-line-right" })
92
92
  ])
93
93
  ]),
@@ -98,8 +98,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
98
98
  };
99
99
  }
100
100
  });
101
- const SearchScopeList_vue_vue_type_style_index_0_scoped_981fbb2e_lang = "";
102
- const SearchScopeList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-981fbb2e"]]);
101
+ const SearchScopeList_vue_vue_type_style_index_0_scoped_2665307e_lang = "";
102
+ const SearchScopeList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2665307e"]]);
103
103
  export {
104
104
  SearchScopeList as default
105
105
  };
@@ -1,5 +1,5 @@
1
- import { inject, ref, watch, withDirectives, openBlock, createElementBlock, createElementVNode, toDisplayString, Fragment, renderList, createVNode, vShow } from "vue";
2
- import { h as headRequest, I as Icon } from "./index-f54d7926.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, I as Icon } from "./index-291ee909.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  import "vue-devui-lal/button";
@@ -10,7 +10,6 @@ import "vue-devui-lal/button/style.css";
10
10
  import "vue-devui-lal/popover/style.css";
11
11
  import "vue-devui-lal/tooltip/style.css";
12
12
  import "vue-devui-lal/textarea/style.css";
13
- import "vue-i18n";
14
13
  import "vue-router";
15
14
  import "@vueuse/core";
16
15
  import "vue-devui-lal/avatar";
@@ -56,6 +55,7 @@ const _sfc_main = {
56
55
  __name: "UserSearch",
57
56
  props: ["searchStr", "searchInfo"],
58
57
  setup(__props) {
58
+ const { t: $t } = i18n.global;
59
59
  const API = headRequest(inject("request"));
60
60
  const props = __props;
61
61
  const loading = ref(false);
@@ -103,7 +103,7 @@ const _sfc_main = {
103
103
  });
104
104
  return (_ctx, _cache) => {
105
105
  return withDirectives((openBlock(), createElementBlock("div", _hoisted_1, [
106
- createElementVNode("p", _hoisted_2, toDisplayString(_ctx.$t("gitCodeLayout.header.repo")), 1),
106
+ createElementVNode("p", _hoisted_2, toDisplayString(unref($t)("gitCodeLayout.header.repo")), 1),
107
107
  (openBlock(true), createElementBlock(Fragment, null, renderList(searchFileList.value, (item, index) => {
108
108
  return openBlock(), createElementBlock("a", {
109
109
  key: index,
@@ -1,5 +1,5 @@
1
1
  import { ref, watchEffect } from "vue";
2
- import { l as debounce } from "./index-f54d7926.js";
2
+ import { l as debounce } from "./index-291ee909.js";
3
3
  const useReportRepo = (reportParams, viewReport) => {
4
4
  const list = ref([]);
5
5
  const pageRef = ref((window == null ? void 0 : window.page_ref) || "");