chore: add contributors

This commit is contained in:
lollipopkit
2024-01-06 13:39:17 +08:00
parent c337e959b5
commit 7032677def
4 changed files with 31 additions and 34 deletions

View File

@@ -2,9 +2,9 @@
class BuildData {
static const String name = "ServerBox";
static const int build = 693;
static const int build = 700;
static const String engine = "3.16.5";
static const String buildAt = "2023-12-29 17:24:27";
static const int modifications = 5;
static const String buildAt = "2024-01-06 11:00:48";
static const int modifications = 4;
static const int script = 34;
}

View File

@@ -5,11 +5,13 @@ abstract final class GithubIds {
// If you want to change your Github ID, please open an issue.
static const contributors = <GhId>{
'its-tom',
'RainSunMe',
'kalashnikov',
'azkadev',
'kalashnikov',
'FrancXPT',
'RainSunMe',
'calvinweb',
'Liloupar'
'Liloupar',
'dccif',
};
static const participants = <GhId>{
'jaychoubaby',

View File

@@ -163,14 +163,9 @@ void _onTapMoreBtns(
}
}
Future<void> _gotoSSH(
ServerPrivateInfo spi,
BuildContext context,
) async {
// as a `Mobile first` app -> handle mobile first
//
void _gotoSSH(ServerPrivateInfo spi, BuildContext context) async {
// run built-in ssh on macOS due to incompatibility
if (!isDesktop || isMacOS) {
if (isMobile || isMacOS) {
AppRoute.ssh(spi: spi).go(context);
return;
}
@@ -196,12 +191,12 @@ Future<void> _gotoSSH(
}
final sshCommand = ["ssh", "${spi.user}@${spi.ip}"] + extraArgs;
final system = Platform.operatingSystem;
final system = OS.type;
switch (system) {
case "windows":
case OS.windows:
await Process.start("cmd", ["/c", "start"] + sshCommand);
break;
case "linux":
case OS.linux:
await Process.start("x-terminal-emulator", ["-e"] + sshCommand);
break;
default: