Started implementing fronted configuration. Upgraded mooncore. Made database calls asnyc

This commit is contained in:
2025-01-06 22:36:21 +01:00
parent d477e803ab
commit 8372cfad1b
12 changed files with 231 additions and 186 deletions

View File

@@ -0,0 +1,22 @@
namespace Moonlight.Shared.Misc;
public class FrontendConfiguration
{
public string Title { get; set; }
public string ApiUrl { get; set; }
public string HostEnvironment { get; set; }
public ThemeData Theme { get; set; } = new();
public string[] Scripts { get; set; }
public PluginData Plugins { get; set; } = new();
public class ThemeData
{
public Dictionary<string, Dictionary<int, string>> Variables { get; set; } = new();
}
public class PluginData
{
public string[] Assemblies { get; set; }
public string[] Entrypoints { get; set; }
}
}