From ffae9e81a70f203690b48cb51ca9da8f3ddb8376 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sat, 11 Jan 2025 19:53:09 +0800 Subject: [PATCH] migrate transaction tag store to composition API and typescript --- .../mobile/TransactionTagSelectionSheet.vue | 8 +- src/core/base.ts | 2 + src/lib/services.ts | 2 +- src/models/transaction_tag.ts | 45 +++ src/stores/index.js | 2 +- src/stores/transactionTag.js | 344 ----------------- src/stores/transactionTag.ts | 356 ++++++++++++++++++ .../TransactionTagFilterSettingsCard.vue | 2 +- src/views/desktop/tags/ListPage.vue | 13 +- src/views/desktop/transactions/ListPage.vue | 2 +- .../list/dialogs/BatchReplaceDialog.vue | 2 +- .../transactions/list/dialogs/EditDialog.vue | 2 +- .../list/dialogs/ImportDialog.vue | 2 +- .../TransactionTagFilterSettingsPage.vue | 2 +- src/views/mobile/tags/ListPage.vue | 14 +- src/views/mobile/transactions/EditPage.vue | 2 +- src/views/mobile/transactions/ListPage.vue | 2 +- 17 files changed, 427 insertions(+), 375 deletions(-) delete mode 100644 src/stores/transactionTag.js create mode 100644 src/stores/transactionTag.ts diff --git a/src/components/mobile/TransactionTagSelectionSheet.vue b/src/components/mobile/TransactionTagSelectionSheet.vue index c6cfafd3..68e419e1 100644 --- a/src/components/mobile/TransactionTagSelectionSheet.vue +++ b/src/components/mobile/TransactionTagSelectionSheet.vue @@ -77,7 +77,9 @@