fdroid
Kherel 2021-03-18 13:24:30 +01:00
parent 6a21d89744
commit 10fdb019ff
6 changed files with 69 additions and 54 deletions

View File

@ -134,7 +134,7 @@
"add_new_user": "Add a first user", "add_new_user": "Add a first user",
"new_user": "New user", "new_user": "New user",
"not_ready": "Please connect server, domain and DNS in the Providers tab, to be able to add a first user", "not_ready": "Please connect server, domain and DNS in the Providers tab, to be able to add a first user",
"nobody_here": "'Здесь пока никого'", "nobody_here": "Здесь пока никого",
"login": "Login", "login": "Login",
"onboarding": "Onboarding", "onboarding": "Onboarding",
"console": "Console", "console": "Console",
@ -149,7 +149,7 @@
"1": "Connect Hetzner server", "1": "Connect Hetzner server",
"2": "Here, your data and SelfPrivacy services wiil reside", "2": "Here, your data and SelfPrivacy services wiil reside",
"how": "How to obtain API token", "how": "How to obtain API token",
"3": "'Connect CloudFlare'", "3": "Connect CloudFlare",
"4": "To manage your domain's DNS", "4": "To manage your domain's DNS",
"5": "CloudFlare API Token", "5": "CloudFlare API Token",
"6": "Connect Backblaze storage", "6": "Connect Backblaze storage",
@ -164,7 +164,7 @@
"15": "Server created. DNS checks and server boot in progress...", "15": "Server created. DNS checks and server boot in progress...",
"16": "Until the next check: ", "16": "Until the next check: ",
"17": "Check", "17": "Check",
"18": "How to obtain Hetzner API Token'", "18": "How to obtain Hetzner API Token",
"19": "1 Go via this link ", "19": "1 Go via this link ",
"20": "\n" "20": "\n"
} }

View File

@ -8,7 +8,7 @@ class SimpleBlocObserver extends BlocObserver {
SimpleBlocObserver(); SimpleBlocObserver();
@override @override
void onError(Bloc cubit, Object error, StackTrace stackTrace) { void onError(BlocBase cubit, Object error, StackTrace stackTrace) {
final navigator = getIt.get<NavigationService>().navigator!; final navigator = getIt.get<NavigationService>().navigator!;
navigator.push( navigator.push(

View File

@ -33,37 +33,46 @@ class ConsoleInterceptor extends InterceptorsWrapper {
} }
@override @override
Future onRequest(RequestOptions options) async { Future onRequest(
RequestOptions options,
RequestInterceptorHandler requestInterceptorHandler,
) async {
addMessage( addMessage(
Message( Message(
text: text:
'request-uri: ${options.uri}\nheaders: ${options.headers}\ndata: ${options.data}', 'request-uri: ${options.uri}\nheaders: ${options.headers}\ndata: ${options.data}',
), ),
); );
return super.onRequest(options); return super.onRequest(options, requestInterceptorHandler);
} }
@override @override
Future onResponse(Response response) async { Future onResponse(
Response response,
ResponseInterceptorHandler requestInterceptorHandler,
) async {
addMessage( addMessage(
Message( Message(
text: text:
'response-uri: ${response.request.uri}\ncode: ${response.statusCode}\ndata: ${response.toString()}\n', 'response-uri: ${response.realUri}\ncode: ${response.statusCode}\ndata: ${response.toString()}\n',
), ),
); );
return super.onResponse(response); return super.onResponse(
response,
requestInterceptorHandler,
);
} }
@override @override
Future onError(DioError err) async { Future onError(DioError err, ErrorInterceptorHandler handler) async {
var response = err.response; var response = err.response;
log(err.toString()); log(err.toString());
addMessage( addMessage(
Message.warn( Message.warn(
text: text:
'response-uri: ${response?.request.uri}\ncode: ${response?.statusCode}\ndata: ${response?.toString()}\n', 'response-uri: ${response?.realUri}\ncode: ${response?.statusCode}\ndata: ${response?.toString()}\n',
), ),
); );
return super.onError(err); return super.onError(err, handler);
} }
} }

View File

@ -43,18 +43,17 @@ class BrandModalSheet extends StatelessWidget {
), ),
), ),
Container( Container(
constraints: BoxConstraints( constraints: BoxConstraints(
minHeight: MediaQuery.of(context).size.height - 32 - 4, minHeight: MediaQuery.of(context).size.height - 132,
maxHeight: MediaQuery.of(context).size.height, maxHeight: MediaQuery.of(context).size.height - 132,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: borderRadius:
BorderRadius.vertical(top: Radius.circular(20)), BorderRadius.vertical(top: Radius.circular(20)),
color: Theme.of(context).scaffoldBackgroundColor, color: Theme.of(context).scaffoldBackgroundColor,
), ),
width: double.infinity, width: double.infinity,
child: child child: child),
),
], ],
), ),
), ),

View File

