From 0d35f50dbf7fc219fabd7faf1072ff9416d1a6f7 Mon Sep 17 00:00:00 2001 From: Dan Elbert Date: Tue, 1 Oct 2024 09:32:09 -0500 Subject: [PATCH] Continue converting to composition api --- app/javascript/components/AppIconicIcon.vue | 22 +- app/javascript/components/AppPager.vue | 149 +++---- app/javascript/components/AppRating.vue | 156 ++++--- app/javascript/components/AppSearchText.vue | 82 ++-- app/javascript/components/AppTagEditor.vue | 117 +++-- app/javascript/components/AppTextField.vue | 134 +++--- .../components/AppValidationErrors.vue | 16 +- app/javascript/components/FoodEdit.vue | 154 +++---- app/javascript/components/FoodShow.vue | 25 +- app/javascript/components/LogEdit.vue | 28 +- app/javascript/components/LogShow.vue | 18 +- app/javascript/components/NoteEdit.vue | 46 +- app/javascript/components/RecipeEdit.vue | 86 ++-- app/javascript/components/TheRecipeList.vue | 404 +++++++++--------- config/application.rb | 4 +- lib/unit_conversion.rb | 16 +- spec/models/food_spec.rb | 3 + 17 files changed, 657 insertions(+), 803 deletions(-) diff --git a/app/javascript/components/AppIconicIcon.vue b/app/javascript/components/AppIconicIcon.vue index e1c1f3a..51ba99e 100644 --- a/app/javascript/components/AppIconicIcon.vue +++ b/app/javascript/components/AppIconicIcon.vue @@ -4,7 +4,7 @@ - - \ No newline at end of file diff --git a/app/javascript/components/AppRating.vue b/app/javascript/components/AppRating.vue index cffbf59..2c7c145 100644 --- a/app/javascript/components/AppRating.vue +++ b/app/javascript/components/AppRating.vue @@ -9,97 +9,85 @@ - diff --git a/app/javascript/components/AppSearchText.vue b/app/javascript/components/AppSearchText.vue index c10a3d8..c7d08dd 100644 --- a/app/javascript/components/AppSearchText.vue +++ b/app/javascript/components/AppSearchText.vue @@ -6,61 +6,45 @@ - \ No newline at end of file diff --git a/app/javascript/components/AppTextField.vue b/app/javascript/components/AppTextField.vue index 34eae12..5fd412d 100644 --- a/app/javascript/components/AppTextField.vue +++ b/app/javascript/components/AppTextField.vue @@ -2,8 +2,8 @@
- - + +

@@ -12,81 +12,67 @@

- diff --git a/app/javascript/components/AppValidationErrors.vue b/app/javascript/components/AppValidationErrors.vue index 661bbfb..c532350 100644 --- a/app/javascript/components/AppValidationErrors.vue +++ b/app/javascript/components/AppValidationErrors.vue @@ -6,16 +6,14 @@ - \ No newline at end of file diff --git a/app/javascript/components/FoodEdit.vue b/app/javascript/components/FoodEdit.vue index 515758e..a9d04d1 100644 --- a/app/javascript/components/FoodEdit.vue +++ b/app/javascript/components/FoodEdit.vue @@ -144,100 +144,82 @@ - diff --git a/app/javascript/components/FoodShow.vue b/app/javascript/components/FoodShow.vue index bee4de7..27139dc 100644 --- a/app/javascript/components/FoodShow.vue +++ b/app/javascript/components/FoodShow.vue @@ -53,25 +53,20 @@ - diff --git a/app/javascript/components/LogEdit.vue b/app/javascript/components/LogEdit.vue index 4536b10..b112876 100644 --- a/app/javascript/components/LogEdit.vue +++ b/app/javascript/components/LogEdit.vue @@ -31,27 +31,21 @@ - diff --git a/app/javascript/components/LogShow.vue b/app/javascript/components/LogShow.vue index a52660f..716779b 100644 --- a/app/javascript/components/LogShow.vue +++ b/app/javascript/components/LogShow.vue @@ -44,22 +44,16 @@ - diff --git a/app/javascript/components/NoteEdit.vue b/app/javascript/components/NoteEdit.vue index 722ed70..310e1cd 100644 --- a/app/javascript/components/NoteEdit.vue +++ b/app/javascript/components/NoteEdit.vue @@ -19,37 +19,27 @@ - diff --git a/app/javascript/components/RecipeEdit.vue b/app/javascript/components/RecipeEdit.vue index afd1d35..291c923 100644 --- a/app/javascript/components/RecipeEdit.vue +++ b/app/javascript/components/RecipeEdit.vue @@ -206,67 +206,47 @@ _underline_ - diff --git a/app/javascript/components/TheRecipeList.vue b/app/javascript/components/TheRecipeList.vue index e0999c5..66b1db3 100644 --- a/app/javascript/components/TheRecipeList.vue +++ b/app/javascript/components/TheRecipeList.vue @@ -2,7 +2,7 @@

Recipes

- Create Recipe + Create Recipe @@ -25,10 +25,10 @@ - + - + @@ -49,10 +49,12 @@ {{ formatRecipeTime(r.total_time, r.active_time) }} - - + + -