vue-layout-gitcode 1.1.17 → 1.1.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,8 +1,8 @@
1
1
  import { inject, ref, watch, onMounted, openBlock, createElementBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createBlock, createCommentVNode } from "vue";
2
2
  import "vue-devui-lal/icon";
3
3
  import "vue-devui-lal/icon/style.css";
4
- import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_EVENT, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-4b4612e4.js";
5
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-b69c028f.js";
4
+ import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_EVENT, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-d153dd8f.js";
5
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-393a2de4.js";
6
6
  import "vue-devui-lal/button";
7
7
  import "vue-devui-lal/popover";
8
8
  import "vue-devui-lal/tooltip";
@@ -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-4b4612e4.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-d153dd8f.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-4b4612e4.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-d153dd8f.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  import "vue-devui-lal/button";
@@ -136,8 +136,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
136
136
  };
137
137
  }
138
138
  });
139
- const SearchHistoryList_vue_vue_type_style_index_0_scoped_8ddb64f7_lang = "";
140
- const SearchHistoryList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8ddb64f7"]]);
139
+ const SearchHistoryList_vue_vue_type_style_index_0_scoped_291bc28d_lang = "";
140
+ const SearchHistoryList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-291bc28d"]]);
141
141
  export {
142
142
  SearchHistoryList as default
143
143
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, withDirectives, withModifiers, createVNode, vShow } from "vue";
2
- import { G as GIcon, _ as _export_sfc } from "./index-4b4612e4.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-d153dd8f.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  import "vue-devui-lal/button";
@@ -83,8 +83,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
83
83
  };
84
84
  }
85
85
  });
86
- const SearchPrefixTag_vue_vue_type_style_index_0_scoped_87adc0d6_lang = "";
87
- const SearchPrefixTag = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-87adc0d6"]]);
86
+ const SearchPrefixTag_vue_vue_type_style_index_0_scoped_b6e9241b_lang = "";
87
+ const SearchPrefixTag = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b6e9241b"]]);
88
88
  export {
89
89
  SearchPrefixTag as default
90
90
  };
@@ -1,11 +1,12 @@
1
1
  import { defineComponent, inject, ref, onMounted, openBlock, createElementBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createBlock, createVNode, withCtx } from "vue";
2
- import { u as useReportRepo, S as SearchRepoCard } from "./index-b69c028f.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-4b4612e4.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-393a2de4.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-d153dd8f.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";
7
7
  import "vue-devui-lal/skeleton/style.css";
8
8
  import "vue-router";
9
+ import "@vueuse/core";
9
10
  import "vue-devui-lal/button";
10
11
  import "vue-devui-lal/popover";
11
12
  import "vue-devui-lal/tooltip";
@@ -16,7 +17,6 @@ import "vue-devui-lal/tooltip/style.css";
16
17
  import "vue-devui-lal/textarea/style.css";
17
18
  import "vue-devui-lal/icon";
18
19
  import "vue-devui-lal/icon/style.css";
19
- import "@vueuse/core";
20
20
  import "vue-devui-lal/avatar";
21
21
  import "vue-devui-lal/avatar/style.css";
22
22
  import "vue-devui-lal/dropdown";
@@ -180,8 +180,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
180
180
  };
181
181
  }
182
182
  });
183
- const SearchRecommed_vue_vue_type_style_index_0_scoped_6d3c2075_lang = "";
184
- const SearchRecommed = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6d3c2075"]]);
183
+ const SearchRecommed_vue_vue_type_style_index_0_scoped_a284079f_lang = "";
184
+ const SearchRecommed = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a284079f"]]);
185
185
  export {
186
186
  SearchRecommed as default
187
187
  };
@@ -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-4b4612e4.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-d153dd8f.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  import "vue-devui-lal/button";
@@ -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_2b0b67b9_lang = "";
102
- const SearchScopeList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2b0b67b9"]]);
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
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 } from "./index-4b4612e4.js";
2
+ import { a as i18n, h as headRequest, G as GIcon } from "./index-d153dd8f.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  import "vue-devui-lal/button";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, onMounted, openBlock, createBlock, unref, withCtx, createElementVNode } from "vue";
2
2
  import { FixedOverlay } from "vue-devui-lal/overlay";
