Skip to content

Commit

Permalink
fix #214
Browse files Browse the repository at this point in the history
  • Loading branch information
lollipopkit committed Nov 13, 2023
1 parent b2f6094 commit d3a6b16
Show file tree
Hide file tree
Showing 14 changed files with 34 additions and 50 deletions.
6 changes: 0 additions & 6 deletions .dart_tool/flutter_gen/gen_l10n/l10n.dart
Original file line number Diff line number Diff line change
Expand Up @@ -530,12 +530,6 @@ abstract class S {
/// **'Extra args'**
String get extraArgs;

/// No description provided for @fabOpenSSHSession.
///
/// In en, this message translates to:
/// **'Click the FAB to open a session'**
String get fabOpenSSHSession;

/// No description provided for @failed.
///
/// In en, this message translates to:
Expand Down
3 changes: 0 additions & 3 deletions .dart_tool/flutter_gen/gen_l10n/l10n_de.dart
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,6 @@ class SDe extends S {
@override
String get extraArgs => 'Extra args';

@override
String get fabOpenSSHSession => 'Klicken Sie auf die FAB, um eine Sitzung zu öffnen';

@override
String get failed => 'Failed';

Expand Down
3 changes: 0 additions & 3 deletions .dart_tool/flutter_gen/gen_l10n/l10n_en.dart
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,6 @@ class SEn extends S {
@override
String get extraArgs => 'Extra args';

@override
String get fabOpenSSHSession => 'Click the FAB to open a session';

@override
String get failed => 'Failed';

Expand Down
3 changes: 0 additions & 3 deletions .dart_tool/flutter_gen/gen_l10n/l10n_id.dart
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,6 @@ class SId extends S {
@override
String get extraArgs => 'Args ekstra';

@override
String get fabOpenSSHSession => 'Klik FAB untuk membuka sesi';

@override
String get failed => 'Gagal';

Expand Down
6 changes: 0 additions & 6 deletions .dart_tool/flutter_gen/gen_l10n/l10n_zh.dart
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,6 @@ class SZh extends S {
@override
String get extraArgs => '额外参数';

@override
String get fabOpenSSHSession => '点击右下FAB来开启新的SSH终端';

@override
String get failed => '失败';

Expand Down Expand Up @@ -1022,9 +1019,6 @@ class SZhTw extends SZh {
@override
String get extraArgs => '額外參數';

@override
String get fabOpenSSHSession => '點擊右下FAB來開啟新的SSH終端';

@override
String get failed => '失敗';

Expand Down
36 changes: 18 additions & 18 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CURRENT_PROJECT_VERSION = 636;
CURRENT_PROJECT_VERSION = 638;
DEVELOPMENT_TEAM = BA88US33G6;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = "Runner/Info-$(CONFIGURATION).plist";
Expand All @@ -596,7 +596,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0.636;
MARKETING_VERSION = 1.0.638;
PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
Expand Down Expand Up @@ -720,7 +720,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CURRENT_PROJECT_VERSION = 636;
CURRENT_PROJECT_VERSION = 638;
DEVELOPMENT_TEAM = BA88US33G6;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = "Runner/Info-$(CONFIGURATION).plist";
Expand All @@ -730,7 +730,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0.636;
MARKETING_VERSION = 1.0.638;
PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
Expand All @@ -748,7 +748,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CURRENT_PROJECT_VERSION = 636;
CURRENT_PROJECT_VERSION = 638;
DEVELOPMENT_TEAM = BA88US33G6;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = "Runner/Info-$(CONFIGURATION).plist";
Expand All @@ -758,7 +758,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0.636;
MARKETING_VERSION = 1.0.638;
PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
Expand All @@ -779,7 +779,7 @@
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 636;
CURRENT_PROJECT_VERSION = 638;
DEVELOPMENT_TEAM = BA88US33G6;
GCC_C_LANGUAGE_STANDARD = gnu11;
GENERATE_INFOPLIST_FILE = YES;
Expand All @@ -792,7 +792,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 1.0.636;
MARKETING_VERSION = 1.0.638;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox.StatusWidget;
Expand All @@ -818,7 +818,7 @@
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 636;
CURRENT_PROJECT_VERSION = 638;
DEVELOPMENT_TEAM = BA88US33G6;
GCC_C_LANGUAGE_STANDARD = gnu11;
GENERATE_INFOPLIST_FILE = YES;
Expand All @@ -831,7 +831,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 1.0.636;
MARKETING_VERSION = 1.0.638;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox.StatusWidget;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -854,7 +854,7 @@
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 636;
CURRENT_PROJECT_VERSION = 638;
DEVELOPMENT_TEAM = BA88US33G6;
GCC_C_LANGUAGE_STANDARD = gnu11;
GENERATE_INFOPLIST_FILE = YES;
Expand All @@ -867,7 +867,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 1.0.636;
MARKETING_VERSION = 1.0.638;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox.StatusWidget;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -890,7 +890,7 @@
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 636;
CURRENT_PROJECT_VERSION = 638;
DEVELOPMENT_ASSET_PATHS = "";
DEVELOPMENT_TEAM = BA88US33G6;
ENABLE_PREVIEWS = YES;
Expand All @@ -902,7 +902,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0.636;
MARKETING_VERSION = 1.0.638;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox.WatchEnd;
Expand Down Expand Up @@ -931,7 +931,7 @@
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 636;
CURRENT_PROJECT_VERSION = 638;
DEVELOPMENT_ASSET_PATHS = "";
DEVELOPMENT_TEAM = BA88US33G6;
ENABLE_PREVIEWS = YES;
Expand All @@ -943,7 +943,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0.636;
MARKETING_VERSION = 1.0.638;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox.WatchEnd;
PRODUCT_NAME = ServerBox;
Expand All @@ -969,7 +969,7 @@
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 636;
CURRENT_PROJECT_VERSION = 638;
DEVELOPMENT_ASSET_PATHS = "";
DEVELOPMENT_TEAM = BA88US33G6;
ENABLE_PREVIEWS = YES;
Expand All @@ -981,7 +981,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0.636;
MARKETING_VERSION = 1.0.638;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox.WatchEnd;
PRODUCT_NAME = ServerBox;
Expand Down
6 changes: 3 additions & 3 deletions lib/data/res/build_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

class BuildData {
static const String name = "ServerBox";
static const int build = 636;
static const String engine = "3.13.8";
static const String buildAt = "2023-11-07 19:05:38";
static const int build = 638;
static const String engine = "3.13.9";
static const String buildAt = "2023-11-12 17:32:24";
static const int modifications = 2;
static const int script = 26;
}
1 change: 0 additions & 1 deletion lib/l10n/app_de.arb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
"experimentalFeature": "Experimentelles Feature",
"export": "Export",
"extraArgs": "Extra args",
"fabOpenSSHSession": "Klicken Sie auf die FAB, um eine Sitzung zu öffnen",
"failed": "Failed",
"feedback": "Feedback",
"feedbackOnGithub": "Wenn du Fragen hast, stelle diese bitte auf Github.",
Expand Down
1 change: 0 additions & 1 deletion lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
"experimentalFeature": "Experimental feature",
"export": "Export",
"extraArgs": "Extra args",
"fabOpenSSHSession": "Click the FAB to open a session",
"failed": "Failed",
"feedback": "Feedback",
"feedbackOnGithub": "If you have any questions, please feedback on Github.",
Expand Down
1 change: 0 additions & 1 deletion lib/l10n/app_id.arb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
"experimentalFeature": "Fitur eksperimental",
"export": "Ekspor",
"extraArgs": "Args ekstra",
"fabOpenSSHSession": "Klik FAB untuk membuka sesi",
"failed": "Gagal",
"feedback": "Masukan",
"feedbackOnGithub": "Jika Anda memiliki pertanyaan, silakan umpan balik tentang GitHub.",
Expand Down
1 change: 0 additions & 1 deletion lib/l10n/app_zh.arb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
"experimentalFeature": "实验性功能",
"export": "导出",
"extraArgs": "额外参数",
"fabOpenSSHSession": "点击右下FAB来开启新的SSH终端",
"failed": "失败",
"feedback": "反馈",
"feedbackOnGithub": "如果你有任何问题,请在GitHub反馈",
Expand Down
1 change: 0 additions & 1 deletion lib/l10n/app_zh_tw.arb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
"experimentalFeature": "實驗性功能",
"export": "導出",
"extraArgs": "額外參數",
"fabOpenSSHSession": "點擊右下FAB來開啟新的SSH終端",
"failed": "失敗",
"feedback": "反饋",
"feedbackOnGithub": "如果你有任何問題,請在GitHub反饋",
Expand Down
10 changes: 8 additions & 2 deletions lib/view/page/ssh/page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ const _echoPWD = 'echo \$PWD';
class SSHPage extends StatefulWidget {
final ServerPrivateInfo spi;
final String? initCmd;
const SSHPage({Key? key, required this.spi, this.initCmd}) : super(key: key);
final bool pop;
const SSHPage({
Key? key,
required this.spi,
this.initCmd,
this.pop = true,
}) : super(key: key);

@override
_SSHPageState createState() => _SSHPageState();
Expand Down Expand Up @@ -362,7 +368,7 @@ class _SSHPageState extends State<SSHPage> with AutomaticKeepAliveClientMixin {
}

await session.done;
if (mounted) {
if (mounted && widget.pop) {
context.pop();
}
}
Expand Down
6 changes: 5 additions & 1 deletion lib/view/page/ssh/tab.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ class _SSHTabPageState extends State<SSHTabPage>
UIs.width7,
InkWell(
borderRadius: BorderRadius.circular(17),
child: const Padding(padding: EdgeInsets.all(7), child: Icon(Icons.close, size: 17),),
child: const Padding(
padding: EdgeInsets.all(7),
child: Icon(Icons.close, size: 17),
),
onTap: () async {
final confirm = await context.showRoundDialog<bool>(
title: Text(l10n.attention),
Expand Down Expand Up @@ -110,6 +113,7 @@ class _SSHTabPageState extends State<SSHTabPage>
_tabIds[name] = SSHPage(
key: key,
spi: spi,
pop: false,
);
_tabKeys[name] = key;
_refreshTabs();
Expand Down

0 comments on commit d3a6b16

Please sign in to comment.