vue-layout-gitcode 1.6.13 → 1.7.2

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,7 +1,7 @@
1
- import { ref, watchEffect, defineComponent, toDisplayString, unref, mergeModels, useModel, watch, createElementBlock, openBlock, createVNode, withDirectives, normalizeClass, createElementVNode, vShow, inject, withModifiers, createBlock, Fragment, computed, createCommentVNode, normalizeStyle, createTextVNode, onMounted, onUnmounted, renderList, withCtx, reactive } from "vue";
1
+ import { ref, watchEffect, defineComponent, toDisplayString, unref, mergeModels, useModel, watch, openBlock, createElementBlock, createVNode, normalizeClass, withDirectives, createElementVNode, vShow, inject, withModifiers, createBlock, Fragment, computed, normalizeStyle, createCommentVNode, createTextVNode, onMounted, onUnmounted, renderList, withCtx, reactive } from "vue";
2
2
  import debounce from "lodash/debounce";
3
- import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, 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$b, o as isIncubationRepo, p as highlightWords, t as transformUrl, q as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-D5P2-t2Y.js";
4
- import { t as transWebUrl } from "./transWebUrl-2vA_yZh2.js";
3
+ import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, r as reqCatch, h as headRequest, f as useRequestReport, 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$b, o as isIncubationRepo, p as highlightWords, t as transformUrl, q as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-5bcdb26a.js";
4
+ import { t as transWebUrl } from "./transWebUrl-d207ebc7.js";
5
5
  import { useRouter } from "vue-router";
6
6
  import { Row, Col } from "vue-devui-lal/grid";
7
7
  import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";
@@ -32,8 +32,10 @@ const useReportRepo = (reportParams, viewReport) => {
32
32
  };
33
33
  const formatItem = (data) => {
34
34
  const channelNames = [];
35
- if (data.channelName) channelNames.push(data.channelName);
36
- if (data.subChannelName) channelNames.push(data.subChannelName);
35
+ if (data.channelName)
36
+ channelNames.push(data.channelName);
37
+ if (data.subChannelName)
38
+ channelNames.push(data.subChannelName);
37
39
  const repoId = isNaN(Number(data.id)) ? data.id : Number(data.id);
38
40
  return {
39
41
  type: "gitcode",
@@ -148,7 +150,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
148
150
  };
149
151
  }
150
152
  });
151
- const Like = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-vue-layout-gitcode"]]);
153
+ const index_vue_vue_type_style_index_0_scoped_7320dc21_lang = "";
154
+ const Like = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-7320dc21"]]);
152
155
  const _hoisted_1$7 = {
153
156
  class: "mr-[4px]",
154
157
  style: { "width": "15px", "height": "15px" }
@@ -184,7 +187,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
184
187
  useReport("login_exposure", { source: props.loginTriggerSource || "search_star_repo_recommend" });
185
188
  }
186
189
  try {
187
- if (starLoading.value) return;
190
+ if (starLoading.value)
191
+ return;
188
192
  starLoading.value = true;
189
193
  const params = { repoId: props.starInfo.id };
190
194
  let res;
@@ -262,7 +266,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
262
266
  };
263
267
  }
264
268
  });
265
- const StarTag = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-vue-layout-gitcode"]]);
269
+ const index_vue_vue_type_style_index_0_scoped_6f7d8162_lang = "";
270
+ const StarTag = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-6f7d8162"]]);
266
271
  const _hoisted_1$6 = { class: "fork-tag" };
267
272
  const _sfc_main$7 = /* @__PURE__ */ defineComponent({
268
273
  __name: "index",
@@ -287,7 +292,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
287
292
  };
288
293
  }
289
294
  });
290
- const ForkTag = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-vue-layout-gitcode"]]);
295
+ const index_vue_vue_type_style_index_0_scoped_cb84d9d8_lang = "";
296
+ const ForkTag = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-cb84d9d8"]]);
291
297
  const _sfc_main$6 = /* @__PURE__ */ defineComponent({
292
298
  __name: "index",
293
299
  props: {
@@ -333,7 +339,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
333
339
  };
334
340
  }
335
341
  });
336
- const LanguageTag = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-vue-layout-gitcode"]]);
342
+ const index_vue_vue_type_style_index_0_scoped_f41c9ade_lang = "";
343
+ const LanguageTag = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-f41c9ade"]]);
337
344
  const _hoisted_1$5 = { class: "star-count-one" };
