vue-layout-gitcode 1.3.24 → 1.3.26

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-DC9YPjPv.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-BYT6vV5V.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]",
@@ -581,10 +582,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
581
582
  ]),
582
583
  _: 1
583
584
  }),
584
- createElementVNode("div", {
585
+ !_ctx.hideDescription ? (openBlock(), createElementBlock("div", {
586
+ key: 0,
585
587
  innerHTML: unref(highlightWords)("", description.value),
586
- class: "i-search-projects-card-desc ellipsis"
587
- }, null, 8, _hoisted_5),
588
+ class: "i-search-projects-card-desc ellipsis mt-[8px]"
589
+ }, null, 8, _hoisted_5)) : createCommentVNode("", true),
588
590
  _ctx.info.index === 0 && _ctx.info.is_recommend ? (openBlock(), createElementBlock("div", _hoisted_6, [
589
591
  queryLoading.value ? (openBlock(), createBlock(unref(Skeleton), { key: 0 }, {
590
592
  placeholder: withCtx(() => [
@@ -623,7 +625,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
623
625
  ]),
624
626
  _: 1
625
627
  })) : createCommentVNode("", true)
626
- ])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
628
+ ])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
627
629
  !_ctx.hideFooter ? (openBlock(), createBlock(RepoCardFooter, {
628
630
  key: 0,
629
631
  hideTopicTags: _ctx.hideTopicTags,
package/index.d.ts CHANGED
@@ -309,7 +309,9 @@ export declare const GitCodeHeader: DefineComponent<ExtractPropTypes<{
309
309
  type: PropType<{
310
310
  index_head: string;
311
311
  detail_top: string;
312
+ detail_top_black: string;
312
313
  detail_toolbar: string;
314
+ detail_toolbar_black: string;
313
315
  detail_top_url: string;
314
316
  index_head_url: string;
315
317
  detail_toolbar_url: string;
@@ -318,7 +320,9 @@ export declare const GitCodeHeader: DefineComponent<ExtractPropTypes<{
318
320
  default: () => {
319
321
  index_head: string;
320
322
  detail_top: string;
323
+ detail_top_black: string;
321
324
  detail_toolbar: string;
325
+ detail_toolbar_black: string;
322
326
  detail_top_url: string;
323
327
  index_head_url: string;
324
328
  detail_toolbar_url: string;
@@ -410,7 +414,9 @@ export declare const GitCodeHeader: DefineComponent<ExtractPropTypes<{
410
414
  type: PropType<{
411
415
  index_head: string;
412
416
  detail_top: string;
417
+ detail_top_black: string;
413
418
  detail_toolbar: string;
419
+ detail_toolbar_black: string;
414
420
  detail_top_url: string;
415
421
  index_head_url: string;
416
422
  detail_toolbar_url: string;
@@ -419,7 +425,9 @@ export declare const GitCodeHeader: DefineComponent<ExtractPropTypes<{
419
425
  default: () => {
420
426
  index_head: string;
421
427
  detail_top: string;
428
+ detail_top_black: string;
422
429
  detail_toolbar: string;
430
+ detail_toolbar_black: string;
423
431
  detail_top_url: string;
424
432
  index_head_url: string;
425
433
  detail_toolbar_url: string;
@@ -443,7 +451,9 @@ export declare const GitCodeHeader: DefineComponent<ExtractPropTypes<{
443
451
  bgConfig: {
444
452
  index_head: string;
445
453
  detail_top: string;
454
+ detail_top_black: string;
446
455
  detail_toolbar: string;
456
+ detail_toolbar_black: string;
447
457
  detail_top_url: string;
448
458
  index_head_url: string;
449
459
  detail_toolbar_url: string;
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { z, A, D, y, S, x, F, I, C, H, B } from "./index-DC9YPjPv.js";
1
+ import { z, A, D, y, S, x, F, I, C, H, B } from "./index-BYT6vV5V.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-DC9YPjPv.js";
2
+ import { i as isPhone, u as useModel } from "./index-BYT6vV5V.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.3.24",
3
+ "version": "1.3.26",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",