3
- import { p as useLayoutConfig, _ as _export_sfc } from "./index-4b4612e4.js";
3
+ import { q as useLayoutConfig, _ as _export_sfc } from "./index-d153dd8f.js";
4
4
  import "vue-devui-lal/overlay/style.css";
5
5
  import "vue-devui-lal/button";
6
6
  import "vue-devui-lal/popover";
@@ -99,8 +99,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
99
99
  };
100
100
  }
101
101
  });
102
- const index_vue_vue_type_style_index_0_scoped_325ac2b0_lang = "";
103
- const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-325ac2b0"]]);
102
+ const index_vue_vue_type_style_index_0_scoped_37ed6e3d_lang = "";
103
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-37ed6e3d"]]);
104
104
  export {
105
105
  index as default
106
106
  };
@@ -1,10 +1,11 @@
1
1
  import { ref, watchEffect, defineComponent, toDisplayString, inject, openBlock, createElementBlock, normalizeClass, createElementVNode, withModifiers, withDirectives, vShow, createVNode, computed, unref, normalizeStyle, createCommentVNode, createTextVNode, onMounted, onUnmounted, Fragment, createBlock, renderList, reactive, withCtx } from "vue";
2
- import { d as debounce, h as headRequest, G as GIcon, r as reqCatch, _ as _export_sfc, a as i18n, T as TOPIC_TYPE, f as useTimeFormat, g as usePageResize, j as isGstarRepo, k as _sfc_main$8, m as isIncubationRepo, n as highlightWords, t as transWebUrl, o as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-4b4612e4.js";
2
+ import { d as debounce, h as headRequest, G as GIcon, r as reqCatch, _ as _export_sfc, a as i18n, T as TOPIC_TYPE, f as useTimeFormat, L as LANG_KEY, g as LANG_ZH, j as usePageResize, k as isGstarRepo, m as _sfc_main$8, n as isIncubationRepo, o as highlightWords, t as transWebUrl, p as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-d153dd8f.js";
3
3
  import { useRouter } from "vue-router";
4
4
  import { Row, Col } from "vue-devui-lal/grid";
5
5
  import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";
6
6
  import "vue-devui-lal/grid/style.css";
7
7
  import "vue-devui-lal/skeleton/style.css";
8
+ import { useLocalStorage } from "@vueuse/core";
8
9
  const useReportRepo = (reportParams, viewReport) => {
9
10
  const list = ref([]);
10
11
  const pageRef = ref((window == null ? void 0 : window.page_ref) || "");
@@ -205,8 +206,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
205
206
  };
206
207
  }
207
208
  });
208
- const index_vue_vue_type_style_index_0_scoped_6d9f98e2_lang = "";
209
- const StarTag = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-6d9f98e2"]]);
209
+ const index_vue_vue_type_style_index_0_scoped_754df2e0_lang = "";
210
+ const StarTag = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-754df2e0"]]);
210
211
  const _hoisted_1$4 = { class: "fork-tag" };
211
212
  const _sfc_main$5 = /* @__PURE__ */ defineComponent({
212
213
  __name: "index",
@@ -231,8 +232,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
231
232
  };
232
233
  }
233
234
  });
234
- const index_vue_vue_type_style_index_0_scoped_cb84d9d8_lang = "";
235
- const ForkTag = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-cb84d9d8"]]);
235
+ const index_vue_vue_type_style_index_0_scoped_98be5d7f_lang = "";
236
+ const ForkTag = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-98be5d7f"]]);
236
237
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
237
238
  __name: "index",
238
239
  props: {
@@ -278,8 +279,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
278
279
  };
279
280
  }
280
281
  });
281
- const index_vue_vue_type_style_index_0_scoped_f41c9ade_lang = "";
282
- const LanguageTag = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-f41c9ade"]]);
282
+ const index_vue_vue_type_style_index_0_scoped_6e1aad17_lang = "";
283
+ const LanguageTag = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-6e1aad17"]]);
283
284
  const _hoisted_1$3 = { class: "star-count-one" };
284
285
  const _hoisted_2$3 = { key: 0 };
285
286
  const _sfc_main$3 = /* @__PURE__ */ defineComponent({
@@ -306,8 +307,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
306
307
  };
307
308
  }
308
309
  });
309
- const index_vue_vue_type_style_index_0_scoped_33d28127_lang = "";
310
- const StarCountOne = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-33d28127"]]);
310
+ const index_vue_vue_type_style_index_0_scoped_de8d9362_lang = "";
311
+ const StarCountOne = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-de8d9362"]]);
311
312
  const _hoisted_1$2 = { class: "github-star-num" };
312
313
  const _hoisted_2$2 = { class: "leading-none" };
313
314
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
@@ -334,8 +335,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
334
335
  };
335
336
  }
336
337
  });
337
- const index_vue_vue_type_style_index_0_scoped_49819ac3_lang = "";
338
- const GithubStarNum = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-49819ac3"]]);
338
+ const index_vue_vue_type_style_index_0_scoped_7f7e79b1_lang = "";
339
+ const GithubStarNum = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-7f7e79b1"]]);
339
340
  const _hoisted_1$1 = { class: "repo-card-footer mt-[4px]" };
340
341
  const _hoisted_2$1 = {
341
342
  key: 3,
@@ -427,8 +428,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
427
428
  };
428
429
  }
429
430
  });
430
- const index_vue_vue_type_style_index_0_scoped_e5f7b6fb_lang = "";
431
- const RepoCardFooter = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-e5f7b6fb"]]);
431
+ const index_vue_vue_type_style_index_0_scoped_ca800e14_lang = "";
432
+ const RepoCardFooter = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-ca800e14"]]);
432
433
  const _hoisted_1 = ["innerHTML"];
433
434
  const _hoisted_2 = {
434
435
  key: 0,
@@ -453,6 +454,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
453
454
  },
454
455
  emits: ["report"],
455
456
  setup(__props, { emit: __emit }) {
457
+ const lang = useLocalStorage(LANG_KEY, LANG_ZH);
458
+ console.log("lang", lang.value);
456
459
  const API = headRequest(inject("request"));
457
460
  const emits = __emit;
458
461
  const router = useRouter();
@@ -476,6 +479,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
476
479
  }
477
480
  return repoIcon[props.cardType] || "gt-line-repositories";
478
481
  });
482
+ const description = computed(() => {
483
+ if (lang.value === LANG_ZH) {
484
+ return props.info.description_cn;
485
+ }
486
+ return props.info.description || props.info.description_cn;
487
+ });
479
488
  const graphInfo = reactive({ commit_stat: null, trends: null });
480
489
  const starInfo = computed(() => {
481
490
  return { id: props.info.id, starred: props.info.starred, starCount: props.info.star_count };
@@ -591,7 +600,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
591
600
  _: 1
592
601
  }),
593
602
  createElementVNode("div", {
594
- innerHTML: unref(highlightWords)("", _ctx.info.description),
603
+ innerHTML: unref(highlightWords)("", description.value),
595
604
  class: "i-search-projects-card-desc ellipsis"
596
605
  }, null, 8, _hoisted_5),
597
606
  _ctx.info.index === 0 && _ctx.info.is_recommend ? (openBlock(), createElementBlock("div", _hoisted_6, [
@@ -648,8 +657,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
648
657
  };
649
658
  }
650
659
  });
651
- const index_vue_vue_type_style_index_0_scoped_004d33c4_lang = "";
652
- const SearchRepoCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-004d33c4"]]);
660
+ const index_vue_vue_type_style_index_0_scoped_87123242_lang = "";
661
+ const SearchRepoCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-87123242"]]);
653
662
  export {
654
663
  SearchRepoCard as S,
655
664
  formatNameSpace as f,