Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions lib/generated/l10n/l10n.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2039,6 +2039,18 @@ abstract class AppLocalizations {
/// In en, this message translates to:
/// **'Clear history'**
String get clearHistory;

/// No description provided for @portForwardBetaTitle.
///
/// In en, this message translates to:
/// **'Port Forward (Beta)'**
String get portForwardBetaTitle;

/// No description provided for @systemd.
///
/// In en, this message translates to:
/// **'Systemd'**
String get systemd;
}

class _AppLocalizationsDelegate
Expand Down
6 changes: 6 additions & 0 deletions lib/generated/l10n/l10n_de.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1114,4 +1114,10 @@ class AppLocalizationsDe extends AppLocalizations {

@override
String get clearHistory => 'Clear history';

@override
String get portForwardBetaTitle => 'Port Forwarding (Beta)';

@override
String get systemd => 'Systemd';
}
6 changes: 6 additions & 0 deletions lib/generated/l10n/l10n_en.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1104,4 +1104,10 @@ class AppLocalizationsEn extends AppLocalizations {

@override
String get clearHistory => 'Clear history';

@override
String get portForwardBetaTitle => 'Port Forward (Beta)';

@override
String get systemd => 'Systemd';
}
6 changes: 6 additions & 0 deletions lib/generated/l10n/l10n_es.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1116,4 +1116,10 @@ class AppLocalizationsEs extends AppLocalizations {

@override
String get clearHistory => 'Clear history';

@override
String get portForwardBetaTitle => 'Port Forward (Beta)';

@override
String get systemd => 'Systemd';
}
6 changes: 6 additions & 0 deletions lib/generated/l10n/l10n_fr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1119,4 +1119,10 @@ class AppLocalizationsFr extends AppLocalizations {

@override
String get clearHistory => 'Clear history';

@override
String get portForwardBetaTitle => 'Transfert de port (Beta)';

@override
String get systemd => 'Systemd';
}
6 changes: 6 additions & 0 deletions lib/generated/l10n/l10n_id.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1105,4 +1105,10 @@ class AppLocalizationsId extends AppLocalizations {

@override
String get clearHistory => 'Clear history';

@override
String get portForwardBetaTitle => 'Port Forward (Beta)';

@override
String get systemd => 'Systemd';
}
6 changes: 6 additions & 0 deletions lib/generated/l10n/l10n_it.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1111,4 +1111,10 @@ class AppLocalizationsIt extends AppLocalizations {

@override
String get clearHistory => 'Clear history';

@override
String get portForwardBetaTitle => 'Port Forward (Beta)';

@override
String get systemd => 'Systemd';
}
6 changes: 6 additions & 0 deletions lib/generated/l10n/l10n_ja.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1075,4 +1075,10 @@ class AppLocalizationsJa extends AppLocalizations {

@override
String get clearHistory => 'Clear history';

@override
String get portForwardBetaTitle => 'Port Forward (Beta)';

@override
String get systemd => 'Systemd';
}
6 changes: 6 additions & 0 deletions lib/generated/l10n/l10n_ko.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1074,4 +1074,10 @@ class AppLocalizationsKo extends AppLocalizations {

@override
String get clearHistory => 'Clear history';

@override
String get portForwardBetaTitle => '포트 포워딩 (Beta)';

@override
String get systemd => 'Systemd';
}
6 changes: 6 additions & 0 deletions lib/generated/l10n/l10n_nl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1111,4 +1111,10 @@ class AppLocalizationsNl extends AppLocalizations {

@override
String get clearHistory => 'Clear history';

@override
String get portForwardBetaTitle => 'Port Forward (Beta)';

@override
String get systemd => 'Systemd';
}
6 changes: 6 additions & 0 deletions lib/generated/l10n/l10n_pt.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1107,4 +1107,10 @@ class AppLocalizationsPt extends AppLocalizations {

@override
String get clearHistory => 'Clear history';

@override
String get portForwardBetaTitle => 'Port Forward (Beta)';

@override
String get systemd => 'Systemd';
}
6 changes: 6 additions & 0 deletions lib/generated/l10n/l10n_ru.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1110,4 +1110,10 @@ class AppLocalizationsRu extends AppLocalizations {

@override
String get clearHistory => 'Clear history';

@override
String get portForwardBetaTitle => 'Port Forward (Beta)';

@override
String get systemd => 'Systemd';
}
6 changes: 6 additions & 0 deletions lib/generated/l10n/l10n_tr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1105,4 +1105,10 @@ class AppLocalizationsTr extends AppLocalizations {

@override
String get clearHistory => 'Clear history';

@override
String get portForwardBetaTitle => 'Port Forward (Beta)';

@override
String get systemd => 'Systemd';
}
6 changes: 6 additions & 0 deletions lib/generated/l10n/l10n_uk.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1110,4 +1110,10 @@ class AppLocalizationsUk extends AppLocalizations {

@override
String get clearHistory => 'Clear history';

@override
String get portForwardBetaTitle => 'Port Forward (Beta)';

@override
String get systemd => 'Systemd';
}
12 changes: 12 additions & 0 deletions lib/generated/l10n/l10n_zh.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1041,6 +1041,12 @@ class AppLocalizationsZh extends AppLocalizations {

@override
String get clearHistory => '清空历史';

@override
String get portForwardBetaTitle => '端口映射 (Beta)';

@override
String get systemd => 'Systemd';
}

