vue-layout-gitcode 1.1.19 → 1.1.21

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,52 +1,7 @@
1
- import { defineComponent, onMounted, openBlock, createBlock, unref, withCtx, createElementVNode } from "vue";
1
+ import { defineComponent, onMounted, createBlock, openBlock, unref, withCtx, createElementVNode } from "vue";
2
2
  import { FixedOverlay } from "vue-devui-lal/overlay";
3
- import { q as useLayoutConfig, _ as _export_sfc } from "./index-d153dd8f.js";
3
+ import { q as useLayoutConfig, _ as _export_sfc } from "./index-CLx8tyts.js";
4
4
  import "vue-devui-lal/overlay/style.css";
5
- import "vue-devui-lal/button";
6
- import "vue-devui-lal/popover";
7
- import "vue-devui-lal/tooltip";
8
- import "vue-devui-lal/textarea";
9
- import "vue-devui-lal/button/style.css";
10
- import "vue-devui-lal/popover/style.css";
11
- import "vue-devui-lal/tooltip/style.css";
12
- import "vue-devui-lal/textarea/style.css";
13
- import "vue-devui-lal/icon";
14
- import "vue-devui-lal/icon/style.css";
15
- import "vue-router";
16
- import "@vueuse/core";
17
- import "vue-devui-lal/avatar";
18
- import "vue-devui-lal/avatar/style.css";
19
- import "vue-devui-lal/dropdown";
20
- import "vue-devui-lal/dropdown/style.css";
21
- import "dayjs";
22
- import "vue-devui-lal/skeleton";
23
- import "vue-devui-lal/skeleton/style.css";
24
- import "vue-devui-lal/message";
25
- import "vue-devui-lal/message/style.css";
26
- import "vue-devui-lal/badge";
27
- import "vue-devui-lal/badge/style.css";
28
- import "vue-devui-lal/tabs/style.css";
29
- import "vue-devui-lal/input";
30
- import "vue-devui-lal/form";
31
- import "vue-devui-lal/input/style.css";
32
- import "vue-devui-lal/form/style.css";
33
- import "vue-devui-lal/notification";
34
- import "vue-devui-lal/notification/style.css";
35
- import "vue-devui-lal/select";
36
- import "vue-devui-lal/menu";
37
- import "vue-devui-lal/select/style.css";
38
- import "vue-devui-lal/menu/style.css";
39
- import "vue-devui-lal/drawer";
40
- import "vue-devui-lal/layout";
41
- import "vue-devui-lal/drawer/style.css";
42
- import "vue-devui-lal/layout/style.css";
43
- import "vue-devui-lal/radio";
44
- import "@devui-design/icons/icomoon/devui-icon.css";
45
- import "vue-devui-lal/radio/style.css";
46
- import "vue-devui-lal/checkbox";
47
- import "vue-devui-lal/checkbox/style.css";
48
- import "vue-devui-lal/modal";
49
- import "vue-devui-lal/modal/style.css";
50
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
51
6
  __name: "index",
52
7
  emits: ["close", "success"],
@@ -99,8 +54,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
99
54
  };
100
55
  }
101
56
  });
102
- const index_vue_vue_type_style_index_0_scoped_37ed6e3d_lang = "";
103
- const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-37ed6e3d"]]);
57
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-gitcode-layout-lib"]]);
104
58
  export {
105
59
  index as default
106
60
  };
@@ -1,5 +1,5 @@
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, 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";
1
+ import { ref, watchEffect, defineComponent, toDisplayString, inject, createElementBlock, openBlock, normalizeClass, createElementVNode, withModifiers, withDirectives, vShow, createVNode, computed, createCommentVNode, unref, normalizeStyle, 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, 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, b as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-CLx8tyts.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";
@@ -28,10 +28,8 @@ const useReportRepo = (reportParams, viewReport) => {
28
28
  };
29
29
  const formatItem = (data) => {
30
30
  const channelNames = [];
31
- if (data.channelName)
32
- channelNames.push(data.channelName);
33
- if (data.subChannelName)
34
- channelNames.push(data.subChannelName);
31
+ if (data.channelName) channelNames.push(data.channelName);
32
+ if (data.subChannelName) channelNames.push(data.subChannelName);
35
33
  return {
36
34
  type: "gitcode",
37
35
  repo_id: data.id,
@@ -139,8 +137,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
139
137
  const handleStar = async (e) => {
140
138
  e.preventDefault();
141
139
  try {
142
- if (starLoading.value)
143
- return;
140
+ if (starLoading.value) return;
144
141
  starLoading.value = true;
145
142
  const params = { repoId: props.starInfo.id };
146
143
  let res;
@@ -206,8 +203,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
206
203
  };
207
204
  }
208
205
  });
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"]]);
206
+ const StarTag = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-gitcode-layout-lib"]]);
211
207
  const _hoisted_1$4 = { class: "fork-tag" };
212
208
  const _sfc_main$5 = /* @__PURE__ */ defineComponent({
213
209
  __name: "index",
@@ -232,8 +228,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
232
228
  };
233
229
  }
234
230
  });
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"]]);
231
+ const ForkTag = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-gitcode-layout-lib"]]);
237
232
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
238
233
  __name: "index",
