2021-11-30 05:34:42 +00:00
|
|
|
@page "/"
|
2021-12-04 00:44:02 +00:00
|
|
|
|
2021-11-21 06:47:10 +00:00
|
|
|
@using Start.Client.Components
|
2021-12-04 00:44:02 +00:00
|
|
|
@using Start.Client.Store.State
|
2021-12-17 05:26:53 +00:00
|
|
|
@using Microsoft.AspNetCore.Authorization
|
2021-12-04 00:44:02 +00:00
|
|
|
@using Fluxor
|
2021-11-29 06:32:21 +00:00
|
|
|
|
2021-12-17 05:26:53 +00:00
|
|
|
@inherits Fluxor.Blazor.Web.Components.FluxorComponent
|
|
|
|
|
|
|
|
@attribute [Authorize]
|
2021-12-04 00:44:02 +00:00
|
|
|
|
2021-11-21 06:47:10 +00:00
|
|
|
@inject Blazored.LocalStorage.ILocalStorageService localStorage
|
2021-12-04 00:44:02 +00:00
|
|
|
@inject IState<RootState> state
|
|
|
|
@inject IDispatcher dispatch
|
2021-11-21 06:47:10 +00:00
|
|
|
|
2021-12-08 01:12:20 +00:00
|
|
|
@if (this.state.Value.ContainerListState.ErrorMessage != null)
|
|
|
|
{
|
2021-12-04 00:44:02 +00:00
|
|
|
<Alert Type="Alert.AlertType.Error">
|
|
|
|
<b>Error</b> @this.state.Value.ContainerListState.ErrorMessage
|
|
|
|
</Alert>
|
|
|
|
}
|
|
|
|
|
|
|
|
@if (this.state.Value.ContainerListState.IsLoadingContainersList)
|
2021-11-21 06:47:10 +00:00
|
|
|
{
|
|
|
|
<div class="empty">
|
|
|
|
<div class="empty-icon">
|
|
|
|
<div class="loading loading-lg"></div>
|
|
|
|
</div>
|
|
|
|
<p class="empty-title h5">Loading Containers</p>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2021-12-08 01:12:20 +00:00
|
|
|
<Sidebar>
|
2021-12-17 05:26:53 +00:00
|
|
|
<ContainerList />
|
2021-12-08 01:12:20 +00:00
|
|
|
<BookmarkContainer />
|
2021-11-21 06:47:10 +00:00
|
|
|
|
2021-12-16 18:46:22 +00:00
|
|
|
@* Data management forms *@
|
|
|
|
|
2021-12-08 01:12:20 +00:00
|
|
|
<CreateContainer />
|
|
|
|
<DeleteContainer />
|
2021-12-05 23:50:48 +00:00
|
|
|
|
2021-12-08 01:12:20 +00:00
|
|
|
<CreateGroup />
|
2021-12-11 21:56:35 +00:00
|
|
|
<DeleteGroup />
|
2021-12-14 00:27:13 +00:00
|
|
|
|
|
|
|
<CreateBookmark />
|
2021-12-16 18:46:22 +00:00
|
|
|
<DeleteBookmark />
|
2021-12-08 01:12:20 +00:00
|
|
|
</Sidebar>
|
2021-11-21 06:47:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@code
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|