From e31a91655de85b97905b9053b83e923566bd4f0c Mon Sep 17 00:00:00 2001 From: dartcafe Date: Sun, 21 Mar 2021 23:20:44 +0100 Subject: maintenance and tidy Signed-off-by: dartcafe --- .../components/Configuration/ConfigProposals.vue | 10 +--- .../components/Navigation/PollNavigationItems.vue | 1 + src/js/components/Options/OptionsDate.vue | 68 +++++++++------------- src/js/components/Options/OptionsDateAdd.vue | 40 ++++++------- src/js/components/Options/OptionsDateShift.vue | 30 +++++----- src/js/components/Options/OptionsText.vue | 60 ++++++++----------- src/js/components/Options/OptionsTextAdd.vue | 8 +-- src/js/components/PollList/PollItem.vue | 10 +--- src/js/components/SideBar/SideBarTabOptions.vue | 33 ++++++++--- src/js/store/modules/poll.js | 8 +++ src/js/store/modules/polls.js | 10 ++-- src/js/views/Vote.vue | 5 +- 12 files changed, 132 insertions(+), 151 deletions(-) (limited to 'src') diff --git a/src/js/components/Configuration/ConfigProposals.vue b/src/js/components/Configuration/ConfigProposals.vue index 5ec05c2b..a0ae37ca 100644 --- a/src/js/components/Configuration/ConfigProposals.vue +++ b/src/js/components/Configuration/ConfigProposals.vue @@ -22,11 +22,9 @@ @@ -37,7 +35,6 @@ import { showSuccess, showError } from '@nextcloud/dialogs' import { emit } from '@nextcloud/event-bus' import moment from '@nextcloud/moment' import { DatetimePicker } from '@nextcloud/vue' -import ConfigBox from '../Base/ConfigBox' import CheckBoxDiv from '../Base/CheckBoxDiv' import RadioGroupDiv from '../Base/RadioGroupDiv' @@ -45,7 +42,6 @@ export default { name: 'ConfigProposals', components: { - ConfigBox, CheckBoxDiv, DatetimePicker, RadioGroupDiv, diff --git a/src/js/components/Navigation/PollNavigationItems.vue b/src/js/components/Navigation/PollNavigationItems.vue index 08dd9296..451a66a4 100644 --- a/src/js/components/Navigation/PollNavigationItems.vue +++ b/src/js/components/Navigation/PollNavigationItems.vue @@ -53,6 +53,7 @@ import moment from '@nextcloud/moment' export default { name: 'PollNavigationItems', + components: { ActionButton, AppNavigationItem, diff --git a/src/js/components/Options/OptionsDate.vue b/src/js/components/Options/OptionsDate.vue index 483e3c10..f0384600 100644 --- a/src/js/components/Options/OptionsDate.vue +++ b/src/js/components/Options/OptionsDate.vue @@ -22,41 +22,32 @@