From 755f78ef9dec202070122875053a11be111c7ee0 Mon Sep 17 00:00:00 2001 From: MarcoE Date: Fri, 6 Feb 2026 10:04:36 +0100 Subject: [PATCH] Gestito login --- SteUp.Maui/Core/CoreModule.cs | 3 + .../Core/System/GenericSystemService.cs | 8 + .../Platforms/Android/AndroidManifest.xml | 9 +- SteUp.Maui/Platforms/Android/MainActivity.cs | 7 +- SteUp.Maui/Resources/AppIcon/appicon.svg | 2 +- SteUp.Maui/Resources/AppIcon/appiconfg.svg | 2 +- SteUp.Maui/SteUp.Maui.csproj | 4 +- SteUp.Shared/Components/Layout/NavMenu.razor | 24 +- .../Components/Layout/NavMenu.razor.css | 111 +++++-- .../Layout/Spinner/SpinnerLayout.razor.css | 2 +- SteUp.Shared/Components/Pages/Index.razor | 1 - SteUp.Shared/Components/Pages/Login.razor | 113 ++++++- SteUp.Shared/Components/Pages/Login.razor.css | 55 +++- .../Interface/System/IGenericSystemService.cs | 6 + SteUp.Shared/wwwroot/css/default-theme.css | 14 +- SteUp.Shared/wwwroot/images/log-book.svg | 275 ------------------ SteUp.Shared/wwwroot/images/logoIntegry.svg | 70 +++++ SteUp.Shared/wwwroot/images/logo_steup.svg | 1 + .../wwwroot/images/man-doing-squats.svg | 221 -------------- 19 files changed, 373 insertions(+), 555 deletions(-) create mode 100644 SteUp.Maui/Core/System/GenericSystemService.cs create mode 100644 SteUp.Shared/Core/Interface/System/IGenericSystemService.cs delete mode 100644 SteUp.Shared/wwwroot/images/log-book.svg create mode 100644 SteUp.Shared/wwwroot/images/logoIntegry.svg create mode 100644 SteUp.Shared/wwwroot/images/logo_steup.svg delete mode 100644 SteUp.Shared/wwwroot/images/man-doing-squats.svg diff --git a/SteUp.Maui/Core/CoreModule.cs b/SteUp.Maui/Core/CoreModule.cs index 6b69bdb..0aa1b71 100644 --- a/SteUp.Maui/Core/CoreModule.cs +++ b/SteUp.Maui/Core/CoreModule.cs @@ -1,8 +1,10 @@ using Microsoft.AspNetCore.Components.Authorization; using SteUp.Maui.Core.Services; +using SteUp.Maui.Core.System; using SteUp.Maui.Core.System.Network; using SteUp.Shared.Core.Interface; using SteUp.Shared.Core.Interface.IntegryApi; +using SteUp.Shared.Core.Interface.System; using SteUp.Shared.Core.Interface.System.Network; using SteUp.Shared.Core.Services; @@ -13,6 +15,7 @@ public static class CoreModule public static void RegisterAppServices(this MauiAppBuilder builder) { builder.Services.AddSingleton(); + builder.Services.AddSingleton(); } public static void RegisterIntegryServices(this MauiAppBuilder builder) diff --git a/SteUp.Maui/Core/System/GenericSystemService.cs b/SteUp.Maui/Core/System/GenericSystemService.cs new file mode 100644 index 0000000..700b873 --- /dev/null +++ b/SteUp.Maui/Core/System/GenericSystemService.cs @@ -0,0 +1,8 @@ +using SteUp.Shared.Core.Interface.System; + +namespace SteUp.Maui.Core.System; + +public class GenericSystemService : IGenericSystemService +{ + public string GetCurrentAppVersion() => AppInfo.VersionString; +} \ No newline at end of file diff --git a/SteUp.Maui/Platforms/Android/AndroidManifest.xml b/SteUp.Maui/Platforms/Android/AndroidManifest.xml index def1282..191be83 100644 --- a/SteUp.Maui/Platforms/Android/AndroidManifest.xml +++ b/SteUp.Maui/Platforms/Android/AndroidManifest.xml @@ -1,6 +1,13 @@  - + + + + diff --git a/SteUp.Maui/Platforms/Android/MainActivity.cs b/SteUp.Maui/Platforms/Android/MainActivity.cs index f83e978..9e73182 100644 --- a/SteUp.Maui/Platforms/Android/MainActivity.cs +++ b/SteUp.Maui/Platforms/Android/MainActivity.cs @@ -1,10 +1,13 @@ using Android.App; using Android.Content.PM; -using Android.OS; namespace SteUp.Maui { - [Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)] + [Activity( + Theme = "@style/Maui.SplashTheme", + MainLauncher = true, + ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | + ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)] public class MainActivity : MauiAppCompatActivity { } diff --git a/SteUp.Maui/Resources/AppIcon/appicon.svg b/SteUp.Maui/Resources/AppIcon/appicon.svg index 4f6f00f..f6af1ab 100644 --- a/SteUp.Maui/Resources/AppIcon/appicon.svg +++ b/SteUp.Maui/Resources/AppIcon/appicon.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/SteUp.Maui/Resources/AppIcon/appiconfg.svg b/SteUp.Maui/Resources/AppIcon/appiconfg.svg index e185188..710c9d7 100644 --- a/SteUp.Maui/Resources/AppIcon/appiconfg.svg +++ b/SteUp.Maui/Resources/AppIcon/appiconfg.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/SteUp.Maui/SteUp.Maui.csproj b/SteUp.Maui/SteUp.Maui.csproj index ee60661..6068b48 100644 --- a/SteUp.Maui/SteUp.Maui.csproj +++ b/SteUp.Maui/SteUp.Maui.csproj @@ -95,10 +95,10 @@ - + - + diff --git a/SteUp.Shared/Components/Layout/NavMenu.razor b/SteUp.Shared/Components/Layout/NavMenu.razor index 5ecebcf..174c966 100644 --- a/SteUp.Shared/Components/Layout/NavMenu.razor +++ b/SteUp.Shared/Components/Layout/NavMenu.razor @@ -11,7 +11,7 @@