Browse Source

neon: Move models and interfaces to models

pull/436/head
jld3103 2 years ago
parent
commit
0110a2ffb4
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 1
      packages/app/lib/apps.dart
  2. 2
      packages/app/lib/branding.dart
  3. 1
      packages/neon/neon/lib/interfaces.dart
  4. 3
      packages/neon/neon/lib/models.dart
  5. 4
      packages/neon/neon/lib/neon.dart
  6. 4
      packages/neon/neon/lib/src/app.dart
  7. 2
      packages/neon/neon/lib/src/blocs/accounts.dart
  8. 4
      packages/neon/neon/lib/src/blocs/apps.dart
  9. 0
      packages/neon/neon/lib/src/models/app_implementation.dart
  10. 0
      packages/neon/neon/lib/src/models/branding.dart
  11. 2
      packages/neon/neon/lib/src/models/notifications_interface.dart
  12. 2
      packages/neon/neon/lib/src/pages/home.dart
  13. 2
      packages/neon/neon/lib/src/pages/login.dart
  14. 2
      packages/neon/neon/lib/src/pages/nextcloud_app_settings.dart
  15. 4
      packages/neon/neon/lib/src/pages/settings.dart
  16. 2
      packages/neon/neon/lib/src/router.dart
  17. 2
      packages/neon/neon/lib/src/utils/settings_export_helper.dart
  18. 4
      packages/neon/neon/lib/src/widgets/app_bar.dart
  19. 2
      packages/neon/neon/lib/src/widgets/app_implementation_icon.dart
  20. 2
      packages/neon/neon/lib/src/widgets/drawer.dart
  21. 2
      packages/neon/neon/lib/utils.dart
  22. 1
      packages/neon/neon_notifications/lib/neon_notifications.dart

1
packages/app/lib/apps.dart

@ -1,3 +1,4 @@
import 'package:neon/models.dart';
import 'package:neon/platform.dart';
import 'package:neon/utils.dart';
import 'package:neon_files/neon_files.dart';

2
packages/app/lib/branding.dart

