some initial setup and removal of unnecessary web stuff

This commit is contained in:
2021-10-13 10:22:38 -04:00
parent ab7667a796
commit 8fb383d673
10 changed files with 23 additions and 120 deletions

View File

@@ -1,17 +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++;
}
}

View File

@@ -0,0 +1,6 @@
@page "/CreateServer"
<h3>Create Server</h3>
@code {
}

View File

@@ -1,49 +0,0 @@
@page "/fetchdata"
@using Web.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);
}
}

View File

@@ -1,7 +1,3 @@
@page "/"
<h1>Hello, world!</h1>
Welcome to your new app.
<SurveyPrompt Title="How is Blazor working for you?"/>
<h1>Hello, world!</h1>

6
Web/Pages/Login.razor Normal file
View File

@@ -0,0 +1,6 @@
@page "/Login"
<h3>Login</h3>
@code {
}