Switched to postgresql. Documented startup. Updated dbcontext register call. Added virtual plugin manifest loading
This commit is contained in:
@@ -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
|
||||
}
|
||||
]
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -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, [
|
||||
|
||||
Reference in New Issue
Block a user