Many updates

This commit is contained in:
2020-04-13 00:21:36 +02:00
parent a02b607bc6
commit 87754c8e06
23 changed files with 1256 additions and 124 deletions

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++;
}
}

View File

@ -0,0 +1,7 @@
@page "/dmesg"
<h3>Dmesg</h3>
@code {
}

View File

@ -1,46 +0,0 @@
@page "/fetchdata"
@using Seenginx.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

@ -0,0 +1,7 @@
@page "/nginx"
<h3>Nginx</h3>
@code {
}

View File

@ -0,0 +1,7 @@
@page "/systemd"
<h3>SystemD</h3>
@code {
}

View File

@ -13,15 +13,17 @@
<link rel="icon" href="~/favicon.png" />
<title>Seenginx</title>
<base href="~/" />
<link rel="stylesheet" href="~/css/side-menu.css" asp-append-version="true" />
<environment include="Staging,Production">
<link rel="stylesheet" href="~/css/open-iconic.min.css" />
<link rel="stylesheet" href="~/css/pure.min.css" />
<link rel="stylesheet" href="~/css/open-iconic.min.css" asp-append-version="true" />
<link rel="stylesheet" href="~/css/pure.min.css" asp-append-version="true" />
<link rel="stylesheet" href="~/css/main.min.css" asp-append-version="true" />
</environment>
<environment include="Development">
<link rel="stylesheet" href="~/css/open-iconic.css" />
<link rel="stylesheet" href="~/css/pure.css" />
<link rel="stylesheet" href="~/css/open-iconic.css" asp-append-version="true" />
<link rel="stylesheet" href="~/css/pure.css" asp-append-version="true" />
<link rel="stylesheet" href="~/css/main.css" asp-append-version="true" />
</environment>
<link href="css/site.css" rel="stylesheet" />
</head>
<body>
<app>
@ -40,5 +42,7 @@
</div>
<script src="_framework/blazor.server.js"></script>
<script src="js/modal.js" asp-append-version="true"></script>
<script src="js/ui.js" asp-append-version="true"></script>
</body>
</html>