vue-layout-gitcode 1.5.103 → 1.5.104

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,10 +1,10 @@
1
1
  import { defineComponent, inject, createElementBlock, openBlock, Fragment, createElementVNode, toDisplayString, createVNode, unref, renderList, withDirectives, createBlock, ref, watch, onMounted, createCommentVNode } from "vue";
2
2
  import "vue-devui-lal/icon";
3
3
  import "vue-devui-lal/icon/style.css";
4
- import { h as headRequest, R as REPO_MODULE, a as i18n, G as GIcon, v as vElementExposure, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-BM75GWAr.js";
4
+ import { h as headRequest, R as REPO_MODULE, a as i18n, G as GIcon, v as vElementExposure, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-DoHtDmEG.js";
5
5
  import "lodash/debounce";
6
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-DHV0Xtxd.js";
7
- import "./transWebUrl-wHBYp5FI.js";
6
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-BOfsxpqk.js";
7
+ import "./transWebUrl-6a5S2Tr1.js";
8
8
  import "vue-devui-lal/tooltip";
9
9
  import "vue-devui-lal/tooltip/style.css";
10
10
  import "vue-router";
@@ -164,7 +164,6 @@ const _sfc_main = {
164
164
  }
165
165
  );
166
166
  onMounted(() => {
167
- console.log("GloabarSearch");
168
167
  });
169
168
  return (_ctx, _cache) => {
170
169
  return openBlock(), createElementBlock(Fragment, null, [
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, inject, useSlots, ref, computed, createBlock, openBlock, unref, withCtx, createElementVNode, normalizeClass, createElementBlock, createTextVNode, createCommentVNode, toDisplayString, renderSlot } from "vue";
2
- import { q as useLayoutConfig, w as ThemeType, x as currentTheme, g as LANG_ZH, y as LANG_EN, z as getLocaleLang, G as GIcon, A as emitEvent, B as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-BM75GWAr.js";
2
+ import { q as useLayoutConfig, w as ThemeType, x as currentTheme, g as LANG_ZH, y as LANG_EN, z as getLocaleLang, G as GIcon, A as emitEvent, B as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-DoHtDmEG.js";
3
3
  import { useRouter } from "vue-router";
4
4
  import { Popover } from "vue-devui-lal/popover";
5
5
  import "vue-devui-lal/popover/style.css";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, inject, ref, reactive, watch, computed, createElementBlock, openBlock, createCommentVNode, createBlock, withDirectives, Fragment, createElementVNode, createVNode, toDisplayString, unref, withModifiers, normalizeClass, withCtx, renderList, createTextVNode, vShow } from "vue";
2
- import { a as i18n, q as useLayoutConfig, G as GIcon, C as _sfc_main$1, D as loadAsideData, A as emitEvent, s as setLoginTriggerSource, d as useRequestReport, F as asideRequest, _ as _export_sfc } from "./index-BM75GWAr.js";
2
+ import { a as i18n, q as useLayoutConfig, G as GIcon, C as _sfc_main$1, D as loadAsideData, A as emitEvent, s as setLoginTriggerSource, d as useRequestReport, F as asideRequest, _ as _export_sfc } from "./index-DoHtDmEG.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-wHBYp5FI.js";
4
+ import { t as transWebUrl } from "./transWebUrl-6a5S2Tr1.js";
5
5
  import { Select, Option } from "vue-devui-lal/select";
6
6
  import { Input } from "vue-devui-lal/input";
7
7
  import { Skeleton } from "vue-devui-lal/skeleton";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, inject, ref, reactive, computed, watch, createElementBlock, openBlock, createElementVNode, createVNode, createBlock, createCommentVNode, withDirectives, toDisplayString, unref, withModifiers, normalizeClass, withCtx, Fragment, renderList, createTextVNode, vShow } from "vue";
2
- import { a as i18n, q as useLayoutConfig, G as GIcon, A as emitEvent, s as setLoginTriggerSource, d as useRequestReport, _ as _export_sfc } from "./index-BM75GWAr.js";
2
+ import { a as i18n, q as useLayoutConfig, G as GIcon, A as emitEvent, s as setLoginTriggerSource, d as useRequestReport, _ as _export_sfc } from "./index-DoHtDmEG.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-wHBYp5FI.js";
4
+ import { t as transWebUrl } from "./transWebUrl-6a5S2Tr1.js";
5
5
  import { Input } from "vue-devui-lal/input";
6
6
  import { Skeleton } from "vue-devui-lal/skeleton";
7
7
  import { MenuItem } from "vue-devui-lal/menu";
@@ -1,5 +1,5 @@
1
1
  import { ref, inject, computed, withDirectives, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createVNode, vShow } from "vue";
2
- import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-BM75GWAr.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-DoHtDmEG.js";
3
3
  import { useRoute, useRouter } from "vue-router";
4
4
  import "vue-devui-lal/icon";
5
5
  import "vue-devui-lal/icon/style.css";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, createElementBlock, openBlock, createCommentVNode, Fragment, renderList, normalizeClass, createElementVNode, createVNode, toDisplayString, withModifiers } from "vue";
2
- import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-BM75GWAr.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-DoHtDmEG.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  const _hoisted_1 = { class: "history-list" };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, createElementBlock, openBlock, createElementVNode, withDirectives, toDisplayString, withModifiers, createVNode, vShow } from "vue";
2
- import { G as GIcon, _ as _export_sfc } from "./index-BM75GWAr.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-DoHtDmEG.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  const _hoisted_1 = { class: "ellipsis" };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, inject, ref, onMounted, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createBlock, createVNode, withCtx } from "vue";
2
- import { u as useReportRepo, S as SearchRepoCard } from "./index-DHV0Xtxd.js";
3
- import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-BM75GWAr.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-BOfsxpqk.js";
3
+ import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-DoHtDmEG.js";
4
4
  import { Row, Col } from "vue-devui-lal/grid";
5
5
  import { SkeletonItem } from "vue-devui-lal/skeleton";
6
6
  import "vue-devui-lal/grid/style.css";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, createElementBlock, openBlock, Fragment, renderList, createElementVNode, createVNode, createCommentVNode, toDisplayString, unref } from "vue";