@ -181,7 +181,7 @@ class InitializingPage extends StatelessWidget {
), ),
SizedBox(height: 10), SizedBox(height: 10),
BrandButton.text( BrandButton.text(
onPressed: () {}, onPressed: () => _showModal(context, _HowHetzner()),
title: 'initializing.how'.tr(), title: 'initializing.how'.tr(),
), ),
], ],
@ -488,7 +488,7 @@ class _HowHetzner extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return BrandModalSheet( return BrandModalSheet(
child: Padding( child: Padding(
padding: brandPagePadding1, padding: brandPagePadding2.copyWith(top: 25),
child: BrandMarkdown( child: BrandMarkdown(
fileName: 'how_hetzner', fileName: 'how_hetzner',
)), )),

View File

@ -7,14 +7,14 @@ packages:
name: _fe_analyzer_shared name: _fe_analyzer_shared
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "17.0.0" version: "14.0.0"
analyzer: analyzer:
dependency: transitive dependency: transitive
description: description:
name: analyzer name: analyzer
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.1.0" version: "0.41.2"
archive: archive:
dependency: transitive dependency: transitive
description: description:
@ -49,7 +49,7 @@ packages:
name: bloc name: bloc
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "7.0.0-nullsafety.3" version: "7.0.0"
boolean_selector: boolean_selector:
dependency: transitive dependency: transitive
description: description:
@ -63,14 +63,14 @@ packages:
name: build name: build
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.6.3" version: "1.6.2"
build_config: build_config:
dependency: transitive dependency: transitive
description: description:
name: build_config name: build_config
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.4.6" version: "0.4.5"
build_daemon: build_daemon:
dependency: transitive dependency: transitive
description: description:
@ -84,7 +84,7 @@ packages:
name: build_resolvers name: build_resolvers
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.5.4" version: "1.5.3"
build_runner: build_runner:
dependency: "direct dev" dependency: "direct dev"
description: description:
@ -105,14 +105,14 @@ packages:
name: built_collection name: built_collection
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "5.0.0" version: "4.3.2"
built_value: built_value:
dependency: transitive dependency: transitive
description: description:
name: built_value name: built_value
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "8.0.2" version: "7.1.0"
characters: characters:
dependency: transitive dependency: transitive
description: description:
@ -140,7 +140,7 @@ packages:
name: cli_util name: cli_util
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.3.0" version: "0.2.0"
clock: clock:
dependency: transitive dependency: transitive
description: description:
@ -154,7 +154,7 @@ packages:
name: code_builder name: code_builder
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.7.0" version: "3.5.0"
collection: collection:
dependency: transitive dependency: transitive
description: description:
@ -175,7 +175,7 @@ packages:
name: coverage name: coverage
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.1" version: "0.15.2"
crypto: crypto:
dependency: "direct main" dependency: "direct main"
description: description:
@ -203,14 +203,14 @@ packages:
name: dart_style name: dart_style
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.3.14" version: "1.3.12"
dio: dio:
dependency: "direct main" dependency: "direct main"
description: description:
name: dio name: dio
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "4.0.0-beta7" version: "4.0.0-prev1"
easy_localization: easy_localization:
dependency: "direct main" dependency: "direct main"
description: description:
@ -273,7 +273,7 @@ packages:
name: fixnum name: fixnum
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.0" version: "0.10.11"
flutter: flutter:
dependency: "direct main" dependency: "direct main"
description: flutter description: flutter
@ -285,7 +285,7 @@ packages:
name: flutter_bloc name: flutter_bloc
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "7.0.0-nullsafety.5" version: "7.0.0"
flutter_launcher_icons: flutter_launcher_icons:
dependency: "direct dev" dependency: "direct dev"
description: description:
@ -398,7 +398,7 @@ packages:
name: io name: io
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.3.5" version: "0.3.4"
js: js:
dependency: transitive dependency: transitive
description: description:
@ -461,7 +461,7 @@ packages:
name: mime name: mime
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.0" version: "0.9.7"
nested: nested:
dependency: transitive dependency: transitive
description: description:
@ -482,7 +482,7 @@ packages:
name: package_config name: package_config
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.0" version: "1.9.3"
package_info: package_info:
dependency: "direct main" dependency: "direct main"
description: description:
@ -594,21 +594,28 @@ packages:
name: pub_semver name: pub_semver
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.0" version: "1.4.4"
pubspec_parse: pubspec_parse:
dependency: transitive dependency: transitive
description: description:
name: pubspec_parse name: pubspec_parse
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.1.8" version: "0.1.7"
quiver:
dependency: transitive
description:
name: quiver
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.5"
shared_preferences: shared_preferences:
dependency: transitive dependency: transitive
description: description:
name: shared_preferences name: shared_preferences
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.4" version: "2.0.5"
shared_preferences_linux: shared_preferences_linux:
dependency: transitive dependency: transitive
description: description:
@ -650,21 +657,21 @@ packages:
name: shelf name: shelf
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.0" version: "1.1.0"
shelf_packages_handler: shelf_packages_handler:
dependency: transitive dependency: transitive
description: description:
name: shelf_packages_handler name: shelf_packages_handler
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.0.0" version: "2.0.1"
shelf_static: shelf_static:
dependency: transitive dependency: transitive
description: description:
name: shelf_static name: shelf_static
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.0" version: "0.2.9+2"
shelf_web_socket: shelf_web_socket:
dependency: transitive dependency: transitive
description: description:
@ -725,7 +732,7 @@ packages:
name: stream_transform name: stream_transform
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.0" version: "1.2.0"
string_scanner: string_scanner:
dependency: transitive dependency: transitive
description: description:
@ -830,7 +837,7 @@ packages:
name: vm_service name: vm_service
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "6.1.0+1" version: "5.5.0"
wakelock: wakelock:
dependency: "direct main" dependency: "direct main"
description: description:
@ -872,7 +879,7 @@ packages:
name: watcher name: watcher
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.0" version: "0.9.7+15"
web_socket_channel: web_socket_channel:
dependency: transitive dependency: transitive
description: description:
@ -886,7 +893,7 @@ packages:
name: webkit_inspection_protocol name: webkit_inspection_protocol
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.0" version: "0.7.5"
win32: win32:
dependency: transitive dependency: transitive
description: description: