Improved server tab icon handling

This commit is contained in:
Marcel Baumgartner
2023-08-15 21:59:35 +02:00
parent f9fd7199b6
commit 0611988019
3 changed files with 6 additions and 7 deletions

View File

@@ -90,7 +90,6 @@
<Folder Include="App\ApiClients\CloudPanel\Resources\" /> <Folder Include="App\ApiClients\CloudPanel\Resources\" />
<Folder Include="App\Http\Middleware" /> <Folder Include="App\Http\Middleware" />
<Folder Include="storage\backups\" /> <Folder Include="storage\backups\" />
<Folder Include="storage\plugins\" />
<Folder Include="storage\resources\public\background\" /> <Folder Include="storage\resources\public\background\" />
</ItemGroup> </ItemGroup>

View File

@@ -249,7 +249,7 @@
{ {
Name = "Console", Name = "Console",
Route = "/", Route = "/",
Icon = "terminal", Icon = "bx-terminal",
Component = ComponentHelper.FromType(typeof(ServerConsole)) Component = ComponentHelper.FromType(typeof(ServerConsole))
}); });
@@ -257,7 +257,7 @@
{ {
Name = "Files", Name = "Files",
Route = "/files", Route = "/files",
Icon = "folder", Icon = "bx-folder",
Component = ComponentHelper.FromType(typeof(ServerFiles)) Component = ComponentHelper.FromType(typeof(ServerFiles))
}); });
@@ -265,7 +265,7 @@
{ {
Name = "Backups", Name = "Backups",
Route = "/backups", Route = "/backups",
Icon = "box", Icon = "bx-box",
Component = ComponentHelper.FromType(typeof(ServerBackups)) Component = ComponentHelper.FromType(typeof(ServerBackups))
}); });
@@ -273,7 +273,7 @@
{ {
Name = "Network", Name = "Network",
Route = "/network", Route = "/network",
Icon = "wifi", Icon = "bx-wifi",
Component = ComponentHelper.FromType(typeof(ServerNetwork)) Component = ComponentHelper.FromType(typeof(ServerNetwork))
}); });
@@ -281,7 +281,7 @@
{ {
Name = "Settings", Name = "Settings",
Route = "/settings", Route = "/settings",
Icon = "cog", Icon = "bx-cog",
Component = ComponentHelper.FromType(typeof(ServerSettings)) Component = ComponentHelper.FromType(typeof(ServerSettings))
}); });

View File

@@ -130,7 +130,7 @@
{ {
<li class="nav-item w-100 me-0 mb-md-2"> <li class="nav-item w-100 me-0 mb-md-2">
<a href="/server/@(CurrentServer.Uuid + tab.Route)" class="nav-link w-100 btn btn-flex @(Route == tab.Route ? "active" : "") btn-active-light-primary"> <a href="/server/@(CurrentServer.Uuid + tab.Route)" class="nav-link w-100 btn btn-flex @(Route == tab.Route ? "active" : "") btn-active-light-primary">
<i class="bx bx-@(tab.Icon) bx-sm me-2"></i> <i class="bx @(tab.Icon) bx-sm me-2"></i>
<span class="d-flex flex-column align-items-start"> <span class="d-flex flex-column align-items-start">
<span class="fs-5"> <span class="fs-5">
<TL>@(tab.Name)</TL> <TL>@(tab.Name)</TL>