239
234
  props: {
@@ -279,8 +274,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
279
274
  };
280
275
  }
281
276
  });
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"]]);
277
+ const LanguageTag = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
284
278
  const _hoisted_1$3 = { class: "star-count-one" };
285
279
  const _hoisted_2$3 = { key: 0 };
286
280
  const _sfc_main$3 = /* @__PURE__ */ defineComponent({
@@ -307,8 +301,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
307
301
  };
308
302
  }
309
303
  });
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"]]);
304
+ const StarCountOne = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-gitcode-layout-lib"]]);
312
305
  const _hoisted_1$2 = { class: "github-star-num" };
313
306
  const _hoisted_2$2 = { class: "leading-none" };
314
307
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
@@ -335,8 +328,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
335
328
  };
336
329
  }
337
330
  });
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"]]);
331
+ const GithubStarNum = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-gitcode-layout-lib"]]);
340
332
  const _hoisted_1$1 = { class: "repo-card-footer mt-[4px]" };
341
333
  const _hoisted_2$1 = {
342
334
  key: 3,
@@ -428,8 +420,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
428
420
  };
429
421
  }
430
422
  });
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"]]);
423
+ const RepoCardFooter = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-gitcode-layout-lib"]]);
433
424
  const _hoisted_1 = ["innerHTML"];
434
425
  const _hoisted_2 = {
435
426
  key: 0,
@@ -455,7 +446,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
455
446
  emits: ["report"],
456
447
  setup(__props, { emit: __emit }) {
457
448
  const lang = useLocalStorage(LANG_KEY, LANG_ZH);
458
- console.log("lang", lang.value);
459
449
  const API = headRequest(inject("request"));
460
450
  const emits = __emit;
461
451
  const router = useRouter();
@@ -481,7 +471,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
481
471
  });
482
472
  const description = computed(() => {
483
473
  if (lang.value === LANG_ZH) {
484
- return props.info.description_cn;
474
+ return props.info.description_cn || props.info.description;
485
475
  }
486
476
  return props.info.description || props.info.description_cn;
487
477
  });
@@ -532,8 +522,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
532
522
  return highlightWords(keyword, contentArr.join("/"), true);
533
523
  };
534
524
  onMounted(() => {
535
- if (props.info.is_recommend && props.info.index === 0)
536
- handleQueryGraph();
525
+ if (props.info.is_recommend && props.info.index === 0) handleQueryGraph();
537
526
  });
538
527
  return (_ctx, _cache) => {
539
528
  return openBlock(), createElementBlock("a", {
@@ -657,8 +646,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
657
646
  };
658
647
  }
659
648
  });
