mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
opt.: systemd page (#851)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user