vue-layout-gitcode 1.1.14 → 1.1.16

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
- 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, resolveComponent, 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, b as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-DRj07kpJ.js";
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-d99524dd.js";
3
3
  import { useRouter } from "vue-router";
4
4
  import { Row, Col } from "vue-devui-lal/grid";
5
- import { Skeleton } from "vue-devui-lal/skeleton";
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
8
  const useReportRepo = (reportParams, viewReport) => {
@@ -27,8 +27,10 @@ const useReportRepo = (reportParams, viewReport) => {
27
27
  };
28
28
  const formatItem = (data) => {
29
29
  const channelNames = [];
30
- if (data.channelName) channelNames.push(data.channelName);
31
- if (data.subChannelName) channelNames.push(data.subChannelName);
30
+ if (data.channelName)
31
+ channelNames.push(data.channelName);
32
+ if (data.subChannelName)
33
+ channelNames.push(data.subChannelName);
32
34
  return {
33
35
  type: "gitcode",
34
36
  repo_id: data.id,
@@ -136,7 +138,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
136
138
  const handleStar = async (e) => {
137
139
  e.preventDefault();
138
140
  try {
139
- if (starLoading.value) return;
141
+ if (starLoading.value)
142
+ return;
140
143
  starLoading.value = true;
141
144
  const params = { repoId: props.starInfo.id };
142
145
  let res;
@@ -202,7 +205,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
202
205
  };
203
206
  }
204
207
  });
205
- const StarTag = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-gitcode-layout-lib"]]);
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"]]);
206
210
  const _hoisted_1$4 = { class: "fork-tag" };
207
211
  const _sfc_main$5 = /* @__PURE__ */ defineComponent({
208
212
  __name: "index",
@@ -227,7 +231,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
227
231
  };
228
232
  }
229
233
  });
230
- const ForkTag = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-gitcode-layout-lib"]]);
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"]]);
231
236
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
232
237
  __name: "index",
233
238
  props: {
@@ -273,7 +278,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
273
278
  };
274
279
  }
275
280
  });
276
- const LanguageTag = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
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"]]);
277
283
  const _hoisted_1$3 = { class: "star-count-one" };
278
284
  const _hoisted_2$3 = { key: 0 };
279
285
  const _sfc_main$3 = /* @__PURE__ */ defineComponent({
@@ -300,7 +306,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
300
306
  };
301
307
  }
302
308
  });
303
- const StarCountOne = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-gitcode-layout-lib"]]);
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"]]);
304
311
  const _hoisted_1$2 = { class: "github-star-num" };
305
312
  const _hoisted_2$2 = { class: "leading-none" };
306
313
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
@@ -327,7 +334,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
327
334
  };
328
335
  }
329
336
  });
330
- const GithubStarNum = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-gitcode-layout-lib"]]);
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"]]);
331
339
  const _hoisted_1$1 = { class: "repo-card-footer mt-[4px]" };
332
340
  const _hoisted_2$1 = {
333
341
  key: 3,
@@ -419,7 +427,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
419
427
  };
420
428
  }
421
429
  });
422
- const RepoCardFooter = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-gitcode-layout-lib"]]);
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"]]);
423
432
  const _hoisted_1 = ["innerHTML"];
424
433
  const _hoisted_2 = {
425
434
  key: 0,
@@ -514,10 +523,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
514
523
  return highlightWords(keyword, contentArr.join("/"), true);
515
524
  };
516
525
  onMounted(() => {
517
- if (props.info.is_recommend && props.info.index === 0) handleQueryGraph();
526
+ if (props.info.is_recommend && props.info.index === 0)
527
+ handleQueryGraph();
518
528
  });
519
529
  return (_ctx, _cache) => {
520
- const _component_DSkeletonItem = resolveComponent("DSkeletonItem");
521
530
  return openBlock(), createElementBlock("a", {
522
531
  class: normalizeClass(["i-search-projects-card", { noborder: _ctx.noborder, "full-hover": _ctx.hover }]),
523
532
  onClick: handleClick
@@ -597,7 +606,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
597
606
  span: rowSpan[unref(widthType)]
598
607
  }, {
599
608
  default: withCtx(() => [
600
- createVNode(_component_DSkeletonItem, { class: "h-[110px] mt-[16px]" })
609
+ createVNode(unref(SkeletonItem), { class: "h-[110px] mt-[16px]" })
601
610
  ]),
602
611
  _: 1
603
612
  }, 8, ["span"]),
@@ -605,7 +614,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
605
614
  span: rowSpan[unref(widthType)]
606
615
  }, {
607
616
  default: withCtx(() => [
608
- createVNode(_component_DSkeletonItem, { class: "h-[110px] mt-[16px]" })
617
+ createVNode(unref(SkeletonItem), { class: "h-[110px] mt-[16px]" })
609
618
  ]),
610
619
  _: 1
611
620
  }, 8, ["span"]),
@@ -613,7 +622,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
613
622
  span: rowSpan[unref(widthType)]
614
623
  }, {
615
624
  default: withCtx(() => [
616
- createVNode(_component_DSkeletonItem, { class: "h-[110px] mt-[16px]" })
625
+ createVNode(unref(SkeletonItem), { class: "h-[110px] mt-[16px]" })
617
626
  ]),
618
627
  _: 1
619
628
  }, 8, ["span"])
@@ -639,7 +648,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
639
648
  };
640
649
  }
641
650
  });
642
- const SearchRepoCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-gitcode-layout-lib"]]);
651
+ const index_vue_vue_type_style_index_0_scoped_004d33c4_lang = "";
652
+ const SearchRepoCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-004d33c4"]]);
643
653
  export {
644
654
  SearchRepoCard as S,
645
655
  formatNameSpace as f,