/// The translations for Chinese, as used in Taiwan (`zh_TW`).
Expand Down Expand Up @@ -1971,4 +1977,10 @@ class AppLocalizationsZhTw extends AppLocalizationsZh {

@override
String get sponsor => '贊助';

@override
String get portForwardBetaTitle => 'Port Forward (Beta)';

@override
String get systemd => 'Systemd';
}
4 changes: 3 additions & 1 deletion lib/l10n/app_de.arb
Original file line number Diff line number Diff line change
Expand Up @@ -253,5 +253,7 @@
"writeScriptFailTip": "Das Schreiben des Skripts ist fehlgeschlagen, möglicherweise aufgrund fehlender Berechtigungen oder das Verzeichnis existiert nicht.",
"writeScriptTip": "Nach der Verbindung mit dem Server wird ein Skript in `~/.config/server_box` \n | `/tmp/server_box` geschrieben, um den Systemstatus zu überwachen. Sie können den Skriptinhalt überprüfen.",
"podmanDockerEmulationDetected": "Podman Docker-Emulation erkannt. Bitte wechseln Sie in den Einstellungen zu Podman.",
"sponsor": "Sponsor"
"sponsor": "Sponsor",
"portForwardBetaTitle": "Port Forwarding (Beta)",
"systemd": "Systemd"
}
4 changes: 3 additions & 1 deletion lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -332,5 +332,7 @@
"descending": "Descending",
"searchServer": "Search server",
"serverHistory": "Server history",
"clearHistory": "Clear history"
"clearHistory": "Clear history",
"portForwardBetaTitle": "Port Forward (Beta)",
"systemd": "Systemd"
}
4 changes: 3 additions & 1 deletion lib/l10n/app_es.arb
Original file line number Diff line number Diff line change
Expand Up @@ -253,5 +253,7 @@
"writeScriptFailTip": "La escritura en el script falló, posiblemente por falta de permisos o porque el directorio no existe.",
"writeScriptTip": "Después de conectarse al servidor, se escribirá un script en `~/.config/server_box` \n | `/tmp/server_box` para monitorear el estado del sistema. Puedes revisar el contenido del script.",
"podmanDockerEmulationDetected": "Detectada emulación de Podman Docker. Por favor, cambie a Podman en la configuración.",
"sponsor": "Patrocinador"
"sponsor": "Patrocinador",
"portForwardBetaTitle": "Port Forward (Beta)",
"systemd": "Systemd"
}
4 changes: 3 additions & 1 deletion lib/l10n/app_fr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -253,5 +253,7 @@
"writeScriptFailTip": "Échec de l'écriture dans le script, probablement en raison d'un manque de permissions ou que le répertoire n'existe pas.",
"writeScriptTip": "Après la connexion au serveur, un script sera écrit dans `~/.config/server_box` \n | `/tmp/server_box` pour surveiller l'état du système. Vous pouvez examiner le contenu du script.",
"podmanDockerEmulationDetected": "Émulation Podman Docker détectée. Veuillez passer à Podman dans les paramètres.",
"sponsor": "Soutenir"
"sponsor": "Soutenir",
"portForwardBetaTitle": "Transfert de port (Beta)",
"systemd": "Systemd"
}
4 changes: 3 additions & 1 deletion lib/l10n/app_id.arb
Original file line number Diff line number Diff line change
Expand Up @@ -253,5 +253,7 @@
"writeScriptFailTip": "Penulisan ke skrip gagal, mungkin karena tidak ada izin atau direktori tidak ada.",
"writeScriptTip": "Setelah terhubung ke server, sebuah skrip akan ditulis ke `~/.config/server_box` \n | `/tmp/server_box` untuk memantau status sistem. Anda dapat meninjau konten skrip tersebut.",
"podmanDockerEmulationDetected": "Emulasi Podman Docker terdeteksi. Silakan beralih ke Podman di pengaturan.",
"sponsor": "Sponsor"
"sponsor": "Sponsor",
"portForwardBetaTitle": "Port Forward (Beta)",
"systemd": "Systemd"
}
4 changes: 3 additions & 1 deletion lib/l10n/app_it.arb
Original file line number Diff line number Diff line change
Expand Up @@ -258,5 +258,7 @@
"writeScriptTip": "Dopo essersi connessi al server, uno script verrà scritto in `~/.config/server_box` \n | `/tmp/server_box` per monitorare lo stato del sistema. Puoi rivedere il contenuto dello script.",
"menuGitHubRepository": "Repository GitHub",
"podmanDockerEmulationDetected": "Rilevata emulazione Docker Podman. Passa a Podman nelle impostazioni.",
"sponsor": "Sponsor"
"sponsor": "Sponsor",
"portForwardBetaTitle": "Port Forward (Beta)",
"systemd": "Systemd"
}
4 changes: 3 additions & 1 deletion lib/l10n/app_ja.arb
Original file line number Diff line number Diff line change
Expand Up @@ -253,5 +253,7 @@
"writeScriptFailTip": "スクリプトの書き込みに失敗しました。権限がないかディレクトリが存在しない可能性があります。",
"writeScriptTip": "サーバーへの接続後、システムステータスを監視するスクリプトが `~/.config/server_box` \n | `/tmp/server_box` に書き込まれます。スクリプトの内容を確認できます。",
"podmanDockerEmulationDetected": "Podman Docker エミュレーションが検出されました。設定で Podman に切り替えてください。",
"sponsor": "赞助"
"sponsor": "赞助",
"portForwardBetaTitle": "Port Forward (Beta)",
"systemd": "Systemd"
}
4 changes: 3 additions & 1 deletion lib/l10n/app_ko.arb
Original file line number Diff line number Diff line change
Expand Up @@ -258,5 +258,7 @@
"writeScriptTip": "서버 연결 후 시스템 상태를 모니터링하기 위한 스크립트가 `~/.config/server_box` \n | `/tmp/server_box`에 작성됩니다. 스크립트 내용을 확인할 수 있습니다.",
"menuGitHubRepository": "GitHub 저장소",
"podmanDockerEmulationDetected": "Podman Docker 에뮬레이션이 감지되었습니다. 설정에서 Podman으로 전환해 주세요.",
"sponsor": "후원"
"sponsor": "후원",
"portForwardBetaTitle": "포트 포워딩 (Beta)",
"systemd": "Systemd"
}
4 changes: 3 additions & 1 deletion lib/l10n/app_nl.arb
Original file line number Diff line number Diff line change
Expand Up @@ -253,5 +253,7 @@
"writeScriptFailTip": "Het schrijven naar het script is mislukt, mogelijk door gebrek aan rechten of omdat de map niet bestaat.",
"writeScriptTip": "Na het verbinden met de server wordt een script geschreven naar `~/.config/server_box` \n | `/tmp/server_box` om de systeemstatus te monitoren. U kunt de inhoud van het script controleren.",
"podmanDockerEmulationDetected": "Podman Docker-emulatie gedetecteerd. Schakel over naar Podman in de instellingen.",
"sponsor": "Sponsor"
"sponsor": "Sponsor",
"portForwardBetaTitle": "Port Forward (Beta)",
"systemd": "Systemd"
}
4 changes: 3 additions & 1 deletion lib/l10n/app_pt.arb
Original file line number Diff line number Diff line change
Expand Up @@ -253,5 +253,7 @@
"writeScriptFailTip": "Falha ao escrever no script, possivelmente devido à falta de permissões ou o diretório não existe.",
"writeScriptTip": "Após conectar ao servidor, um script será escrito em `~/.config/server_box` \n | `/tmp/server_box` para monitorar o status do sistema. Você pode revisar o conteúdo do script.",
"podmanDockerEmulationDetected": "Emulação Podman Docker detectada. Por favor, alterne para Podman nas configurações.",
"sponsor": "Patrocinador"
"sponsor": "Patrocinador",
"portForwardBetaTitle": "Port Forward (Beta)",
"systemd": "Systemd"
}
4 changes: 3 additions & 1 deletion lib/l10n/app_ru.arb
Original file line number Diff line number Diff line change
Expand Up @@ -253,5 +253,7 @@
"writeScriptFailTip": "Запись скрипта не удалась, возможно, из-за отсутствия прав или потому что, директории не существует.",
"writeScriptTip": "После подключения к серверу скрипт будет записан в `~/.config/server_box` \n | `/tmp/server_box` для мониторинга состояния системы. Вы можете проверить содержимое скрипта.",
"podmanDockerEmulationDetected": "Обнаружена эмуляция Podman Docker. Пожалуйста, переключитесь на Podman в настройках.",
"sponsor": "Спонсор"
"sponsor": "Спонсор",
"portForwardBetaTitle": "Port Forward (Beta)",
"systemd": "Systemd"
}
4 changes: 3 additions & 1 deletion lib/l10n/app_tr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -253,5 +253,7 @@
"writeScriptFailTip": "Betik yazma başarısız oldu, muhtemelen izin eksikliği veya dizin mevcut değil.",
"writeScriptTip": "Sunucuya bağlandıktan sonra, sistem durumunu izlemek için `~/.config/server_box` \n | `/tmp/server_box` dizinine bir betik yazılacak. Betik içeriğini inceleyebilirsiniz.",
"podmanDockerEmulationDetected": "Podman Docker emülasyonu tespit edildi. Lütfen ayarlarda Podman'a geçin.",
"sponsor": "Sponsor"
"sponsor": "Sponsor",
"portForwardBetaTitle": "Port Forward (Beta)",
"systemd": "Systemd"
}
4 changes: 3 additions & 1 deletion lib/l10n/app_uk.arb
Original file line number Diff line number Diff line change
Expand Up @@ -254,5 +254,7 @@
"writeScriptFailTip": "Запис у скрипт не вдався, можливо, через брак дозволів або каталог не існує.",
"writeScriptTip": "Після підключення до сервера скрипт буде записано у `~/.config/server_box` \n | `/tmp/server_box` для моніторингу стану системи. Ви можете переглянути вміст скрипта.",
"podmanDockerEmulationDetected": "Виявлено емуляцію Podman Docker. Будь ласка, переключіться на Podman у налаштуваннях.",
"sponsor": "Спонсор"
"sponsor": "Спонсор",
"portForwardBetaTitle": "Port Forward (Beta)",
"systemd": "Systemd"
}
4 changes: 3 additions & 1 deletion lib/l10n/app_zh.arb
Original file line number Diff line number Diff line change
Expand Up @@ -319,5 +319,7 @@
,
"jumpServerAndProxyCommandCannotBeUsedTogether": "跳板服务器与 ProxyCommand 不能同时使用。"
,
"proxyCommandOnlySupportedOnDesktop": "ProxyCommand 仅支持桌面平台。"
"proxyCommandOnlySupportedOnDesktop": "ProxyCommand 仅支持桌面平台。",
"portForwardBetaTitle": "端口映射 (Beta)",
"systemd": "Systemd"
}
4 changes: 3 additions & 1 deletion lib/l10n/app_zh_tw.arb
Original file line number Diff line number Diff line change
Expand Up @@ -288,5 +288,7 @@
"writeScriptFailTip": "寫入腳本失敗,可能是沒有權限/目錄不存在等。",
"writeScriptTip": "連線到伺服器後,將會在 `~/.config/server_box` \n | `/tmp/server_box` 中寫入一個腳本來監測系統狀態。你可以審查腳本內容。",
"podmanDockerEmulationDetected": "檢測到 Podman Docker 仿真。請在設定中切換到 Podman。",
"sponsor": "贊助"
"sponsor": "贊助",
"portForwardBetaTitle": "Port Forward (Beta)",
"systemd": "Systemd"
}
11 changes: 2 additions & 9 deletions lib/view/page/container/container.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,12 @@ class ContainerPage extends ConsumerStatefulWidget {
}