2
- import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-BM75GWAr.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-DoHtDmEG.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  const _hoisted_1 = ["onClick"];
@@ -1,5 +1,5 @@
1
1
  import { inject, ref, watch, withDirectives, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createVNode, vShow } from "vue";
2
- import { a as i18n, h as headRequest, G as GIcon } from "./index-BM75GWAr.js";
2
+ import { a as i18n, h as headRequest, G as GIcon } from "./index-DoHtDmEG.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  const _hoisted_1 = { class: "px-[8px] history-list-project pl-[8px]" };
@@ -1,7 +1,7 @@
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, withCtx, reactive } from "vue";
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";
2
2
  import debounce from "lodash/debounce";
3
- import { t as transferNumber, G as GIcon, s as setLoginTriggerSource, d as useRequestReport, r as reqCatch, h as headRequest, _ 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$9, n as isIncubationRepo, o as highlightWords, p as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-BM75GWAr.js";
4
- import { t as transWebUrl } from "./transWebUrl-wHBYp5FI.js";
3
+ import { t as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, d as useRequestReport, r as reqCatch, h as headRequest, 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$b, n as isIncubationRepo, o as highlightWords, p as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-DoHtDmEG.js";
4
+ import { t as transWebUrl } from "./transWebUrl-6a5S2Tr1.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";
@@ -78,7 +78,7 @@ const useReportRepo = (reportParams, viewReport) => {
78
78
  const formatNameSpace = (content) => {
79
79
  return content.trim().replace(/\s+/g, "").replace(/^(GitHub加速计划\/|HuggingFace镜像\/)/, "").split("/").filter(Boolean);
80
80
  };
81
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
81
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
82
82
  __name: "index",
83
83
  props: {
84
84
  number: {},
@@ -92,19 +92,77 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
92
92
  };
93
93
  }
94
94
  });
