diff --git a/.idea/.idea.HopFrame/.idea/workspace.xml b/.idea/.idea.HopFrame/.idea/workspace.xml
index 9b21c57..bd6cb12 100644
--- a/.idea/.idea.HopFrame/.idea/workspace.xml
+++ b/.idea/.idea.HopFrame/.idea/workspace.xml
@@ -12,13 +12,32 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
@@ -68,13 +87,16 @@
+
+
+
@@ -86,6 +108,7 @@
+
@@ -111,28 +134,28 @@
- {
- "keyToString": {
- ".NET Launch Settings Profile.HopFrame.Testing.Api: https.executor": "Run",
- ".NET Launch Settings Profile.HopFrame.Testing.executor": "Run",
- ".NET Launch Settings Profile.HopFrame.Testing: https.executor": "Run",
- ".NET Project.HopFrame.Testing.executor": "Run",
- "72b118b0-a6fc-4561-acdf-74f0b454dbb8.executor": "Debug",
- "RunOnceActivity.ShowReadmeOnStart": "true",
- "RunOnceActivity.git.unshallow": "true",
- "b5f11219-dfc4-47a1-b02c-90ab603034fb.executor": "Debug",
- "dcdf1689-dc07-47e4-8824-2e60a4fbf301.executor": "Debug",
- "git-widget-placeholder": "!29 on feature/custom-views",
- "list.type.of.created.stylesheet": "CSS",
- "node.js.detected.package.eslint": "true",
- "node.js.detected.package.tslint": "true",
- "node.js.selected.package.eslint": "(autodetect)",
- "node.js.selected.package.tslint": "(autodetect)",
- "nodejs_package_manager_path": "npm",
- "settings.editor.selected.configurable": "preferences.environmentSetup",
- "vue.rearranger.settings.migration": "true"
+
+}]]>
@@ -233,6 +256,9 @@
+
+
+
@@ -514,7 +540,15 @@
1738407710507
-
+
+
+ 1738422931038
+
+
+
+ 1738422931038
+
+
@@ -565,7 +599,6 @@
-
@@ -590,6 +623,7 @@
-
+
+
\ No newline at end of file
diff --git a/src/HopFrame.Core/Events/EventTypes.cs b/src/HopFrame.Core/Callbacks/CallbackTypes.cs
similarity index 66%
rename from src/HopFrame.Core/Events/EventTypes.cs
rename to src/HopFrame.Core/Callbacks/CallbackTypes.cs
index d2ad751..6a66864 100644
--- a/src/HopFrame.Core/Events/EventTypes.cs
+++ b/src/HopFrame.Core/Callbacks/CallbackTypes.cs
@@ -1,8 +1,8 @@
using HopFrame.Core.Config;
-namespace HopFrame.Core.Events;
+namespace HopFrame.Core.Callbacks;
-public static class EventTypes {
+public static class CallbackTypes {
private const string Prefix = "HopFrame.";
private const string CreateEntryPrefix = Prefix + "Entry.Create.";
@@ -13,18 +13,18 @@ public static class EventTypes {
public static string UpdateEntry(TableConfig config) => UpdateEntryPrefix + config.PropertyName;
public static string DeleteEntry(TableConfig config) => DeleteEntryPrefix + config.PropertyName;
- public static string ConstructEventName(EventType type, TableConfig config) {
+ public static string ConstructCallbackName(CallbackType type, TableConfig config) {
return type switch {
- EventType.CreateEntry => CreateEntry(config),
- EventType.UpdateEntry => UpdateEntry(config),
- EventType.DeleteEntry => DeleteEntry(config),
+ CallbackType.CreateEntry => CreateEntry(config),
+ CallbackType.UpdateEntry => UpdateEntry(config),
+ CallbackType.DeleteEntry => DeleteEntry(config),
_ => Prefix
};
}
}
-public enum EventType {
+public enum CallbackType {
CreateEntry = 0,
UpdateEntry = 1,
DeleteEntry = 2
diff --git a/src/HopFrame.Core/Events/HopEventHandler.cs b/src/HopFrame.Core/Callbacks/HopCallbackHandler.cs
similarity index 55%
rename from src/HopFrame.Core/Events/HopEventHandler.cs
rename to src/HopFrame.Core/Callbacks/HopCallbackHandler.cs
index b3767b4..ec61d0a 100644
--- a/src/HopFrame.Core/Events/HopEventHandler.cs
+++ b/src/HopFrame.Core/Callbacks/HopCallbackHandler.cs
@@ -1,6 +1,6 @@
-namespace HopFrame.Core.Events;
+namespace HopFrame.Core.Callbacks;
-public readonly struct HopEventHandler(string eventType, Func