vue-layout-gitcode 1.1.30 → 1.1.32

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,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, G as GIcon, r as reqCatch, h as headRequest, f as useRequestReport, _ as _export_sfc, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, L as LANG_KEY, j as LANG_ZH, k as usePageResize, m as isGstarRepo, n as _sfc_main$8, o as isIncubationRepo, p as highlightWords, t as transWebUrl, q as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-7ae1ece1.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, G as GIcon, f as useRequestReport, r as reqCatch, h as headRequest, _ as _export_sfc, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, L as LANG_KEY, j as LANG_ZH, k as usePageResize, m as isGstarRepo, n as _sfc_main$8, o as isIncubationRepo, p as highlightWords, t as transWebUrl, q as _frEventTrack, E as EVENT_NAME, b as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-Bk4Z_ktD.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
  const repoId = isNaN(Number(data.id)) ? data.id : Number(data.id);
36
34
  return {
37
35
  type: "gitcode",
@@ -148,8 +146,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
148
146
  useReport("login_exposure", { source: props.loginTriggerSource || "search_star_repo_recommend" });
149
147
  }
150
148
  try {
151
- if (starLoading.value)
152
- return;
149
+ if (starLoading.value) return;
153
150
  starLoading.value = true;
154
151
  const params = { repoId: props.starInfo.id };
155
152
  let res;
@@ -215,8 +212,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
215
212
  };
216
213
  }
217
214
  });
218
- const index_vue_vue_type_style_index_0_scoped_5e8b2cbd_lang = "";
219
- const StarTag = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-5e8b2cbd"]]);
215
+ const StarTag = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-gitcode-layout-lib"]]);
220
216
  const _hoisted_1$4 = { class: "fork-tag" };
221
217
  const _sfc_main$5 = /* @__PURE__ */ defineComponent({
222
218
  __name: "index",
@@ -241,8 +237,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
241
237
  };
242
238
  }
243
239
  });
244
- const index_vue_vue_type_style_index_0_scoped_98be5d7f_lang = "";
245
- const ForkTag = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-98be5d7f"]]);
240
+ const ForkTag = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-gitcode-layout-lib"]]);
246
241
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
247
242
  __name: "index",
248
243
  props: {
@@ -288,8 +283,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
288
283
  };
289
284
  }
290
285
  });
291
- const index_vue_vue_type_style_index_0_scoped_6e1aad17_lang = "";
292
- const LanguageTag = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-6e1aad17"]]);
286
+ const LanguageTag = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
293
287
  const _hoisted_1$3 = { class: "star-count-one" };
294
288
  const _hoisted_2$3 = { key: 0 };
295
289
  const _sfc_main$3 = /* @__PURE__ */ defineComponent({
@@ -316,8 +310,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
316
310
  };
317
311
  }
318
312
  });
319
- const index_vue_vue_type_style_index_0_scoped_de8d9362_lang = "";
320
- const StarCountOne = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-de8d9362"]]);
313
+ const StarCountOne = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-gitcode-layout-lib"]]);
321
314
  const _hoisted_1$2 = { class: "github-star-num" };
322
315
  const _hoisted_2$2 = { class: "leading-none" };
323
316
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
@@ -344,8 +337,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
344
337
  };
345
338
  }
346
339
  });
347
- const index_vue_vue_type_style_index_0_scoped_7f7e79b1_lang = "";
348
- const GithubStarNum = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-7f7e79b1"]]);
340
+ const GithubStarNum = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-gitcode-layout-lib"]]);
349
341
  const _hoisted_1$1 = { class: "repo-card-footer mt-[4px]" };
350
342
  const _hoisted_2$1 = {
351
343
  key: 3,
@@ -437,8 +429,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
437
429
  };
438
430
  }
439
431
  });
440
- const index_vue_vue_type_style_index_0_scoped_ca800e14_lang = "";
441
- const RepoCardFooter = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-ca800e14"]]);
432
+ const RepoCardFooter = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-gitcode-layout-lib"]]);
442
433
  const _hoisted_1 = ["innerHTML"];
