From ea1dafd0d26871847729160c64e105c53ced254e Mon Sep 17 00:00:00 2001 From: yovinchen Date: Wed, 27 Nov 2024 13:00:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=8C=E5=96=84=E8=AE=B0=E8=B4=A6?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=92=8CUI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 添加成员管理功能 2. 优化记录展示界面 3. 添加月度统计功能 4. 改进记录编辑功能 --- .idea/deploymentTargetSelector.xml | 8 + .idea/gradle.xml | 1 + .idea/studiobot.xml | 6 + README.md | 59 ++ .../bookkeeping/data/BookkeepingDao.kt | 52 +- .../bookkeeping/data/BookkeepingDatabase.kt | 249 ++++----- .../yovinchen/bookkeeping/data/CategoryDao.kt | 30 + .../yovinchen/bookkeeping/data/MemberDao.kt | 26 + .../bookkeeping/model/BookkeepingRecord.kt | 17 +- .../ui/components/MonthlyStatistics.kt | 250 +++++++++ .../bookkeeping/ui/components/RecordItem.kt | 103 ++++ .../bookkeeping/ui/dialog/AddRecordDialog.kt | 156 ++++-- .../bookkeeping/ui/dialog/RecordEditDialog.kt | 128 ++++- .../bookkeeping/ui/screen/HomeScreen.kt | 514 ++++-------------- .../bookkeeping/ui/screen/SettingsScreen.kt | 29 +- .../bookkeeping/viewmodel/HomeViewModel.kt | 201 +++---- .../bookkeeping/viewmodel/MemberViewModel.kt | 38 ++ 17 files changed, 1116 insertions(+), 751 deletions(-) create mode 100644 .idea/studiobot.xml create mode 100644 README.md create mode 100644 app/src/main/java/com/yovinchen/bookkeeping/data/CategoryDao.kt create mode 100644 app/src/main/java/com/yovinchen/bookkeeping/data/MemberDao.kt create mode 100644 app/src/main/java/com/yovinchen/bookkeeping/ui/components/MonthlyStatistics.kt create mode 100644 app/src/main/java/com/yovinchen/bookkeeping/ui/components/RecordItem.kt create mode 100644 app/src/main/java/com/yovinchen/bookkeeping/viewmodel/MemberViewModel.kt diff --git a/.idea/deploymentTargetSelector.xml b/.idea/deploymentTargetSelector.xml index b268ef3..7ed1c0d 100644 --- a/.idea/deploymentTargetSelector.xml +++ b/.idea/deploymentTargetSelector.xml @@ -4,6 +4,14 @@ diff --git a/.idea/gradle.xml b/.idea/gradle.xml index ae733f1..7b3006b 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -1,5 +1,6 @@ +