vue-layout-gitcode 1.5.104 → 1.5.106

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-DoHtDmEG.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-CSPjFL7e.js";
5
5
  import "lodash/debounce";
6
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-BOfsxpqk.js";
7
- import "./transWebUrl-6a5S2Tr1.js";
6
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-BQf4LeFU.js";
7
+ import "./transWebUrl-29TBZ3z-.js";
8
8
  import "vue-devui-lal/tooltip";
9
9
  import "vue-devui-lal/tooltip/style.css";
10
10
  import "vue-router";
@@ -164,6 +164,7 @@ const _sfc_main = {
164
164
  }
165
165
  );
166
166
  onMounted(() => {
167
+ console.log("GloabarSearch");
167
168
  });
168
169
  return (_ctx, _cache) => {
169
170
  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-DoHtDmEG.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-CSPjFL7e.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-DoHtDmEG.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-CSPjFL7e.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-6a5S2Tr1.js";
4
+ import { t as transWebUrl } from "./transWebUrl-29TBZ3z-.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-DoHtDmEG.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-CSPjFL7e.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-6a5S2Tr1.js";
4
+ import { t as transWebUrl } from "./transWebUrl-29TBZ3z-.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-DoHtDmEG.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-CSPjFL7e.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-DoHtDmEG.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-CSPjFL7e.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-DoHtDmEG.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-CSPjFL7e.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-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";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-BQf4LeFU.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-CSPjFL7e.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-DoHtDmEG.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-CSPjFL7e.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-DoHtDmEG.js";
2
+ import { a as i18n, h as headRequest, G as GIcon } from "./index-CSPjFL7e.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, 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";
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";
2
2
  import debounce from "lodash/debounce";
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";
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-CSPjFL7e.js";
4
+ import { t as transWebUrl } from "./transWebUrl-29TBZ3z-.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$a = /* @__PURE__ */ defineComponent({
81
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
82
82
  __name: "index",
83
83
  props: {
84
84
  number: {},
@@ -92,77 +92,19 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
92
92
  };
93
93
  }
94
94
  });
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 = {
95
+ const _hoisted_1$6 = {
153
96
  class: "mr-[4px]",
154
97
  style: { "width": "15px", "height": "15px" }
155
98
  };
156
- const _hoisted_2$5 = { class: "i-star-tag__text" };
157
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
99
+ const _hoisted_2$4 = { class: "i-star-tag__text" };
100
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
158
101
  __name: "index",
159
102
  props: {
160
103
  starInfo: { default: () => ({
161
104
  starred: false,
162
105
  starCount: 0
163
106
  }) },
164
- loginTriggerSource: { default: "search_star_repo_recommend" },
165
- isLike: { type: Boolean, default: false }
107
+ loginTriggerSource: { default: "search_star_repo_recommend" }
166
108
  },
167
109
  emits: ["report"],
168
110
  setup(__props, { emit: __emit }) {
@@ -211,9 +153,6 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
211
153
  running.value = false;
212
154
  }, 100);
213
155
  };
214
- const animationendLike = () => {
215
- running.value = false;
216
- };
217
156
  return (_ctx, _cache) => {
218
157
  return openBlock(), createElementBlock("div", {
219
158
  class: normalizeClass(["i-star", {
@@ -226,34 +165,25 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
226
165
  }]),
227
166
  onClick: withModifiers(handleStar, ["stop", "prevent"])
228
167
  }, [
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
- ])
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]
253
183
  ])
254
- ], 64)),
255
- createElementVNode("span", _hoisted_2$5, [
256
- createVNode(_sfc_main$a, {
184
+ ]),
185
+ createElementVNode("span", _hoisted_2$4, [
186
+ createVNode(_sfc_main$8, {
257
187
  number: Number(starCount.value || 0)
258
188
  }, null, 8, ["number"])
259
189
  ])
@@ -262,16 +192,16 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
262
192
  };
263
193
  }