95
- const _hoisted_1$6 = {
95
+ const _hoisted_1$8 = { class: "relative flex" };
96
+ const _hoisted_2$6 = { class: "absolute w-full h-full left-0 top-0" };
97
+ const ANIM_END = "animEnd";
98
+ const activeLikeIcon = "gt-plane-like";
99
+ const unActiveLikeIcon = "gt-line-like";
100
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
101
+ __name: "index",
102
+ props: /* @__PURE__ */ mergeModels({
103
+ runAnimation: { type: Boolean }
104
+ }, {
105
+ "modelValue": { type: Boolean },
106
+ "modelModifiers": {}
107
+ }),
108
+ emits: ["update:modelValue"],
109
+ setup(__props, { emit: __emit }) {
110
+ const props = __props;
111
+ const emits = __emit;
112
+ const active = useModel(__props, "modelValue");
113
+ const animRunning = ref(false);
114
+ watch(
115
+ () => props.runAnimation,
116
+ (newValue) => {
117
+ if (animRunning.value) {
118
+ return;
119
+ }
120
+ animRunning.value = newValue;
121
+ }
122
+ );
123
+ function animationend() {
124
+ animRunning.value = false;
125
+ active.value = true;
126
+ emits(ANIM_END);
127
+ }
128
+ return (_ctx, _cache) => {
129
+ return openBlock(), createElementBlock("div", _hoisted_1$8, [
130
+ createVNode(GIcon, {
131
+ class: normalizeClass({ "!text-red-500": active.value }),
132
+ name: active.value ? activeLikeIcon : unActiveLikeIcon
133
+ }, null, 8, ["class", "name"]),
134
+ withDirectives(createElementVNode("div", _hoisted_2$6, [
135
+ createElementVNode("div", {
136
+ class: "like",
137
+ onAnimationend: animationend
138
+ }, [
139
+ createVNode(GIcon, {
140
+ class: "!text-red-500",
141
+ name: activeLikeIcon
142
+ })
143
+ ], 32)
144
+ ], 512), [
145
+ [vShow, animRunning.value]
146
+ ])
147
+ ]);
148
+ };
149
+ }
150
+ });
151
+ const Like = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-vue-layout-gitcode"]]);
152
+ const _hoisted_1$7 = {
96
153
  class: "mr-[4px]",
97
154
  style: { "width": "15px", "height": "15px" }
98
155
  };
99
- const _hoisted_2$4 = { class: "i-star-tag__text" };
100
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
156
+ const _hoisted_2$5 = { class: "i-star-tag__text" };
157
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
101
158
  __name: "index",
102
159
  props: {
103
160
  starInfo: { default: () => ({
104
161
  starred: false,
105
162
  starCount: 0
106
163
  }) },
107
- loginTriggerSource: { default: "search_star_repo_recommend" }
164
+ loginTriggerSource: { default: "search_star_repo_recommend" },
165
+ isLike: { type: Boolean, default: false }
108
166
  },
109
167
  emits: ["report"],
110
168
  setup(__props, { emit: __emit }) {
@@ -153,6 +211,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
153
211
  running.value = false;
154
212
  }, 100);
155
213
  };
