vue-layout-gitcode 1.5.120 → 1.5.122

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-DSr34o1o.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-jTHKsfCs.js";
5
5
  import "lodash/debounce";
6
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-DzRKBvIW.js";
7
- import "./transWebUrl-BkOanwl3.js";
6
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-CD6mac1g.js";
7
+ import "./transWebUrl-BdLWQyWy.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-DSr34o1o.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-jTHKsfCs.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-DSr34o1o.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-jTHKsfCs.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-BkOanwl3.js";
4
+ import { t as transWebUrl } from "./transWebUrl-BdLWQyWy.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-DSr34o1o.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-jTHKsfCs.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-BkOanwl3.js";
4
+ import { t as transWebUrl } from "./transWebUrl-BdLWQyWy.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-DSr34o1o.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-jTHKsfCs.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-DSr34o1o.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-jTHKsfCs.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-DSr34o1o.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-jTHKsfCs.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-DzRKBvIW.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-DSr34o1o.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-CD6mac1g.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-jTHKsfCs.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-DSr34o1o.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-jTHKsfCs.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-DSr34o1o.js";
2
+ import { a as i18n, h as headRequest, G as GIcon } from "./index-jTHKsfCs.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-DSr34o1o.js";
4
- import { t as transWebUrl } from "./transWebUrl-BkOanwl3.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-jTHKsfCs.js";
4
+ import { t as transWebUrl } from "./transWebUrl-BdLWQyWy.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 ")),
319
- createVNode(_sfc_main$8, {
387
+ createElementVNode("span", _hoisted_2$3, [
388
+ _cache[0] || (_cache[0] = createTextVNode("Star ", -1)),
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: {},
@@ -360,6 +430,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
360
430
  ref(topicNames.value);
361
431
  const visibleCount = ref(0);
362
432
  ref(false);
433
+ const showUpdateTimeDot = computed(() => {
434
+ return !props.hideUpdateTime && (!props.hideStarCount || props.tagInfo && props.tagInfo[0] || props.repoInfo.forks_count);
435
+ });
363
436
  computed(() => {
364
437
  return topicNames.value.length - visibleCount.value + 1;
365
438
  });
@@ -373,7 +446,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
373
446
  return (_ctx, _cache) => {
374
447
  return openBlock(), createElementBlock(Fragment, null, [
375
448
  createElementVNode("div", null, [
376
- createElementVNode("div", _hoisted_1$2, [
449
+ createElementVNode("div", _hoisted_1$3, [
377
450
  _ctx.tagInfo ? (openBlock(), createBlock(LanguageTag, {
378
451
  key: 0,
379
452
  "tag-info": _ctx.tagInfo
@@ -387,8 +460,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
387
460
  key: 2,
388
461
  count: _ctx.repoInfo.forks_count
389
462
  }, 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),
463
+ showUpdateTimeDot.value ? (openBlock(), createElementBlock("div", _hoisted_2$2)) : createCommentVNode("", true),
464
+ !_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
465
  !_ctx.hideStarIncrease && _ctx.repoInfo.star_count_one ? (openBlock(), createBlock(StarCountOne, {
393
466
  key: 5,
394
467
  starCountOne: _ctx.repoInfo.star_count_one
@@ -410,16 +483,16 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
410
483
  class: "topic-tag",
411
484
  key: topic.topic_id,
412
485
  onClick: withModifiers(($event) => handleTopicClick(topic), ["stop"])
413
- }, toDisplayString(topic.name), 9, _hoisted_4$1);
486
+ }, toDisplayString(topic.name), 9, _hoisted_4$2);
414
487
  }), 128))
415
488
  ], 512)) : createCommentVNode("", true)
416
489
  ], 64);
417
490
  };
418
491
  }
419
492
  });
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({
493
+ const RepoCardFooter = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-vue-layout-gitcode"]]);
494
+ const _hoisted_1$2 = { class: "new-tag-content" };
495
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
423
496
  __name: "index",
424
497
  props: {
425
498
  repoType: {},
@@ -458,18 +531,84 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
458
531
  trigger: "hover"
459
532
  }, {
460
533
  content: withCtx(() => [
461
- createElementVNode("span", _hoisted_1$1, toDisplayString(tagTipsText.value), 1)
534
+ createElementVNode("span", _hoisted_1$2, toDisplayString(tagTipsText.value), 1)
462
535
  ]),
463
536
  default: withCtx(() => [
464
537
  _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
538
  ]),
466
- _: 1,
467
- __: [0]
539
+ _: 1
468
540
  })) : createCommentVNode("", true);
