Started implementing fronted configuration. Upgraded mooncore. Made database calls asnyc
This commit is contained in:
22
Moonlight.Shared/Misc/FrontendConfiguration.cs
Normal file
22
Moonlight.Shared/Misc/FrontendConfiguration.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user