2
0
mirror of https://github.com/9ParsonsB/Pulsar.git synced 2025-07-01 16:33:43 -04:00

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:
2024-05-15 01:00:56 +10:00
parent bd811c861c
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)