214
+ const animationendLike = () => {
215
+ running.value = false;
216
+ };
156
217
  return (_ctx, _cache) => {
157
218
  return openBlock(), createElementBlock("div", {
158
219
  class: normalizeClass(["i-star", {
@@ -165,25 +226,34 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
165
226
  }]),
166
227
  onClick: withModifiers(handleStar, ["stop", "prevent"])
167
228
  }, [
168
- withDirectives(createElementVNode("div", {
169
- class: "star",
170
- onAnimationend: animationend
171
- }, null, 544), [
172
- [vShow, running.value]
173
- ]),
174
- createElementVNode("div", _hoisted_1$6, [
175
- withDirectives(createVNode(GIcon, {
176
- size: "15",
177
- name: starred.value ? "gt-a-star_open_16px1" : "gt-line-new-star",
178
- style: {
179
- transition: "all 0.2s"
180
- }
181
- }, null, 8, ["name"]), [
182
- [vShow, !running.value]
229
+ _ctx.isLike ? (openBlock(), createBlock(Like, {
230
+ key: 0,
231
+ class: "mr-[4px]",
232
+ modelValue: starred.value,
233
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => starred.value = $event),
234
+ runAnimation: running.value,
235
+ onAnimEnd: animationendLike
236
+ }, null, 8, ["modelValue", "runAnimation"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
237
+ withDirectives(createElementVNode("div", {
238
+ class: "star",
239
+ onAnimationend: animationend
240
+ }, null, 544), [
241
+ [vShow, running.value]
242
+ ]),
243
+ createElementVNode("div", _hoisted_1$7, [
244
+ withDirectives(createVNode(GIcon, {
245
+ size: "15",
246
+ name: starred.value ? "gt-a-star_open_16px1" : "gt-line-new-star",
247
+ style: {
248
+ transition: "all 0.2s"
249
+ }
250
+ }, null, 8, ["name"]), [
251
+ [vShow, !running.value]
252
+ ])
183
253
  ])
184
- ]),
185
- createElementVNode("span", _hoisted_2$4, [
186
- createVNode(_sfc_main$8, {
254
+ ], 64)),
255
+ createElementVNode("span", _hoisted_2$5, [
256
+ createVNode(_sfc_main$a, {
187
257
  number: Number(starCount.value || 0)
188
258
  }, null, 8, ["number"])
189
259
  ])
@@ -192,16 +262,16 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
192
262
  };
193
263
  }
194
264
  });
195
- const StarTag = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-vue-layout-gitcode"]]);
196
- const _hoisted_1$5 = { class: "fork-tag" };
197
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
265
+ const StarTag = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-vue-layout-gitcode"]]);
266
+ const _hoisted_1$6 = { class: "fork-tag" };
267
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
198
268
  __name: "index",
199
269
  props: {
200
270
  count: {}
201
271
  },
202
272
  setup(__props) {
203
273
  return (_ctx, _cache) => {
204
- return openBlock(), createElementBlock("div", _hoisted_1$5, [
274
+ return openBlock(), createElementBlock("div", _hoisted_1$6, [
205
275
  createVNode(GIcon, {
206
276
  class: "mr-[4px]",
207
277
  name: "gt-line-fork",
@@ -209,7 +279,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
209
279
  size: "14"
210
280
  }),
211
281
  createElementVNode("span", null, [
212
- createVNode(_sfc_main$8, {
282
+ createVNode(_sfc_main$a, {
213
283
  number: _ctx.count || 0
214
284
  }, null, 8, ["number"])
215
285
  ])
@@ -217,8 +287,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
217
287
  };
218
288
  }
219
289
  });
220
- const ForkTag = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-vue-layout-gitcode"]]);
221
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
290
+ const ForkTag = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-vue-layout-gitcode"]]);
291
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
222
292
  __name: "index",
223
293
  props: {
224
294
  tagInfo: { default: [] },
@@ -263,10 +333,10 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
263
333
  };
264
334
  }
265
335
  });
266
- const LanguageTag = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-vue-layout-gitcode"]]);
267
- const _hoisted_1$4 = { class: "star-count-one" };
268
- const _hoisted_2$3 = { key: 0 };
269
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
336
+ const LanguageTag = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-vue-layout-gitcode"]]);
337
+ const _hoisted_1$5 = { class: "star-count-one" };
338
+ const _hoisted_2$4 = { key: 0 };
339
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
270
340
  ...{ name: "star-count-one" },
271
341
  __name: "index",
272
342
  props: {
@@ -276,27 +346,27 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
276
346
  setup(__props) {
277
347
  const { t: $t } = i18n.global;
278
348
  return (_ctx, _cache) => {
279
- return openBlock(), createElementBlock("div", _hoisted_1$4, [
349
+ return openBlock(), createElementBlock("div", _hoisted_1$5, [
280
350
  createVNode(GIcon, {
281
351
  name: "gt-line-new-star",
282
352
  color: "var(--theme-home-card-color-placeholder)",
283
353
  size: "14"
284
354
  }),
285
- !_ctx.hideText ? (openBlock(), createElementBlock("span", _hoisted_2$3, toDisplayString(unref($t)("gitCodeLayout.components.repo.today")), 1)) : createCommentVNode("", true),
286
- createVNode(_sfc_main$8, {
355
+ !_ctx.hideText ? (openBlock(), createElementBlock("span", _hoisted_2$4, toDisplayString(unref($t)("gitCodeLayout.components.repo.today")), 1)) : createCommentVNode("", true),
356
+ createVNode(_sfc_main$a, {
287
357
  number: _ctx.starCountOne || 0
288
358
  }, null, 8, ["number"])
289
359
  ]);
290
360
  };
291
361
  }
292
362
  });
293
- const StarCountOne = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
294
- const _hoisted_1$3 = {
363
+ const StarCountOne = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-vue-layout-gitcode"]]);
364
+ const _hoisted_1$4 = {
295
365
  key: 0,
296
366
  class: "github-star-num"
297
367
  };
298
- const _hoisted_2$2 = { class: "leading-none" };
299
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
368
+ const _hoisted_2$3 = { class: "leading-none" };
369
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
300
370
  ...{ name: "GithubStarNum" },
301
371
  __name: "index",
302
372
  props: {
@@ -308,15 +378,15 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
308
378
  return props.count && props.count >= 100;
309
379
  });
310
380
  return (_ctx, _cache) => {
311
- return starVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
381
+ return starVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$4, [
312
382
  createVNode(GIcon, {
313
383
  name: "gt-line-github",
314
384
  color: "var(--theme-home-card-color-placeholder)",
315
385
  size: "14"
316
386
  }),
317
- createElementVNode("span", _hoisted_2$2, [
318
- _cache[0] || (_cache[0] = createTextVNode("Star ", -1)),
319
- createVNode(_sfc_main$8, {
387
+ createElementVNode("span", _hoisted_2$3, [
388
+ _cache[0] || (_cache[0] = createTextVNode("Star ")),
389
+ createVNode(_sfc_main$a, {
320
390
  number: _ctx.count || 0,
321
391
  gt100: true
322
392
  }, null, 8, ["number"])
@@ -325,18 +395,18 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
325
395
  };
326
396
  }
327
397
  });
328
- const GithubStarNum = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-vue-layout-gitcode"]]);
329
- const _hoisted_1$2 = { class: "repo-card-footer mt-[4px]" };
330
- const _hoisted_2$1 = {
398
+ const GithubStarNum = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
399
+ const _hoisted_1$3 = { class: "repo-card-footer mt-[4px]" };
400
+ const _hoisted_2$2 = {
331
401
  key: 3,
332
402
  class: "line-separator"
333
403
  };
334
- const _hoisted_3$1 = {
404
+ const _hoisted_3$2 = {
335
405
  key: 4,
336
406
  class: "repo-card-footer-timer"
337
407
  };
338
- const _hoisted_4$1 = ["onClick"];
339
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
408
+ const _hoisted_4$2 = ["onClick"];
409
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
340
410
  __name: "index",
341
411
  props: {
342
412
  repoInfo: {},
@@ -373,7 +443,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
373
443
  return (_ctx, _cache) => {
374
444
  return openBlock(), createElementBlock(Fragment, null, [
375
445
  createElementVNode("div", null, [
376
- createElementVNode("div", _hoisted_1$2, [
446
+ createElementVNode("div", _hoisted_1$3, [
377
447
  _ctx.tagInfo ? (openBlock(), createBlock(LanguageTag, {
378
448
  key: 0,
379
449
  "tag-info": _ctx.tagInfo
@@ -387,8 +457,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
387
457
  key: 2,
388
458
  count: _ctx.repoInfo.forks_count
389
459
  }, null, 8, ["count"])) : createCommentVNode("", true),
390
- !_ctx.hideUpdateTime ? (openBlock(), createElementBlock("div", _hoisted_2$1)) : createCommentVNode("", true),
391
- !_ctx.hideUpdateTime ? (openBlock(), createElementBlock("div", _hoisted_3$1, toDisplayString(unref(formatTimeFromNow)((_ctx.searchCard ? _ctx.repoInfo.last_repository_updated_at : _ctx.repoInfo.last_activity_at) || _ctx.repoInfo.last_activity_at)), 1)) : createCommentVNode("", true),
460
+ !_ctx.hideUpdateTime ? (openBlock(), createElementBlock("div", _hoisted_2$2)) : createCommentVNode("", true),
461
+ !_ctx.hideUpdateTime ? (openBlock(), createElementBlock("div", _hoisted_3$2, toDisplayString(unref(formatTimeFromNow)((_ctx.searchCard ? _ctx.repoInfo.last_repository_updated_at : _ctx.repoInfo.last_activity_at) || _ctx.repoInfo.last_activity_at)), 1)) : createCommentVNode("", true),
392
462
  !_ctx.hideStarIncrease && _ctx.repoInfo.star_count_one ? (openBlock(), createBlock(StarCountOne, {
393
463
  key: 5,
394
464
  starCountOne: _ctx.repoInfo.star_count_one
@@ -410,16 +480,16 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
410
480
  class: "topic-tag",
411
481
  key: topic.topic_id,
412
482
  onClick: withModifiers(($event) => handleTopicClick(topic), ["stop"])
413
- }, toDisplayString(topic.name), 9, _hoisted_4$1);
483
+ }, toDisplayString(topic.name), 9, _hoisted_4$2);
414
484
  }), 128))
415
485
  ], 512)) : createCommentVNode("", true)
416
486
  ], 64);
417
487
  };
418
488
  }
419
489
  });
420
- const RepoCardFooter = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-vue-layout-gitcode"]]);
421
- const _hoisted_1$1 = { class: "new-tag-content" };
422
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
490
+ const RepoCardFooter = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-vue-layout-gitcode"]]);
491
+ const _hoisted_1$2 = { class: "new-tag-content" };
492
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
423
493
  __name: "index",
424
494
  props: {
425
495
  repoType: {},
@@ -458,18 +528,84 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
458
528
  trigger: "hover"
459
529
  }, {
460
530
  content: withCtx(() => [
461
- createElementVNode("span", _hoisted_1$1, toDisplayString(tagTipsText.value), 1)
531
+ createElementVNode("span", _hoisted_1$2, toDisplayString(tagTipsText.value), 1)
462
532
  ]),
463
533
  default: withCtx(() => [
464
534
  _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))
465
535
  ]),
466
- _: 1,
467
- __: [0]
536
+ _: 1
468
537
  })) : createCommentVNode("", true);
469
538
  };
470
539
  }
471
540
  });
472
- const NewTag = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-vue-layout-gitcode"]]);
541
+ const NewTag = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-vue-layout-gitcode"]]);
542
+ const _hoisted_1$1 = { class: "model-card-footer h-[22px] mt-[4px] flex items-center overflow-hidden whitespace-nowrap text-[12px] font-medium leading-[14px] text-gray-400" };
543
+ const _hoisted_2$1 = {
544
+ key: 1,
545
+ class: "ellipsis max-150 ml-[6px]"
546
+ };
547
+ const _hoisted_3$1 = { class: "ml-[4px]" };
548
+ const _hoisted_4$1 = { class: "whitespace-nowrap overflow-hidden text-ellipsis" };
549
+ const _hoisted_5$1 = { class: "ml-[4px]" };
550
+ const _hoisted_6$1 = {
551
+ key: 2,
552
+ class: "px-1.5 text-gray-300 dark:text-gray-500"
553
+ };
554
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
555
+ __name: "ModelCardFooter",
556
+ props: {
557
+ repoInfo: {}
558
+ },
559
+ setup(__props) {
560
+ const { formatTimeFromNow } = useTimeFormat();
561
+ const props = __props;
562
+ const projectData = computed(() => {
563
+ return props.repoInfo;
564
+ });
565
+ return (_ctx, _cache) => {
566
+ return openBlock(), createElementBlock("section", _hoisted_1$1, [
567
+ projectData.value.task && projectData.value.task.length ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
568
+ projectData.value.task[0].icon ? (openBlock(), createBlock(GIcon, {
569
+ key: 0,
570
+ name: projectData.value.task[0].icon,
571
+ color: "text-gray-400",
572
+ size: "12px"
573
+ }, null, 8, ["name"])) : createCommentVNode("", true),
574
+ projectData.value.task[0].name ? (openBlock(), createElementBlock("span", _hoisted_2$1, toDisplayString(projectData.value.task[0].name), 1)) : createCommentVNode("", true),
575
+ _cache[0] || (_cache[0] = createElementVNode("span", { class: "px-1.5 text-gray-300 dark:text-gray-500" }, "•", -1))
576
+ ], 64)) : createCommentVNode("", true),
577
+ projectData.value.model_param_size ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
578
+ createVNode(GIcon, {
579
+ name: "gt-a-line-modelsize",
580
+ size: "12px",
581
+ color: "text-gray-400"
582
+ }),
583
+ createElementVNode("span", _hoisted_3$1, toDisplayString(projectData.value.model_param_size), 1),
584
+ _cache[1] || (_cache[1] = createElementVNode("span", { class: "px-1.5 text-gray-300 dark:text-gray-500" }, "•", -1))
585
+ ], 64)) : createCommentVNode("", true),
586
+ createElementVNode("span", _hoisted_4$1, toDisplayString(unref(formatTimeFromNow)(projectData.value.updated_at)), 1),
587
+ _cache[2] || (_cache[2] = createElementVNode("span", { class: "px-1.5 text-gray-300 dark:text-gray-500" }, "•", -1)),
588
+ createVNode(GIcon, {
589
+ name: "gt-line-upload",
590
+ size: "12px",
591
+ color: "text-gray-400"
592
+ }),
593
+ createElementVNode("span", _hoisted_5$1, [
594
+ createVNode(_sfc_main$a, {
595
+ number: projectData.value.download_count || 0
596
+ }, null, 8, ["number"])
597
+ ]),
598
+ projectData.value.is_online ? (openBlock(), createElementBlock("span", _hoisted_6$1, "•")) : createCommentVNode("", true),
599
+ projectData.value.is_online ? (openBlock(), createBlock(GIcon, {
600
+ key: 3,
601
+ name: "gt-a-plane-Canexperience1",
602
+ size: "12px",
603
+ color: "#da203e"
604
+ })) : createCommentVNode("", true)
605
+ ]);
606
+ };
607
+ }
608
+ });
473
609
  const _hoisted_1 = ["innerHTML"];
