From 9673e40640e4473d9b434b974debd65ac5b1619f Mon Sep 17 00:00:00 2001 From: les Date: Thu, 15 Jul 2021 16:18:56 +0200 Subject: [PATCH] refactoring media in event (multiple in db, focalpoint, alt text) --- components/Event.vue | 18 ++- pages/add/MediaInput.vue | 97 ++++++++++++ pages/add/_edit.vue | 43 ++---- pages/embed/_event_id.vue | 4 +- pages/event/_id.vue | 25 ++-- pages/export.vue | 2 +- plugins/filters.js | 12 ++ server/api/controller/event.js | 140 +++++++++++------- server/api/models/event.js | 1 + server/emails/event/html.pug | 4 +- server/helpers.js | 2 +- .../20210705183419-add_event_media.js | 25 ++++ views/feed/rss.pug | 4 +- 13 files changed, 271 insertions(+), 106 deletions(-) create mode 100644 pages/add/MediaInput.vue create mode 100644 server/migrations/20210705183419-add_event_media.js diff --git a/components/Event.vue b/components/Event.vue index 4d98bd94..4d6cd756 100644 --- a/components/Event.vue +++ b/components/Event.vue @@ -1,7 +1,7 @@