vue-layout-gitcode 1.1.23 → 1.1.24

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
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-96b463fe.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-584333f6.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";
@@ -32,9 +32,10 @@ const useReportRepo = (reportParams, viewReport) => {
32
32
  channelNames.push(data.channelName);
33
33
  if (data.subChannelName)
34
34
  channelNames.push(data.subChannelName);
35
+ const repoId = isNaN(Number(data.id)) ? data.id : Number(data.id);
35
36
  return {
36
37
  type: "gitcode",
37
- repo_id: data.id,
38
+ repo_id: repoId,
38
39
  dest_url: data.web_url,
39
40
  strategy: channelNames.join("、") || "",
40
41
  // 官方项目
@@ -206,8 +207,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
206
207
  };
207
208
  }
208
209
  });
209
- const index_vue_vue_type_style_index_0_scoped_6d9f98e2_lang = "";
210
- const StarTag = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-6d9f98e2"]]);
210
+ const index_vue_vue_type_style_index_0_scoped_754df2e0_lang = "";
211
+ const StarTag = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-754df2e0"]]);
211
212
  const _hoisted_1$4 = { class: "fork-tag" };
212
213
  const _sfc_main$5 = /* @__PURE__ */ defineComponent({
213
214
  __name: "index",
@@ -232,8 +233,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
232
233
  };
233
234
  }
234
235
  });
235
- const index_vue_vue_type_style_index_0_scoped_cb84d9d8_lang = "";
236
- const ForkTag = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-cb84d9d8"]]);
236
+ const index_vue_vue_type_style_index_0_scoped_98be5d7f_lang = "";
237
+ const ForkTag = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-98be5d7f"]]);
237
238
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
238
239
  __name: "index",
239
240
  props: {
@@ -279,8 +280,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
279
280
  };
280
281
  }
281
282
  });
282
- const index_vue_vue_type_style_index_0_scoped_f41c9ade_lang = "";
283
- const LanguageTag = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-f41c9ade"]]);
283
+ const index_vue_vue_type_style_index_0_scoped_6e1aad17_lang = "";
284
+ const LanguageTag = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-6e1aad17"]]);
284
285
  const _hoisted_1$3 = { class: "star-count-one" };
285
286
  const _hoisted_2$3 = { key: 0 };
286
287
  const _sfc_main$3 = /* @__PURE__ */ defineComponent({
@@ -307,8 +308,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
307
308
  };
308
309
  }
309
310
  });
310
- const index_vue_vue_type_style_index_0_scoped_33d28127_lang = "";
311
- const StarCountOne = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-33d28127"]]);
311
+ const index_vue_vue_type_style_index_0_scoped_de8d9362_lang = "";
312
+ const StarCountOne = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-de8d9362"]]);
312
313
  const _hoisted_1$2 = { class: "github-star-num" };
313
314
  const _hoisted_2$2 = { class: "leading-none" };
314
315
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
@@ -335,8 +336,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
335
336
  };
336
337
  }
337
338
  });
338
- const index_vue_vue_type_style_index_0_scoped_49819ac3_lang = "";
339
- const GithubStarNum = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-49819ac3"]]);
339
+ const index_vue_vue_type_style_index_0_scoped_7f7e79b1_lang = "";
340
+ const GithubStarNum = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-7f7e79b1"]]);
340
341
  const _hoisted_1$1 = { class: "repo-card-footer mt-[4px]" };
341
342
  const _hoisted_2$1 = {
342
343
  key: 3,
@@ -428,8 +429,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
428
429
  };
429
430
  }
430
431
  });
431
- const index_vue_vue_type_style_index_0_scoped_e5f7b6fb_lang = "";
432
- const RepoCardFooter = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-e5f7b6fb"]]);
432
+ const index_vue_vue_type_style_index_0_scoped_ca800e14_lang = "";
433
+ const RepoCardFooter = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-ca800e14"]]);
433
434
  const _hoisted_1 = ["innerHTML"];
434
435
  const _hoisted_2 = {
435
436
  key: 0,
@@ -656,8 +657,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
656
657
  };
657
658
  }
658
659
  });
659
- const index_vue_vue_type_style_index_0_scoped_39fd44ed_lang = "";
660
- const SearchRepoCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-39fd44ed"]]);
660
+ const index_vue_vue_type_style_index_0_scoped_9047871e_lang = "";
661
+ const SearchRepoCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9047871e"]]);
661
662
  export {
662
663
  SearchRepoCard as S,
663
664
  formatNameSpace as f,
@@ -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 { q as useLayoutConfig, _ as _export_sfc } from "./index-96b463fe.js";
3
+ import { q as useLayoutConfig, _ as _export_sfc } from "./index-584333f6.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
  };
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { w, x, A, v, S, s, B, D, z, C, y } from "./index-96b463fe.js";
1
+ import { w, x, A, v, S, s, B, D, z, C, y } from "./index-584333f6.js";
2
2
  import "vue";
3
3
  import "vue-devui-lal/button";
4
4
  import "vue-devui-lal/popover";
@@ -1,5 +1,5 @@
1
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-96b463fe.js";
2
+ import { i as isPhone, u as useModel } from "./index-584333f6.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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-layout-gitcode",
3
- "version": "1.1.23",
3
+ "version": "1.1.24",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",