474
610
  const _hoisted_2 = {
475
611
  key: 0,
@@ -510,8 +646,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
510
646
  emits("report", "starReport");
511
647
  };
512
648
  const rowSpan = reactive({ xxl: 8, xl: 12, md: 12, lg: 24, sm: 24 });
513
- const repoIcon = { repo: "gt-line-repositories", model: "gt-line-Models", dataset: "gt-line-Datasets" };
649
+ const repoIcon = { repo: "gt-line-repositories", model: "gt-plane-models", dataset: "gt-line-Datasets" };
514
650
  const props = __props;
651
+ console.log("i-search-projects-card", props.info, props.cardType);
515
652
  const iconName = computed(() => {
516
653
  var _a;
517
654
  if ((_a = props.info) == null ? void 0 : _a.is_gh_mirrors) {
@@ -519,6 +656,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
519
656
  }
520
657
  return repoIcon[props.cardType] || "gt-line-repositories";
521
658
  });
659
+ const isModel = computed(() => {
660
+ return props.cardType === "model";
661
+ });
522
662
  const description = computed(() => {
523
663
  if (lang.value === LANG_ZH) {
524
664
  return props.info.description_cn || props.info.description;
@@ -599,31 +739,29 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
599
739
  }, null, 8, _hoisted_1),
600
740
  _ctx.info.show_recommend_icon ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(unref($t)("gitCodeLayout.search.recommendTag")), 1)) : createCommentVNode("", true),