443
434
  const _hoisted_2 = {
444
435
  key: 0,
@@ -540,8 +531,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
540
531
  return highlightWords(keyword, contentArr.join("/"), true);
541
532
  };
542
533
  onMounted(() => {
543
- if (props.info.is_recommend && props.info.index === 0)
544
- handleQueryGraph();
534
+ if (props.info.is_recommend && props.info.index === 0) handleQueryGraph();
545
535
  });
546
536
  return (_ctx, _cache) => {
547
537
  return openBlock(), createElementBlock("a", {
@@ -575,7 +565,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
575
565
  default: withCtx(() => _cache[0] || (_cache[0] = [
576
566
  createTextVNode("G-Star ")
577
567
  ])),
578
- _: 1
568
+ _: 1,
569
+ __: [0]
579
570
  }, 8, ["message"])
580
571
  ])) : createCommentVNode("", true),
581
572
  unref(isIncubationRepo)(_ctx.info.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_4, [
@@ -588,7 +579,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
588
579
  default: withCtx(() => _cache[1] || (_cache[1] = [
589
580
  createTextVNode(" G-Star ")
590
581
  ])),
591
- _: 1
582
+ _: 1,
583
+ __: [1]
592
584
  }, 8, ["message"])
593
585
  ])) : createCommentVNode("", true)
594
586
  ]),
@@ -665,8 +657,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
665
657
  };
666
658
  }
667
659
  });
668
- const index_vue_vue_type_style_index_0_scoped_9047871e_lang = "";
669
- const SearchRepoCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9047871e"]]);
660
+ const SearchRepoCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-gitcode-layout-lib"]]);
670
661
  export {
671
662
  SearchRepoCard as S,
672
663
  formatNameSpace as f,
@@ -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 { s as useLayoutConfig, _ as _export_sfc } from "./index-7ae1ece1.js";
3
+ import { s as useLayoutConfig, _ as _export_sfc } from "./index-Bk4Z_ktD.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"],
@@ -94,13 +49,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
94
49
  default: withCtx(() => _cache[0] || (_cache[0] = [
95
50
  createElementVNode("div", { id: "captcha-box" }, null, -1)
96
51
  ])),
97
- _: 1
52
+ _: 1,
53
+ __: [0]
98
54
  });
99
55
  };
100
56
  }
101
57
  });
102
- const index_vue_vue_type_style_index_0_scoped_37ed6e3d_lang = "";
103
- const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-37ed6e3d"]]);
58
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-gitcode-layout-lib"]]);
104
59
  export {
105
60
  index as default
106
61
  };
package/index.js CHANGED
@@ -1,50 +1,4 @@
1
- import { x, y, B, w, S, v, C, F, A, D, z } from "./index-7ae1ece1.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 { x, y, B, w, S, v, C, F, A, D, z } from "./index-Bk4Z_ktD.js";
48
2
  export {
49
3
  x as GitCodeAside,
50
4
  y 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-7ae1ece1.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-Bk4Z_ktD.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: {
@@ -80,7 +39,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
80
39
  default: withCtx(() => _cache[1] || (_cache[1] = [
81
40
  createTextVNode("忽略")
82
41
  ])),
83
- _: 1
42
+ _: 1,
43
+ __: [1]
84
44
  }, 8, ["size", "onClick"]),
85
45
  createVNode(unref(Button), {
86
46
  variant: "solid",
@@ -91,7 +51,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
91
51
  default: withCtx(() => _cache[2] || (_cache[2] = [
92
52
  createTextVNode("修改")
93
53
  ])),
94
- _: 1
54
+ _: 1,
55
+ __: [2]
95
56
  }, 8, ["size"])
96
57
  ], 2)
97
58
  ]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-layout-gitcode",
3
- "version": "1.1.30",
3
+ "version": "1.1.32",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",