From 5d66ff129eb47b2d32bde0ad86c1862c4620891c Mon Sep 17 00:00:00 2001 From: letuaillon Date: Sun, 7 May 2023 15:31:43 +0200 Subject: [PATCH] move pages -> views and views -> components --- ShoopNCook.csproj | 36 +- {Pages => Views}/ChangePassword.xaml | 0 {Pages => Views}/ChangePassword.xaml.cs | 0 Views/{ => Components}/CounterView.xaml | 0 Views/{ => Components}/CounterView.xaml.cs | 0 Views/{ => Components}/HeadedButton.xaml | 0 Views/{ => Components}/HeadedButton.xaml.cs | 0 Views/{ => Components}/IngredientEntry.xaml | 0 .../{ => Components}/IngredientEntry.xaml.cs | 0 Views/{ => Components}/IngredientView.xaml | 0 Views/{ => Components}/IngredientView.xaml.cs | 0 Views/{ => Components}/OwnedRecipeView.xaml | 0 .../{ => Components}/OwnedRecipeView.xaml.cs | 0 Views/{ => Components}/RecipeView.xaml | 0 Views/{ => Components}/RecipeView.xaml.cs | 0 Views/{ => Components}/StepEntry.xaml | 58 +-- Views/{ => Components}/StepEntry.xaml.cs | 36 +- Views/{ => Components}/StoredRecipeView.xaml | 0 .../{ => Components}/StoredRecipeView.xaml.cs | 0 {Pages => Views}/ConfirmMail.xaml | 0 {Pages => Views}/ConfirmMail.xaml.cs | 0 {Pages => Views}/CreateRecipePage.xaml | 0 {Pages => Views}/CreateRecipePage.xaml.cs | 14 +- {Pages => Views}/FavoritesPage.xaml | 0 {Pages => Views}/FavoritesPage.xaml.cs | 0 {Pages => Views}/ForgotPassword.xaml | 340 +++++++++--------- {Pages => Views}/ForgotPassword.xaml.cs | 24 +- {Pages => Views}/HomePage.xaml | 0 {Pages => Views}/HomePage.xaml.cs | 0 {Pages => Views}/LoginPage.xaml | 0 {Pages => Views}/LoginPage.xaml.cs | 0 {Pages => Views}/MorePage.xaml | 0 {Pages => Views}/MorePage.xaml.cs | 0 {Pages => Views}/MyListPage.xaml | 0 {Pages => Views}/MyListPage.xaml.cs | 0 {Pages => Views}/MyRecipesPage.xaml | 0 {Pages => Views}/MyRecipesPage.xaml.cs | 0 {Pages => Views}/ProfilePage.xaml | 0 {Pages => Views}/ProfilePage.xaml.cs | 0 {Pages => Views}/RecipePage.xaml | 0 {Pages => Views}/RecipePage.xaml.cs | 0 {Pages => Views}/RegisterPage.xaml | 0 {Pages => Views}/RegisterPage.xaml.cs | 0 {Pages => Views}/SearchPage.xaml | 0 {Pages => Views}/SearchPage.xaml.cs | 0 {Pages => Views}/Splash.xaml | 0 {Pages => Views}/Splash.xaml.cs | 0 47 files changed, 254 insertions(+), 254 deletions(-) rename {Pages => Views}/ChangePassword.xaml (100%) rename {Pages => Views}/ChangePassword.xaml.cs (100%) rename Views/{ => Components}/CounterView.xaml (100%) rename Views/{ => Components}/CounterView.xaml.cs (100%) rename Views/{ => Components}/HeadedButton.xaml (100%) rename Views/{ => Components}/HeadedButton.xaml.cs (100%) rename Views/{ => Components}/IngredientEntry.xaml (100%) rename Views/{ => Components}/IngredientEntry.xaml.cs (100%) rename Views/{ => Components}/IngredientView.xaml (100%) rename Views/{ => Components}/IngredientView.xaml.cs (100%) rename Views/{ => Components}/OwnedRecipeView.xaml (100%) rename Views/{ => Components}/OwnedRecipeView.xaml.cs (100%) rename Views/{ => Components}/RecipeView.xaml (100%) rename Views/{ => Components}/RecipeView.xaml.cs (100%) rename Views/{ => Components}/StepEntry.xaml (97%) rename Views/{ => Components}/StepEntry.xaml.cs (94%) rename Views/{ => Components}/StoredRecipeView.xaml (100%) rename Views/{ => Components}/StoredRecipeView.xaml.cs (100%) rename {Pages => Views}/ConfirmMail.xaml (100%) rename {Pages => Views}/ConfirmMail.xaml.cs (100%) rename {Pages => Views}/CreateRecipePage.xaml (100%) rename {Pages => Views}/CreateRecipePage.xaml.cs (98%) rename {Pages => Views}/FavoritesPage.xaml (100%) rename {Pages => Views}/FavoritesPage.xaml.cs (100%) rename {Pages => Views}/ForgotPassword.xaml (97%) rename {Pages => Views}/ForgotPassword.xaml.cs (95%) rename {Pages => Views}/HomePage.xaml (100%) rename {Pages => Views}/HomePage.xaml.cs (100%) rename {Pages => Views}/LoginPage.xaml (100%) rename {Pages => Views}/LoginPage.xaml.cs (100%) rename {Pages => Views}/MorePage.xaml (100%) rename {Pages => Views}/MorePage.xaml.cs (100%) rename {Pages => Views}/MyListPage.xaml (100%) rename {Pages => Views}/MyListPage.xaml.cs (100%) rename {Pages => Views}/MyRecipesPage.xaml (100%) rename {Pages => Views}/MyRecipesPage.xaml.cs (100%) rename {Pages => Views}/ProfilePage.xaml (100%) rename {Pages => Views}/ProfilePage.xaml.cs (100%) rename {Pages => Views}/RecipePage.xaml (100%) rename {Pages => Views}/RecipePage.xaml.cs (100%) rename {Pages => Views}/RegisterPage.xaml (100%) rename {Pages => Views}/RegisterPage.xaml.cs (100%) rename {Pages => Views}/SearchPage.xaml (100%) rename {Pages => Views}/SearchPage.xaml.cs (100%) rename {Pages => Views}/Splash.xaml (100%) rename {Pages => Views}/Splash.xaml.cs (100%) diff --git a/ShoopNCook.csproj b/ShoopNCook.csproj index ef588e9..2a3de7b 100644 --- a/ShoopNCook.csproj +++ b/ShoopNCook.csproj @@ -88,64 +88,64 @@ - + MyListPage.xaml - + IngredientEntry.xaml - + MSBuild:Compile - + MSBuild:Compile - + MSBuild:Compile - + MSBuild:Compile - + MSBuild:Compile - + MSBuild:Compile - + MSBuild:Compile - + MSBuild:Compile - + MSBuild:Compile - + MSBuild:Compile - + MSBuild:Compile - + MSBuild:Compile - + MSBuild:Compile - + MSBuild:Compile MSBuild:Compile - + MSBuild:Compile - + MSBuild:Compile diff --git a/Pages/ChangePassword.xaml b/Views/ChangePassword.xaml similarity index 100% rename from Pages/ChangePassword.xaml rename to Views/ChangePassword.xaml diff --git a/Pages/ChangePassword.xaml.cs b/Views/ChangePassword.xaml.cs similarity index 100% rename from Pages/ChangePassword.xaml.cs rename to Views/ChangePassword.xaml.cs diff --git a/Views/CounterView.xaml b/Views/Components/CounterView.xaml similarity index 100% rename from Views/CounterView.xaml rename to Views/Components/CounterView.xaml diff --git a/Views/CounterView.xaml.cs b/Views/Components/CounterView.xaml.cs similarity index 100% rename from Views/CounterView.xaml.cs rename to Views/Components/CounterView.xaml.cs diff --git a/Views/HeadedButton.xaml b/Views/Components/HeadedButton.xaml similarity index 100% rename from Views/HeadedButton.xaml rename to Views/Components/HeadedButton.xaml diff --git a/Views/HeadedButton.xaml.cs b/Views/Components/HeadedButton.xaml.cs similarity index 100% rename from Views/HeadedButton.xaml.cs rename to Views/Components/HeadedButton.xaml.cs diff --git a/Views/IngredientEntry.xaml b/Views/Components/IngredientEntry.xaml similarity index 100% rename from Views/IngredientEntry.xaml rename to Views/Components/IngredientEntry.xaml diff --git a/Views/IngredientEntry.xaml.cs b/Views/Components/IngredientEntry.xaml.cs similarity index 100% rename from Views/IngredientEntry.xaml.cs rename to Views/Components/IngredientEntry.xaml.cs diff --git a/Views/IngredientView.xaml b/Views/Components/IngredientView.xaml similarity index 100% rename from Views/IngredientView.xaml rename to Views/Components/IngredientView.xaml diff --git a/Views/IngredientView.xaml.cs b/Views/Components/IngredientView.xaml.cs similarity index 100% rename from Views/IngredientView.xaml.cs rename to Views/Components/IngredientView.xaml.cs diff --git a/Views/OwnedRecipeView.xaml b/Views/Components/OwnedRecipeView.xaml similarity index 100% rename from Views/OwnedRecipeView.xaml rename to Views/Components/OwnedRecipeView.xaml diff --git a/Views/OwnedRecipeView.xaml.cs b/Views/Components/OwnedRecipeView.xaml.cs similarity index 100% rename from Views/OwnedRecipeView.xaml.cs rename to Views/Components/OwnedRecipeView.xaml.cs diff --git a/Views/RecipeView.xaml b/Views/Components/RecipeView.xaml similarity index 100% rename from Views/RecipeView.xaml rename to Views/Components/RecipeView.xaml diff --git a/Views/RecipeView.xaml.cs b/Views/Components/RecipeView.xaml.cs similarity index 100% rename from Views/RecipeView.xaml.cs rename to Views/Components/RecipeView.xaml.cs diff --git a/Views/StepEntry.xaml b/Views/Components/StepEntry.xaml similarity index 97% rename from Views/StepEntry.xaml rename to Views/Components/StepEntry.xaml index ffed80e..3bff27a 100644 --- a/Views/StepEntry.xaml +++ b/Views/Components/StepEntry.xaml @@ -1,29 +1,29 @@ - - - - - - - - - - - - + + + + + + + + + + + + diff --git a/Views/StepEntry.xaml.cs b/Views/Components/StepEntry.xaml.cs similarity index 94% rename from Views/StepEntry.xaml.cs rename to Views/Components/StepEntry.xaml.cs index 1807de5..a2a229c 100644 --- a/Views/StepEntry.xaml.cs +++ b/Views/Components/StepEntry.xaml.cs @@ -1,19 +1,19 @@ -namespace ShoopNCook.Views; - -public partial class StepEntry : ContentView -{ - - public StepEntry(): this(1) - {} - - public StepEntry(uint ordinal) - { - InitializeComponent(); - Ordinal = ordinal; - } - - public uint Ordinal { - get => uint.Parse(OrdinalLabel.Text); - set => OrdinalLabel.Text = value.ToString(); - } +namespace ShoopNCook.Views; + +public partial class StepEntry : ContentView +{ + + public StepEntry(): this(1) + {} + + public StepEntry(uint ordinal) + { + InitializeComponent(); + Ordinal = ordinal; + } + + public uint Ordinal { + get => uint.Parse(OrdinalLabel.Text); + set => OrdinalLabel.Text = value.ToString(); + } } \ No newline at end of file diff --git a/Views/StoredRecipeView.xaml b/Views/Components/StoredRecipeView.xaml similarity index 100% rename from Views/StoredRecipeView.xaml rename to Views/Components/StoredRecipeView.xaml diff --git a/Views/StoredRecipeView.xaml.cs b/Views/Components/StoredRecipeView.xaml.cs similarity index 100% rename from Views/StoredRecipeView.xaml.cs rename to Views/Components/StoredRecipeView.xaml.cs diff --git a/Pages/ConfirmMail.xaml b/Views/ConfirmMail.xaml similarity index 100% rename from Pages/ConfirmMail.xaml rename to Views/ConfirmMail.xaml diff --git a/Pages/ConfirmMail.xaml.cs b/Views/ConfirmMail.xaml.cs similarity index 100% rename from Pages/ConfirmMail.xaml.cs rename to Views/ConfirmMail.xaml.cs diff --git a/Pages/CreateRecipePage.xaml b/Views/CreateRecipePage.xaml similarity index 100% rename from Pages/CreateRecipePage.xaml rename to Views/CreateRecipePage.xaml diff --git a/Pages/CreateRecipePage.xaml.cs b/Views/CreateRecipePage.xaml.cs similarity index 98% rename from Pages/CreateRecipePage.xaml.cs rename to Views/CreateRecipePage.xaml.cs index 51c2c2d..64b0fd5 100644 --- a/Pages/CreateRecipePage.xaml.cs +++ b/Views/CreateRecipePage.xaml.cs @@ -10,16 +10,16 @@ public partial class CreateRecipePage : ContentPage } private void OnAddIngredientTapped(object sender, TappedEventArgs e) - { + { IngredientList.Children.Add(new IngredientEntry()); - } - + } + private void OnAddStepTapped(object sender, TappedEventArgs e) - { + { StepList.Children.Add(new StepEntry((uint) StepList.Children.Count() + 1)); } - private async void OnBackButtonClicked(object sender, EventArgs e) - { - await Navigation.PopAsync(); + private async void OnBackButtonClicked(object sender, EventArgs e) + { + await Navigation.PopAsync(); } } \ No newline at end of file diff --git a/Pages/FavoritesPage.xaml b/Views/FavoritesPage.xaml similarity index 100% rename from Pages/FavoritesPage.xaml rename to Views/FavoritesPage.xaml diff --git a/Pages/FavoritesPage.xaml.cs b/Views/FavoritesPage.xaml.cs similarity index 100% rename from Pages/FavoritesPage.xaml.cs rename to Views/FavoritesPage.xaml.cs diff --git a/Pages/ForgotPassword.xaml b/Views/ForgotPassword.xaml similarity index 97% rename from Pages/ForgotPassword.xaml rename to Views/ForgotPassword.xaml index 6acca64..54e050b 100644 --- a/Pages/ForgotPassword.xaml +++ b/Views/ForgotPassword.xaml @@ -1,171 +1,171 @@ - - - - - - - - - - - - - - - -