601
741
  unref(isGstarRepo)(_ctx.info.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_3, [
602
- createVNode(_sfc_main$9, {
742
+ createVNode(_sfc_main$b, {
603
743
  origin: "repo",
604
744
  icon: "",
605
745
  type: "gstar",
606
746
  message: `G-Star ${unref($t)("gitCodeLayout.GStar.project.graduation")}`
607
747
  }, {
608
748
  default: withCtx(() => _cache[0] || (_cache[0] = [
609
- createTextVNode("G-Star ", -1)
749
+ createTextVNode("G-Star ")
610
750
  ])),
611
- _: 1,
612
- __: [0]
751
+ _: 1
613
752
  }, 8, ["message"])
614
753
  ])) : createCommentVNode("", true),
615
754
  unref(isIncubationRepo)(_ctx.info.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_4, [
616
- createVNode(_sfc_main$9, {
755
+ createVNode(_sfc_main$b, {
617
756
  origin: "repo",
618
757
  icon: "",
619
758
  type: "incubation",
620
759
  message: `G-Star ${unref($t)("gitCodeLayout.GStar.project.incubation")}`
621
760
  }, {
622
761
  default: withCtx(() => _cache[1] || (_cache[1] = [
623
- createTextVNode(" G-Star ", -1)
762
+ createTextVNode(" G-Star ")
624
763
  ])),
625
- _: 1,
626
- __: [1]
764
+ _: 1
627
765
  }, 8, ["message"])
628
766
  ])) : createCommentVNode("", true),
629
767
  createVNode(NewTag, {
@@ -638,9 +776,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
638
776
  default: withCtx(() => [
639
777
  !_ctx.hideStarBtn ? (openBlock(), createBlock(StarTag, {
640
778
  key: 0,
779
+ isLike: isModel.value,
641
780
  "star-info": starInfo.value,
642
781
  onReport: handleStarReport
643
- }, null, 8, ["star-info"])) : createCommentVNode("", true)
782
+ }, null, 8, ["isLike", "star-info"])) : createCommentVNode("", true)
644
783
  ]),
645
784
  _: 1
646
785
  })
