timelapse/Timelapse/Pages/Extensions.razor

43 lines
805 B
Plaintext
Raw Normal View History

2021-12-28 07:25:39 +00:00
@page "/extensions"
@using Timelapse.Api;
@using ElectronNET.API;
@using Timelapse.Data;
@inject ExtensionProjectService EPS;
@inject NavigationManager NavigationManager
<h1>Extensions</h1>
@if(Extens == null)
{
<p>Loading...</p>
}else{
<table class="table">
<thead>
<tr>
<th>Name</th>
<th>Id</th>
</tr>
</thead>
<tbody>
@foreach(var item in Extens)
{
<tr>
<td><a href="@item.GET_URL("/")">@item.Name</a></td>
<td>@Timelapse.Api.Extensions.GetId(item)</td>
</tr>
}
</tbody>
</table>
}
@code{
public List<TimelapseExtension> Extens {get;set;}
protected override void OnInitialized()
{
Extens = Timelapse.Api.Extensions.TimelapseExtensions;
}
}