From d6b0f26bd1dc2cf1069b89c78501b4f6290938b8 Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Thu, 21 Jul 2022 18:45:58 +0200 Subject: [PATCH] feat: improve store typing --- src/App.vue | 2 +- src/components/date/datepickerWithRange.vue | 2 +- src/components/home/MenuButton.vue | 2 +- src/components/home/TheNavigation.vue | 2 +- src/components/home/contentAuth.vue | 2 +- src/components/home/contentLinkShare.vue | 2 +- src/components/home/navigation.vue | 2 +- .../list/list-settings-dropdown.vue | 2 +- src/components/list/partials/list-card.vue | 2 +- .../misc/keyboard-shortcuts/index.vue | 2 +- src/components/misc/legal.vue | 2 +- src/components/misc/no-auth-wrapper.vue | 2 +- src/components/misc/ready.vue | 2 +- .../notifications/notifications.vue | 2 +- src/components/sharing/linkSharing.vue | 2 +- src/components/sharing/userTeam.vue | 2 +- src/components/tasks/add-task.vue | 2 +- src/components/tasks/partials/comments.vue | 2 +- src/components/tasks/partials/defer-task.vue | 2 +- src/components/tasks/partials/description.vue | 2 +- .../tasks/partials/editAssignees.vue | 2 +- src/components/tasks/partials/editLabels.vue | 2 +- src/components/tasks/partials/heading.vue | 2 +- src/components/tasks/partials/listSearch.vue | 2 +- src/composables/useNamespaceSearch.ts | 2 +- src/main.ts | 4 +- src/store/index.ts | 14 ++++- src/store/modules/attachments.ts | 17 +++--- src/store/modules/auth.ts | 50 +++++++++--------- src/store/modules/config.ts | 16 +++--- src/store/modules/kanban.ts | 52 ++++++++++--------- src/store/modules/labels.ts | 30 ++++++----- src/store/modules/lists.ts | 31 ++++++----- src/store/modules/namespaces.ts | 40 +++++++------- src/store/modules/tasks.ts | 32 ++++++------ src/store/types.ts | 22 ++++---- src/types/shims-vue.d.ts | 27 ++++++++-- src/views/Home.vue | 2 +- src/views/list/ListGantt.vue | 2 +- src/views/list/ListWrapper.vue | 2 +- src/views/list/NewList.vue | 2 +- src/views/list/settings/archive.vue | 2 +- src/views/list/settings/delete.vue | 2 +- src/views/list/settings/duplicate.vue | 2 +- src/views/list/settings/share.vue | 2 +- src/views/migrator/Migrate.vue | 2 +- src/views/namespaces/settings/edit.vue | 2 +- src/views/namespaces/settings/share.vue | 2 +- src/views/sharing/LinkSharingAuth.vue | 2 +- src/views/tasks/ShowTasks.vue | 2 +- src/views/teams/EditTeam.vue | 2 +- src/views/user/OpenIdAuth.vue | 2 +- src/views/user/settings/Avatar.vue | 2 +- src/views/user/settings/Caldav.vue | 2 +- src/views/user/settings/DataExport.vue | 2 +- src/views/user/settings/Deletion.vue | 2 +- src/views/user/settings/EmailUpdate.vue | 2 +- src/views/user/settings/General.vue | 2 +- src/views/user/settings/PasswordUpdate.vue | 2 +- src/views/user/settings/TOTP.vue | 2 +- 60 files changed, 239 insertions(+), 192 deletions(-) diff --git a/src/App.vue b/src/App.vue index d4ac424d6..c63cf7bf4 100644 --- a/src/App.vue +++ b/src/App.vue @@ -18,7 +18,7 @@ import {computed, watch, type Ref} from 'vue' import {useRouter} from 'vue-router' import {useRouteQuery} from '@vueuse/router' -import {useStore} from 'vuex' +import {useStore} from '@/store' import {useI18n} from 'vue-i18n' import isTouchDevice from 'is-touch-device' import {success} from '@/message' diff --git a/src/components/date/datepickerWithRange.vue b/src/components/date/datepickerWithRange.vue index 00302eac1..848877c45 100644 --- a/src/components/date/datepickerWithRange.vue +++ b/src/components/date/datepickerWithRange.vue @@ -71,7 +71,7 @@