From d5980d6ff274ccdc5bb715d24bcd561481d599b9 Mon Sep 17 00:00:00 2001 From: "ityurner02@mail.ru" Date: Wed, 13 Dec 2023 18:53:28 +0400 Subject: [PATCH] 4 lab --- .idea/inspectionProfiles/Project_Default.xml | 1 + app/build.gradle.kts | 5 + app/src/main/AndroidManifest.xml | 1 + app/src/main/assets/dogsheart.jpg | Bin 0 -> 17637 bytes app/src/main/assets/eggs.jpg | Bin 0 -> 17656 bytes app/src/main/assets/img.jpg | Bin 0 -> 21042 bytes app/src/main/assets/or1984.jpg | Bin 0 -> 15842 bytes app/src/main/assets/veld.jpg | Bin 0 -> 9266 bytes .../com/example/myapplication/MainActivity.kt | 7 + .../example/myapplication/MyApplication.kt | 14 ++ .../example/myapplication/SingletonClass.kt | 14 ++ .../composeui/AppViewModelProvider.kt | 76 ++++++ .../myapplication/composeui/AuthorCell.kt | 97 ++++++++ .../myapplication/composeui/AuthorEdit.kt | 90 +++++++ .../myapplication/composeui/BookCell.kt | 112 +++++++++ .../myapplication/composeui/BookEdit.kt | 173 +++++++++++++ .../myapplication/composeui/BookRead.kt | 15 +- .../myapplication/composeui/BookSearch.kt | 53 ++-- .../myapplication/composeui/BookView.kt | 106 ++++---- .../myapplication/composeui/Catalog.kt | 93 +++---- .../example/myapplication/composeui/Enter.kt | 41 ++-- .../myapplication/composeui/ListAuthors.kt | 73 +++--- .../example/myapplication/composeui/Loader.kt | 67 ------ .../example/myapplication/composeui/Main.kt | 5 +- .../myapplication/composeui/Profile.kt | 227 +++--------------- .../myapplication/composeui/ProfileEdit.kt | 115 +++++++++ .../myapplication/composeui/Registration.kt | 33 ++- .../example/myapplication/composeui/Search.kt | 10 +- .../ViewModel/AuthorDropDownViewModel.kt | 46 ++++ .../ViewModel/AuthorEditViewModel.kt | 71 ++++++ .../ViewModel/AuthorListViewModel.kt | 32 +++ .../composeui/ViewModel/BookEditViewModel.kt | 91 +++++++ .../composeui/ViewModel/BookListViewModel.kt | 33 +++ .../composeui/ViewModel/BookPageViewModel.kt | 33 +++ .../composeui/ViewModel/ImageUploader.kt | 126 ++++++++++ .../ViewModel/SearchPageViewModel.kt | 31 +++ .../composeui/ViewModel/UserEditViewModel.kt | 84 +++++++ .../composeui/ViewModel/UserPageViewModel.kt | 31 +++ .../composeui/navigation/MainNavbar.kt | 78 +++--- .../composeui/navigation/Screen.kt | 12 +- .../example/myapplication/db/dao/AuthorDao.kt | 12 +- .../example/myapplication/db/dao/BookDao.kt | 12 +- .../example/myapplication/db/dao/UserDao.kt | 10 +- .../myapplication/db/database/AppContainer.kt | 38 +++ .../myapplication/db/database/AppDatabase.kt | 23 +- .../myapplication/db/database/Converters.kt | 20 ++ .../example/myapplication/db/model/Author.kt | 6 +- .../example/myapplication/db/model/Book.kt | 22 +- .../example/myapplication/db/model/User.kt | 9 +- .../db/respository/AuthorRepository.kt | 15 ++ .../db/respository/BookRepository.kt | 19 ++ .../db/respository/OfflineAuthorRepository.kt | 29 +++ .../db/respository/OfflineBookRepository.kt | 35 +++ .../db/respository/OfflineUserRepository.kt | 22 ++ .../db/respository/UserRepository.kt | 14 ++ .../example/myapplication/ui/theme/Theme.kt | 6 +- app/src/main/res/drawable/ic_camera.jpg | Bin 0 -> 30715 bytes app/src/main/res/drawable/img.jpg | Bin 0 -> 21042 bytes app/src/main/res/drawable/user.png | Bin 0 -> 16826 bytes 59 files changed, 1834 insertions(+), 554 deletions(-) create mode 100644 app/src/main/assets/dogsheart.jpg create mode 100644 app/src/main/assets/eggs.jpg create mode 100644 app/src/main/assets/img.jpg create mode 100644 app/src/main/assets/or1984.jpg create mode 100644 app/src/main/assets/veld.jpg create mode 100644 app/src/main/java/com/example/myapplication/MyApplication.kt create mode 100644 app/src/main/java/com/example/myapplication/SingletonClass.kt create mode 100644 app/src/main/java/com/example/myapplication/composeui/AppViewModelProvider.kt create mode 100644 app/src/main/java/com/example/myapplication/composeui/AuthorCell.kt create mode 100644 app/src/main/java/com/example/myapplication/composeui/AuthorEdit.kt create mode 100644 app/src/main/java/com/example/myapplication/composeui/BookCell.kt create mode 100644 app/src/main/java/com/example/myapplication/composeui/BookEdit.kt delete mode 100644 app/src/main/java/com/example/myapplication/composeui/Loader.kt create mode 100644 app/src/main/java/com/example/myapplication/composeui/ProfileEdit.kt create mode 100644 app/src/main/java/com/example/myapplication/composeui/ViewModel/AuthorDropDownViewModel.kt create mode 100644 app/src/main/java/com/example/myapplication/composeui/ViewModel/AuthorEditViewModel.kt create mode 100644 app/src/main/java/com/example/myapplication/composeui/ViewModel/AuthorListViewModel.kt create mode 100644 app/src/main/java/com/example/myapplication/composeui/ViewModel/BookEditViewModel.kt create mode 100644 app/src/main/java/com/example/myapplication/composeui/ViewModel/BookListViewModel.kt create mode 100644 app/src/main/java/com/example/myapplication/composeui/ViewModel/BookPageViewModel.kt create mode 100644 app/src/main/java/com/example/myapplication/composeui/ViewModel/ImageUploader.kt create mode 100644 app/src/main/java/com/example/myapplication/composeui/ViewModel/SearchPageViewModel.kt create mode 100644 app/src/main/java/com/example/myapplication/composeui/ViewModel/UserEditViewModel.kt create mode 100644 app/src/main/java/com/example/myapplication/composeui/ViewModel/UserPageViewModel.kt create mode 100644 app/src/main/java/com/example/myapplication/db/database/AppContainer.kt create mode 100644 app/src/main/java/com/example/myapplication/db/database/Converters.kt create mode 100644 app/src/main/java/com/example/myapplication/db/respository/AuthorRepository.kt create mode 100644 app/src/main/java/com/example/myapplication/db/respository/BookRepository.kt create mode 100644 app/src/main/java/com/example/myapplication/db/respository/OfflineAuthorRepository.kt create mode 100644 app/src/main/java/com/example/myapplication/db/respository/OfflineBookRepository.kt create mode 100644 app/src/main/java/com/example/myapplication/db/respository/OfflineUserRepository.kt create mode 100644 app/src/main/java/com/example/myapplication/db/respository/UserRepository.kt create mode 100644 app/src/main/res/drawable/ic_camera.jpg create mode 100644 app/src/main/res/drawable/img.jpg create mode 100644 app/src/main/res/drawable/user.png diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index 44ca2d9..54db5ea 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -37,5 +37,6 @@