opt.: systemd page (#851)

This commit is contained in:
lollipopkit🏳️‍⚧️
2025-08-13 22:16:55 +08:00
committed by GitHub
parent e4a9875620
commit ed8a1d18b9
10 changed files with 131 additions and 84 deletions

View File

@@ -1,5 +1,6 @@
import 'package:fl_lib/fl_lib.dart';
import 'package:flutter/material.dart';
import 'package:server_box/core/extension/context/locale.dart';
enum SystemdUnitFunc {
start,
@@ -49,6 +50,18 @@ enum SystemdUnitScope {
}
}
enum SystemdScopeFilter {
all,
system,
user;
String get displayName => switch (this) {
all => libL10n.all,
system => l10n.system,
user => libL10n.user,
};
}
enum SystemdUnitState {
active,
inactive,