From 724275e65331cb763156aa38dc0dd253a54cb03b Mon Sep 17 00:00:00 2001 From: konrad Date: Wed, 1 Apr 2020 20:13:57 +0000 Subject: [PATCH] Table View for tasks (#76) Save sort order to local storage Save selected columns to localStorage Loading spinner More sorting Add sorting Styling and hiding of column filter Add checkbox to show/hide columns Use fancycheckbox everywhere Fix is done badge Change sort order in table view Add is done column to table Better text handling Refactor is done into seperate component Add pagination to table view Add assignees to table view Fix redirecting to table view Add date tooltip to date field Add date tooltip to date field labels for table view Styling Add basic table view Extend priority label Split list view in mixins Co-authored-by: kolaente Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/76 --- src/App.vue | 23 +- src/components/global/fancycheckbox.vue | 58 +++++ src/components/global/user.vue | 12 +- src/components/labels/ListLabels.vue | 1 - src/components/lists/EditList.vue | 9 +- src/components/lists/ShowList.vue | 14 +- src/components/namespaces/EditNamespace.vue | 17 +- src/components/tasks/Gantt.vue | 17 +- src/components/tasks/ShowListTasks.vue | 117 +-------- src/components/tasks/TableView.vue | 234 ++++++++++++++++++ src/components/tasks/helpers/taskList.js | 128 ++++++++++ .../tasks/reusable/date-table-cell.vue | 17 ++ src/components/tasks/reusable/labels.vue | 25 ++ .../tasks/reusable/priorityLabel.vue | 13 +- .../tasks/reusable/singleTaskInList.vue | 49 ++-- src/components/tasks/reusable/sort.vue | 24 ++ src/main.js | 6 + src/styles/components/_all.scss | 1 + src/styles/components/base/fancycheckbox.scss | 1 + src/styles/components/table-view.scss | 32 +++ src/styles/components/task.scss | 22 +- 21 files changed, 623 insertions(+), 197 deletions(-) create mode 100644 src/components/global/fancycheckbox.vue create mode 100644 src/components/tasks/TableView.vue create mode 100644 src/components/tasks/helpers/taskList.js create mode 100644 src/components/tasks/reusable/date-table-cell.vue create mode 100644 src/components/tasks/reusable/labels.vue create mode 100644 src/components/tasks/reusable/sort.vue create mode 100644 src/styles/components/table-view.scss diff --git a/src/App.vue b/src/App.vue index 1588ec930..d77ce00bb 100644 --- a/src/App.vue +++ b/src/App.vue @@ -104,18 +104,9 @@