@@ -690,7 +829,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
690
829
  ]),
691
830
  _: 1
692
831
  })) : createCommentVNode("", true)
693
- ])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
832
+ ])) : isModel.value ? (openBlock(), createBlock(_sfc_main$1, {
833
+ key: 2,
834
+ repoInfo: _ctx.info
835
+ }, null, 8, ["repoInfo"])) : (openBlock(), createElementBlock(Fragment, { key: 3 }, [
694
836
  !_ctx.hideFooter ? (openBlock(), createBlock(RepoCardFooter, {
695
837
  key: 0,
696
838
  hideTopicTags: _ctx.hideTopicTags,
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, onMounted, createBlock, openBlock, unref, withCtx, createElementVNode } from "vue";
2
2
  import { FixedOverlay } from "vue-devui-lal/overlay";
3
- import { q as useLayoutConfig, _ as _export_sfc } from "./index-BM75GWAr.js";
3
+ import { q as useLayoutConfig, _ as _export_sfc } from "./index-DoHtDmEG.js";
4
4
  import "vue-devui-lal/overlay/style.css";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "index",
@@ -49,8 +49,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
49
49
  default: withCtx(() => _cache[0] || (_cache[0] = [
50
50
  createElementVNode("div", { id: "captcha-box" }, null, -1)
51
51
  ])),
52
- _: 1,
53
- __: [0]
52
+ _: 1
54
53
  });
55
54
  };
56
55
  }