mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-27 15:59:47 +00:00
Some checks failed
Build and Release / Read metadata (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-apple-darwin, osx-arm64, macos-latest, aarch64-apple-darwin, dmg updater) (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-pc-windows-msvc.exe, win-arm64, windows-latest, aarch64-pc-windows-msvc, nsis updater) (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-apple-darwin, osx-x64, macos-latest, x86_64-apple-darwin, dmg updater) (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-pc-windows-msvc.exe, win-x64, windows-latest, x86_64-pc-windows-msvc, nsis updater) (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-unknown-linux-gnu, linux-x64, ubuntu-22.04, x86_64-unknown-linux-gnu, appimage deb updater) (push) Has been cancelled
Build and Release / Build app (linux-arm64) (push) Has been cancelled
Build and Release / Prepare & create release (push) Has been cancelled
Build and Release / Publish release (push) Has been cancelled
62 lines
3.4 KiB
Plaintext
62 lines
3.4 KiB
Plaintext
@using AIStudio.Settings.DataModel
|
|
@using Microsoft.AspNetCore.Components.Routing
|
|
@using MudBlazor
|
|
|
|
@inherits LayoutComponentBase
|
|
|
|
<MudPaper Height="calc(100vh);" Elevation="0">
|
|
<MudLayout>
|
|
@if (!this.performingUpdate)
|
|
{
|
|
@if (this.SettingsManager.ConfigurationData.App.NavigationBehavior is NavBehavior.EXPAND_ON_HOVER or NavBehavior.ALWAYS_EXPAND)
|
|
{
|
|
<MudDrawerContainer Class="mud-height-full absolute">
|
|
<MudDrawer @bind-Open="@this.navBarOpen" MiniWidth="@NAVBAR_COLLAPSED_WIDTH" Width="@NAVBAR_EXPANDED_WIDTH" Elevation="1" Fixed="@true" Variant="@DrawerVariant.Mini" OpenMiniOnHover="@(this.SettingsManager.ConfigurationData.App.NavigationBehavior is NavBehavior.EXPAND_ON_HOVER)" Color="Color.Default">
|
|
<MudNavMenu>
|
|
@foreach (var navBarItem in this.navItems)
|
|
{
|
|
<MudNavLink Href="@navBarItem.Path" Match="@(navBarItem.MatchAll ? NavLinkMatch.All : NavLinkMatch.Prefix)" Icon="@navBarItem.Icon" Style="@navBarItem.SetColorStyle(this.SettingsManager)" Class="custom-icon-color">@navBarItem.Name</MudNavLink>
|
|
}
|
|
</MudNavMenu>
|
|
</MudDrawer>
|
|
</MudDrawerContainer>
|
|
}
|
|
else
|
|
{
|
|
<MudPaper Width="4em" Class="mud-height-full absolute">
|
|
<MudNavMenu>
|
|
@foreach (var navBarItem in this.navItems)
|
|
{
|
|
if (this.SettingsManager.ConfigurationData.App.NavigationBehavior is NavBehavior.NEVER_EXPAND_USE_TOOLTIPS)
|
|
{
|
|
<MudTooltip Text="@navBarItem.Name" Placement="Placement.Right">
|
|
<MudNavLink Href="@navBarItem.Path" Match="@(navBarItem.MatchAll ? NavLinkMatch.All : NavLinkMatch.Prefix)" Icon="@navBarItem.Icon" Style="@navBarItem.SetColorStyle(this.SettingsManager)" Class="custom-icon-color"/>
|
|
</MudTooltip>
|
|
}
|
|
else
|
|
{
|
|
<MudNavLink Href="@navBarItem.Path" Match="@(navBarItem.MatchAll ? NavLinkMatch.All : NavLinkMatch.Prefix)" Icon="@navBarItem.Icon" Style="@navBarItem.SetColorStyle(this.SettingsManager)" Class="custom-icon-color"/>
|
|
}
|
|
}
|
|
</MudNavMenu>
|
|
</MudPaper>
|
|
}
|
|
}
|
|
|
|
<MudMainContent Class="mud-height-full pt-1" Style="@this.PaddingLeft">
|
|
<MudContainer MaxWidth="MaxWidth.ExtraExtraLarge" Class="mud-height-full" Style="margin-left: 5em; width: calc(100% - 5em);">
|
|
@if (!this.performingUpdate)
|
|
{
|
|
@this.Body
|
|
}
|
|
|
|
<MudOverlay Visible="@this.performingUpdate" DarkBackground="@true" LockScroll="@true">
|
|
<MudText Typo="Typo.h3">Please wait for the update to complete...</MudText>
|
|
<MudProgressLinear Color="Color.Primary" Indeterminate="@true" Size="Size.Large" Rounded="@true"/>
|
|
</MudOverlay>
|
|
</MudContainer>
|
|
</MudMainContent>
|
|
</MudLayout>
|
|
</MudPaper>
|
|
|
|
<MudThemeProvider @ref="@this.themeProvider" Theme="@this.ColorTheme" IsDarkMode="@this.useDarkMode" /> |