Frontend first draft

This commit is contained in:
Arseni
2025-11-13 15:06:15 +03:00
parent e47f343afb
commit ddb54ddfdc
504 changed files with 25498 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
enum Effect {
allow,
deny,
}
extension EffectExtension on Effect {
String toShortString() => toString().split('.').last;
static Effect fromString(String value) => Effect.values.firstWhere(
(e) => e.toShortString() == value,
orElse: () => throw ArgumentError('Invalid effect: $value'),
);
}