264
194
  });
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({
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({
268
198
  __name: "index",
269
199
  props: {
270
200
  count: {}
271
201
  },
272
202
  setup(__props) {
273
203
  return (_ctx, _cache) => {
274
- return openBlock(), createElementBlock("div", _hoisted_1$6, [
204
+ return openBlock(), createElementBlock("div", _hoisted_1$5, [
275
205
  createVNode(GIcon, {
276
206
  class: "mr-[4px]",
277
207
  name: "gt-line-fork",
@@ -279,7 +209,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
279
209
  size: "14"
280
210
  }),
281
211
  createElementVNode("span", null, [
282
- createVNode(_sfc_main$a, {
212
+ createVNode(_sfc_main$8, {
283
213
  number: _ctx.count || 0
284
214
  }, null, 8, ["number"])
285
215
  ])
@@ -287,8 +217,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
287
217
  };
288
218
  }
289
219
  });
290
- const ForkTag = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-vue-layout-gitcode"]]);
291
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
220
+ const ForkTag = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-vue-layout-gitcode"]]);
221
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
292
222
  __name: "index",
293
223
  props: {
294
224
  tagInfo: { default: [] },
@@ -333,10 +263,10 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
333
263
  };
334
264
  }
335
265
  });
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({
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({
340
270
  ...{ name: "star-count-one" },
341
271
  __name: "index",
342
272
  props: {
@@ -346,27 +276,27 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
346
276
  setup(__props) {
347
277
  const { t: $t } = i18n.global;
348
278
  return (_ctx, _cache) => {
349
- return openBlock(), createElementBlock("div", _hoisted_1$5, [
279
+ return openBlock(), createElementBlock("div", _hoisted_1$4, [
350
280
  createVNode(GIcon, {
351
281
  name: "gt-line-new-star",
352
282
  color: "var(--theme-home-card-color-placeholder)",
353
283
  size: "14"
354
284
  }),
355
- !_ctx.hideText ? (openBlock(), createElementBlock("span", _hoisted_2$4, toDisplayString(unref($t)("gitCodeLayout.components.repo.today")), 1)) : createCommentVNode("", true),
356
- createVNode(_sfc_main$a, {
285
+ !_ctx.hideText ? (openBlock(), createElementBlock("span", _hoisted_2$3, toDisplayString(unref($t)("gitCodeLayout.components.repo.today")), 1)) : createCommentVNode("", true),
286
+ createVNode(_sfc_main$8, {
357
287
  number: _ctx.starCountOne || 0
358
288
  }, null, 8, ["number"])
359
289
  ]);
360
290
  };
361
291
  }
362
292
  });
363
- const StarCountOne = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-vue-layout-gitcode"]]);
364
- const _hoisted_1$4 = {
293
+ const StarCountOne = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
294
+ const _hoisted_1$3 = {
365
295
  key: 0,
366
296
  class: "github-star-num"
367
297
  };
368
- const _hoisted_2$3 = { class: "leading-none" };
369
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
298
+ const _hoisted_2$2 = { class: "leading-none" };
299
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
370
300
  ...{ name: "GithubStarNum" },
371
301
  __name: "index",
372
302
  props: {
@@ -378,15 +308,15 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
378
308
  return props.count && props.count >= 100;
379
309
  });
380
310
  return (_ctx, _cache) => {
381
- return starVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$4, [
311
+ return starVisible.value ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
382
312
  createVNode(GIcon, {
383
313
  name: "gt-line-github",
384
314
  color: "var(--theme-home-card-color-placeholder)",
385
315
  size: "14"
386
316
  }),
387
- createElementVNode("span", _hoisted_2$3, [
317
+ createElementVNode("span", _hoisted_2$2, [
388
318
  _cache[0] || (_cache[0] = createTextVNode("Star ")),
389
- createVNode(_sfc_main$a, {
319
+ createVNode(_sfc_main$8, {
390
320
  number: _ctx.count || 0,
391
321
  gt100: true
392
322
  }, null, 8, ["number"])
@@ -395,18 +325,18 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
395
325
  };
396
326
  }
397
327
  });
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 = {
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 = {
401
331
  key: 3,
402
332
  class: "line-separator"
403
333
  };
404
- const _hoisted_3$2 = {
334
+ const _hoisted_3$1 = {
405
335
  key: 4,
406
336
  class: "repo-card-footer-timer"
407
337
  };
408
- const _hoisted_4$2 = ["onClick"];
409
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
338
+ const _hoisted_4$1 = ["onClick"];
339
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
410
340
  __name: "index",
411
341
  props: {
412
342
  repoInfo: {},
@@ -443,7 +373,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
443
373
  return (_ctx, _cache) => {
444
374
  return openBlock(), createElementBlock(Fragment, null, [
445
375
  createElementVNode("div", null, [
446
- createElementVNode("div", _hoisted_1$3, [
376
+ createElementVNode("div", _hoisted_1$2, [
447
377
  _ctx.tagInfo ? (openBlock(), createBlock(LanguageTag, {
448
378
  key: 0,
449
379
  "tag-info": _ctx.tagInfo
@@ -457,8 +387,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
457
387
  key: 2,
458
388
  count: _ctx.repoInfo.forks_count
459
389
  }, null, 8, ["count"])) : 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),
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),
462
392
  !_ctx.hideStarIncrease && _ctx.repoInfo.star_count_one ? (openBlock(), createBlock(StarCountOne, {
463
393
  key: 5,
464
394
  starCountOne: _ctx.repoInfo.star_count_one
@@ -480,16 +410,16 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
480
410
  class: "topic-tag",
481
411
  key: topic.topic_id,
482
412
  onClick: withModifiers(($event) => handleTopicClick(topic), ["stop"])
483
- }, toDisplayString(topic.name), 9, _hoisted_4$2);
413
+ }, toDisplayString(topic.name), 9, _hoisted_4$1);
484
414
  }), 128))
485
415
  ], 512)) : createCommentVNode("", true)
486
416
  ], 64);
487
417
  };
488
418
  }
489
419
  });
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({
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
423
  __name: "index",
494
424
  props: {
495
425
  repoType: {},
@@ -528,84 +458,18 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
528
458
  trigger: "hover"
529
459
  }, {
530
460
  content: withCtx(() => [
531
- createElementVNode("span", _hoisted_1$2, toDisplayString(tagTipsText.value), 1)
461
+ createElementVNode("span", _hoisted_1$1, toDisplayString(tagTipsText.value), 1)
532
462
  ]),
533
463
  default: withCtx(() => [
534
464
  _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))
535
465
  ]),
536
- _: 1
466
+ _: 1,
467
+ __: [0]
537
468
  })) : createCommentVNode("", true);
538
469
  };
539
470
  }
540
471
  });
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
- });
472
+ const NewTag = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-vue-layout-gitcode"]]);
609
473
  const _hoisted_1 = ["innerHTML"];
610
474
  const _hoisted_2 = {
611
475
  key: 0,
@@ -646,9 +510,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
646
510
  emits("report", "starReport");
647
511
  };
648
512
  const rowSpan = reactive({ xxl: 8, xl: 12, md: 12, lg: 24, sm: 24 });
649
- const repoIcon = { repo: "gt-line-repositories", model: "gt-plane-models", dataset: "gt-line-Datasets" };
513
+ const repoIcon = { repo: "gt-line-repositories", model: "gt-line-Models", dataset: "gt-line-Datasets" };
650
514
  const props = __props;
651
- console.log("i-search-projects-card", props.info, props.cardType);
652
515
  const iconName = computed(() => {
653
516
  var _a;
654
517
  if ((_a = props.info) == null ? void 0 : _a.is_gh_mirrors) {
@@ -656,9 +519,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
656
519
  }
657
520
  return repoIcon[props.cardType] || "gt-line-repositories";
658
521
  });
659
- const isModel = computed(() => {
660
- return props.cardType === "model";
661
- });
662
522
  const description = computed(() => {
663
523
  if (lang.value === LANG_ZH) {
664
524
  return props.info.description_cn || props.info.description;
@@ -739,7 +599,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
739
599
  }, null, 8, _hoisted_1),
740
600
  _ctx.info.show_recommend_icon ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(unref($t)("gitCodeLayout.search.recommendTag")), 1)) : createCommentVNode("", true),
741
601
  unref(isGstarRepo)(_ctx.info.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_3, [
742
- createVNode(_sfc_main$b, {
602
+ createVNode(_sfc_main$9, {
743
603
  origin: "repo",
744
604
  icon: "",
745
605
  type: "gstar",
@@ -748,11 +608,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
748
608
  default: withCtx(() => _cache[0] || (_cache[0] = [
749
609
  createTextVNode("G-Star ")
750
610
  ])),
751
- _: 1
611
+ _: 1,
612
+ __: [0]
752
613
  }, 8, ["message"])
753
614
  ])) : createCommentVNode("", true),
754
615
  unref(isIncubationRepo)(_ctx.info.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_4, [
755
- createVNode(_sfc_main$b, {
616
+ createVNode(_sfc_main$9, {
756
617
  origin: "repo",
757
618
  icon: "",
758
619
  type: "incubation",
@@ -761,7 +622,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
761
622
  default: withCtx(() => _cache[1] || (_cache[1] = [
762
623
  createTextVNode(" G-Star ")
763
624
  ])),
764
- _: 1
625
+ _: 1,
626
+ __: [1]
765
627
  }, 8, ["message"])
766
628
  ])) : createCommentVNode("", true),
767
629
  createVNode(NewTag, {
@@ -776,10 +638,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
776
638
  default: withCtx(() => [
777
639
  !_ctx.hideStarBtn ? (openBlock(), createBlock(StarTag, {
778
640
  key: 0,
779
- isLike: isModel.value,
780
641
  "star-info": starInfo.value,
781
642
  onReport: handleStarReport
782
- }, null, 8, ["isLike", "star-info"])) : createCommentVNode("", true)
643
+ }, null, 8, ["star-info"])) : createCommentVNode("", true)
783
644
  ]),
784
645
  _: 1
785
646
  })
@@ -829,10 +690,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
829
690
  ]),
830
691
  _: 1
831
692
  })) : createCommentVNode("", true)
832
- ])) : isModel.value ? (openBlock(), createBlock(_sfc_main$1, {
833
- key: 2,
834
- repoInfo: _ctx.info
835
- }, null, 8, ["repoInfo"])) : (openBlock(), createElementBlock(Fragment, { key: 3 }, [
693
+ ])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
836
694
  !_ctx.hideFooter ? (openBlock(), createBlock(RepoCardFooter, {
837
695
  key: 0,
838
696
  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-DoHtDmEG.js";
3
+ import { q as useLayoutConfig, _ as _export_sfc } from "./index-CSPjFL7e.js";
4
4
  import "vue-devui-lal/overlay/style.css";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "index",
@@ -49,7 +49,8 @@ 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
52
+ _: 1,
53
+ __: [0]
53
54
  });
54
55
  };
55
56
  }