From 9976cd96690d13bf5859957c02b8e15c1beac4b0 Mon Sep 17 00:00:00 2001 From: mchev Date: Wed, 24 Apr 2024 14:41:57 +0200 Subject: [PATCH] Transition to composition API --- package.json | 1 - resources/js/Pages/Auth/Login.vue | 54 +++----- resources/js/Pages/Contacts/Create.vue | 102 +++++++-------- resources/js/Pages/Contacts/Edit.vue | 133 +++++++++----------- resources/js/Pages/Contacts/Index.vue | 94 ++++++-------- resources/js/Pages/Dashboard/Index.vue | 22 ++-- resources/js/Pages/Organizations/Create.vue | 87 ++++++------- resources/js/Pages/Organizations/Edit.vue | 128 +++++++++---------- resources/js/Pages/Organizations/Index.vue | 94 ++++++-------- resources/js/Pages/Reports/Index.vue | 20 +-- resources/js/Pages/Users/Create.vue | 82 +++++------- resources/js/Pages/Users/Edit.vue | 122 ++++++++---------- resources/js/Pages/Users/Index.vue | 90 ++++++------- resources/js/Shared/Dropdown.vue | 130 ++++++++++--------- resources/js/Shared/FileInput.vue | 80 ++++++------ resources/js/Shared/FlashMessages.vue | 41 +++--- resources/js/Shared/Icon.vue | 15 +-- resources/js/Shared/Layout.vue | 53 +++----- resources/js/Shared/LoadingButton.vue | 13 +- resources/js/Shared/MainMenu.vue | 46 +++---- resources/js/Shared/Pagination.vue | 22 ++-- resources/js/Shared/SearchFilter.vue | 39 +++--- resources/js/Shared/SelectInput.vue | 68 +++++----- resources/js/Shared/TextInput.vue | 62 ++++----- resources/js/Shared/TextareaInput.vue | 51 ++++---- resources/js/Shared/TrashedMessage.vue | 20 ++- 26 files changed, 719 insertions(+), 950 deletions(-) diff --git a/package.json b/package.json index 69da4712e..1a06e0c14 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,6 @@ }, "devDependencies": { "@inertiajs/vue3": "^1.0.15", - "@popperjs/core": "^2.11.0", "@vitejs/plugin-vue": "^5.0.4", "@vue/server-renderer": "^3.2.27", "autoprefixer": "^10.4.19", diff --git a/resources/js/Pages/Auth/Login.vue b/resources/js/Pages/Auth/Login.vue index a959f1681..e96e9a2b9 100644 --- a/resources/js/Pages/Auth/Login.vue +++ b/resources/js/Pages/Auth/Login.vue @@ -1,3 +1,19 @@ + - - + \ No newline at end of file diff --git a/resources/js/Pages/Contacts/Create.vue b/resources/js/Pages/Contacts/Create.vue index 62f4cfa84..1d6e45c18 100644 --- a/resources/js/Pages/Contacts/Create.vue +++ b/resources/js/Pages/Contacts/Create.vue @@ -1,5 +1,33 @@ + - - diff --git a/resources/js/Pages/Contacts/Edit.vue b/resources/js/Pages/Contacts/Edit.vue index fb1019d2f..4282832d3 100644 --- a/resources/js/Pages/Contacts/Edit.vue +++ b/resources/js/Pages/Contacts/Edit.vue @@ -1,95 +1,80 @@ + - - + + \ No newline at end of file diff --git a/resources/js/Pages/Contacts/Index.vue b/resources/js/Pages/Contacts/Index.vue index 27b666ce9..05ff67f99 100644 --- a/resources/js/Pages/Contacts/Index.vue +++ b/resources/js/Pages/Contacts/Index.vue @@ -1,16 +1,47 @@ + - - + + + \ No newline at end of file diff --git a/resources/js/Pages/Dashboard/Index.vue b/resources/js/Pages/Dashboard/Index.vue index 2d6feb5da..0d1dbc33f 100644 --- a/resources/js/Pages/Dashboard/Index.vue +++ b/resources/js/Pages/Dashboard/Index.vue @@ -1,19 +1,11 @@ + - - + + \ No newline at end of file diff --git a/resources/js/Pages/Organizations/Create.vue b/resources/js/Pages/Organizations/Create.vue index c7c46953a..7ac62258c 100644 --- a/resources/js/Pages/Organizations/Create.vue +++ b/resources/js/Pages/Organizations/Create.vue @@ -1,5 +1,27 @@ + - - + + \ No newline at end of file diff --git a/resources/js/Pages/Organizations/Edit.vue b/resources/js/Pages/Organizations/Edit.vue index f6abdf46b..b0de988d4 100644 --- a/resources/js/Pages/Organizations/Edit.vue +++ b/resources/js/Pages/Organizations/Edit.vue @@ -1,31 +1,71 @@ + - - + + \ No newline at end of file diff --git a/resources/js/Pages/Organizations/Index.vue b/resources/js/Pages/Organizations/Index.vue index 9fc263fa4..81c9aa6b0 100644 --- a/resources/js/Pages/Organizations/Index.vue +++ b/resources/js/Pages/Organizations/Index.vue @@ -1,16 +1,47 @@ + - - + + + \ No newline at end of file diff --git a/resources/js/Pages/Reports/Index.vue b/resources/js/Pages/Reports/Index.vue index e464089cb..4086d9c7d 100644 --- a/resources/js/Pages/Reports/Index.vue +++ b/resources/js/Pages/Reports/Index.vue @@ -1,18 +1,10 @@ + - - diff --git a/resources/js/Pages/Users/Create.vue b/resources/js/Pages/Users/Create.vue index e7361dc1f..13be824d1 100644 --- a/resources/js/Pages/Users/Create.vue +++ b/resources/js/Pages/Users/Create.vue @@ -1,5 +1,26 @@ + - - + + \ No newline at end of file diff --git a/resources/js/Pages/Users/Edit.vue b/resources/js/Pages/Users/Edit.vue index d7fd57232..07b16e81f 100644 --- a/resources/js/Pages/Users/Edit.vue +++ b/resources/js/Pages/Users/Edit.vue @@ -1,5 +1,46 @@ + - - + + \ No newline at end of file diff --git a/resources/js/Pages/Users/Index.vue b/resources/js/Pages/Users/Index.vue index d2390033a..ab296c71a 100644 --- a/resources/js/Pages/Users/Index.vue +++ b/resources/js/Pages/Users/Index.vue @@ -1,9 +1,39 @@ + - - + + \ No newline at end of file diff --git a/resources/js/Shared/Dropdown.vue b/resources/js/Shared/Dropdown.vue index 9e2d7ea2b..7389c2389 100644 --- a/resources/js/Shared/Dropdown.vue +++ b/resources/js/Shared/Dropdown.vue @@ -1,63 +1,77 @@ - - - + + \ No newline at end of file diff --git a/resources/js/Shared/FileInput.vue b/resources/js/Shared/FileInput.vue index 3c843f980..5431be1ab 100644 --- a/resources/js/Shared/FileInput.vue +++ b/resources/js/Shared/FileInput.vue @@ -1,3 +1,44 @@ + - - + \ No newline at end of file diff --git a/resources/js/Shared/FlashMessages.vue b/resources/js/Shared/FlashMessages.vue index f6614ac89..e758d2afb 100644 --- a/resources/js/Shared/FlashMessages.vue +++ b/resources/js/Shared/FlashMessages.vue @@ -1,18 +1,31 @@ + - - + \ No newline at end of file diff --git a/resources/js/Shared/Icon.vue b/resources/js/Shared/Icon.vue index 35db91a36..e64d9edf1 100644 --- a/resources/js/Shared/Icon.vue +++ b/resources/js/Shared/Icon.vue @@ -1,3 +1,8 @@ + - - + \ No newline at end of file diff --git a/resources/js/Shared/Layout.vue b/resources/js/Shared/Layout.vue index 5c6217b19..fd1b998ea 100644 --- a/resources/js/Shared/Layout.vue +++ b/resources/js/Shared/Layout.vue @@ -1,3 +1,13 @@ + - - + \ No newline at end of file diff --git a/resources/js/Shared/LoadingButton.vue b/resources/js/Shared/LoadingButton.vue index 9d144beae..f9b3f85d5 100644 --- a/resources/js/Shared/LoadingButton.vue +++ b/resources/js/Shared/LoadingButton.vue @@ -1,14 +1,11 @@ + - - diff --git a/resources/js/Shared/MainMenu.vue b/resources/js/Shared/MainMenu.vue index 365694652..338f993ee 100644 --- a/resources/js/Shared/MainMenu.vue +++ b/resources/js/Shared/MainMenu.vue @@ -1,49 +1,43 @@ + - - + \ No newline at end of file diff --git a/resources/js/Shared/Pagination.vue b/resources/js/Shared/Pagination.vue index 7eb3e644b..81c72911d 100644 --- a/resources/js/Shared/Pagination.vue +++ b/resources/js/Shared/Pagination.vue @@ -1,3 +1,10 @@ + - - - + \ No newline at end of file diff --git a/resources/js/Shared/SearchFilter.vue b/resources/js/Shared/SearchFilter.vue index ed989c563..d64aa11f2 100644 --- a/resources/js/Shared/SearchFilter.vue +++ b/resources/js/Shared/SearchFilter.vue @@ -1,9 +1,22 @@ + - - + \ No newline at end of file diff --git a/resources/js/Shared/SelectInput.vue b/resources/js/Shared/SelectInput.vue index 0c331824b..2ecb7c5c0 100644 --- a/resources/js/Shared/SelectInput.vue +++ b/resources/js/Shared/SelectInput.vue @@ -1,3 +1,33 @@ + - - diff --git a/resources/js/Shared/TextInput.vue b/resources/js/Shared/TextInput.vue index f17b28470..2ca9619d1 100644 --- a/resources/js/Shared/TextInput.vue +++ b/resources/js/Shared/TextInput.vue @@ -1,42 +1,32 @@ - + + \ No newline at end of file diff --git a/resources/js/Shared/TextareaInput.vue b/resources/js/Shared/TextareaInput.vue index a5158aede..a10a330ab 100644 --- a/resources/js/Shared/TextareaInput.vue +++ b/resources/js/Shared/TextareaInput.vue @@ -1,35 +1,28 @@ +