From ef25f28c19246bfcf7d0eb192c8e9f3699803693 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E5=91=A8=E9=83=A8=E8=90=BD?= Date: Wed, 6 Mar 2024 08:35:08 +0800 Subject: [PATCH] feat: instance ticker fallback and url preview image fallback --- packages/backend/assets/resource-unknown.svg | 21 +++++++++++++++++++ .../src/components/MkInstanceCardMini.vue | 6 +++++- .../src/components/MkInstanceTicker.vue | 6 +++++- .../client/src/components/MkUrlPreview.vue | 17 +++++++++++++-- .../src/ui/_common_/statusbar-federation.vue | 5 +++++ packages/client/src/widgets/federation.vue | 6 +++++- .../client/src/widgets/instance-cloud.vue | 5 +++++ 7 files changed, 61 insertions(+), 5 deletions(-) create mode 100644 packages/backend/assets/resource-unknown.svg diff --git a/packages/backend/assets/resource-unknown.svg b/packages/backend/assets/resource-unknown.svg new file mode 100644 index 0000000000..5351960066 --- /dev/null +++ b/packages/backend/assets/resource-unknown.svg @@ -0,0 +1,21 @@ + + + + + + + + + diff --git a/packages/client/src/components/MkInstanceCardMini.vue b/packages/client/src/components/MkInstanceCardMini.vue index afb64a2389..a11c33e576 100644 --- a/packages/client/src/components/MkInstanceCardMini.vue +++ b/packages/client/src/components/MkInstanceCardMini.vue @@ -10,7 +10,7 @@ }, ]" > - +
{{ instance.name ?? instance.host }}