From abddf5e9aa4578635599b3d35931df51953681d1 Mon Sep 17 00:00:00 2001 From: Slendy Date: Sat, 1 Oct 2022 16:28:52 -0500 Subject: [PATCH] Add timestamps to logs and cleanup some code --- .../Pages/Partials/SlotCardPartial.cshtml | 6 +-- .../Pages/SlotSettingsPage.cshtml | 11 +++--- .../Commands/CreateAPIKeyCommand.cs | 5 +-- ProjectLighthouse/Helpers/InfluxHelper.cs | 4 +- ProjectLighthouse/Logging/Logger.cs | 38 +++++++++---------- .../AspNet/AspNetToLighthouseLogger.cs | 4 +- .../Logging/Loggers/ConsoleLogger.cs | 12 +++++- .../Logging/Loggers/FileLogger.cs | 6 +-- 8 files changed, 46 insertions(+), 40 deletions(-) diff --git a/ProjectLighthouse.Servers.Website/Pages/Partials/SlotCardPartial.cshtml b/ProjectLighthouse.Servers.Website/Pages/Partials/SlotCardPartial.cshtml index aa166760..9eb747d2 100644 --- a/ProjectLighthouse.Servers.Website/Pages/Partials/SlotCardPartial.cshtml +++ b/ProjectLighthouse.Servers.Website/Pages/Partials/SlotCardPartial.cshtml @@ -40,12 +40,12 @@ @{ int size = isMobile || mini ? 50 : 100; bool isAdventure = Model.IsAdventurePlanet; - string advenStyleExt = isAdventure ? "-webkit-mask-image: url(/assets/advSlotCardMask.png); -webkit-mask-size: contain; border-radius: 0%;" : ""; + string adventureStyle = isAdventure ? "-webkit-mask-image: url(/assets/advSlotCardMask.png); -webkit-mask-size: contain; border-radius: 0%;" : ""; }
- - +
diff --git a/ProjectLighthouse.Servers.Website/Pages/SlotSettingsPage.cshtml b/ProjectLighthouse.Servers.Website/Pages/SlotSettingsPage.cshtml index f6be5501..fcd3d7d0 100644 --- a/ProjectLighthouse.Servers.Website/Pages/SlotSettingsPage.cshtml +++ b/ProjectLighthouse.Servers.Website/Pages/SlotSettingsPage.cshtml @@ -4,7 +4,6 @@ @using LBPUnion.ProjectLighthouse.Extensions @using LBPUnion.ProjectLighthouse.Helpers @using LBPUnion.ProjectLighthouse.Levels -@using LBPUnion.ProjectLighthouse.Localization.StringLists @using LBPUnion.ProjectLighthouse.PlayerData @model LBPUnion.ProjectLighthouse.Servers.Website.Pages.SlotSettingsPage @@ -18,7 +17,7 @@ int size = isMobile ? 100 : 200; bool isAdventure = Model.Slot?.IsAdventurePlanet ?? false; - string advenStyleExt = isAdventure ? "-webkit-mask-image: url(/assets/advSlotCardMask.png); -webkit-mask-size: contain; border-radius: 0%;" : ""; + string adventureStyle = isAdventure ? "-webkit-mask-image: url(/assets/advSlotCardMask.png); -webkit-mask-size: contain; border-radius: 0%;" : ""; }