vue-layout-gitcode 1.3.21 → 1.3.23

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, unref, inject, createElementBlock, openBlock, normalizeClass, createElementVNode, withModifiers, withDirectives, vShow, createVNode, computed, createCommentVNode, normalizeStyle, createTextVNode, onMounted, onUnmounted, Fragment, createBlock, renderList, reactive, withCtx } from "vue";
2
- import { d as debounce, t as transferNumber, G as GIcon, s as setLoginTriggerSource, 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, q as transWebUrl, v as _frEventTrack, E as EVENT_NAME, b as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-87RBtMC-.js";
2
+ import { d as debounce, t as transferNumber, G as GIcon, s as setLoginTriggerSource, 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, q as transWebUrl, v as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-GfreO8FI.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";
@@ -422,7 +422,7 @@ const _hoisted_2 = {
422
422
  const _hoisted_3 = { key: 1 };
423
423
  const _hoisted_4 = { key: 2 };
424
424
  const _hoisted_5 = ["innerHTML"];
425
- const _hoisted_6 = { key: 0 };
425
+ const _hoisted_6 = { key: 1 };
426
426
  const _sfc_main = /* @__PURE__ */ defineComponent({
427
427
  __name: "index",
428
428
  props: {
@@ -434,7 +434,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
434
434
  hideTopicTags: { type: Boolean },
435
435
  urlParams: {},
436
436
  hideStarBtn: { type: Boolean },
437
- hideFooter: { type: Boolean }
437
+ hideFooter: { type: Boolean },
438
+ hideDescription: { type: Boolean }
438
439
  },
439
440
  emits: ["report"],
440
441
  setup(__props, { emit: __emit }) {
@@ -522,7 +523,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
522
523
  class: normalizeClass(["i-search-projects-card", { noborder: _ctx.noborder, "full-hover": _ctx.hover }]),
523
524
  onClick: handleClick
524
525
  }, [
525
- createVNode(unref(Row), { class: "i-search-projects-card-title mb-[8px]" }, {
526
+ createVNode(unref(Row), { class: "i-search-projects-card-title" }, {
526
527
  default: withCtx(() => [
527
528
  createVNode(unref(Col), {
528
529
  class: "ellipsis flex items-center gap-[8px]",
@@ -549,7 +550,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
549
550
  default: withCtx(() => _cache[0] || (_cache[0] = [
550
551
  createTextVNode("G-Star ")
551
552
  ])),
552
- _: 1
553
+ _: 1,
554
+ __: [0]
553
555
  }, 8, ["message"])
554
556
  ])) : createCommentVNode("", true),
555
557
  unref(isIncubationRepo)(_ctx.info.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_4, [
@@ -562,7 +564,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
562
564
  default: withCtx(() => _cache[1] || (_cache[1] = [
563
565
  createTextVNode(" G-Star ")
564
566
  ])),
565
- _: 1
567
+ _: 1,
568
+ __: [1]
566
569
  }, 8, ["message"])
567
570
  ])) : createCommentVNode("", true)
568
571
  ]),
@@ -581,10 +584,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
581
584
  ]),
582
585
  _: 1
583
586
  }),
584
- createElementVNode("div", {
587
+ !_ctx.hideDescription ? (openBlock(), createElementBlock("div", {
588
+ key: 0,
585
589
  innerHTML: unref(highlightWords)("", description.value),
586
- class: "i-search-projects-card-desc ellipsis"
587
- }, null, 8, _hoisted_5),
590
+ class: "i-search-projects-card-desc ellipsis mt-[8px]"
591
+ }, null, 8, _hoisted_5)) : createCommentVNode("", true),
588
592
  _ctx.info.index === 0 && _ctx.info.is_recommend ? (openBlock(), createElementBlock("div", _hoisted_6, [
589
593
  queryLoading.value ? (openBlock(), createBlock(unref(Skeleton), { key: 0 }, {
590
594
  placeholder: withCtx(() => [
@@ -623,7 +627,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
623
627
  ]),
624
628
  _: 1
625
629
  })) : createCommentVNode("", true)
626
- ])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
630
+ ])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
627
631
  !_ctx.hideFooter ? (openBlock(), createBlock(RepoCardFooter, {
628
632
  key: 0,
629
633
  hideTopicTags: _ctx.hideTopicTags,
package/index.d.ts CHANGED
@@ -96,7 +96,7 @@ export declare const GitCodeAside: DefineComponent<ExtractPropTypes<{
96
96
  customError?: boolean | undefined;
97
97
  customTimeout?: number | undefined;
98
98
  ignoreError?: boolean | undefined;
99
- customErrorCodes?: number[] | undefined;
99
+ customErrorCodes?: number[] | undefined; /** 场景值 核心参数之一 */
100
100
  } | undefined) => Promise<AxiosResponse<any, any>>;
101
101
  };
102
102
  globalStore: {
@@ -166,7 +166,7 @@ export declare const GitCodeAside: DefineComponent<ExtractPropTypes<{
166
166
  customError?: boolean | undefined;
167
167
  customTimeout?: number | undefined;
168
168
  ignoreError?: boolean | undefined;
169
- customErrorCodes?: number[] | undefined;
169
+ customErrorCodes?: number[] | undefined; /** 场景值 核心参数之一 */
170
170
  } | undefined) => Promise<AxiosResponse<any, any>>;
171
171
  };
172
172
  globalStore: {
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { z, A, D, y, S, x, F, I, C, H, B } from "./index-87RBtMC-.js";
1
+ import { z, A, D, y, S, x, F, I, C, H, B } from "./index-GfreO8FI.js";
2
2
  export {
3
3
  z as GitCodeAside,
4
4
  A as GitCodeHeader,
@@ -1,5 +1,5 @@
1
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-87RBtMC-.js";
2
+ import { i as isPhone, u as useModel } from "./index-GfreO8FI.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";
@@ -39,7 +39,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
39
39
  default: withCtx(() => _cache[1] || (_cache[1] = [
40
40
  createTextVNode("忽略")
41
41
  ])),
42
- _: 1
42
+ _: 1,
43
+ __: [1]
43
44
  }, 8, ["size", "onClick"]),
44
45
  createVNode(unref(Button), {
45
46
  variant: "solid",
@@ -50,7 +51,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
50
51
  default: withCtx(() => _cache[2] || (_cache[2] = [
51
52
  createTextVNode("修改")
52
53
  ])),
53
- _: 1
54
+ _: 1,
55
+ __: [2]
54
56
  }, 8, ["size"])
55
57
  ], 2)
56
58
  ]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-layout-gitcode",
3
- "version": "1.3.21",
3
+ "version": "1.3.23",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",