469
541
  };
470
542
  }
471
543
  });
472
- const NewTag = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-vue-layout-gitcode"]]);
544
+ const NewTag = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-vue-layout-gitcode"]]);
545
+ const _hoisted_1$1 = { class: "model-card-footer h-[22px] mt-[4px] flex items-center overflow-hidden whitespace-nowrap text-[14px] leading-[14px] text-[var(--theme-release-card-text-color)]" };
546
+ const _hoisted_2$1 = {
547
+ key: 1,
548
+ class: "ellipsis max-150 ml-[6px]"
549
+ };
550
+ const _hoisted_3$1 = { class: "ml-[6px]" };
551
+ const _hoisted_4$1 = { class: "whitespace-nowrap overflow-hidden text-ellipsis" };
552
+ const _hoisted_5$1 = { class: "ml-[6px]" };
553
+ const _hoisted_6$1 = {
554
+ key: 2,
555
+ class: "w-[4px] h-[4px] ml-[6px] mr-[6px] rounded-[2px] bg-[var(--theme-placeholder)]"
556
+ };
557
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
558
+ __name: "ModelCardFooter",
559
+ props: {
560
+ repoInfo: {}
561
+ },
562
+ setup(__props) {
563
+ const { formatTimeFromNow } = useTimeFormat();
564
+ const props = __props;
565
+ const projectData = computed(() => {
566
+ return props.repoInfo;
567
+ });
568
+ return (_ctx, _cache) => {
569
+ return openBlock(), createElementBlock("section", _hoisted_1$1, [
570
+ projectData.value.task && projectData.value.task.length ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
571
+ projectData.value.task[0].icon ? (openBlock(), createBlock(GIcon, {
572
+ key: 0,
573
+ name: projectData.value.task[0].icon,
574
+ color: "var(--theme-release-card-text-color)",
575
+ size: "12px"
576
+ }, null, 8, ["name"])) : createCommentVNode("", true),
577
+ projectData.value.task[0].name ? (openBlock(), createElementBlock("span", _hoisted_2$1, toDisplayString(projectData.value.task[0].name), 1)) : createCommentVNode("", true),
578
+ _cache[0] || (_cache[0] = createElementVNode("div", { class: "w-[4px] h-[4px] ml-[6px] mr-[6px] rounded-[2px] bg-[var(--theme-placeholder)]" }, null, -1))
579
+ ], 64)) : createCommentVNode("", true),
580
+ projectData.value.model_param_size ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
581
+ createVNode(GIcon, {
582
+ name: "gt-a-line-modelsize",
583
+ size: "14px",
584
+ color: "var(--theme-release-card-text-color)"
585
+ }),
586
+ createElementVNode("span", _hoisted_3$1, toDisplayString(projectData.value.model_param_size), 1),
587
+ _cache[1] || (_cache[1] = createElementVNode("div", { class: "w-[4px] h-[4px] ml-[6px] mr-[6px] rounded-[2px] bg-[var(--theme-placeholder)]" }, null, -1))
588
+ ], 64)) : createCommentVNode("", true),
589
+ createElementVNode("span", _hoisted_4$1, toDisplayString(unref(formatTimeFromNow)(projectData.value.updated_at)), 1),
590
+ _cache[2] || (_cache[2] = createElementVNode("div", { class: "w-[4px] h-[4px] ml-[6px] mr-[6px] rounded-[2px] bg-[var(--theme-placeholder)]" }, null, -1)),
591
+ createVNode(GIcon, {
592
+ name: "gt-line-upload",
593
+ size: "14px",
594
+ color: "var(--theme-release-card-text-color)"
595
+ }),
596
+ createElementVNode("span", _hoisted_5$1, [
597
+ createVNode(_sfc_main$a, {
598
+ number: projectData.value.download_count || 0
599
+ }, null, 8, ["number"])
600
+ ]),
601
+ projectData.value.is_online ? (openBlock(), createElementBlock("div", _hoisted_6$1)) : createCommentVNode("", true),
602
+ projectData.value.is_online ? (openBlock(), createBlock(GIcon, {
603
+ key: 3,
604
+ name: "gt-a-plane-Canexperience1",
605
+ size: "14px",
606
+ color: "#DA203E"
607
+ })) : createCommentVNode("", true)
608
+ ]);
609
+ };
610
+ }
611
+ });
473
612
  const _hoisted_1 = ["innerHTML"];
474
613
  const _hoisted_2 = {
475
614
  key: 0,
@@ -510,8 +649,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
510
649
  emits("report", "starReport");
511
650
  };
512
651
  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" };