338
345
  const _hoisted_2$4 = { key: 0 };
339
346
  const _sfc_main$5 = /* @__PURE__ */ defineComponent({
@@ -360,7 +367,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
360
367
  };
361
368
  }
362
369
  });
363
- const StarCountOne = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-vue-layout-gitcode"]]);
370
+ const index_vue_vue_type_style_index_0_scoped_33d28127_lang = "";
371
+ const StarCountOne = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-33d28127"]]);
364
372
  const _hoisted_1$4 = {
365
373
  key: 0,
366
374
  class: "github-star-num"
@@ -395,7 +403,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
395
403
  };
396
404
  }
397
405
  });
398
- const GithubStarNum = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
406
+ const index_vue_vue_type_style_index_0_scoped_04cad993_lang = "";
407
+ const GithubStarNum = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-04cad993"]]);
399
408
  const _hoisted_1$3 = { class: "repo-card-footer mt-[4px]" };
400
409
  const _hoisted_2$2 = {
401
410
  key: 3,
@@ -490,7 +499,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
490
499
  };
491
500
  }
492
501
  });
493
- const RepoCardFooter = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-vue-layout-gitcode"]]);
502
+ const index_vue_vue_type_style_index_0_scoped_e6ca367c_lang = "";
503
+ const RepoCardFooter = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-e6ca367c"]]);
494
504
  const _hoisted_1$2 = { class: "new-tag-content" };
495
505
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
496
506
  __name: "index",
@@ -536,13 +546,13 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
536
546
  default: withCtx(() => [
537
547
  _cache[0] || (_cache[0] = createElementVNode("div", { class: "new-tag w-[32px] h-[15px] text-[9px] text-[#ffffff] flex items-center justify-center leading-[1]" }, "New", -1))
538
548
  ]),
539
- _: 1,
540
- __: [0]
549
+ _: 1
541
550
  })) : createCommentVNode("", true);
542
551
  };
543
552
  }
544
553
  });
545
- const NewTag = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-vue-layout-gitcode"]]);
554
+ const index_vue_vue_type_style_index_0_scoped_51dde95b_lang = "";
555
+ const NewTag = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-51dde95b"]]);
546
556
  const _hoisted_1$1 = { class: "model-card-footer h-[22px] mt-[4px] flex items-center overflow-hidden whitespace-nowrap text-[14px] leading-[14px] text-[var(--theme-release-card-text-color)]" };
547
557
  const _hoisted_2$1 = {
548
558
  key: 1,
@@ -716,7 +726,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
716
726
  return highlightWords(keyword, contentArr.join("/"), true);
717
727
  };
718
728
  onMounted(() => {
719
- if (props.info.is_recommend && props.info.index === 0) handleQueryGraph();
729
+ if (props.info.is_recommend && props.info.index === 0)
730
+ handleQueryGraph();
720
731
  });
721
732
  return (_ctx, _cache) => {
722
733
  return openBlock(), createElementBlock("a", {
@@ -752,8 +763,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
752
763
  default: withCtx(() => _cache[0] || (_cache[0] = [
753
764
  createTextVNode("G-Star ")
754
765
  ])),
755
- _: 1,
756
- __: [0]
766
+ _: 1
757
767
  }, 8, ["message"])
758
768
  ])) : createCommentVNode("", true),
759
769
  unref(isIncubationRepo)(_ctx.info.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_4, [
@@ -766,8 +776,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
766
776
  default: withCtx(() => _cache[1] || (_cache[1] = [
767
777
  createTextVNode(" G-Star ")
768
778
  ])),
769
- _: 1,
770
- __: [1]
779
+ _: 1
771
780
  }, 8, ["message"])
772
781
  ])) : createCommentVNode("", true),
773
782
  createVNode(NewTag, {
@@ -854,7 +863,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
854
863
  };
855
864
  }
856
865
  });
