Browse Source

Merge pull request #274 from Moonlight-Panel/ImproveServerTabIconHandling

Improved server tab icon handling
Marcel Baumgartner 1 year ago
parent
commit
b8b2ae7865

+ 0 - 1
Moonlight/Moonlight.csproj

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

+ 5 - 5
Moonlight/Shared/Views/Server/Index.razor

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

+ 1 - 1
Moonlight/Shared/Views/Server/ServerNavigation.razor

@@ -130,7 +130,7 @@
                     {
                         <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">
-                                <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="fs-5">
                                         <TL>@(tab.Name)</TL>