From ac630ac775bb4b222ff1b0dd01f20ece57c522e4 Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Sat, 4 Dec 2021 14:47:32 +0000 Subject: [PATCH] feat: convert simple components to script setup and use typescript (#1120) Co-authored-by: Dominik Pschenitschni Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/1120 Reviewed-by: konrad Co-authored-by: Dominik Pschenitschni Co-committed-by: Dominik Pschenitschni --- src/components/list/partials/list-card.vue | 91 +++++----- src/components/misc/Done.vue | 47 ++---- src/components/misc/card.vue | 66 ++++---- src/components/misc/dropdown-item.vue | 23 ++- src/components/misc/error.vue | 14 +- src/components/misc/legal.vue | 16 +- src/components/misc/loading.vue | 6 - src/components/misc/message.vue | 2 +- src/components/misc/no-auth-wrapper.vue | 8 +- src/components/misc/pagination.vue | 36 ++-- src/components/misc/ready.vue | 67 +++----- src/components/misc/shortcut.vue | 31 ++-- src/components/misc/subscription.vue | 158 +++++++++--------- src/components/misc/user.vue | 45 +++-- src/components/namespace/namespace-search.vue | 41 ++--- .../namespace/namespace-settings-dropdown.vue | 34 ++-- 16 files changed, 298 insertions(+), 387 deletions(-) diff --git a/src/components/list/partials/list-card.vue b/src/components/list/partials/list-card.vue index ed727a10..f2ccfb71 100644 --- a/src/components/list/partials/list-card.vue +++ b/src/components/list/partials/list-card.vue @@ -20,64 +20,59 @@ :class="{'is-favorite': list.isFavorite, 'is-archived': list.isArchived}" @click.stop="toggleFavoriteList(list)" class="favorite"> - - +
{{ list.title }}
- diff --git a/src/components/misc/Done.vue b/src/components/misc/Done.vue index 60b173f2..f9bebd7e 100644 --- a/src/components/misc/Done.vue +++ b/src/components/misc/Done.vue @@ -1,40 +1,27 @@ - diff --git a/src/components/misc/card.vue b/src/components/misc/card.vue index e5a56872..f74e4cc5 100644 --- a/src/components/misc/card.vue +++ b/src/components/misc/card.vue @@ -24,41 +24,39 @@ -