857
- const SearchRepoCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-vue-layout-gitcode"]]);
866
+ const index_vue_vue_type_style_index_0_scoped_ec4fbbd8_lang = "";
867
+ const SearchRepoCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ec4fbbd8"]]);
858
868
  export {
859
869
  SearchRepoCard as S,
860
870
  formatNameSpace as f,
@@ -0,0 +1,112 @@
1
+ import { defineComponent, onMounted, openBlock, createBlock, unref, withCtx, createElementVNode } from "vue";
2
+ import { FixedOverlay } from "vue-devui-lal/overlay";
3
+ import { w as useLayoutConfig, _ as _export_sfc } from "./index-5bcdb26a.js";
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 "lodash/last";
20
+ import "lodash/cloneDeep";
21
+ import "dayjs";
22
+ import "lodash/isDate";
23
+ import "vue-devui-lal/skeleton";
24
+ import "vue-devui-lal/skeleton/style.css";
25
+ import "vue-devui-lal/dropdown";
26
+ import "vue-devui-lal/message";
27
+ import "vue-devui-lal/dropdown/style.css";
28
+ import "vue-devui-lal/message/style.css";
29
+ import "lodash/debounce";
30
+ import "vue-devui-lal/badge";
31
+ import "vue-devui-lal/badge/style.css";
32
+ import "vue-devui-lal/tabs/style.css";
33
+ import "vue-devui-lal/drawer";
34
+ import "vue-devui-lal/drawer/style.css";
35
+ import "vue-devui-lal/input";
36
+ import "vue-devui-lal/form";
37
+ import "vue-devui-lal/input/style.css";
38
+ import "vue-devui-lal/form/style.css";
39
+ import "vue-devui-lal/notification";
40
+ import "vue-devui-lal/notification/style.css";
41
+ import "vue-devui-lal/menu";
42
+ import "vue-devui-lal/menu/style.css";
43
+ import "vue-devui-lal/layout";
44
+ import "vue-devui-lal/layout/style.css";
45
+ import "vue-devui-lal/radio";
46
+ import "@devui-design/icons/icomoon/devui-icon.css";
47
+ import "vue-devui-lal/radio/style.css";
48
+ import "vue-devui-lal/select";
49
+ import "vue-devui-lal/editable-select";
50
+ import "vue-devui-lal/select/style.css";
51
+ import "vue-devui-lal/editable-select/style.css";
52
+ import "vue-devui-lal/checkbox";
53
+ import "vue-devui-lal/checkbox/style.css";
54
+ import "vue-devui-lal/modal";
55
+ import "vue-devui-lal/modal/style.css";
56
+ const _sfc_main = /* @__PURE__ */ defineComponent({
57
+ __name: "index",
58
+ emits: ["close", "success"],
59
+ setup(__props, { emit: __emit }) {
60
+ const emits = __emit;
61
+ const captchaInit = () => {
62
+ if (!window.initTAC) {
63
+ return;
64
+ }
65
+ const baseURL = useLayoutConfig().VITE_API_HOST;
66
+ const config = {
67
+ requestCaptchaDataUrl: `${baseURL}/uc/api/v1/captcha/gen`,
68
+ validCaptchaUrl: `${baseURL}/uc/api/v1/captcha/check`,
69
+ bindEl: "#captcha-box",
70
+ validSuccess: (res, c, tac) => {
71
+ tac.destroyWindow();
72
+ emits("success", res.data);
73
+ },
74
+ validFail: (res, c, tac) => {
75
+ tac.reloadCaptcha();
76
+ },
77
+ btnRefreshFun: (el, tac) => {
78
+ tac.reloadCaptcha();
79
+ },
80
+ btnCloseFun: (el, tac) => {
81
+ tac.destroyWindow();
82
+ emits("close");
83
+ }
84
+ };
85
+ const style = {
86
+ logoUrl: null
87
+ // 去除logo
88
+ };
89
+ window.initTAC("https://cdn-static.gitcode.host/js/tac/", config, style).then((tac) => {
90
+ tac.init();
91
+ }).catch((e) => {
92
+ console.error("初始化tac失败", e);
93
+ });
94
+ };
95
+ onMounted(() => {
96
+ captchaInit();
97
+ });
98
+ return (_ctx, _cache) => {
99
+ return openBlock(), createBlock(unref(FixedOverlay), { class: "captcha-overlay" }, {
100
+ default: withCtx(() => _cache[0] || (_cache[0] = [
101
+ createElementVNode("div", { id: "captcha-box" }, null, -1)
102
+ ])),
103
+ _: 1
104
+ });
105
+ };
106
+ }
107
+ });
108
+ const index_vue_vue_type_style_index_0_scoped_f0768d1d_lang = "";
109
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f0768d1d"]]);
110
+ export {
111
+ index as default
112
+ };
package/index.js CHANGED
@@ -1,4 +1,56 @@
1
- import { M, N, Q, K, S, J, y, V, P, U, O } from "./index-D5P2-t2Y.js";
1
+ import { M, N, Q, K, S, J, y, V, P, U, O } from "./index-5bcdb26a.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 "lodash/last";
18
+ import "lodash/cloneDeep";
19
+ import "dayjs";
20
+ import "lodash/isDate";
21
+ import "vue-devui-lal/skeleton";
22
+ import "vue-devui-lal/skeleton/style.css";
23
+ import "vue-devui-lal/dropdown";
24
+ import "vue-devui-lal/message";
25
+ import "vue-devui-lal/dropdown/style.css";
26
+ import "vue-devui-lal/message/style.css";
27
+ import "lodash/debounce";
28
+ import "vue-devui-lal/badge";
29
+ import "vue-devui-lal/badge/style.css";
30
+ import "vue-devui-lal/tabs/style.css";
31
+ import "vue-devui-lal/drawer";
32
+ import "vue-devui-lal/drawer/style.css";
33
+ import "vue-devui-lal/input";
34
+ import "vue-devui-lal/form";
35
+ import "vue-devui-lal/input/style.css";
36
+ import "vue-devui-lal/form/style.css";
37
+ import "vue-devui-lal/notification";
38
+ import "vue-devui-lal/notification/style.css";
39
+ import "vue-devui-lal/menu";
40
+ import "vue-devui-lal/menu/style.css";
41
+ import "vue-devui-lal/layout";
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/select";
47
+ import "vue-devui-lal/editable-select";
48
+ import "vue-devui-lal/select/style.css";
49
+ import "vue-devui-lal/editable-select/style.css";
50
+ import "vue-devui-lal/checkbox";
51
+ import "vue-devui-lal/checkbox/style.css";
52
+ import "vue-devui-lal/modal";
53
+ import "vue-devui-lal/modal/style.css";
2
54
  export {
3
55
  M as GitCodeAside,
4
56
  N as GitCodeHeader,
@@ -1,9 +1,56 @@
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-D5P2-t2Y.js";
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-5bcdb26a.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 "lodash/last";
20
+ import "lodash/cloneDeep";
21
+ import "dayjs";
22
+ import "lodash/isDate";
23
+ import "vue-devui-lal/skeleton";
24
+ import "vue-devui-lal/skeleton/style.css";
25
+ import "vue-devui-lal/dropdown";
26
+ import "vue-devui-lal/message";
27
+ import "vue-devui-lal/dropdown/style.css";
28
+ import "vue-devui-lal/message/style.css";
29
+ import "lodash/debounce";
30
+ import "vue-devui-lal/badge";
31
+ import "vue-devui-lal/badge/style.css";
32
+ import "vue-devui-lal/tabs/style.css";
33
+ import "vue-devui-lal/drawer";
34
+ import "vue-devui-lal/drawer/style.css";
35
+ import "vue-devui-lal/input";
36
+ import "vue-devui-lal/form";
37
+ import "vue-devui-lal/input/style.css";
38
+ import "vue-devui-lal/form/style.css";
39
+ import "vue-devui-lal/menu";
40
+ import "vue-devui-lal/menu/style.css";
41
+ import "vue-devui-lal/layout";
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/select";
47
+ import "vue-devui-lal/editable-select";
48
+ import "vue-devui-lal/select/style.css";
49
+ import "vue-devui-lal/editable-select/style.css";
50
+ import "vue-devui-lal/checkbox";
51
+ import "vue-devui-lal/checkbox/style.css";
52
+ import "vue-devui-lal/modal";
53
+ import "vue-devui-lal/modal/style.css";
7
54
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
55
  __name: "notice",
9
56
  props: {
@@ -39,8 +86,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
39
86
  default: withCtx(() => _cache[1] || (_cache[1] = [
40
87
  createTextVNode("忽略")
41
88
  ])),
42
- _: 1,
43
- __: [1]
89
+ _: 1
44
90
  }, 8, ["size", "onClick"]),
45
91
  createVNode(unref(Button), {
46
92
  variant: "solid",
@@ -51,8 +97,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
51
97
  default: withCtx(() => _cache[2] || (_cache[2] = [
52
98
  createTextVNode("修改")
53
99
  ])),
54
- _: 1,
55
- __: [2]
100
+ _: 1
56
101
  }, 8, ["size"])
57
102
  ], 2)
58
103
  ]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-layout-gitcode",
3
- "version": "1.6.13",
3
+ "version": "1.7.2",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",