Update Status, Power now look nice, also shows est refuel time

Status now shows alerts when taking damage
JournalService support more journals
Added enums to frontend, not quite working
Added More examples to Explorer component
This commit is contained in:
Ben Parsons 2024-05-15 01:00:56 +10:00
commit 2ac1a927ca
11 changed files with 310 additions and 39 deletions

View file

@ -10,7 +10,8 @@ public class JournalService(
ILogger<JournalService> logger,
IOptions<PulsarConfiguration> options,
IEventHubContext hub,
PulsarContext context
PulsarContext context,
IServiceProvider serviceProvider
) : IJournalService
{
public string FileName => FileHandlerService.JournalLogFileName;
@ -32,7 +33,7 @@ public class JournalService(
new JsonSerializerOptions
{
PropertyNameCaseInsensitive = true,
Converters = { new JournalConverter(logger) }
Converters = { ActivatorUtilities.CreateInstance<JournalConverter>(serviceProvider) }
}));
foreach (var journal in select)