last cleanup

This commit is contained in:
Dan Ballard 2021-11-02 15:10:36 -07:00
parent e9407ae426
commit 3e75c4d106
11 changed files with 43 additions and 12 deletions

View File

@ -1,6 +1,9 @@
{ {
"@@locale": "de", "@@locale": "de",
"@@last_modified": "2021-11-02T19:44:05+01:00", "@@last_modified": "2021-11-02T23:03:43+01:00",
"copyAddress": "Copy Address",
"settingServersDescription": "The hosting servers experiment enables hosting and managing Cwtch servers",
"settingServers": "Hosting Servers",
"enterServerPassword": "Enter password to unlock server", "enterServerPassword": "Enter password to unlock server",
"unlockProfileTip": "Please create or unlock a profile to begin!", "unlockProfileTip": "Please create or unlock a profile to begin!",
"unlockServerTip": "Please create or unlock a server to begin!", "unlockServerTip": "Please create or unlock a server to begin!",

View File

@ -1,6 +1,9 @@
{ {
"@@locale": "en", "@@locale": "en",
"@@last_modified": "2021-11-02T19:44:05+01:00", "@@last_modified": "2021-11-02T23:03:43+01:00",
"copyAddress": "Copy Address",
"settingServersDescription": "The hosting servers experiment enables hosting and managing Cwtch servers",
"settingServers": "Hosting Servers",
"enterServerPassword": "Enter password to unlock server", "enterServerPassword": "Enter password to unlock server",
"unlockProfileTip": "Please create or unlock a profile to begin!", "unlockProfileTip": "Please create or unlock a profile to begin!",
"unlockServerTip": "Please create or unlock a server to begin!", "unlockServerTip": "Please create or unlock a server to begin!",

View File

@ -1,6 +1,9 @@
{ {
"@@locale": "es", "@@locale": "es",
"@@last_modified": "2021-11-02T19:44:05+01:00", "@@last_modified": "2021-11-02T23:03:43+01:00",
"copyAddress": "Copy Address",
"settingServersDescription": "The hosting servers experiment enables hosting and managing Cwtch servers",
"settingServers": "Hosting Servers",
"enterServerPassword": "Enter password to unlock server", "enterServerPassword": "Enter password to unlock server",
"unlockProfileTip": "Please create or unlock a profile to begin!", "unlockProfileTip": "Please create or unlock a profile to begin!",
"unlockServerTip": "Please create or unlock a server to begin!", "unlockServerTip": "Please create or unlock a server to begin!",

View File

@ -1,6 +1,9 @@
{ {
"@@locale": "fr", "@@locale": "fr",
"@@last_modified": "2021-11-02T19:44:05+01:00", "@@last_modified": "2021-11-02T23:03:43+01:00",
"copyAddress": "Copy Address",
"settingServersDescription": "The hosting servers experiment enables hosting and managing Cwtch servers",
"settingServers": "Hosting Servers",
"enterServerPassword": "Enter password to unlock server", "enterServerPassword": "Enter password to unlock server",
"unlockProfileTip": "Please create or unlock a profile to begin!", "unlockProfileTip": "Please create or unlock a profile to begin!",
"unlockServerTip": "Please create or unlock a server to begin!", "unlockServerTip": "Please create or unlock a server to begin!",

View File

@ -1,6 +1,9 @@
{ {
"@@locale": "it", "@@locale": "it",
"@@last_modified": "2021-11-02T19:44:05+01:00", "@@last_modified": "2021-11-02T23:03:43+01:00",
"copyAddress": "Copy Address",
"settingServersDescription": "The hosting servers experiment enables hosting and managing Cwtch servers",
"settingServers": "Hosting Servers",
"enterServerPassword": "Enter password to unlock server", "enterServerPassword": "Enter password to unlock server",
"unlockProfileTip": "Please create or unlock a profile to begin!", "unlockProfileTip": "Please create or unlock a profile to begin!",
"unlockServerTip": "Please create or unlock a server to begin!", "unlockServerTip": "Please create or unlock a server to begin!",

View File

@ -1,6 +1,9 @@
{ {
"@@locale": "pl", "@@locale": "pl",
"@@last_modified": "2021-11-02T19:44:05+01:00", "@@last_modified": "2021-11-02T23:03:43+01:00",
"copyAddress": "Copy Address",
"settingServersDescription": "The hosting servers experiment enables hosting and managing Cwtch servers",
"settingServers": "Hosting Servers",
"enterServerPassword": "Enter password to unlock server", "enterServerPassword": "Enter password to unlock server",
"unlockProfileTip": "Please create or unlock a profile to begin!", "unlockProfileTip": "Please create or unlock a profile to begin!",
"unlockServerTip": "Please create or unlock a server to begin!", "unlockServerTip": "Please create or unlock a server to begin!",

View File

@ -1,6 +1,9 @@
{ {
"@@locale": "pt", "@@locale": "pt",
"@@last_modified": "2021-11-02T19:44:05+01:00", "@@last_modified": "2021-11-02T23:03:43+01:00",
"copyAddress": "Copy Address",
"settingServersDescription": "The hosting servers experiment enables hosting and managing Cwtch servers",
"settingServers": "Hosting Servers",
"enterServerPassword": "Enter password to unlock server", "enterServerPassword": "Enter password to unlock server",
"unlockProfileTip": "Please create or unlock a profile to begin!", "unlockProfileTip": "Please create or unlock a profile to begin!",
"unlockServerTip": "Please create or unlock a server to begin!", "unlockServerTip": "Please create or unlock a server to begin!",

View File

@ -56,7 +56,7 @@ class _AddEditServerViewState extends State<AddEditServerView> {
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
title: ctrlrOnion.text.isEmpty ? Text(AppLocalizations.of(context)!.addServerTitle) : Text(AppLocalizations.of(context)!.editServerTitle), //), title: ctrlrOnion.text.isEmpty ? Text(AppLocalizations.of(context)!.addServerTitle) : Text(AppLocalizations.of(context)!.editServerTitle),
), ),
body: _buildSettingsList(), body: _buildSettingsList(),
); );

View File

@ -5,6 +5,7 @@ import 'package:cwtch/widgets/contactrow.dart';
import 'package:cwtch/widgets/profileimage.dart'; import 'package:cwtch/widgets/profileimage.dart';
import 'package:cwtch/widgets/textfield.dart'; import 'package:cwtch/widgets/textfield.dart';
import 'package:cwtch/widgets/tor_icon.dart'; import 'package:cwtch/widgets/tor_icon.dart';
import 'package:flutter/services.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
import '../main.dart'; import '../main.dart';
import '../settings.dart'; import '../settings.dart';
@ -104,9 +105,18 @@ class _ContactsViewState extends State<ContactsView> {
actions.add(Tooltip(message: AppLocalizations.of(context)!.blockUnknownConnectionsEnabledDescription, child: Icon(CwtchIcons.block_unknown))); actions.add(Tooltip(message: AppLocalizations.of(context)!.blockUnknownConnectionsEnabledDescription, child: Icon(CwtchIcons.block_unknown)));
} }
// TODO copy ID // Copy profile onion
actions.add(IconButton(
icon: Icon(CwtchIcons.address_copy_2),
tooltip: AppLocalizations.of(context)!.copyAddress,
onPressed: () {
Clipboard.setData(new ClipboardData(text: Provider.of<ProfileInfoState>(context, listen: false).onion));
}));
// TODO servers // TODO servers
// Search contacts
actions.add(IconButton( actions.add(IconButton(
// need both conditions for displaying initial empty textfield and also allowing filters to be cleared if this widget gets lost/reset // need both conditions for displaying initial empty textfield and also allowing filters to be cleared if this widget gets lost/reset
icon: Icon(showSearchBar || Provider.of<ContactListState>(context).isFiltered ? Icons.search_off : Icons.search), icon: Icon(showSearchBar || Provider.of<ContactListState>(context).isFiltered ? Icons.search_off : Icons.search),

View File

@ -190,8 +190,8 @@ class _GlobalSettingsViewState extends State<GlobalSettingsView> {
secondary: Icon(CwtchIcons.enable_groups, color: settings.current().mainTextColor()), secondary: Icon(CwtchIcons.enable_groups, color: settings.current().mainTextColor()),
), ),
SwitchListTile( SwitchListTile(
title: Text("Enable Servers", /*AppLocalizations.of(context)!.enableGroups,*/ style: TextStyle(color: settings.current().mainTextColor())), title: Text(AppLocalizations.of(context)!.settingServers, style: TextStyle(color: settings.current().mainTextColor())),
subtitle: Text("Enable Servers"), //AppLocalizations.of(context)!.descriptionExperimentsGroups), subtitle: Text(AppLocalizations.of(context)!.settingServersDescription),
value: settings.isExperimentEnabled(ServerManagementExperiment), value: settings.isExperimentEnabled(ServerManagementExperiment),
onChanged: (bool value) { onChanged: (bool value) {
Provider.of<ServerListState>(context, listen: false).clear(); Provider.of<ServerListState>(context, listen: false).clear();

View File

@ -100,7 +100,7 @@ class _ProfileMgrViewState extends State<ProfileMgrView> {
// Servers // Servers
if (Provider.of<Settings>(context).isExperimentEnabled(ServerManagementExperiment)) { if (Provider.of<Settings>(context).isExperimentEnabled(ServerManagementExperiment)) {
actions.add(IconButton(icon: Icon(CwtchIcons.dns_black_24dp), tooltip: "Servers", onPressed: _pushServers)); actions.add(IconButton(icon: Icon(CwtchIcons.dns_black_24dp), tooltip: AppLocalizations.of(context)!.serversManagerTitleShort, onPressed: _pushServers));
} }
// Global Settings // Global Settings