@ -1,5 +1,5 @@
import 'package:flutter_svg/flutter_svg.dart';
import 'package:neon/utils.dart';
import 'package:neon/models.dart';
Branding getNeonBranding() => Branding(
name: 'Nextcloud Neon',

1
packages/neon/neon/lib/interfaces.dart

@ -1 +0,0 @@
export 'package:neon/src/interfaces/notifications.dart';

3
packages/neon/neon/lib/models.dart

@ -1 +1,4 @@
export 'package:neon/src/models/account.dart';
export 'package:neon/src/models/app_implementation.dart';
export 'package:neon/src/models/branding.dart';
export 'package:neon/src/models/notifications_interface.dart';

4
packages/neon/neon/lib/neon.dart

@ -8,9 +8,9 @@ import 'package:neon/src/blocs/first_launch.dart';
import 'package:neon/src/blocs/next_push.dart';
import 'package:neon/src/blocs/push_notifications.dart';
import 'package:neon/src/models/account.dart';
import 'package:neon/src/models/app_implementation.dart';
import 'package:neon/src/models/branding.dart';
import 'package:neon/src/platform/platform.dart';
import 'package:neon/src/utils/app_implementation.dart';
import 'package:neon/src/utils/branding.dart';
import 'package:neon/src/utils/global_options.dart';
import 'package:neon/src/utils/request_manager.dart';
import 'package:package_info_plus/package_info_plus.dart';

4
packages/neon/neon/lib/src/app.dart

@ -8,13 +8,13 @@ import 'package:neon/l10n/localizations.dart';
import 'package:neon/src/bloc/result_builder.dart';
import 'package:neon/src/blocs/accounts.dart';
import 'package:neon/src/blocs/capabilities.dart';
import 'package:neon/src/interfaces/notifications.dart';
import 'package:neon/src/models/account.dart';
import 'package:neon/src/models/app_implementation.dart';
import 'package:neon/src/models/notifications_interface.dart';
import 'package:neon/src/models/push_notification.dart';
import 'package:neon/src/platform/platform.dart';
import 'package:neon/src/router.dart';
import 'package:neon/src/settings/widgets/option_builder.dart';
import 'package:neon/src/utils/app_implementation.dart';
import 'package:neon/src/utils/global.dart';
import 'package:neon/src/utils/global_options.dart';
import 'package:neon/src/utils/localizations.dart';

2
packages/neon/neon/lib/src/blocs/accounts.dart

@ -8,10 +8,10 @@ import 'package:neon/src/blocs/capabilities.dart';
import 'package:neon/src/blocs/user_details.dart';
import 'package:neon/src/blocs/user_statuses.dart';
import 'package:neon/src/models/account.dart';
import 'package:neon/src/models/app_implementation.dart';
import 'package:neon/src/platform/platform.dart';
import 'package:neon/src/settings/models/storage.dart';
import 'package:neon/src/utils/account_options.dart';
import 'package:neon/src/utils/app_implementation.dart';
import 'package:neon/src/utils/global_options.dart';
import 'package:neon/src/utils/request_manager.dart';
import 'package:rxdart/rxdart.dart';

4
packages/neon/neon/lib/src/blocs/apps.dart

@ -5,10 +5,10 @@ import 'package:neon/src/bloc/bloc.dart';
import 'package:neon/src/bloc/result.dart';
import 'package:neon/src/blocs/accounts.dart';
import 'package:neon/src/blocs/capabilities.dart';
import 'package:neon/src/interfaces/notifications.dart';
import 'package:neon/src/models/account.dart';
import 'package:neon/src/models/app_implementation.dart';
import 'package:neon/src/models/notifications_interface.dart';
import 'package:neon/src/settings/models/nextcloud_app_options.dart';
import 'package:neon/src/utils/app_implementation.dart';
import 'package:neon/src/utils/request_manager.dart';
import 'package:nextcloud/nextcloud.dart';
import 'package:provider/provider.dart';

0
packages/neon/neon/lib/src/utils/app_implementation.dart → packages/neon/neon/lib/src/models/app_implementation.dart

0
packages/neon/neon/lib/src/utils/branding.dart → packages/neon/neon/lib/src/models/branding.dart

2
packages/neon/neon/lib/src/interfaces/notifications.dart → packages/neon/neon/lib/src/models/notifications_interface.dart

@ -1,6 +1,6 @@
import 'package:neon/src/bloc/bloc.dart';
import 'package:neon/src/models/app_implementation.dart';
import 'package:neon/src/settings/models/nextcloud_app_options.dart';
import 'package:neon/src/utils/app_implementation.dart';
abstract interface class NotificationsAppInterface<T extends NotificationsBlocInterface,
R extends NotificationsOptionsInterface> extends AppImplementation<T, R> {

2
packages/neon/neon/lib/src/pages/home.dart

@ -6,8 +6,8 @@ import 'package:neon/src/bloc/result_builder.dart';
import 'package:neon/src/blocs/accounts.dart';
import 'package:neon/src/blocs/apps.dart';
import 'package:neon/src/models/account.dart';
import 'package:neon/src/models/app_implementation.dart';
import 'package:neon/src/settings/widgets/option_builder.dart';
import 'package:neon/src/utils/app_implementation.dart';
import 'package:neon/src/utils/global_options.dart';
import 'package:neon/src/utils/global_options.dart' as global_options;
import 'package:neon/src/utils/global_popups.dart';

2
packages/neon/neon/lib/src/pages/login.dart

@ -3,9 +3,9 @@ import 'package:neon/l10n/localizations.dart';
import 'package:neon/src/blocs/accounts.dart';
import 'package:neon/src/blocs/login.dart';
import 'package:neon/src/models/account.dart';
import 'package:neon/src/models/branding.dart';
import 'package:neon/src/platform/platform.dart';
import 'package:neon/src/router.dart';
import 'package:neon/src/utils/branding.dart';
import 'package:neon/src/utils/validators.dart';
import 'package:neon/src/widgets/exception.dart';
import 'package:neon/src/widgets/linear_progress_indicator.dart';

2
packages/neon/neon/lib/src/pages/nextcloud_app_settings.dart

@ -1,13 +1,13 @@
import 'package:flutter/material.dart';
import 'package:material_design_icons_flutter/material_design_icons_flutter.dart';
import 'package:neon/l10n/localizations.dart';
import 'package:neon/src/models/app_implementation.dart';
import 'package:neon/src/settings/models/select_option.dart';
import 'package:neon/src/settings/models/toggle_option.dart';
import 'package:neon/src/settings/widgets/checkbox_settings_tile.dart';
import 'package:neon/src/settings/widgets/dropdown_button_settings_tile.dart';
import 'package:neon/src/settings/widgets/settings_category.dart';
import 'package:neon/src/settings/widgets/settings_list.dart';
import 'package:neon/src/utils/app_implementation.dart';
import 'package:neon/src/utils/confirmation_dialog.dart';
class NextcloudAppSettingsPage extends StatelessWidget {

4
packages/neon/neon/lib/src/pages/settings.dart

@ -7,6 +7,8 @@ import 'package:material_design_icons_flutter/material_design_icons_flutter.dart
import 'package:neon/l10n/localizations.dart';
import 'package:neon/src/blocs/accounts.dart';
import 'package:neon/src/models/account.dart';
import 'package:neon/src/models/app_implementation.dart';
import 'package:neon/src/models/branding.dart';
import 'package:neon/src/platform/platform.dart';
import 'package:neon/src/router.dart';
import 'package:neon/src/settings/widgets/account_settings_tile.dart';
@ -17,8 +19,6 @@ import 'package:neon/src/settings/widgets/settings_category.dart';
import 'package:neon/src/settings/widgets/settings_list.dart';
import 'package:neon/src/settings/widgets/settings_tile.dart';
import 'package:neon/src/settings/widgets/text_settings_tile.dart';
import 'package:neon/src/utils/app_implementation.dart';
import 'package:neon/src/utils/branding.dart';
import 'package:neon/src/utils/confirmation_dialog.dart';
import 'package:neon/src/utils/global_options.dart';
import 'package:neon/src/utils/save_file.dart';

2
packages/neon/neon/lib/src/router.dart

@ -3,12 +3,12 @@ import 'package:flutter/widgets.dart';
import 'package:go_router/go_router.dart';
import 'package:neon/src/blocs/accounts.dart';
import 'package:neon/src/models/account.dart';
import 'package:neon/src/models/app_implementation.dart';
import 'package:neon/src/pages/account_settings.dart';
import 'package:neon/src/pages/home.dart';
import 'package:neon/src/pages/login.dart';
import 'package:neon/src/pages/nextcloud_app_settings.dart';
import 'package:neon/src/pages/settings.dart';
import 'package:neon/src/utils/app_implementation.dart';
import 'package:neon/src/utils/stream_listenable.dart';
import 'package:provider/provider.dart';

2
packages/neon/neon/lib/src/utils/settings_export_helper.dart

@ -1,6 +1,6 @@
import 'package:neon/src/models/account.dart';
import 'package:neon/src/models/app_implementation.dart';
import 'package:neon/src/settings/models/option.dart';
import 'package:neon/src/utils/app_implementation.dart';
import 'package:neon/src/utils/global_options.dart';
class SettingsExportHelper {

4
packages/neon/neon/lib/src/widgets/app_bar.dart

@ -6,10 +6,10 @@ import 'package:neon/l10n/localizations.dart';
import 'package:neon/src/bloc/result_builder.dart';
import 'package:neon/src/blocs/accounts.dart';
import 'package:neon/src/blocs/apps.dart';
import 'package:neon/src/interfaces/notifications.dart';
import 'package:neon/src/models/account.dart';
import 'package:neon/src/models/app_implementation.dart';
import 'package:neon/src/models/notifications_interface.dart';
import 'package:neon/src/router.dart';
import 'package:neon/src/utils/app_implementation.dart';
import 'package:neon/src/widgets/app_implementation_icon.dart';
import 'package:neon/src/widgets/exception.dart';
import 'package:neon/src/widgets/linear_progress_indicator.dart';

2
packages/neon/neon/lib/src/widgets/app_implementation_icon.dart

@ -1,5 +1,5 @@
import 'package:flutter/widgets.dart';
import 'package:neon/src/utils/app_implementation.dart';
import 'package:neon/src/models/app_implementation.dart';
import 'package:neon/src/widgets/user_avatar.dart';
class NeonAppImplementationIcon extends StatelessWidget {

2
packages/neon/neon/lib/src/widgets/drawer.dart

@ -8,8 +8,8 @@ import 'package:neon/src/blocs/accounts.dart';
import 'package:neon/src/blocs/apps.dart';
import 'package:neon/src/blocs/capabilities.dart';
import 'package:neon/src/models/account.dart';
import 'package:neon/src/models/app_implementation.dart';
import 'package:neon/src/router.dart';
import 'package:neon/src/utils/app_implementation.dart';
import 'package:neon/src/widgets/account_tile.dart';
import 'package:neon/src/widgets/cached_image.dart';
import 'package:neon/src/widgets/drawer_destination.dart';

2
packages/neon/neon/lib/utils.dart

@ -1,5 +1,3 @@
export 'package:neon/src/utils/app_implementation.dart';
export 'package:neon/src/utils/branding.dart';
export 'package:neon/src/utils/confirmation_dialog.dart';
export 'package:neon/src/utils/exceptions.dart';
export 'package:neon/src/utils/hex_color.dart';

1
packages/neon/neon_notifications/lib/neon_notifications.dart

@ -5,7 +5,6 @@ import 'dart:async';
import 'package:flutter/material.dart';
import 'package:material_design_icons_flutter/material_design_icons_flutter.dart';
import 'package:neon/blocs.dart';
import 'package:neon/interfaces.dart';
import 'package:neon/models.dart';
import 'package:neon/settings.dart';
import 'package:neon/utils.dart';

Loading…
Cancel
Save