65 lines
2.2 KiB
Plaintext
65 lines
2.2 KiB
Plaintext
|
@using Timelapse.Data;
|
||
|
|
||
|
@using ElectronNET.API;
|
||
|
@inject ExtensionProjectService EPS;
|
||
|
@inject NavigationManager NavigationManager
|
||
|
<div class="top-row pl-4 navbar navbar-dark">
|
||
|
<a class="navbar-brand" href="">Timelapse</a>
|
||
|
<button class="navbar-toggler" @onclick="ToggleNavMenu">
|
||
|
<span class="navbar-toggler-icon"></span>
|
||
|
</button>
|
||
|
</div>
|
||
|
|
||
|
<div class="@NavMenuCssClass" @onclick="ToggleNavMenu">
|
||
|
<ul class="nav flex-column">
|
||
|
<li class="nav-item px-3">
|
||
|
<NavLink class="nav-link" href="" Match="NavLinkMatch.All">
|
||
|
<span class="oi oi-home" aria-hidden="true"></span> Home
|
||
|
</NavLink>
|
||
|
</li>
|
||
|
|
||
|
<li class="nav-item px-3">
|
||
|
<NavLink class="nav-link" href="preview">
|
||
|
<span class="oi oi-image" aria-hidden="true"></span> Preview
|
||
|
</NavLink>
|
||
|
</li>
|
||
|
<li class="nav-item px-3">
|
||
|
<NavLink class="nav-link" href="newproject">
|
||
|
<span class="oi oi-plus" aria-hidden="true"></span> New Project
|
||
|
</NavLink>
|
||
|
</li>
|
||
|
<li class="nav-item px-3">
|
||
|
<NavLink class="nav-link" href="editproject">
|
||
|
<span class="oi oi-pencil" aria-hidden="true"></span> Configure Project
|
||
|
</NavLink>
|
||
|
</li>
|
||
|
|
||
|
<li class="nav-item px-3">
|
||
|
<NavLink class="nav-link" href="export">
|
||
|
<span class="oi oi-data-transfer-download" aria-hidden="true"></span> Export Project
|
||
|
</NavLink>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
<li class="nav-item px-3">
|
||
|
<NavLink class="nav-link" href="extensions">
|
||
|
<span class="oi oi-wrench" aria-hidden="true"></span> Extensions
|
||
|
</NavLink>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
|
||
|
@code {
|
||
|
public bool Loaded {get {return EPS.IsProjectLoaded;}}
|
||
|
private bool collapseNavMenu = true;
|
||
|
|
||
|
private string NavMenuCssClass => collapseNavMenu ? "collapse" : null;
|
||
|
|
||
|
private void ToggleNavMenu()
|
||
|
{
|
||
|
collapseNavMenu = !collapseNavMenu;
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|