From 827e0eae6c8ed08b005510d9cf63962199ae19b4 Mon Sep 17 00:00:00 2001 From: Leon Hoppe Date: Sun, 6 Jul 2025 16:35:46 +0200 Subject: [PATCH] Added audit log --- .idea/.idea.HopFrame/.idea/workspace.xml | 113 +++++++++--------- .../ServiceCollectionExtensions.cs | 1 + .../Services/IPrimaryKeyFinder.cs | 8 ++ .../Implementations/PrimaryKeyFinder.cs | 19 +++ .../AuditLogging/AuditLogContext.cs | 9 ++ .../AuditLogging/AuditLogEntry.cs | 28 +++++ .../AuditLogging/AuditLogPlugin.cs | 72 +++++++++++ .../AuditLogging/ConfiguratorExtensions.cs | 30 +++++ .../Components/Dialogs/HopFrameEditor.razor | 2 +- .../Components/Pages/HopFrameTablePage.razor | 62 +++++----- src/HopFrame.Web/Plugins/Events/EntryEvent.cs | 12 +- .../Plugins/Events/HopFrameEventArgs.cs | 13 +- .../Plugins/Events/PageChangeEvent.cs | 2 +- .../Plugins/Events/ReloadEvent.cs | 2 +- .../Plugins/Events/SearchEvent.cs | 2 +- .../Plugins/Events/TableInitializedEvent.cs | 4 +- .../Plugins/Events/ValidationEvent.cs | 2 +- .../Plugins/Internal/ExporterPlugin.cs | 17 +-- .../Plugins/Internal/PluginOrchestrator.cs | 10 +- src/HopFrame.Web/Services/IFileService.cs | 5 +- .../Services/Implementation/FileService.cs | 11 +- testing/HopFrame.Testing/AuthHandler.cs | 12 ++ testing/HopFrame.Testing/Program.cs | 7 ++ 23 files changed, 312 insertions(+), 131 deletions(-) create mode 100644 src/HopFrame.Core/Services/IPrimaryKeyFinder.cs create mode 100644 src/HopFrame.Core/Services/Implementations/PrimaryKeyFinder.cs create mode 100644 src/HopFrame.Web/AuditLogging/AuditLogContext.cs create mode 100644 src/HopFrame.Web/AuditLogging/AuditLogEntry.cs create mode 100644 src/HopFrame.Web/AuditLogging/AuditLogPlugin.cs create mode 100644 src/HopFrame.Web/AuditLogging/ConfiguratorExtensions.cs create mode 100644 testing/HopFrame.Testing/AuthHandler.cs diff --git a/.idea/.idea.HopFrame/.idea/workspace.xml b/.idea/.idea.HopFrame/.idea/workspace.xml index 85f3cbc..646e170 100644 --- a/.idea/.idea.HopFrame/.idea/workspace.xml +++ b/.idea/.idea.HopFrame/.idea/workspace.xml @@ -11,7 +11,31 @@