mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-18 06:39:14 +00:00
35 lines
488 B
Dart
35 lines
488 B
Dart
enum LoadingStatus {
|
|
uninitialized,
|
|
refreshing,
|
|
success,
|
|
error,
|
|
}
|
|
|
|
enum InitializingSteps {
|
|
setHetznerKey,
|
|
setCloudFlareKey,
|
|
setDomainName,
|
|
setRootUser,
|
|
createServer,
|
|
checkCloudFlareDns,
|
|
startServer,
|
|
checkSystemDnsAndDkimSet,
|
|
}
|
|
|
|
enum Period {
|
|
hour,
|
|
day,
|
|
month;
|
|
|
|
int get stepPeriodInSeconds {
|
|
switch (this) {
|
|
case Period.hour:
|
|
return 18;
|
|
case Period.day:
|
|
return 432;
|
|
case Period.month:
|
|
return 6480;
|
|
}
|
|
}
|
|
}
|