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,15 @@
enum Action {
create,
read,
update,
delete,
}
extension ActionExtension on Action {
String toShortString() => toString().split('.').last;
static Action fromString(String value) => Action.values.firstWhere(
(e) => e.toShortString() == value,
orElse: () => throw ArgumentError('Invalid action: $value'),
);
}