mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2026-01-31 13:25:10 +01:00
chore: add contributors
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user