diff --git a/TaikoWebUI/Pages/Counter.razor b/TaikoWebUI/Pages/Counter.razor deleted file mode 100644 index cf7aaff..0000000 --- a/TaikoWebUI/Pages/Counter.razor +++ /dev/null @@ -1,18 +0,0 @@ -@page "/counter" - -Counter - -Counter -Current count: @currentCount -Click me - - -@code { - private int currentCount = 0; - - private void IncrementCount() - { - currentCount++; - } - -} \ No newline at end of file diff --git a/TaikoWebUI/Pages/Dashboard.razor b/TaikoWebUI/Pages/Dashboard.razor index df41706..7101945 100644 --- a/TaikoWebUI/Pages/Dashboard.razor +++ b/TaikoWebUI/Pages/Dashboard.razor @@ -5,7 +5,7 @@ @inject NavigationManager UriHelper @inject IDialogService DialogService -@page "/Dashboard" +@page "/"

Dashboard

@@ -13,64 +13,64 @@ @if (response is null) { @for (uint i = 0; i < 3; i++) - { - - - - - - - - - - - - - - - - } + { + + + + + + + + + + + + + + + } - else if(response.Users.Count != 0) + } + else if (response.Users.Count != 0) { @foreach (var user in response.Users) { - - - - - @user.Baid - - - - Access Code - @user.AccessCode - - - - + + + + @user.Baid + + + + Access Code + @user.AccessCode + + + + - Delete - - + - Edit - - - - - + Edit + + + + + } } else { - - - No data. - - + + + No data. + + } @@ -93,9 +93,9 @@ private async Task DeleteCard(User user) { var parameters = new DialogParameters - { - ["user"] = user - }; + { + ["user"] = user + }; var dialog = DialogService.Show("Delete Card", parameters); var result = await dialog.Result; diff --git a/TaikoWebUI/Pages/FetchData.razor b/TaikoWebUI/Pages/FetchData.razor deleted file mode 100644 index e0050a9..0000000 --- a/TaikoWebUI/Pages/FetchData.razor +++ /dev/null @@ -1,62 +0,0 @@ -@page "/fetchdata" -@inject HttpClient Http -@using TaikoWebUI.Shared - -Weather forecast - -Weather forecast -This component demonstrates fetching data from the server. -@if (forecasts == null) -{ - -} -else -{ - - - - Date - - - Temp. (C) - - - Temp. (F) - - - Summary - - - - @context.Date - @context.TemperatureC - @context.TemperatureF - @context.Summary - - - - - -} - - -@code { - private WeatherForecast[]? forecasts; - - protected override async Task OnInitializedAsync() - { - forecasts = await Http.GetFromJsonAsync("sample-data/weather.json"); - } - - public class WeatherForecast - { - public DateTime Date { get; set; } - - public int TemperatureC { get; set; } - - public string? Summary { get; set; } - - public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); - } - -} \ No newline at end of file diff --git a/TaikoWebUI/Pages/Index.razor b/TaikoWebUI/Pages/Index.razor deleted file mode 100644 index 62270c4..0000000 --- a/TaikoWebUI/Pages/Index.razor +++ /dev/null @@ -1,12 +0,0 @@ -@page "/" - -Index - -Hello, world! -Welcome to your new app, powered by MudBlazor! - - You can find documentation and examples on our website here: - - www.mudblazor.com - - \ No newline at end of file diff --git a/TaikoWebUI/Shared/NavMenu.razor b/TaikoWebUI/Shared/NavMenu.razor index ca8ebc8..7c12347 100644 --- a/TaikoWebUI/Shared/NavMenu.razor +++ b/TaikoWebUI/Shared/NavMenu.razor @@ -1,6 +1,3 @@  -@* Home - Counter - Fetch data*@ - Dashboard + Dashboard \ No newline at end of file diff --git a/TaikoWebUI/wwwroot/sample-data/weather.json b/TaikoWebUI/wwwroot/sample-data/weather.json deleted file mode 100644 index 06463c0..0000000 --- a/TaikoWebUI/wwwroot/sample-data/weather.json +++ /dev/null @@ -1,27 +0,0 @@ -[ - { - "date": "2018-05-06", - "temperatureC": 1, - "summary": "Freezing" - }, - { - "date": "2018-05-07", - "temperatureC": 14, - "summary": "Bracing" - }, - { - "date": "2018-05-08", - "temperatureC": -13, - "summary": "Freezing" - }, - { - "date": "2018-05-09", - "temperatureC": -16, - "summary": "Balmy" - }, - { - "date": "2018-05-10", - "temperatureC": -2, - "summary": "Chilly" - } -]