Browse Source

removed some part of the blazor sample.

pull/1806/head
emorell96 4 years ago
parent
commit
1c664060ab
2 changed files with 0 additions and 62 deletions
  1. +0
    -16
      samples/05_simple_blazor_discord_login/Pages/Counter.razor
  2. +0
    -46
      samples/05_simple_blazor_discord_login/Pages/FetchData.razor

+ 0
- 16
samples/05_simple_blazor_discord_login/Pages/Counter.razor View File

@@ -1,16 +0,0 @@
@page "/counter"

<h1>Counter</h1>

<p>Current count: @currentCount</p>

<button class="btn btn-primary" @onclick="IncrementCount">Click me</button>

@code {
private int currentCount = 0;

private void IncrementCount()
{
currentCount++;
}
}

+ 0
- 46
samples/05_simple_blazor_discord_login/Pages/FetchData.razor View File

@@ -1,46 +0,0 @@
@page "/fetchdata"

@using _04_simple_blazor_discord_login.Data
@inject WeatherForecastService ForecastService

<h1>Weather forecast</h1>

<p>This component demonstrates fetching data from a service.</p>

@if (forecasts == null)
{
<p><em>Loading...</em></p>
}
else
{
<table class="table">
<thead>
<tr>
<th>Date</th>
<th>Temp. (C)</th>
<th>Temp. (F)</th>
<th>Summary</th>
</tr>
</thead>
<tbody>
@foreach (var forecast in forecasts)
{
<tr>
<td>@forecast.Date.ToShortDateString()</td>
<td>@forecast.TemperatureC</td>
<td>@forecast.TemperatureF</td>
<td>@forecast.Summary</td>
</tr>
}
</tbody>
</table>
}

@code {
private WeatherForecast[] forecasts;

protected override async Task OnInitializedAsync()
{
forecasts = await ForecastService.GetForecastAsync(DateTime.Now);
}
}

Loading…
Cancel
Save