feature: In-App Simulation Runner (Backend)
CI / frontend (push) Canceled after 0s
CI / backend (push) Canceled after 8m32s

This commit is contained in:
voltsrage
2026-08-06 01:52:53 +08:00
parent 943d41339c
commit 24f45851e9
83 changed files with 3974 additions and 120 deletions
@@ -14,6 +14,8 @@ public enum AuditAction
AlertFeedbackSubmitted,
UserLogout,
TokenRefreshed,
SimulationRunStarted,
SimulationRunStopped,
}
public static class AuditActionExtensions
@@ -34,6 +36,8 @@ public static class AuditActionExtensions
AuditAction.AlertFeedbackSubmitted => "ALERT_FEEDBACK_SUBMITTED",
AuditAction.UserLogout => "USER_LOGOUT",
AuditAction.TokenRefreshed => "TOKEN_REFRESHED",
AuditAction.SimulationRunStarted => "SIMULATION_RUN_STARTED",
AuditAction.SimulationRunStopped => "SIMULATION_RUN_STOPPED",
_ => throw new ArgumentOutOfRangeException(nameof(a))
};
@@ -53,6 +57,8 @@ public static class AuditActionExtensions
"ALERT_FEEDBACK_SUBMITTED" => AuditAction.AlertFeedbackSubmitted,
"USER_LOGOUT" => AuditAction.UserLogout,
"TOKEN_REFRESHED" => AuditAction.TokenRefreshed,
"SIMULATION_RUN_STARTED" => AuditAction.SimulationRunStarted,
"SIMULATION_RUN_STOPPED" => AuditAction.SimulationRunStopped,
_ => throw new ArgumentOutOfRangeException(nameof(v))
};
}