From bf6a4b869659c42d710c766a22bf04570f7d92dc Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Tue, 28 Jun 2022 19:33:32 -0700 Subject: [PATCH] Self host error/info/not-found images --- packages/backend/assets/badges/error.jpg | 3 +++ packages/backend/assets/badges/info.jpg | 3 +++ packages/backend/assets/badges/not-found.jpg | 3 +++ packages/backend/src/server/web/views/base.pug | 6 +++--- packages/client/src/components/global/error.vue | 2 +- packages/client/src/components/notes.vue | 2 +- packages/client/src/components/notifications.vue | 2 +- packages/client/src/components/ui/pagination.vue | 2 +- packages/client/src/components/user-list.vue | 2 +- packages/client/src/pages/_error_.vue | 2 +- packages/client/src/pages/favorites.vue | 2 +- packages/client/src/pages/follow-requests.vue | 2 +- packages/client/src/pages/messaging/index.vue | 2 +- packages/client/src/pages/messaging/messaging-room.vue | 2 +- packages/client/src/pages/not-found.vue | 2 +- packages/client/src/pages/settings/apps.vue | 2 +- 16 files changed, 24 insertions(+), 15 deletions(-) create mode 100644 packages/backend/assets/badges/error.jpg create mode 100644 packages/backend/assets/badges/info.jpg create mode 100644 packages/backend/assets/badges/not-found.jpg diff --git a/packages/backend/assets/badges/error.jpg b/packages/backend/assets/badges/error.jpg new file mode 100644 index 000000000..99f2134b1 --- /dev/null +++ b/packages/backend/assets/badges/error.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f321691485c7c198cd0bf7ee647c8160da5c1588b0bdf97749858cdedd3e024d +size 40995 diff --git a/packages/backend/assets/badges/info.jpg b/packages/backend/assets/badges/info.jpg new file mode 100644 index 000000000..89ac0def4 --- /dev/null +++ b/packages/backend/assets/badges/info.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:13979f68bb60cd188e8498236f8cbce32565efbf5ba8ce15b5d6b955702bbee8 +size 41007 diff --git a/packages/backend/assets/badges/not-found.jpg b/packages/backend/assets/badges/not-found.jpg new file mode 100644 index 000000000..2dc5317a2 --- /dev/null +++ b/packages/backend/assets/badges/not-found.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c30e47f6717e35ff1d7b26dbaf67febc9e956cc723cc14e6d834f3dddb4af0e5 +size 41251 diff --git a/packages/backend/src/server/web/views/base.pug b/packages/backend/src/server/web/views/base.pug index 5bb156f0f..3ede7da6d 100644 --- a/packages/backend/src/server/web/views/base.pug +++ b/packages/backend/src/server/web/views/base.pug @@ -31,9 +31,9 @@ html link(rel='icon' href= icon || '/favicon.ico') link(rel='apple-touch-icon' href= icon || '/apple-touch-icon.png') link(rel='manifest' href='/manifest.json') - link(rel='prefetch' href='https://xn--931a.moe/assets/info.jpg') - link(rel='prefetch' href='https://xn--931a.moe/assets/not-found.jpg') - link(rel='prefetch' href='https://xn--931a.moe/assets/error.jpg') + link(rel='prefetch' href='/static-assets/badges/info.jpg') + link(rel='prefetch' href='/static-assets/badges/not-found.jpg') + link(rel='prefetch' href='/static-assets/badges/error.jpg') link(rel='stylesheet' href='/assets/fontawesome/css/all.css') link(rel='modulepreload' href=`/assets/${clientEntry.file}`) diff --git a/packages/client/src/components/global/error.vue b/packages/client/src/components/global/error.vue index 98b96fb41..2161a16ea 100644 --- a/packages/client/src/components/global/error.vue +++ b/packages/client/src/components/global/error.vue @@ -1,7 +1,7 @@