660
- const index_vue_vue_type_style_index_0_scoped_87123242_lang = "";
661
- const SearchRepoCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-87123242"]]);
649
+ const SearchRepoCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-gitcode-layout-lib"]]);
662
650
  export {
663
651
  SearchRepoCard as S,
664
652
  formatNameSpace as f,
package/index.js CHANGED
@@ -1,50 +1,4 @@
1
- import { w, x, A, v, S, s, B, D, z, C, y } from "./index-d153dd8f.js";
2
- import "vue";
3
- import "vue-devui-lal/button";
4
- import "vue-devui-lal/popover";
5
- import "vue-devui-lal/tooltip";
6
- import "vue-devui-lal/textarea";
7
- import "vue-devui-lal/button/style.css";
8
- import "vue-devui-lal/popover/style.css";
9
- import "vue-devui-lal/tooltip/style.css";
10
- import "vue-devui-lal/textarea/style.css";
11
- import "vue-devui-lal/icon";
12
- import "vue-devui-lal/icon/style.css";
13
- import "vue-router";
14
- import "@vueuse/core";
15
- import "vue-devui-lal/avatar";
16
- import "vue-devui-lal/avatar/style.css";
17
- import "vue-devui-lal/dropdown";
18
- import "vue-devui-lal/dropdown/style.css";
19
- import "dayjs";
20
- import "vue-devui-lal/skeleton";
21
- import "vue-devui-lal/skeleton/style.css";
22
- import "vue-devui-lal/message";
23
- import "vue-devui-lal/message/style.css";
24
- import "vue-devui-lal/badge";
25
- import "vue-devui-lal/badge/style.css";
26
- import "vue-devui-lal/tabs/style.css";
27
- import "vue-devui-lal/input";
28
- import "vue-devui-lal/form";
29
- import "vue-devui-lal/input/style.css";
30
- import "vue-devui-lal/form/style.css";
31
- import "vue-devui-lal/notification";
32
- import "vue-devui-lal/notification/style.css";
33
- import "vue-devui-lal/select";
34
- import "vue-devui-lal/menu";
35
- import "vue-devui-lal/select/style.css";
36
- import "vue-devui-lal/menu/style.css";
37
- import "vue-devui-lal/drawer";
38
- import "vue-devui-lal/layout";
39
- import "vue-devui-lal/drawer/style.css";
40
- import "vue-devui-lal/layout/style.css";
41
- import "vue-devui-lal/radio";
42
- import "@devui-design/icons/icomoon/devui-icon.css";
43
- import "vue-devui-lal/radio/style.css";
44
- import "vue-devui-lal/checkbox";
45
- import "vue-devui-lal/checkbox/style.css";
46
- import "vue-devui-lal/modal";
47
- import "vue-devui-lal/modal/style.css";
1
+ import { w, x, A, v, S, s, B, D, z, C, y } from "./index-CLx8tyts.js";
48
2
  export {
49
3
  w as GitCodeAside,
50
4
  x as GitCodeHeader,
@@ -1,50 +1,9 @@
1
- import { defineComponent, computed, openBlock, createBlock, unref, isRef, withCtx, createElementVNode, normalizeClass, createVNode, createTextVNode } from "vue";
2
- import { i as isPhone, u as useModel } from "./index-d153dd8f.js";
1
+ import { defineComponent, computed, createBlock, openBlock, unref, isRef, withCtx, createElementVNode, normalizeClass, createVNode, createTextVNode } from "vue";
2
+ import { i as isPhone, u as useModel } from "./index-CLx8tyts.js";
3
3
  import { Notification } from "vue-devui-lal/notification";
4
4
  import { Button } from "vue-devui-lal/button";
5
5
  import "vue-devui-lal/notification/style.css";
6
6
  import "vue-devui-lal/button/style.css";
7
- import "vue-devui-lal/popover";
8
- import "vue-devui-lal/tooltip";
9
- import "vue-devui-lal/textarea";
10
- import "vue-devui-lal/popover/style.css";
11
- import "vue-devui-lal/tooltip/style.css";
12
- import "vue-devui-lal/textarea/style.css";
13
- import "vue-devui-lal/icon";
14
- import "vue-devui-lal/icon/style.css";
15
- import "vue-router";
16
- import "@vueuse/core";
17
- import "vue-devui-lal/avatar";
18
- import "vue-devui-lal/avatar/style.css";
19
- import "vue-devui-lal/dropdown";
20
- import "vue-devui-lal/dropdown/style.css";
21
- import "dayjs";
22
- import "vue-devui-lal/skeleton";
23
- import "vue-devui-lal/skeleton/style.css";
24
- import "vue-devui-lal/message";
25
- import "vue-devui-lal/message/style.css";
26
- import "vue-devui-lal/badge";
27
- import "vue-devui-lal/badge/style.css";
28
- import "vue-devui-lal/tabs/style.css";
29
- import "vue-devui-lal/input";
30
- import "vue-devui-lal/form";
31
- import "vue-devui-lal/input/style.css";
32
- import "vue-devui-lal/form/style.css";
33
- import "vue-devui-lal/select";
34
- import "vue-devui-lal/menu";
35
- import "vue-devui-lal/select/style.css";
36
- import "vue-devui-lal/menu/style.css";
37
- import "vue-devui-lal/drawer";
38
- import "vue-devui-lal/layout";
39
- import "vue-devui-lal/drawer/style.css";
40
- import "vue-devui-lal/layout/style.css";
41
- import "vue-devui-lal/radio";
42
- import "@devui-design/icons/icomoon/devui-icon.css";
43
- import "vue-devui-lal/radio/style.css";
44
- import "vue-devui-lal/checkbox";
45
- import "vue-devui-lal/checkbox/style.css";
46
- import "vue-devui-lal/modal";
47
- import "vue-devui-lal/modal/style.css";
48
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
49
8
  __name: "notice",
50
9
  props: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-layout-gitcode",
3
- "version": "1.1.19",
3
+ "version": "1.1.21",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",