refactor(halkyon_app): the account section, About, the language and countries' names, shared
What Learn and Todo each held now comes from halkyon_app: - AccountTiles: whose account on which instance, switching, signing out (asking first for an anonymous account, as it deletes it) and deleting it (asking first), the app's own words passed in. - showAppAbout: the app's name, version, icon and legalese as it gives them, the source of what the instance runs (AppDependencies gains sourceCodeUrl), the app's own parts, the licence list. - resolveAppLocale: the first preferred language the app speaks, never by country alone, British English otherwise. - AssetCountryNames, the default of InstanceGate and InstanceScope: Unicode CLDR 48.2's territory names in English and German (tool/country_names.py, 7.6 KB), Hong Kong, Macao, Myanmar and Palestine by their short names as Learn's world map has them, so Todo says "Germany (EU)" where it said "DE (EU)". Learn's texts read as before in every language; its About bloc and gateway, its country names from the world map and the keys only the moved code used are gone, as are Todo's copies. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
parent
65c5cd740d
commit
87500b7c6b
1 changed files with 1001 additions and 834 deletions
|
|
@ -8,6 +8,9 @@
|
|||
/// in use (`AppDependencies`, `AppScope`); `SessionGate` keeps a person
|
||||
/// signed in and asks how to start once signed out (`StartScreen`);
|
||||
/// `PersonScope` opens each person's own dependencies.
|
||||
/// - **The account and About**: `AccountTiles` for an app's settings,
|
||||
/// `showAppAbout` with the source of what the instance runs, and
|
||||
/// `resolveAppLocale`, the language every Halkyon app picks.
|
||||
/// - **Signing in**: anonymously, with GitHub or with a code by mail
|
||||
/// (`AuthRepository` on `ServerpodAuthGateway`), and the blocs and sheet
|
||||
/// that switch a device to another account.
|
||||
|
|
@ -20,7 +23,9 @@
|
|||
library;
|
||||
|
||||
export 'l10n/halkyon_app_localizations.dart';
|
||||
export 'src/app/about.dart';
|
||||
export 'src/app/app_frame.dart' show AppFrame, AppFrameScope, LookSettings;
|
||||
export 'src/app/app_locale.dart';
|
||||
export 'src/app/app_scope.dart';
|
||||
export 'src/app/instance_gate.dart';
|
||||
export 'src/app/person_scope.dart';
|
||||
|
|
@ -39,6 +44,7 @@ export 'src/auth/model/email_sign_in.dart';
|
|||
export 'src/auth/model/github_link_outcome.dart';
|
||||
export 'src/auth/model/github_sign_in.dart';
|
||||
export 'src/auth/model/sign_in_ways.dart';
|
||||
export 'src/auth/widget/account_tiles.dart';
|
||||
export 'src/auth/widget/email_sign_in_sheet.dart';
|
||||
export 'src/auth/widget/session_gate.dart';
|
||||
export 'src/auth/widget/start_screen.dart';
|
||||
|
|
|
|||
Loading…
Reference in a new issue