Switched to postgresql. Documented startup. Updated dbcontext register call. Added virtual plugin manifest loading

This commit is contained in:
2025-02-26 22:39:48 +01:00
parent a8d867c3c7
commit 8f1cc29b8d
20 changed files with 555 additions and 2437 deletions

View File

@@ -5,25 +5,26 @@ namespace MoonlightServers.Frontend.Implementations;
public class SidebarImplementation : ISidebarItemProvider
{
public SidebarItem[] Get()
public void ModifySidebar(List<SidebarItem> items)
{
return
[
new SidebarItem()
{
Name = "Servers",
Path = "/servers",
Icon = "icon-server",
Priority = 4
},
new SidebarItem()
{
Name = "Servers",
Path = "/admin/servers",
Icon = "icon-server",
Group = "Admin",
Priority = 4
}
];
items.AddRange(
[
new SidebarItem()
{
Name = "Servers",
Path = "/servers",
Icon = "icon-server",
Priority = 4
},
new SidebarItem()
{
Name = "Servers",
Path = "/admin/servers",
Icon = "icon-server",
Group = "Admin",
Priority = 4
}
]
);
}
}

View File

@@ -1,5 +1,13 @@
using Moonlight.Client;
// Development Client Startup
// This file is a small helper for development instances for moonlight.
// It calls the moonlight startup with the current project loaded as a plugin.
// This allows you to develop and debug projects without any hassle
// !!! DO NOT HARDCORE ANY SECRETS HERE !!!
var startup = new Startup();
await startup.Run(args, [