| @@ -1,10 +1,12 @@ | |||
| @page "/account" | |||
| @page "/fundvelo/account/{FromRoute}" | |||
| @using CaritasPWA.Shared.Models; | |||
| @using CaritasPWA.Shared.Services; | |||
| @inject NavigationManager NavigationManager | |||
| @inject UserDataProvider UserDataProvider | |||
| @inject IStringLocalizer<Resources> i18n | |||
| @inject PageHistoryManager PageHistoryManager | |||
| @using CaritasPWA.Shared.Models; | |||
| <div class="row px-3 h-100"> | |||
| <div class="row no-gutters align-items-start w-100"> | |||
| @@ -1,4 +1,5 @@ | |||
| @page "/fundvelo/conclusion_found" | |||
| @using CaritasPWA.Shared.Services; | |||
| @inject NavigationManager NavigationManager | |||
| @inject IStringLocalizer<Resources> i18n | |||
| @inject PageHistoryManager PageHistoryManager | |||
| @@ -1,9 +1,10 @@ | |||
| @page "/fundvelo/keydata/{FromRoute}" | |||
| @using CaritasPWA.Shared.Models; | |||
| @using CaritasPWA.Shared.Services; | |||
| @inject NavigationManager NavigationManager | |||
| @inject IStringLocalizer<Resources> i18n | |||
| @inject PageHistoryManager PageHistoryManager | |||
| @inject MasterDataService MasterDataService | |||
| @using CaritasPWA.Shared.Models; | |||
| <div class="row px-3 h-100"> | |||
| <div class="row no-gutters align-items-center justify-content-center w-100" style="padding-top:1em"> | |||
| @@ -1,4 +1,5 @@ | |||
| @page "/fundvelo/lost_found" | |||
| @using CaritasPWA.Shared.Services; | |||
| @inject NavigationManager NavigationManager | |||
| @inject PageHistoryManager PageHistoryManager | |||
| @@ -1,4 +1,5 @@ | |||
| @page "/fundvelo/conclusion_missing" | |||
| @using CaritasPWA.Shared.Services; | |||
| @inject NavigationManager NavigationManager | |||
| @inject IStringLocalizer<Resources> i18n | |||
| @inject PageHistoryManager PageHistoryManager | |||
| @@ -1,4 +1,5 @@ | |||
| @page "/caritas_services" | |||
| @using CaritasPWA.Shared.Services; | |||
| @inject NavigationManager NavigationManager | |||
| @inject PageHistoryManager PageHistoryManager | |||
| @@ -1,4 +1,5 @@ | |||
| @page "/" | |||
| @using CaritasPWA.Shared.Services; | |||
| @inject NavigationManager NavigationManager; | |||
| @inject AppState AppState; | |||
| @inject IStringLocalizer<Resources> i18n | |||
| @@ -1,4 +1,5 @@ | |||
| @page "/info" | |||
| @using CaritasPWA.Shared.Services; | |||
| @inject NavigationManager NavigationManager; | |||
| @inject IStringLocalizer<Resources> i18n | |||
| @inject PageHistoryManager PageHistoryManager | |||
| @@ -9,6 +9,8 @@ using System.Text; | |||
| using System.Threading.Tasks; | |||
| using MatBlazor; | |||
| using CaritasPWA.Shared; | |||
| using CaritasPWA.Shared.Services; | |||
| namespace CaritasPWA { | |||
| public class Program { | |||
| @@ -1,4 +1,5 @@ | |||
| @inject AppState AppState; | |||
| @using CaritasPWA.Shared.Services; | |||
| @inject AppState AppState; | |||
| @inject NavigationManager NavigationManager; | |||
| @inject IStringLocalizer<Resources> i18n | |||
| @inject IJSRuntime jsRuntime; | |||
| @@ -4,7 +4,7 @@ using System.Collections.Generic; | |||
| using System.Linq; | |||
| using System.Threading.Tasks; | |||
| namespace CaritasPWA.Shared { | |||
| namespace CaritasPWA.Shared.Services { | |||
| public interface ILFBicycleRest { | |||
| List<ColorItem> GetColors(); | |||
| @@ -4,7 +4,7 @@ using System.Collections.Generic; | |||
| using System.Linq; | |||
| using System.Threading.Tasks; | |||
| namespace CaritasPWA.Shared { | |||
| namespace CaritasPWA.Shared.Services { | |||
| // REST interface responsible to submit lost or found reports and get the available masterdata. | |||
| public class LFBicycleRest : ILFBicycleRest { | |||
| @@ -6,7 +6,7 @@ using CaritasPWA.Shared.Models; | |||
| using Microsoft.AspNetCore.Components; | |||
| using Microsoft.JSInterop; | |||
| namespace CaritasPWA.Shared { | |||
| namespace CaritasPWA.Shared.Services { | |||
| public class MasterDataService { | |||
| private ILFBicycleRest _lFBicycleRest; | |||
| @@ -3,7 +3,7 @@ using System.Collections.Generic; | |||
| using System.Linq; | |||
| using System.Threading.Tasks; | |||
| namespace CaritasPWA.Shared { | |||
| namespace CaritasPWA.Shared.Services { | |||
| public class PageHistoryManager { | |||
| private List<string> previousPages; | |||
| @@ -4,8 +4,8 @@ using System.ComponentModel; | |||
| using System.Threading.Tasks; | |||
| using CaritasPWA.Shared.Models; | |||
| namespace CaritasPWA.Shared { | |||
| public sealed class UserDataProvider { | |||
| namespace CaritasPWA.Shared.Services { | |||
| public sealed class UserDataProvider { | |||
| private const string KeyName = "account"; | |||
| private readonly IJSRuntime _jsRuntime; | |||