From e98682505644e56f90793cb5a802c94bcd24c8ab Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Mon, 5 May 2025 20:12:41 +0200 Subject: [PATCH] refactor: :recycle: Rewrite attachment renderers --- components/errors/AuthRequired.vue | 2 +- components/notes/attachment.vue | 85 +++----------------------- components/notes/attachments/audio.vue | 14 +++++ components/notes/attachments/base.vue | 73 ++++++++++++++++++++++ components/notes/attachments/file.vue | 18 ++++++ components/notes/attachments/image.vue | 14 +++++ components/notes/attachments/video.vue | 14 +++++ components/notes/content-warning.vue | 5 +- components/notes/content.vue | 2 +- 9 files changed, 144 insertions(+), 83 deletions(-) create mode 100644 components/notes/attachments/audio.vue create mode 100644 components/notes/attachments/base.vue create mode 100644 components/notes/attachments/file.vue create mode 100644 components/notes/attachments/image.vue create mode 100644 components/notes/attachments/video.vue diff --git a/components/errors/AuthRequired.vue b/components/errors/AuthRequired.vue index ba1266c..b3b2ec4 100644 --- a/components/errors/AuthRequired.vue +++ b/components/errors/AuthRequired.vue @@ -1,5 +1,5 @@