From 4b3f92ae345e335c2c87da1f743e9da82025f37a Mon Sep 17 00:00:00 2001 From: konrad Date: Sun, 31 May 2020 19:17:10 +0000 Subject: [PATCH] Custom backgrounds for lists (#144) Make backgrounds list responsive Show initial collection of backgrounds Remove test data Fix "backgroundInformation is null" when navigating Fix kanban height Remove debug log Move list title to top header Add styling for title in top header Set the current list (and background) when loading settings Only load the background if it changed Make task detail view look good again Fix bottom spacing Make list and table view look good again Make pages with background at least 100vh Fix kanban height Make extra buttons look good again Move list title and view-switcher in one row Add styling for backgrounds Set background globally Add getting list background and putting it in vuex Add setting list background Move list background setting to seperate list Add search timeout to not search on every keypress Add getting thumbnails through api Add basic search for unsplash backgrounds Co-authored-by: kolaente Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/144 --- src/App.vue | 29 +++- src/components/lists/EditList.vue | 8 +- src/components/lists/ShowList.vue | 51 ++++--- src/components/lists/settings/background.vue | 132 +++++++++++++++++++ src/components/lists/views/Gantt.vue | 2 +- src/components/tasks/TaskDetailView.vue | 2 +- src/helpers/saveListView.js | 2 - src/models/backgroundImage.js | 12 ++ src/models/list.js | 1 + src/services/backgroundUnsplash.js | 34 +++++ src/services/list.js | 18 +++ src/store/index.js | 28 +++- src/store/modules/config.js | 2 + src/styles/components/_all.scss | 1 + src/styles/components/gantt.scss | 4 + src/styles/components/kanban.scss | 4 +- src/styles/components/list-backgrounds.scss | 75 +++++++++++ src/styles/components/list.scss | 38 +++++- src/styles/components/switch-view.scss | 3 +- src/styles/components/table-view.scss | 12 +- src/styles/components/task.scss | 6 +- src/styles/components/tasks.scss | 5 - src/styles/theme/_all.scss | 1 + src/styles/theme/background.scss | 50 +++++++ src/styles/theme/navigation.scss | 54 +++++--- src/styles/theme/theme.scss | 4 + src/styles/theme/variables.scss | 5 +- 27 files changed, 513 insertions(+), 70 deletions(-) create mode 100644 src/components/lists/settings/background.vue create mode 100644 src/models/backgroundImage.js create mode 100644 src/services/backgroundUnsplash.js create mode 100644 src/styles/components/list-backgrounds.scss create mode 100644 src/styles/theme/background.scss diff --git a/src/App.vue b/src/App.vue index 0a95a400f..78c0dea45 100644 --- a/src/App.vue +++ b/src/App.vue @@ -3,13 +3,27 @@
-