feat: discover local ssh server (#921)
This commit is contained in:
@@ -36,7 +36,7 @@ final class _AppAboutPageState extends State<_AppAboutPage> with AutomaticKeepAl
|
||||
),
|
||||
Btn.elevated(
|
||||
icon: const Icon(MingCute.question_fill),
|
||||
text: l10n.license,
|
||||
text: libL10n.license,
|
||||
onTap: () => showLicensePage(context: context),
|
||||
),
|
||||
].joinWith(UIs.width13),
|
||||
|
||||
@@ -72,7 +72,7 @@ extension _App on _AppSettingsPageState {
|
||||
title: libL10n.setting,
|
||||
items: List.generate(10, (idx) => idx == 1 ? null : idx),
|
||||
initial: _setting.serverStatusUpdateInterval.fetch(),
|
||||
display: (p0) => p0 == 0 ? l10n.manual : '$p0 ${l10n.second}',
|
||||
display: (p0) => p0 == 0 ? libL10n.manual : '$p0 ${l10n.second}',
|
||||
);
|
||||
if (val != null) {
|
||||
_setting.serverStatusUpdateInterval.put(val);
|
||||
|
||||
@@ -42,7 +42,7 @@ extension _SFTP on _AppSettingsPageState {
|
||||
return _setting.sftpEditor.listenable().listenVal((val) {
|
||||
return ListTile(
|
||||
leading: const Icon(MingCute.edit_fill),
|
||||
title: TipText(l10n.editor, l10n.sftpEditorTip),
|
||||
title: TipText(libL10n.editor, l10n.sftpEditorTip),
|
||||
trailing: Text(val.isEmpty ? l10n.inner : val, style: UIs.text15),
|
||||
onTap: () async {
|
||||
final ctrl = TextEditingController(text: val);
|
||||
@@ -57,7 +57,7 @@ extension _SFTP on _AppSettingsPageState {
|
||||
child: Input(
|
||||
controller: ctrl,
|
||||
autoFocus: true,
|
||||
label: l10n.editor,
|
||||
label: libL10n.editor,
|
||||
hint: '\$EDITOR / vim / nano ...',
|
||||
icon: Icons.edit,
|
||||
suggestion: false,
|
||||
|
||||
@@ -38,14 +38,14 @@ extension _SSH on _AppSettingsPageState {
|
||||
Widget _buildFont() {
|
||||
return ListTile(
|
||||
leading: const Icon(MingCute.font_fill),
|
||||
title: Text(l10n.font),
|
||||
title: Text(libL10n.font),
|
||||
trailing: _setting.fontPath.listenable().listenVal((val) {
|
||||
final fontName = val.getFileName();
|
||||
return Text(fontName ?? libL10n.empty, style: UIs.text15);
|
||||
}),
|
||||
onTap: () {
|
||||
context.showRoundDialog(
|
||||
title: l10n.font,
|
||||
title: libL10n.font,
|
||||
actions: [
|
||||
TextButton(onPressed: () async => await _pickFontFile(), child: Text(libL10n.file)),
|
||||
TextButton(
|
||||
|
||||
@@ -123,7 +123,7 @@ final class _AppSettingsPageState extends ConsumerState<AppSettingsPage> {
|
||||
[const CenterGreyTitle('App'), _buildApp()],
|
||||
[CenterGreyTitle(l10n.server), _buildServer()],
|
||||
[const CenterGreyTitle('SSH'), _buildSSH(), const CenterGreyTitle('SFTP'), _buildSFTP()],
|
||||
[CenterGreyTitle(l10n.container), _buildContainer(), CenterGreyTitle(l10n.editor), _buildEditor()],
|
||||
[CenterGreyTitle(l10n.container), _buildContainer(), CenterGreyTitle(libL10n.editor), _buildEditor()],
|
||||
|
||||
/// Fullscreen Mode is designed for old mobile phone which can be
|
||||
/// used as a status screen.
|
||||
|
||||
Reference in New Issue
Block a user