652
+ const repoIcon = { repo: "gt-line-repositories", model: "gt-plane-models", dataset: "gt-line-Datasets" };
514
653
  const props = __props;
654
+ console.log("i-search-projects-card", props.info, props.cardType);
515
655
  const iconName = computed(() => {
516
656
  var _a;
517
657
  if ((_a = props.info) == null ? void 0 : _a.is_gh_mirrors) {
@@ -519,6 +659,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
519
659
  }
520
660
  return repoIcon[props.cardType] || "gt-line-repositories";
521
661
  });
662
+ const isModel = computed(() => {
663
+ return props.cardType === "model";
664
+ });
522
665
  const description = computed(() => {
523
666
  if (lang.value === LANG_ZH) {
524
667
  return props.info.description_cn || props.info.description;
@@ -576,7 +719,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
576
719
  });
577
720
  return (_ctx, _cache) => {
578
721
  return openBlock(), createElementBlock("a", {
579
- class: normalizeClass(["i-search-projects-card", { noborder: _ctx.noborder, "full-hover": _ctx.hover }]),
722
+ class: normalizeClass(["i-search-projects-card cursor-pointer", { noborder: _ctx.noborder, "full-hover": _ctx.hover }]),
580
723
  onClick: handleClick
581
724
  }, [
582
725
  createVNode(unref(Row), { class: "i-search-projects-card-title" }, {
@@ -599,31 +742,29 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
599
742
  }, null, 8, _hoisted_1),
600
743
  _ctx.info.show_recommend_icon ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(unref($t)("gitCodeLayout.search.recommendTag")), 1)) : createCommentVNode("", true),
601
744
  unref(isGstarRepo)(_ctx.info.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_3, [
602
- createVNode(_sfc_main$9, {
745
+ createVNode(_sfc_main$b, {
603
746
  origin: "repo",
604
747
  icon: "",
605
748
  type: "gstar",
606
749
  message: `G-Star ${unref($t)("gitCodeLayout.GStar.project.graduation")}`
607
750
  }, {
608
- default: withCtx(() => _cache[0] || (_cache[0] = [
609
- createTextVNode("G-Star ")
610
- ])),
611
- _: 1,
612
- __: [0]
751
+ default: withCtx(() => [..._cache[0] || (_cache[0] = [
752
+ createTextVNode("G-Star ", -1)
753
+ ])]),
754
+ _: 1
613
755
  }, 8, ["message"])
614
756
  ])) : createCommentVNode("", true),
615
757
  unref(isIncubationRepo)(_ctx.info.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_4, [
616
- createVNode(_sfc_main$9, {
758
+ createVNode(_sfc_main$b, {
617
759
  origin: "repo",
618
760
  icon: "",
619
761
  type: "incubation",
620
762
  message: `G-Star ${unref($t)("gitCodeLayout.GStar.project.incubation")}`
621
763
  }, {
622
- default: withCtx(() => _cache[1] || (_cache[1] = [
623
- createTextVNode(" G-Star ")
624
- ])),
625
- _: 1,
626
- __: [1]
764
+ default: withCtx(() => [..._cache[1] || (_cache[1] = [
765
+ createTextVNode(" G-Star ", -1)
766
+ ])]),
767
+ _: 1
627
768
  }, 8, ["message"])
628
769
  ])) : createCommentVNode("", true),
629
770
  createVNode(NewTag, {
@@ -638,9 +779,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
638
779
  default: withCtx(() => [
639
780
  !_ctx.hideStarBtn ? (openBlock(), createBlock(StarTag, {
640
781
  key: 0,
782
+ isLike: isModel.value,
641
783
  "star-info": starInfo.value,
642
784
  onReport: handleStarReport
643
- }, null, 8, ["star-info"])) : createCommentVNode("", true)
785
+ }, null, 8, ["isLike", "star-info"])) : createCommentVNode("", true)
644
786
  ]),
645
787
  _: 1
646
788
  })
@@ -690,7 +832,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
690
832
  ]),
691
833
  _: 1
692
834
  })) : createCommentVNode("", true)
693
- ])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
835
+ ])) : isModel.value ? (openBlock(), createBlock(_sfc_main$1, {
836
+ key: 2,
837
+ repoInfo: _ctx.info
838
+ }, null, 8, ["repoInfo"])) : (openBlock(), createElementBlock(Fragment, { key: 3 }, [
694
839
  !_ctx.hideFooter ? (openBlock(), createBlock(RepoCardFooter, {
695
840
  key: 0,
696
841
  hideTopicTags: _ctx.hideTopicTags,