| @page "/account" | @page "/account" | ||||
| @page "/fundvelo/account/{FromRoute}" | @page "/fundvelo/account/{FromRoute}" | ||||
| @using CaritasPWA.Shared.Models; | |||||
| @using CaritasPWA.Shared.Services; | |||||
| @using cwebplusApp.Shared.Models; | |||||
| @using cwebplusApp.Shared.Services; | |||||
| @inject NavigationManager NavigationManager | @inject NavigationManager NavigationManager | ||||
| @inject UserDataProvider UserDataProvider | @inject UserDataProvider UserDataProvider | ||||
| @inject IStringLocalizer<Resources> i18n | @inject IStringLocalizer<Resources> i18n |
| @page "/fundvelo/conclusion_found" | @page "/fundvelo/conclusion_found" | ||||
| @using CaritasPWA.Shared.Services; | |||||
| @using cwebplusApp.Shared.Services; | |||||
| @inject NavigationManager NavigationManager | @inject NavigationManager NavigationManager | ||||
| @inject IStringLocalizer<Resources> i18n | @inject IStringLocalizer<Resources> i18n | ||||
| @inject PageHistoryManager PageHistoryManager | @inject PageHistoryManager PageHistoryManager |
| @inherits CaritasServiceFundVeloKeyDataPageBase | @inherits CaritasServiceFundVeloKeyDataPageBase | ||||
| @using CaritasPWA.Shared.Models; | |||||
| @using CaritasPWA.Shared.Services; | |||||
| @using cwebplusApp.Shared.Models; | |||||
| @using cwebplusApp.Shared.Services; | |||||
| @using System.Globalization; | @using System.Globalization; | ||||
| @using Microsoft.AspNetCore.Components.Forms; | @using Microsoft.AspNetCore.Components.Forms; | ||||
| @using System.IO; | @using System.IO; |
| using BlazorGeolocation; | using BlazorGeolocation; | ||||
| using CaritasPWA.Shared.Models; | |||||
| using CaritasPWA.Shared.ResourceFiles; | |||||
| using CaritasPWA.Shared.Services; | |||||
| using cwebplusApp.Shared.Models; | |||||
| using cwebplusApp.Shared.ResourceFiles; | |||||
| using cwebplusApp.Shared.Services; | |||||
| using FisSst.BlazorMaps; | using FisSst.BlazorMaps; | ||||
| using Microsoft.AspNetCore.Components; | using Microsoft.AspNetCore.Components; | ||||
| using Microsoft.Extensions.Localization; | using Microsoft.Extensions.Localization; | ||||
| using System; | using System; | ||||
| using System.Threading.Tasks; | using System.Threading.Tasks; | ||||
| namespace CaritasPWA.Pages { | |||||
| namespace cwebplusApp.Pages { | |||||
| public partial class CaritasServiceFundVeloKeyDataPageBase : ComponentBase { | public partial class CaritasServiceFundVeloKeyDataPageBase : ComponentBase { | ||||
| protected readonly LatLng center; | protected readonly LatLng center; |
| @page "/fundvelo/lost_found" | @page "/fundvelo/lost_found" | ||||
| @using CaritasPWA.Shared.Services; | |||||
| @using cwebplusApp.Shared.Services; | |||||
| @inject NavigationManager NavigationManager | @inject NavigationManager NavigationManager | ||||
| @inject PageHistoryManager PageHistoryManager | @inject PageHistoryManager PageHistoryManager | ||||
| @page "/fundvelo/conclusion_missing" | @page "/fundvelo/conclusion_missing" | ||||
| @using CaritasPWA.Shared.Services; | |||||
| @using cwebplusApp.Shared.Services; | |||||
| @inject NavigationManager NavigationManager | @inject NavigationManager NavigationManager | ||||
| @inject IStringLocalizer<Resources> i18n | @inject IStringLocalizer<Resources> i18n | ||||
| @inject PageHistoryManager PageHistoryManager | @inject PageHistoryManager PageHistoryManager |
| @page "/caritas_services" | @page "/caritas_services" | ||||
| @using CaritasPWA.Shared.Services; | |||||
| @using cwebplusApp.Shared.Services; | |||||
| @inject NavigationManager NavigationManager | @inject NavigationManager NavigationManager | ||||
| @inject PageHistoryManager PageHistoryManager | @inject PageHistoryManager PageHistoryManager | ||||
| @page "/" | @page "/" | ||||
| @using CaritasPWA.Shared.Services; | |||||
| @using cwebplusApp.Shared.Services; | |||||
| @using System.Threading; | @using System.Threading; | ||||
| @inject NavigationManager NavigationManager; | @inject NavigationManager NavigationManager; | ||||
| @inject AppState AppState; | @inject AppState AppState; | ||||
| StateHasChanged(); | StateHasChanged(); | ||||
| try { | try { | ||||
| await MasterDataService.SynchronizeMasterdata(); | await MasterDataService.SynchronizeMasterdata(); | ||||
| } catch (Exception ex) { | |||||
| } catch (Exception) { | |||||
| Toaster.ShowWarning(i18n.GetString("Warning.Masterdata.Title"), i18n.GetString("Warning.Masterdata.Msg")); | Toaster.ShowWarning(i18n.GetString("Warning.Masterdata.Title"), i18n.GetString("Warning.Masterdata.Msg")); | ||||
| } finally { | } finally { | ||||
| showProgressCircle = false; | showProgressCircle = false; |
| @page "/info" | @page "/info" | ||||
| @using CaritasPWA.Shared.Services; | |||||
| @using cwebplusApp.Shared.Services; | |||||
| @inject NavigationManager NavigationManager; | @inject NavigationManager NavigationManager; | ||||
| @inject IStringLocalizer<Resources> i18n | @inject IStringLocalizer<Resources> i18n | ||||
| @inject PageHistoryManager PageHistoryManager | @inject PageHistoryManager PageHistoryManager |
| using BlazorGeolocation; | using BlazorGeolocation; | ||||
| using CaritasPWA.Shared; | |||||
| using CaritasPWA.Shared.Services; | |||||
| using cwebplusApp; | |||||
| using cwebplusApp.Shared; | |||||
| using cwebplusApp.Shared.Services; | |||||
| using FisSst.BlazorMaps.DependencyInjection; | using FisSst.BlazorMaps.DependencyInjection; | ||||
| using MatBlazor; | using MatBlazor; | ||||
| using Microsoft.AspNetCore.Components.WebAssembly.Hosting; | using Microsoft.AspNetCore.Components.WebAssembly.Hosting; |
| using System; | using System; | ||||
| namespace CaritasPWA.Shared { | |||||
| namespace cwebplusApp.Shared { | |||||
| public class AppState { | public class AppState { | ||||
| private bool _loggedIn; | private bool _loggedIn; |
| namespace CaritasPWA.Shared.Models { | |||||
| namespace cwebplusApp.Shared.Models { | |||||
| public class BicycleType { | public class BicycleType { | ||||
| public int Id { get; set; } | public int Id { get; set; } |
| namespace CaritasPWA.Shared.Models { | |||||
| namespace cwebplusApp.Shared.Models { | |||||
| public class Brand { | public class Brand { | ||||
| public int Id { get; set; } | public int Id { get; set; } |
| namespace CaritasPWA.Shared.Models { | |||||
| namespace cwebplusApp.Shared.Models { | |||||
| public class ColorItem { | public class ColorItem { | ||||
| using CaritasPWA.Shared.ResourceFiles; | |||||
| using cwebplusApp.Shared.ResourceFiles; | |||||
| using Microsoft.Extensions.Localization; | using Microsoft.Extensions.Localization; | ||||
| using System.Collections.Generic; | using System.Collections.Generic; | ||||
| namespace CaritasPWA.Shared.Models { | |||||
| namespace cwebplusApp.Shared.Models { | |||||
| public class Defaults { | public class Defaults { | ||||
| private static readonly ColorItem[] ColorItems = { | private static readonly ColorItem[] ColorItems = { | ||||
| public static List<Brand> GetBrandDefaults(IStringLocalizer<Resources> _i18n) { | public static List<Brand> GetBrandDefaults(IStringLocalizer<Resources> _i18n) { | ||||
| List<Brand> brands = new(); | List<Brand> brands = new(); | ||||
| foreach (Brand brand in Brands) { | foreach (Brand brand in Brands) { | ||||
| brands.Add(new Brand(brand.Id, brand.Id == 0 ? _i18n.GetString("Brand." + brand.Bezeichnung): brand.Bezeichnung)); | |||||
| brands.Add(new Brand(brand.Id, brand.Id == 0 ? _i18n.GetString("Brand." + brand.Bezeichnung) : brand.Bezeichnung)); | |||||
| } | } | ||||
| return brands; | return brands; | ||||
| } | } |
| namespace CaritasPWA.Shared.Models { | |||||
| namespace cwebplusApp.Shared.Models { | |||||
| public class BicycleGeoPosition { | public class BicycleGeoPosition { | ||||
| public BicycleGeoPosition() { | public BicycleGeoPosition() { |
| namespace CaritasPWA.Shared.Models { | |||||
| namespace cwebplusApp.Shared.Models { | |||||
| public class NominatimReverseAddress { | public class NominatimReverseAddress { | ||||
| public string place_id; | public string place_id; |
| namespace CaritasPWA.Shared.Models { | |||||
| namespace cwebplusApp.Shared.Models { | |||||
| // The class that stores the user settings | // The class that stores the user settings | ||||
| public class UserData { | public class UserData { | ||||
| private string salutation; | private string salutation; |
| @using CaritasPWA.Shared.Services; | |||||
| @using cwebplusApp.Shared.Services; | |||||
| @inject AppState AppState; | @inject AppState AppState; | ||||
| @inject NavigationManager NavigationManager; | @inject NavigationManager NavigationManager; | ||||
| @inject IStringLocalizer<Resources> i18n | @inject IStringLocalizer<Resources> i18n |
| // </auto-generated> | // </auto-generated> | ||||
| //------------------------------------------------------------------------------ | //------------------------------------------------------------------------------ | ||||
| namespace CaritasPWA.Shared.ResourceFiles { | |||||
| namespace cwebplusApp.Shared.ResourceFiles { | |||||
| using System; | using System; | ||||
| public static global::System.Resources.ResourceManager ResourceManager { | public static global::System.Resources.ResourceManager ResourceManager { | ||||
| get { | get { | ||||
| if (object.ReferenceEquals(resourceMan, null)) { | if (object.ReferenceEquals(resourceMan, null)) { | ||||
| global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("CaritasPWA.Shared.ResourceFiles.Resources", typeof(Resources).Assembly); | |||||
| global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("cwebplusApp.Shared.ResourceFiles.Resources", typeof(Resources).Assembly); | |||||
| resourceMan = temp; | resourceMan = temp; | ||||
| } | } | ||||
| return resourceMan; | return resourceMan; |
| using CaritasPWA.Shared.Models; | |||||
| using cwebplusApp.Shared.Models; | |||||
| using System.Collections.Generic; | using System.Collections.Generic; | ||||
| using System.Threading.Tasks; | using System.Threading.Tasks; | ||||
| namespace CaritasPWA.Shared.Services { | |||||
| namespace cwebplusApp.Shared.Services { | |||||
| public interface ILFBicycleRest { | public interface ILFBicycleRest { | ||||
| Task<List<ColorItem>> GetColors(); | Task<List<ColorItem>> GetColors(); |
| using CaritasPWA.Shared.Models; | |||||
| using cwebplusApp.Shared.Models; | |||||
| using Json.Net; | using Json.Net; | ||||
| using System; | using System; | ||||
| using System.Collections.Generic; | using System.Collections.Generic; | ||||
| using System.Net.Http; | using System.Net.Http; | ||||
| using System.Threading.Tasks; | using System.Threading.Tasks; | ||||
| namespace CaritasPWA.Shared.Services { | |||||
| namespace cwebplusApp.Shared.Services { | |||||
| // REST interface responsible to submit lost or found reports and get the available master data. | // REST interface responsible to submit lost or found reports and get the available master data. | ||||
| public class LFBicycleRest : ILFBicycleRest { | public class LFBicycleRest : ILFBicycleRest { |
| using CaritasPWA.Shared.Models; | |||||
| using CaritasPWA.Shared.ResourceFiles; | |||||
| using cwebplusApp.Shared.Models; | |||||
| using cwebplusApp.Shared.ResourceFiles; | |||||
| using Json.Net; | using Json.Net; | ||||
| using Microsoft.Extensions.Localization; | using Microsoft.Extensions.Localization; | ||||
| using Microsoft.JSInterop; | using Microsoft.JSInterop; | ||||
| using System; | using System; | ||||
| using System.Collections.Generic; | using System.Collections.Generic; | ||||
| using System.Runtime.CompilerServices; | |||||
| using System.Threading.Tasks; | using System.Threading.Tasks; | ||||
| namespace CaritasPWA.Shared.Services { | |||||
| namespace cwebplusApp.Shared.Services { | |||||
| public class MasterDataService { | public class MasterDataService { | ||||
| private readonly ILFBicycleRest _lFBicycleRest; | private readonly ILFBicycleRest _lFBicycleRest; |
| using CaritasPWA.Shared.Models; | |||||
| using cwebplusApp.Shared.Models; | |||||
| using Json.Net; | using Json.Net; | ||||
| using System; | using System; | ||||
| using System.Globalization; | using System.Globalization; | ||||
| using System.Net.Http; | using System.Net.Http; | ||||
| using System.Threading.Tasks; | using System.Threading.Tasks; | ||||
| namespace CaritasPWA.Shared.Services { | |||||
| namespace cwebplusApp.Shared.Services { | |||||
| public class NominatimService { | public class NominatimService { | ||||
| public static async Task<NominatimReverseAddress> GetAddressForCoordinates(double latitude, double longitude) { | public static async Task<NominatimReverseAddress> GetAddressForCoordinates(double latitude, double longitude) { | ||||
| } | } | ||||
| return null; | return null; | ||||
| } catch (Exception ex) { | |||||
| } catch (Exception) { | |||||
| return null; | return null; | ||||
| } | } | ||||
| } | } |
| using System.Collections.Generic; | using System.Collections.Generic; | ||||
| using System.Linq; | using System.Linq; | ||||
| namespace CaritasPWA.Shared.Services { | |||||
| namespace cwebplusApp.Shared.Services { | |||||
| public class PageHistoryManager { | public class PageHistoryManager { | ||||
| private readonly List<string> previousPages; | private readonly List<string> previousPages; |
| using MatBlazor; | using MatBlazor; | ||||
| using System; | |||||
| using System.Collections.Generic; | |||||
| using System.Linq; | |||||
| using System.Threading.Tasks; | |||||
| namespace CaritasPWA.Shared.Services { | |||||
| namespace cwebplusApp.Shared.Services { | |||||
| public class Toaster { | public class Toaster { | ||||
| private readonly IMatToaster matToaster; | private readonly IMatToaster matToaster; |
| using CaritasPWA.Shared.Models; | |||||
| using cwebplusApp.Shared.Models; | |||||
| using Microsoft.JSInterop; | using Microsoft.JSInterop; | ||||
| using System; | using System; | ||||
| using System.Threading.Tasks; | using System.Threading.Tasks; | ||||
| namespace CaritasPWA.Shared.Services { | |||||
| namespace cwebplusApp.Shared.Services { | |||||
| public sealed class UserDataProvider { | public sealed class UserDataProvider { | ||||
| private const string KeyName = "account"; | private const string KeyName = "account"; | ||||
| @using FisSst.BlazorMaps | @using FisSst.BlazorMaps | ||||
| @using BlazorGeolocation | @using BlazorGeolocation | ||||
| @using CaritasPWA | @using CaritasPWA | ||||
| @using CaritasPWA.Shared | |||||
| @using CaritasPWA.Shared.ResourceFiles | |||||
| @using cwebplusApp.Shared | |||||
| @using cwebplusApp.Shared.ResourceFiles |
| <Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly"> | <Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly"> | ||||
| <PropertyGroup Label="Globals"> | |||||
| <SccProjectName>SAK</SccProjectName> | |||||
| <SccProvider>SAK</SccProvider> | |||||
| <SccAuxPath>SAK</SccAuxPath> | |||||
| <SccLocalPath>SAK</SccLocalPath> | |||||
| </PropertyGroup> | |||||
| <PropertyGroup> | <PropertyGroup> | ||||
| <TargetFramework>net5.0</TargetFramework> | <TargetFramework>net5.0</TargetFramework> | ||||
| <ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest> | <ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest> |
| "" | |||||
| { | |||||
| "FILE_VERSION" = "9237" | |||||
| "ENLISTMENT_CHOICE" = "NEVER" | |||||
| "PROJECT_FILE_RELATIVE_PATH" = "" | |||||
| "NUMBER_OF_EXCLUDED_FILES" = "0" | |||||
| "ORIGINAL_PROJECT_FILE_PATH" = "" | |||||
| "NUMBER_OF_NESTED_PROJECTS" = "0" | |||||
| "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" | |||||
| } |
| # Visual Studio Version 16 | # Visual Studio Version 16 | ||||
| VisualStudioVersion = 16.0.31321.278 | VisualStudioVersion = 16.0.31321.278 | ||||
| MinimumVisualStudioVersion = 10.0.40219.1 | MinimumVisualStudioVersion = 10.0.40219.1 | ||||
| Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CaritasPWA", "CaritasPWA.csproj", "{D258170F-7153-4503-AAB9-6B5699A58B53}" | |||||
| Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "cwebplusApp", "cwebplusApp.csproj", "{D258170F-7153-4503-AAB9-6B5699A58B53}" | |||||
| EndProject | EndProject | ||||
| Global | Global | ||||
| GlobalSection(SolutionConfigurationPlatforms) = preSolution | GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||||
| GlobalSection(ExtensibilityGlobals) = postSolution | GlobalSection(ExtensibilityGlobals) = postSolution | ||||
| SolutionGuid = {727FFEFC-2F79-4A3E-B3E6-495767058A34} | SolutionGuid = {727FFEFC-2F79-4A3E-B3E6-495767058A34} | ||||
| EndGlobalSection | EndGlobalSection | ||||
| GlobalSection(TeamFoundationVersionControl) = preSolution | |||||
| SccNumberOfProjects = 2 | |||||
| SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C} | |||||
| SccTeamFoundationServer = https://integrateinformatik.visualstudio.com/ | |||||
| SccLocalPath0 = . | |||||
| SccProjectUniqueName1 = cwebplusApp.csproj | |||||
| SccLocalPath1 = . | |||||
| EndGlobalSection | |||||
| EndGlobal | EndGlobal |
| "" | |||||
| { | |||||
| "FILE_VERSION" = "9237" | |||||
| "ENLISTMENT_CHOICE" = "NEVER" | |||||
| "PROJECT_FILE_RELATIVE_PATH" = "" | |||||
| "NUMBER_OF_EXCLUDED_FILES" = "0" | |||||
| "ORIGINAL_PROJECT_FILE_PATH" = "" | |||||
| "NUMBER_OF_NESTED_PROJECTS" = "0" | |||||
| "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROJECT" | |||||
| } |