parent
337da9f8d1
commit
ccf0c6bf20
@ -1,5 +0,0 @@
|
||||
<h3>Inventaire</h3>
|
||||
|
||||
@code {
|
||||
|
||||
}
|
@ -1,4 +0,0 @@
|
||||
@page "/BlazorRoute"
|
||||
@page "/DifferentBlazorRoute"
|
||||
|
||||
<h1>Blazor routing</h1>
|
@ -1,18 +0,0 @@
|
||||
@page "/counter"
|
||||
|
||||
<PageTitle>Counter</PageTitle>
|
||||
|
||||
<h1>Counter</h1>
|
||||
|
||||
<p role="status">Current count: @currentCount</p>
|
||||
|
||||
<button class="btn btn-primary" @onclick="IncrementCount">Click me</button>
|
||||
|
||||
@code {
|
||||
private int currentCount = 0;
|
||||
|
||||
private void IncrementCount()
|
||||
{
|
||||
currentCount++;
|
||||
}
|
||||
}
|
@ -1,22 +0,0 @@
|
||||
@page "/episodes"
|
||||
@layout DoctorWhoLayout
|
||||
|
||||
<h2>Episodes</h2>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://www.bbc.co.uk/programmes/p00vfknq">
|
||||
<em>The Ribos Operation</em>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://www.bbc.co.uk/programmes/p00vfdsb">
|
||||
<em>The Sun Makers</em>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://www.bbc.co.uk/programmes/p00vhc26">
|
||||
<em>Nightmare of Eden</em>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
@ -1,48 +0,0 @@
|
||||
@page "/fetchdata"
|
||||
|
||||
<PageTitle>Weather forecast</PageTitle>
|
||||
|
||||
@using ValblazeProject.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);
|
||||
}
|
||||
}
|
@ -1,31 +0,0 @@
|
||||
@page "/themed-counter"
|
||||
@using ValblazeProject.UIThemeClasses
|
||||
|
||||
<h1>Themed Counter</h1>
|
||||
|
||||
<p>Current count: @currentCount</p>
|
||||
|
||||
<p>
|
||||
<button class="btn" @onclick="IncrementCount">
|
||||
Increment Counter (Unthemed)
|
||||
</button>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<button class="btn @(ThemeInfo is not null ? ThemeInfo.ButtonClass : string.Empty)"
|
||||
@onclick="IncrementCount">
|
||||
Increment Counter (Themed)
|
||||
</button>
|
||||
</p>
|
||||
|
||||
@code {
|
||||
private int currentCount = 0;
|
||||
|
||||
[CascadingParameter]
|
||||
protected ThemeInfo? ThemeInfo { get; set; }
|
||||
|
||||
private void IncrementCount()
|
||||
{
|
||||
currentCount++;
|
||||
}
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
@inherits LayoutComponentBase
|
||||
|
||||
<header>
|
||||
<h1>Doctor Who™ Episode Database</h1>
|
||||
</header>
|
||||
|
||||
<nav>
|
||||
<a href="masterlist">Master Episode List</a>
|
||||
<a href="search">Search</a>
|
||||
<a href="new">Add Episode</a>
|
||||
</nav>
|
||||
|
||||
@Body
|
||||
|
||||
<footer>
|
||||
@TrademarkMessage
|
||||
</footer>
|
||||
|
||||
@code {
|
||||
public string TrademarkMessage { get; set; } =
|
||||
"Doctor Who is a registered trademark of the BBC. " +
|
||||
"https://www.doctorwho.tv/";
|
||||
}
|
Loading…
Reference in new issue