From 5abc4af3f5995b44dfcbbc58a16634283c471f24 Mon Sep 17 00:00:00 2001 From: ccbikai Date: Wed, 25 Dec 2024 12:13:50 +0800 Subject: [PATCH] fix: updates image resources and fixes metrics - Changes fallback image path from sink.png to icon.png - Adds lazy loading attribute to improve performance - Fixes v-slot syntax in metrics list component - Updates "No more" text to "No more links" for clarity --- components/dashboard/links/Index.vue | 2 +- components/dashboard/links/Link.vue | 6 ++++-- components/dashboard/metrics/List.vue | 2 +- components/dashboard/metrics/name/Referer.vue | 4 +++- public/icon.png | Bin 0 -> 1403 bytes 5 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 public/icon.png diff --git a/components/dashboard/links/Index.vue b/components/dashboard/links/Index.vue index f2497fe..b0a56eb 100644 --- a/components/dashboard/links/Index.vue +++ b/components/dashboard/links/Index.vue @@ -80,7 +80,7 @@ function updateLinkList(link, type) { v-if="!isLoading && listComplete" class="flex items-center justify-center text-sm" > - No more + No more links
`${origin}/${props.link.slug}`) -const linkIcon = computed(() => `https://unavatar.io/${getLinkHost(props.link.url)}?fallback=https://sink.cool/sink.png`) +const linkIcon = computed(() => `https://unavatar.io/${getLinkHost(props.link.url)}?fallback=https://sink.cool/icon.png`) const { copy, copied } = useClipboard({ source: shortLink.value, copiedDuring: 400 }) @@ -44,11 +44,13 @@ function updateLink(link, type) { Sink diff --git a/components/dashboard/metrics/List.vue b/components/dashboard/metrics/List.vue index 144cb27..053ca31 100644 --- a/components/dashboard/metrics/List.vue +++ b/components/dashboard/metrics/List.vue @@ -30,7 +30,7 @@ defineProps({
diff --git a/components/dashboard/metrics/name/Referer.vue b/components/dashboard/metrics/name/Referer.vue index 9ca5474..4d0d0ef 100644 --- a/components/dashboard/metrics/name/Referer.vue +++ b/components/dashboard/metrics/name/Referer.vue @@ -17,11 +17,13 @@ defineProps({ Sink diff --git a/public/icon.png b/public/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..c8b1245b3b2b69e849b537bbfbbabecb2427a387 GIT binary patch literal 1403 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