class _ContainerPageState extends ConsumerState<ContainerPage> {
final _textController = TextEditingController();
late final ContainerNotifierProvider _provider;
Timer? _autoRefreshTimer;

@override
void dispose() {
_autoRefreshTimer?.cancel();
_textController.dispose();
super.dispose();
}

Expand Down Expand Up @@ -84,7 +82,7 @@ class _ContainerPageState extends ConsumerState<ContainerPage> {

Widget _buildFAB() {
return FloatingActionButton(
onPressed: () async => await _showAddFAB(),
onPressed: () => _showAddFAB(),
child: const Icon(Icons.add),
);
}
Expand Down Expand Up @@ -182,7 +180,7 @@ class _ContainerPageState extends ConsumerState<ContainerPage> {
children: [
const Center(child: CircularProgressIndicator()),
UIs.height13,
Text(containerState.runLog ?? '...'),
Text(containerState.runLog!),
],
),
);
Expand Down Expand Up @@ -231,7 +229,6 @@ class _ContainerPageState extends ConsumerState<ContainerPage> {
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(item.name ?? l10n.unknown, style: UIs.text15),
const SizedBox(height: 3),
_buildMoreBtn(item),
],
),
Expand Down Expand Up @@ -348,8 +345,6 @@ class _ContainerPageState extends ConsumerState<ContainerPage> {
}

Widget get _buildPruneBtns {
final len = _PruneTypes.values.length;
if (len == 0) return UIs.placeholder;
return ExpandTile(
leading: const Icon(Icons.delete),
title: Text(libL10n.prune),
Expand Down Expand Up @@ -379,8 +374,6 @@ class _ContainerPageState extends ConsumerState<ContainerPage> {
}

Widget get _buildSettingsBtns {
final len = _SettingsMenuItems.values.length;
if (len == 0) return UIs.placeholder;
final containerState = _containerState;

return ExpandTile(
Expand Down
Loading