43 lines
805 B
Plaintext
43 lines
805 B
Plaintext
@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;
|
|
}
|
|
} |