├── .github └── ISSUE_TEMPLATE │ ├── community-bug.yml │ ├── community-question.yml │ └── config.yml ├── .gitignore ├── .gitlab-ci.yml ├── .idea ├── .gitignore ├── .name ├── caches │ └── deviceStreaming.xml ├── dartstream.iml ├── libraries │ ├── Dart_Packages.xml │ └── Dart_SDK.xml ├── misc.xml ├── modules.xml ├── runConfigurations │ ├── melos_bootstrap.xml │ └── melos_clean.xml └── vcs.xml ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── dartstream ├── CHANGELOG.md ├── bin │ ├── README.md │ ├── ds_cli.dart │ ├── ds_commands │ │ ├── ds_configure_command.dart │ │ ├── ds_disable_extension_command.dart │ │ ├── ds_discovery_command.dart │ │ ├── ds_enable_extension_command.dart │ │ ├── ds_generate_command.dart │ │ ├── ds_init_command.dart │ │ ├── ds_list_extensions_command.dart │ │ ├── ds_list_feature_flag_command.dart │ │ ├── ds_setup_command.dart │ │ └── ds_validate_command.dart │ └── pubspec_overrides.yaml ├── dartstream_backend │ ├── packages │ │ ├── config │ │ │ ├── development │ │ │ │ ├── general │ │ │ │ │ └── ds_general.yaml │ │ │ │ └── middleware │ │ │ │ │ ├── ds_custom.yaml │ │ │ │ │ └── ds_shelf.yaml │ │ │ ├── production │ │ │ │ └── middleware │ │ │ │ │ ├── ds_custom.yaml │ │ │ │ │ └── ds_shelf.yaml │ │ │ ├── registered_extensions.json │ │ │ └── registered_extensions.yaml │ │ ├── enhanced │ │ │ ├── CHANGELOG.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── ds_enhanced_features.dart │ │ │ ├── extensions │ │ │ │ └── ds_package_extensions.dart │ │ │ ├── lib │ │ │ │ ├── core │ │ │ │ │ ├── authentication │ │ │ │ │ │ ├── ds_enhanced_authentication_features.dart │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ └── amazon_cognito_sdk │ │ │ │ │ │ │ │ ├── azure_identity_sdk │ │ │ │ │ │ │ │ ├── ds_azure_identity_core.dart │ │ │ │ │ │ │ │ └── ds_azure_identity_export.dart │ │ │ │ │ │ │ │ ├── ds_amazon_cognito_core.dart │ │ │ │ │ │ │ │ ├── ds_amazon_cognito_export.dart │ │ │ │ │ │ │ │ └── firebase_admin_sdk │ │ │ │ │ │ │ │ ├── ds_firebase_admin_core.dart │ │ │ │ │ │ │ │ └── ds_firebase_admin_export.dart │ │ │ │ │ │ ├── melos_ds_enhanced_authentication_features.iml │ │ │ │ │ │ └── pubspec.yaml │ │ │ │ │ ├── database │ │ │ │ │ │ └── ds_enhanced_database_features.dart │ │ │ │ │ ├── ds_enhanced_core_export.dart │ │ │ │ │ ├── ds_standard_core.dart │ │ │ │ │ ├── file_storage │ │ │ │ │ │ └── ds_enhanced_file_storage_features.dart │ │ │ │ │ ├── google_dev │ │ │ │ │ │ └── google_dev.dart │ │ │ │ │ └── payments │ │ │ │ │ │ └── ds_enhanced_payments_features.dart │ │ │ │ ├── extensions │ │ │ │ │ ├── ds_package_extensions.dart │ │ │ │ │ └── ds_package_extensions2.dart │ │ │ │ └── overrides │ │ │ │ │ ├── ds_custom_package.dart │ │ │ │ │ └── ds_custom_package2.dart │ │ │ ├── melos_ds_enhanced_features.iml │ │ │ ├── pubspec.yaml │ │ │ └── pubspec_overrides.yaml │ │ ├── experimental │ │ │ ├── extensions │ │ │ │ ├── ds_package_extensions.dart │ │ │ │ └── ds_package_extensions2.dart │ │ │ └── overrides │ │ │ │ ├── ds_custom_package.dart │ │ │ │ └── ds_custom_package2.dart │ │ ├── frameworks │ │ │ ├── android_compose │ │ │ │ ├── CHANGELOG.md │ │ │ │ ├── LICENSE │ │ │ │ ├── README.md │ │ │ │ ├── lib │ │ │ │ │ ├── api │ │ │ │ │ │ ├── ds_standard_web_api.dart │ │ │ │ │ │ └── ds_standard_web_api_export.dart │ │ │ │ │ ├── core │ │ │ │ │ │ ├── ds_standard_web_core.dart │ │ │ │ │ │ └── ds_standard_web_core_export.dart │ │ │ │ │ ├── ds_flutter_web_core.dart │ │ │ │ │ ├── extensions │ │ │ │ │ │ ├── ds_standard_web_extensions.dart │ │ │ │ │ │ └── ds_standard_web_extensions_export.dart │ │ │ │ │ ├── overrides │ │ │ │ │ │ ├── ds_standard_web_overrides.dart │ │ │ │ │ │ └── ds_standard_web_overrides_export.dart │ │ │ │ │ └── utilities │ │ │ │ │ │ ├── ds_standard_web_utilities.dart │ │ │ │ │ │ └── ds_standard_web_utilities_export.dart │ │ │ │ └── pubspec.yaml │ │ │ ├── dartweb │ │ │ │ ├── CHANGELOG.md │ │ │ │ ├── LICENSE │ │ │ │ ├── README.md │ │ │ │ ├── lib │ │ │ │ │ ├── api │ │ │ │ │ │ ├── ds_standard_web_api.dart │ │ │ │ │ │ └── ds_standard_web_api_export.dart │ │ │ │ │ ├── core │ │ │ │ │ │ ├── ds_standard_web_core.dart │ │ │ │ │ │ └── ds_standard_web_core_export.dart │ │ │ │ │ ├── ds_dartweb_core.dart.txt │ │ │ │ │ ├── extensions │ │ │ │ │ │ ├── ds_standard_web_extensions.dart │ │ │ │ │ │ └── ds_standard_web_extensions_export.dart │ │ │ │ │ ├── overrides │ │ │ │ │ │ ├── ds_standard_web_overrides.dart │ │ │ │ │ │ └── ds_standard_web_overrides_export.dart │ │ │ │ │ └── utilities │ │ │ │ │ │ ├── ds_standard_web_utilities.dart │ │ │ │ │ │ └── ds_standard_web_utilities_export.dart │ │ │ │ └── pubspec.yaml │ │ │ ├── flutter_desktop │ │ │ │ ├── CHANGELOG.md │ │ │ │ ├── LICENSE │ │ │ │ ├── README.md │ │ │ │ ├── lib │ │ │ │ │ ├── api │ │ │ │ │ │ ├── ds_standard_web_api.dart │ │ │ │ │ │ └── ds_standard_web_api_export.dart │ │ │ │ │ ├── core │ │ │ │ │ │ ├── ds_standard_web_core.dart │ │ │ │ │ │ └── ds_standard_web_core_export.dart │ │ │ │ │ ├── ds_flutter_desktop_core.dart │ │ │ │ │ ├── extensions │ │ │ │ │ │ ├── ds_standard_web_extensions.dart │ │ │ │ │ │ └── ds_standard_web_extensions_export.dart │ │ │ │ │ ├── overrides │ │ │ │ │ │ ├── ds_standard_web_overrides.dart │ │ │ │ │ │ └── ds_standard_web_overrides_export.dart │ │ │ │ │ └── utilities │ │ │ │ │ │ ├── ds_standard_web_utilities.dart │ │ │ │ │ │ └── ds_standard_web_utilities_export.dart │ │ │ │ ├── melos_ds_standard_features.iml │ │ │ │ ├── melos_ds_standard_features_web.iml │ │ │ │ └── pubspec.yaml │ │ │ ├── flutter_games │ │ │ │ ├── CHANGELOG.md │ │ │ │ ├── LICENSE │ │ │ │ ├── README.md │ │ │ │ ├── lib │ │ │ │ │ ├── api │ │ │ │ │ │ ├── ds_standard_web_api.dart │ │ │ │ │ │ └── ds_standard_web_api_export.dart │ │ │ │ │ ├── core │ │ │ │ │ │ ├── ds_standard_web_core.dart │ │ │ │ │ │ └── ds_standard_web_core_export.dart │ │ │ │ │ ├── ds_flutter_games_core.dart │ │ │ │ │ ├── extensions │ │ │ │ │ │ ├── ds_standard_web_extensions.dart │ │ │ │ │ │ └── ds_standard_web_extensions_export.dart │ │ │ │ │ ├── overrides │ │ │ │ │ │ ├── ds_standard_web_overrides.dart │ │ │ │ │ │ └── ds_standard_web_overrides_export.dart │ │ │ │ │ └── utilities │ │ │ │ │ │ ├── ds_standard_web_utilities.dart │ │ │ │ │ │ └── ds_standard_web_utilities_export.dart │ │ │ │ └── pubspec.yaml │ │ │ ├── flutter_mobile │ │ │ │ ├── CHANGELOG.md │ │ │ │ ├── LICENSE │ │ │ │ ├── README.md │ │ │ │ ├── lib │ │ │ │ │ ├── api │ │ │ │ │ │ ├── ds_flutter_mobile_api.dart │ │ │ │ │ │ └── ds_flutter_mobile_api_export.dart │ │ │ │ │ ├── core │ │ │ │ │ │ ├── ds_flutter_mobile_auth_adapter.dart │ │ │ │ │ │ ├── ds_flutter_mobile_core.dart │ │ │ │ │ │ ├── ds_flutter_mobile_core_export.dart │ │ │ │ │ │ └── pubspec.yaml │ │ │ │ │ ├── ds_flutter_mobile_core.dart │ │ │ │ │ ├── extensions │ │ │ │ │ │ ├── ds_flutter_mobile_extensions.dart │ │ │ │ │ │ └── ds_flutter_mobile_extensions_export.dart │ │ │ │ │ ├── modules │ │ │ │ │ │ ├── ds_flutter_mobile_modules.dart │ │ │ │ │ │ └── ds_flutter_mobile_modules_export.dart │ │ │ │ │ ├── overrides │ │ │ │ │ │ ├── ds_flutter_mobile_overrides.dart │ │ │ │ │ │ └── ds_flutter_mobile_overrides_export.dart │ │ │ │ │ └── utilities │ │ │ │ │ │ ├── ds_flutter_mobile_utilities.dart │ │ │ │ │ │ └── ds_flutter_mobile_utilities_export.dart │ │ │ │ └── pubspec.yaml │ │ │ ├── flutter_web │ │ │ │ ├── CHANGELOG.md │ │ │ │ ├── LICENSE │ │ │ │ ├── README.md │ │ │ │ ├── lib │ │ │ │ │ ├── api │ │ │ │ │ │ ├── ds_standard_web_api.dart │ │ │ │ │ │ └── ds_standard_web_api_export.dart │ │ │ │ │ ├── core │ │ │ │ │ │ ├── ds_standard_web_core.dart │ │ │ │ │ │ └── ds_standard_web_core_export.dart │ │ │ │ │ ├── ds_flutter_web_core.dart │ │ │ │ │ ├── extensions │ │ │ │ │ │ ├── ds_standard_web_extensions.dart │ │ │ │ │ │ └── ds_standard_web_extensions_export.dart │ │ │ │ │ ├── overrides │ │ │ │ │ │ ├── ds_standard_web_overrides.dart │ │ │ │ │ │ └── ds_standard_web_overrides_export.dart │ │ │ │ │ └── utilities │ │ │ │ │ │ ├── ds_standard_web_utilities.dart │ │ │ │ │ │ └── ds_standard_web_utilities_export.dart │ │ │ │ └── pubspec.yaml │ │ │ ├── svelte │ │ │ │ ├── CHANGELOG.md │ │ │ │ ├── LICENSE │ │ │ │ ├── README.md │ │ │ │ ├── lib │ │ │ │ │ ├── api │ │ │ │ │ │ ├── ds_standard_web_api.dart │ │ │ │ │ │ └── ds_standard_web_api_export.dart │ │ │ │ │ ├── core │ │ │ │ │ │ ├── ds_standard_web_core.dart │ │ │ │ │ │ └── ds_standard_web_core_export.dart │ │ │ │ │ ├── ds_svelte_core.dart │ │ │ │ │ ├── extensions │ │ │ │ │ │ ├── ds_standard_web_extensions.dart │ │ │ │ │ │ └── ds_standard_web_extensions_export.dart │ │ │ │ │ ├── overrides │ │ │ │ │ │ ├── ds_standard_web_overrides.dart │ │ │ │ │ │ └── ds_standard_web_overrides_export.dart │ │ │ │ │ └── utilities │ │ │ │ │ │ ├── ds_standard_web_utilities.dart │ │ │ │ │ │ └── ds_standard_web_utilities_export.dart │ │ │ │ └── pubspec.yaml │ │ │ └── vue │ │ │ │ ├── CHANGELOG.md │ │ │ │ ├── LICENSE │ │ │ │ ├── README.md │ │ │ │ ├── lib │ │ │ │ ├── api │ │ │ │ │ ├── ds_standard_web_api.dart │ │ │ │ │ └── ds_standard_web_api_export.dart │ │ │ │ ├── core │ │ │ │ │ ├── ds_standard_web_core.dart │ │ │ │ │ └── ds_standard_web_core_export.dart │ │ │ │ ├── ds_vue_core.dart │ │ │ │ ├── extensions │ │ │ │ │ ├── ds_standard_web_extensions.dart │ │ │ │ │ └── ds_standard_web_extensions_export.dart │ │ │ │ ├── overrides │ │ │ │ │ ├── ds_standard_web_overrides.dart │ │ │ │ │ └── ds_standard_web_overrides_export.dart │ │ │ │ └── utilities │ │ │ │ │ ├── ds_standard_web_utilities.dart │ │ │ │ │ └── ds_standard_web_utilities_export.dart │ │ │ │ └── pubspec.yaml │ │ ├── standard │ │ │ ├── api │ │ │ │ ├── ds_standard_api.dart │ │ │ │ └── ds_standard_api_export.dart │ │ │ ├── core │ │ │ │ ├── ds_standard_core.dart │ │ │ │ └── ds_standard_core_export.dart │ │ │ ├── extensions │ │ │ │ ├── auth │ │ │ │ │ ├── README.md │ │ │ │ │ ├── base │ │ │ │ │ │ ├── CHANGELOG.md │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ ├── ds_auth_base_export.dart │ │ │ │ │ │ │ ├── ds_auth_manager.dart │ │ │ │ │ │ │ └── ds_auth_provider.dart │ │ │ │ │ │ └── pubspec.yaml │ │ │ │ │ └── providers │ │ │ │ │ │ ├── amazon │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ └── ds_cognito_auth_provider.dart │ │ │ │ │ │ ├── manifest.yaml │ │ │ │ │ │ └── pubspec.yaml │ │ │ │ │ │ ├── azure │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ └── ds_azure_ad_b2c_auth_provider.dart │ │ │ │ │ │ ├── manifest.yaml │ │ │ │ │ │ └── pubspec.yaml │ │ │ │ │ │ └── google │ │ │ │ │ │ ├── lib │ │ │ │ │ │ └── ds_firebase_auth_provider.dart │ │ │ │ │ │ ├── manifest.yaml │ │ │ │ │ │ └── pubspec.yaml │ │ │ │ ├── data_streaming │ │ │ │ │ └── manifest.yaml │ │ │ │ ├── database │ │ │ │ │ ├── ds_firebase_database.dart │ │ │ │ │ ├── ds_mysql_database.dart │ │ │ │ │ ├── ds_postgres_database.dart │ │ │ │ │ └── manifest.yaml │ │ │ │ ├── discovery │ │ │ │ │ ├── README.md │ │ │ │ │ └── ds_discovery.dart │ │ │ │ ├── ds_standard_extensions.dart │ │ │ │ ├── ds_standard_extensions_export.dart │ │ │ │ ├── events │ │ │ │ │ ├── base │ │ │ │ │ │ └── ds_event_manager.dart │ │ │ │ │ ├── ds_event_listeners.dart │ │ │ │ │ └── manifest.yaml │ │ │ │ ├── feature_flags │ │ │ │ │ ├── base │ │ │ │ │ │ ├── CHANGELOG.md │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ ├── ds_feature_flag_evaluation_result.dart │ │ │ │ │ │ │ ├── ds_feature_flag_manager.dart │ │ │ │ │ │ │ └── ds_feature_flag_provider.dart │ │ │ │ │ │ └── pubspec.yaml │ │ │ │ │ ├── noop_feature_flag_manager.dart │ │ │ │ │ └── providers │ │ │ │ │ │ ├── flagd │ │ │ │ │ │ └── ds_flagd.dart │ │ │ │ │ │ └── go_feature_flag │ │ │ │ │ │ ├── lib │ │ │ │ │ │ └── ds_go_feature_flag.dart │ │ │ │ │ │ ├── manifest.yaml │ │ │ │ │ │ └── pubspec.yaml │ │ │ │ ├── lifecycle │ │ │ │ │ ├── README.md │ │ │ │ │ └── base │ │ │ │ │ │ └── ds_lifecycle_hooks.dart │ │ │ │ ├── logging │ │ │ │ │ └── manifest.yaml │ │ │ │ ├── middleware │ │ │ │ │ ├── base │ │ │ │ │ │ ├── CHANGELOG.md │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ ├── ds_middleware_base_export.dart │ │ │ │ │ │ │ ├── ds_middleware_manager.dart │ │ │ │ │ │ │ └── ds_middleware_provider.dart │ │ │ │ │ │ └── pubspec.yaml │ │ │ │ │ ├── manifest.yaml │ │ │ │ │ └── provider │ │ │ │ │ │ ├── ds_custom │ │ │ │ │ │ └── pubspec.yaml │ │ │ │ │ │ ├── ds_middleware │ │ │ │ │ │ ├── CHANGELOG.md │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ ├── example │ │ │ │ │ │ │ ├── ds_example_authentication.dart │ │ │ │ │ │ │ ├── ds_example_database.dart │ │ │ │ │ │ │ └── ds_example_routing.dart │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ ├── app │ │ │ │ │ │ │ │ ├── controllers │ │ │ │ │ │ │ │ │ ├── ds_download.dart │ │ │ │ │ │ │ │ │ ├── ds_static_files.dart │ │ │ │ │ │ │ │ │ ├── ds_upload.dart │ │ │ │ │ │ │ │ │ └── test.dart │ │ │ │ │ │ │ │ ├── dependency_injection │ │ │ │ │ │ │ │ │ └── test.dart │ │ │ │ │ │ │ │ ├── error_handling │ │ │ │ │ │ │ │ │ ├── ds_error_handler.dart │ │ │ │ │ │ │ │ │ └── test.dart │ │ │ │ │ │ │ │ ├── logging │ │ │ │ │ │ │ │ │ ├── ds_logger.dart │ │ │ │ │ │ │ │ │ └── test.dart │ │ │ │ │ │ │ │ ├── middleware │ │ │ │ │ │ │ │ │ ├── ds_cors_middleware.dart │ │ │ │ │ │ │ │ │ └── ds_custom_core_middleware.dart │ │ │ │ │ │ │ │ ├── models │ │ │ │ │ │ │ │ │ └── ds_custom_middleware_model.dart │ │ │ │ │ │ │ │ ├── parsers │ │ │ │ │ │ │ │ │ ├── ds_body_parser.dart │ │ │ │ │ │ │ │ │ └── test.dart │ │ │ │ │ │ │ │ └── websockets │ │ │ │ │ │ │ │ │ └── ds_websocket_handler.dart │ │ │ │ │ │ │ ├── authentication │ │ │ │ │ │ │ │ ├── ds_authorization.dart │ │ │ │ │ │ │ │ └── sdks │ │ │ │ │ │ │ │ │ ├── azure_sdk │ │ │ │ │ │ │ │ │ └── azure.dart │ │ │ │ │ │ │ │ │ ├── cognito_sdk │ │ │ │ │ │ │ │ │ └── cognito.dart │ │ │ │ │ │ │ │ │ └── firebase_admin_sdk │ │ │ │ │ │ │ │ │ └── firebaseadmin.dart │ │ │ │ │ │ │ ├── database │ │ │ │ │ │ │ │ └── test.dart │ │ │ │ │ │ │ ├── ds_custom_middleware.dart │ │ │ │ │ │ │ ├── ds_custom_middleware_base.dart │ │ │ │ │ │ │ ├── ds_custom_middleware_interceptor.dart │ │ │ │ │ │ │ ├── ds_middleware │ │ │ │ │ │ │ │ └── pubspec.yaml │ │ │ │ │ │ │ ├── presentation │ │ │ │ │ │ │ │ ├── templates │ │ │ │ │ │ │ │ │ └── test.dart │ │ │ │ │ │ │ │ └── views │ │ │ │ │ │ │ │ │ └── test.dart │ │ │ │ │ │ │ ├── public │ │ │ │ │ │ │ │ ├── api │ │ │ │ │ │ │ │ │ └── images │ │ │ │ │ │ │ │ │ │ └── vip.png │ │ │ │ │ │ │ │ ├── test.dart │ │ │ │ │ │ │ │ └── upload │ │ │ │ │ │ │ │ │ ├── 1674945061510.jpg │ │ │ │ │ │ │ │ │ ├── Rectangle 2014.png │ │ │ │ │ │ │ │ │ ├── Rectangle.png │ │ │ │ │ │ │ │ │ ├── download.jpg │ │ │ │ │ │ │ │ │ └── vip.png │ │ │ │ │ │ │ ├── routing │ │ │ │ │ │ │ │ ├── ds_dynamic_route.dart │ │ │ │ │ │ │ │ ├── ds_index_route.dart │ │ │ │ │ │ │ │ ├── ds_nested_route.dart │ │ │ │ │ │ │ │ ├── ds_print_route.dart │ │ │ │ │ │ │ │ ├── ds_query_string_handler.dart │ │ │ │ │ │ │ │ ├── ds_route_params.dart │ │ │ │ │ │ │ │ ├── ds_routing_export.dart │ │ │ │ │ │ │ │ └── test.dart │ │ │ │ │ │ │ ├── services │ │ │ │ │ │ │ │ ├── push notifications │ │ │ │ │ │ │ │ │ └── push.notifications_service.dart │ │ │ │ │ │ │ │ └── storage │ │ │ │ │ │ │ │ │ ├── aws │ │ │ │ │ │ │ │ │ └── ds_aws_storage_dart │ │ │ │ │ │ │ │ │ ├── azure │ │ │ │ │ │ │ │ │ └── ds_gcp_storage.dart │ │ │ │ │ │ │ │ │ └── gcp │ │ │ │ │ │ │ │ │ └── ds_gcp_storage.dart │ │ │ │ │ │ │ ├── shared │ │ │ │ │ │ │ │ └── utilities │ │ │ │ │ │ │ │ │ ├── ds_http_helpers.dart │ │ │ │ │ │ │ │ │ └── test.dart │ │ │ │ │ │ │ └── src │ │ │ │ │ │ │ │ ├── authorization │ │ │ │ │ │ │ │ └── ds_authorization.dart │ │ │ │ │ │ │ │ ├── body_parsing │ │ │ │ │ │ │ │ └── ds_body_parser.dart │ │ │ │ │ │ │ │ ├── cors │ │ │ │ │ │ │ │ └── ds_cors_middleware.dart │ │ │ │ │ │ │ │ ├── error_handling │ │ │ │ │ │ │ │ └── ds_error_handler.dart │ │ │ │ │ │ │ │ ├── http_helpers │ │ │ │ │ │ │ │ └── ds_http_helpers.dart │ │ │ │ │ │ │ │ ├── logging │ │ │ │ │ │ │ │ └── ds_logger.dart │ │ │ │ │ │ │ │ ├── model │ │ │ │ │ │ │ │ ├── ds_request_model.dart │ │ │ │ │ │ │ │ └── ds_response_model.dart │ │ │ │ │ │ │ │ ├── query_string │ │ │ │ │ │ │ │ └── ds_query_string_handler.dart │ │ │ │ │ │ │ │ ├── routing │ │ │ │ │ │ │ │ ├── dynamic_routing.dart │ │ │ │ │ │ │ │ ├── file_system_routing.dart │ │ │ │ │ │ │ │ ├── index_routing.dart │ │ │ │ │ │ │ │ ├── nested_router.dart │ │ │ │ │ │ │ │ ├── path_parser.dart │ │ │ │ │ │ │ │ ├── print_router.dart │ │ │ │ │ │ │ │ └── route_params.dart │ │ │ │ │ │ │ │ ├── static_files │ │ │ │ │ │ │ │ └── ds_static_file_handler.dart │ │ │ │ │ │ │ │ └── websockets │ │ │ │ │ │ │ │ └── ds_websocket_handler.dart │ │ │ │ │ │ ├── melos_ds_custom_middleware.iml │ │ │ │ │ │ ├── melos_ds_dartstream.iml │ │ │ │ │ │ ├── pubspec.yaml │ │ │ │ │ │ ├── pubspec_overrides.yaml │ │ │ │ │ │ └── test │ │ │ │ │ │ │ ├── app │ │ │ │ │ │ │ ├── controllers │ │ │ │ │ │ │ │ ├── ds_download.dart │ │ │ │ │ │ │ │ ├── ds_static_files.dart │ │ │ │ │ │ │ │ ├── ds_upload.dart │ │ │ │ │ │ │ │ └── test.dart │ │ │ │ │ │ │ ├── dependency_injection │ │ │ │ │ │ │ │ └── test.dart │ │ │ │ │ │ │ ├── error_handling │ │ │ │ │ │ │ │ └── test.dart │ │ │ │ │ │ │ ├── logging │ │ │ │ │ │ │ │ └── test.dart │ │ │ │ │ │ │ ├── middleware │ │ │ │ │ │ │ │ └── ds_custom_core_middleware.dart │ │ │ │ │ │ │ ├── models │ │ │ │ │ │ │ │ └── ds_custom_middleware_model.dart │ │ │ │ │ │ │ └── parsers │ │ │ │ │ │ │ │ └── test.dart │ │ │ │ │ │ │ ├── authentication │ │ │ │ │ │ │ └── sdks │ │ │ │ │ │ │ │ ├── azure_sdk │ │ │ │ │ │ │ │ └── azure.dart │ │ │ │ │ │ │ │ ├── cognito_sdk │ │ │ │ │ │ │ │ └── cognito.dart │ │ │ │ │ │ │ │ └── firebase_admin_sdk │ │ │ │ │ │ │ │ └── firebaseadmin.dart │ │ │ │ │ │ │ ├── database │ │ │ │ │ │ │ └── test.dart │ │ │ │ │ │ │ ├── ds_custom_middleware.dart │ │ │ │ │ │ │ ├── ds_custom_middleware_test.dart │ │ │ │ │ │ │ ├── presentation │ │ │ │ │ │ │ ├── templates │ │ │ │ │ │ │ │ └── test.dart │ │ │ │ │ │ │ └── views │ │ │ │ │ │ │ │ └── test.dart │ │ │ │ │ │ │ ├── public │ │ │ │ │ │ │ ├── api │ │ │ │ │ │ │ │ └── images │ │ │ │ │ │ │ │ │ └── vip.png │ │ │ │ │ │ │ ├── test.dart │ │ │ │ │ │ │ └── upload │ │ │ │ │ │ │ │ ├── 1674945061510.jpg │ │ │ │ │ │ │ │ ├── Rectangle 2014.png │ │ │ │ │ │ │ │ ├── Rectangle.png │ │ │ │ │ │ │ │ ├── download.jpg │ │ │ │ │ │ │ │ └── vip.png │ │ │ │ │ │ │ ├── routing │ │ │ │ │ │ │ ├── ds_dynamic_route.dart │ │ │ │ │ │ │ ├── ds_index_route.dart │ │ │ │ │ │ │ ├── ds_nested_route.dart │ │ │ │ │ │ │ ├── ds_print_route.dart │ │ │ │ │ │ │ ├── ds_routing_export.dart │ │ │ │ │ │ │ ├── routing_test.dart │ │ │ │ │ │ │ └── test.dart │ │ │ │ │ │ │ ├── services │ │ │ │ │ │ │ ├── push notifications │ │ │ │ │ │ │ │ └── push.notifications_service.dart │ │ │ │ │ │ │ └── storage │ │ │ │ │ │ │ │ ├── aws │ │ │ │ │ │ │ │ └── ds_aws_storage_dart │ │ │ │ │ │ │ │ ├── azure │ │ │ │ │ │ │ │ └── ds_gcp_storage.dart │ │ │ │ │ │ │ │ └── gcp │ │ │ │ │ │ │ │ └── ds_gcp_storage.dart │ │ │ │ │ │ │ └── shared │ │ │ │ │ │ │ └── utilities │ │ │ │ │ │ │ └── test.dart │ │ │ │ │ │ └── ds_shelf │ │ │ │ │ │ ├── lib │ │ │ │ │ │ └── ds_shelf │ │ │ │ │ │ │ ├── CHANGELOG.md │ │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── bin │ │ │ │ │ │ │ └── ds_shelf_server.dart │ │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ ├── api │ │ │ │ │ │ │ │ ├── ds_shelf_api.dart │ │ │ │ │ │ │ │ └── ds_shelf_api_export.dart │ │ │ │ │ │ │ ├── core │ │ │ │ │ │ │ │ ├── ds_shelf_core.dart │ │ │ │ │ │ │ │ └── ds_shelf_core_export.dart │ │ │ │ │ │ │ ├── ds_shelf.dart │ │ │ │ │ │ │ ├── extensions │ │ │ │ │ │ │ │ ├── ds_shelf_extension.dart │ │ │ │ │ │ │ │ └── ds_shelf_extension_export.dart │ │ │ │ │ │ │ ├── overrides │ │ │ │ │ │ │ │ ├── ds_shelf_overrides.dart │ │ │ │ │ │ │ │ └── ds_shelf_overrides_export.dart │ │ │ │ │ │ │ ├── src │ │ │ │ │ │ │ │ └── ds_internal_middleware.dart │ │ │ │ │ │ │ └── utilities │ │ │ │ │ │ │ │ ├── ds_shelf_utilities_base.dart │ │ │ │ │ │ │ │ ├── ds_shelf_utilities_export.dart │ │ │ │ │ │ │ │ ├── ds_shelf_utilities_file.dart │ │ │ │ │ │ │ │ ├── ds_shelf_utilities_json.dart │ │ │ │ │ │ │ │ ├── ds_shelf_utilities_middleware.dart │ │ │ │ │ │ │ │ ├── ds_shelf_utilities_path.dart │ │ │ │ │ │ │ │ ├── ds_shelf_utilities_request.dart │ │ │ │ │ │ │ │ ├── ds_shelf_utilities_response.dart │ │ │ │ │ │ │ │ ├── ds_shelf_utilities_security.dart │ │ │ │ │ │ │ │ └── ds_shelf_utilities_string.dart │ │ │ │ │ │ │ ├── melos_ds_shelf.iml │ │ │ │ │ │ │ ├── pubspec.yaml │ │ │ │ │ │ │ └── pubspec_overrides.yaml │ │ │ │ │ │ └── pubspec.yaml │ │ │ │ ├── notifications │ │ │ │ │ └── manifest.yaml │ │ │ │ └── storage │ │ │ │ │ └── manifest.yaml │ │ │ ├── overrides │ │ │ │ ├── ds_standard_overrides.dart │ │ │ │ └── ds_standard_overrides_export.dart │ │ │ ├── registration_interface │ │ │ │ └── ds_standard_feature_registration_interface.dart │ │ │ ├── standard_features │ │ │ │ ├── CHANGELOG.md │ │ │ │ ├── LICENSE │ │ │ │ ├── README.md │ │ │ │ ├── ds_standard_features.dart │ │ │ │ └── pubspec.yaml │ │ │ └── utilities │ │ │ │ ├── ds_di_container.dart │ │ │ │ ├── ds_error_handling.dart │ │ │ │ ├── ds_logging.dart │ │ │ │ ├── ds_services.dart │ │ │ │ ├── ds_standard_utilities.dart │ │ │ │ └── ds_standard_utilities_export.dart │ │ └── tooling │ │ │ ├── ds_cli_util │ │ │ ├── lib │ │ │ │ ├── core │ │ │ │ │ ├── ds_core.dart │ │ │ │ │ ├── ds_create_custom_middleware.dart │ │ │ │ │ ├── ds_create_shelf.dart │ │ │ │ │ ├── ds_deploy.dart │ │ │ │ │ ├── ds_doctor.dart │ │ │ │ │ ├── ds_init-sample.dart │ │ │ │ │ ├── ds_init.dart │ │ │ │ │ ├── ds_make.dart │ │ │ │ │ ├── ds_middleware_select.dart │ │ │ │ │ └── ds_rename.dart │ │ │ │ ├── ds_cli_util.dart │ │ │ │ ├── examples │ │ │ │ │ └── ds_example.dart │ │ │ │ ├── extensions │ │ │ │ │ └── ds_extensions.dart │ │ │ │ ├── overrides │ │ │ │ │ └── ds_overrides.dart │ │ │ │ ├── src │ │ │ │ │ └── internal_code.dart │ │ │ │ └── utilities │ │ │ │ │ └── ds_utilities.dart │ │ │ ├── melos_ds_cli.iml │ │ │ ├── pubspec.yaml │ │ │ └── pubspec_overrides.yaml │ │ │ └── ds_tools │ │ │ ├── cli │ │ │ ├── CHANGELOG.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── deprecated.md │ │ │ ├── lib │ │ │ │ ├── ds_tools_cli.dart │ │ │ │ └── extensions │ │ │ │ │ ├── ds_tools_cli_extension.dart │ │ │ │ │ └── ds_tools_cli_extension_export.dart │ │ │ ├── melos_ds_tools_cli.iml │ │ │ ├── pubspec.yaml │ │ │ └── pubspec_overrides.yaml │ │ │ ├── deployment │ │ │ └── test.dart │ │ │ ├── development │ │ │ └── test.dart │ │ │ ├── general │ │ │ ├── CHANGELOG.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── ds_yaml.dart │ │ │ ├── lib │ │ │ │ ├── ds_tools_general.dart │ │ │ │ └── extensions │ │ │ │ │ ├── ds_tools_general_extension.dart │ │ │ │ │ └── ds_tools_general_extension_export.dart │ │ │ ├── melos_ds_tools_general.iml │ │ │ └── pubspec.yaml │ │ │ ├── integration │ │ │ └── test.dart │ │ │ ├── performance │ │ │ └── test.dart │ │ │ ├── security │ │ │ └── test.dart │ │ │ └── testing │ │ │ ├── CHANGELOG.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── lib │ │ │ ├── ds_tools_testing.dart │ │ │ └── extensions │ │ │ │ ├── ds_tools_testing_extension.dart │ │ │ │ └── ds_tools_testing_extension_export.dart │ │ │ ├── melos_ds_shelf.iml │ │ │ ├── melos_ds_tools_testing.iml │ │ │ └── pubspec.yaml │ ├── pubspec.yaml │ └── src │ │ └── utils │ │ ├── config_loader.dart │ │ └── example │ │ └── example.dart ├── dartstream_registry.json ├── pubspec.yaml └── test │ ├── config │ └── ds_config_tests.dart │ ├── enhanced │ └── enhanced_feature_tests.dart │ ├── experimental │ └── experimental_feature_tests.dart │ ├── frameworks │ └── framework_specific_tests.dart │ ├── standard │ ├── core │ │ └── ds_standard_core_test.dart │ └── extensions │ │ ├── auth │ │ ├── base │ │ │ ├── ds_auth_manger_test.dart │ │ │ └── ds_auth_provider_test.dart │ │ └── providers │ │ │ └── google │ │ │ ├── ds_firebase_auth_manager_test.dart │ │ │ └── ds_firebase_auth_provider_test.dart │ │ └── discovery │ │ └── ds_discovery_test.dart │ └── tooling │ ├── cli_util │ ├── bin │ │ └── ds_test.dart │ ├── core │ │ ├── ds_core_test.dart │ │ ├── ds_deploy_test.dart │ │ ├── ds_doctor_test.dart │ │ ├── ds_init_test.dart │ │ ├── ds_make_test.dart │ │ └── ds_rename_test.dart │ ├── extensions │ │ └── ds_extensions_test.dart │ └── utilities │ │ └── ds_utilities_test.dart │ └── shelf │ ├── bin │ └── ds_shelf_server_test.dart │ ├── lib │ ├── api │ │ ├── ds_shelf_api_export_test.dart │ │ └── ds_shelf_api_test.dart │ ├── core │ │ ├── ds_shelf_core_export_test.dart │ │ └── ds_shelf_core_test.dart │ ├── ds_shelf_test.dart │ ├── extensions │ │ ├── ds_shelf_extension_test.dart │ │ └── ds_shelf_extensions_export_test.dart │ ├── overrides │ │ ├── ds_shelf_overrides_export_test.dart │ │ └── ds_shelf_overrides_test.dart │ ├── src │ │ └── ds_internal_middleware_test.dart │ └── utilities │ │ ├── ds_shelf_utilities_base_test.dart │ │ ├── ds_shelf_utilities_export_test.dart │ │ ├── ds_shelf_utilities_file_test.dart │ │ ├── ds_shelf_utilities_json_test.dart │ │ ├── ds_shelf_utilities_middleware_test.dart │ │ ├── ds_shelf_utilities_path_test.dart │ │ ├── ds_shelf_utilities_request_test.dart │ │ ├── ds_shelf_utilities_response_test.dart │ │ ├── ds_shelf_utilities_security_test.dart │ │ └── ds_shelf_utilities_string_test.dart │ ├── melos_ds_shelf.iml │ └── pubspec.yaml ├── images └── dartstream-logo.png ├── melos.yaml ├── melos_ds_melos.iml └── pubspec.yaml /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: false 2 | contact_links: 3 | - name: Product Support 4 | url: https://dartstream.freshdesk.com/support/home 5 | about: For product support you can click here. 6 | - name: Discord Community 7 | url: https://discord.gg/tcSdBSzT 8 | about: For general support inquiries, visit our support page. 9 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # https://dart.dev/guides/libraries/private-files 2 | # Created by `dart pub` 3 | .dart_tool/ 4 | 5 | # Avoid committing pubspec.lock for library packages; see 6 | # https://dart.dev/guides/libraries/private-files#pubspeclock. 7 | pubspec.lock 8 | 9 | #Ignore pipeline tools For MAIN repo - For Development Only 10 | tools/ 11 | 12 | #Ignore pipeline tools 13 | #.gitlab-ci.yml -------------------------------------------------------------------------------- /.gitlab-ci.yml: -------------------------------------------------------------------------------- 1 | stages: 2 | - triggers 3 | 4 | 5 | conditional_development: 6 | stage: triggers 7 | trigger: 8 | include: tools/pipelines/child-ci-development.yml 9 | rules: 10 | - if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "development" || $CI_COMMIT_BRANCH == "development" 11 | 12 | conditional_production: 13 | stage: triggers 14 | trigger: 15 | include: tools/pipelines/child-ci-production.yml 16 | rules: 17 | - if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main" || $CI_COMMIT_BRANCH == "main" -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Editor-based HTTP Client requests 5 | /httpRequests/ 6 | # Datasource local storage ignored files 7 | /dataSources/ 8 | /dataSources.local.xml 9 | -------------------------------------------------------------------------------- /.idea/.name: -------------------------------------------------------------------------------- 1 | ds_melos -------------------------------------------------------------------------------- /.idea/dartstream.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/runConfigurations/melos_bootstrap.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/runConfigurations/melos_clean.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | Contributor Code of Conduct 2 | 3 | Version 0.1-dartstream 4 | As contributors and maintainers of the dartstream project, we pledge to respect everyone who contributes by posting issues, 5 | updating documentation, submitting pull requests, providing feedback in comments, and any other activities. 6 | 7 | Communication through any of dartstream's channels (Gitlab, Google Chat, Discord, Emails, Zoom, Miro, etc.) must be 8 | constructive and never resort to personal attacks, trolling, public or private harassment, insults, or other 9 | unprofessional conduct. 10 | 11 | We promise to extend courtesy and respect to everyone involved in this project regardless of gender, gender identity, 12 | sexual orientation, disability, age, race, ethnicity, religion, or level of experience. We expect contributors to 13 | the dartstream project to do the same. 14 | 15 | If any member violates this code of conduct, the maintainers of the dartstream project may take action, removing issues, 16 | comments, and PRs or blocking accounts as deemed appropriate. 17 | 18 | If you are subject to or witness unacceptable behavior, or have any other concerns, please contact us. -------------------------------------------------------------------------------- /dartstream/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 1.0.0 2 | 3 | - Initial version. 4 | -------------------------------------------------------------------------------- /dartstream/bin/README.md: -------------------------------------------------------------------------------- 1 | # How to Use Extension Discovery Command 2 | 3 | # Open a terminal in your project root. 4 | # Run the following command to discover extensions: 5 | # dart bin/ds_cli.dart discover 6 | # Expected output: 7 | # A list of discovered extensions and their metadata. -------------------------------------------------------------------------------- /dartstream/bin/ds_commands/ds_disable_extension_command.dart: -------------------------------------------------------------------------------- 1 | import 'package:args/command_runner.dart'; 2 | import '../../dartstream_backend/packages/standard/extensions/discovery/ds_discovery.dart'; 3 | 4 | class DSDisableExtensionCommand extends Command { 5 | @override 6 | final name = 'disable-extension'; 7 | @override 8 | final description = 'Disables a specified extension.'; 9 | 10 | @override 11 | Future run() async { 12 | final args = argResults?.arguments ?? []; 13 | if (args.isEmpty) { 14 | print('Error: Please specify the name of the extension to disable.'); 15 | return; 16 | } 17 | final extensionName = args[0]; 18 | final registry = ExtensionRegistry( 19 | extensionsDirectory: 'path/to/extensions', 20 | registryFile: 'path/to/registry.json', 21 | ); 22 | registry.discoverExtensions(); // Ensure registry is populated 23 | registry.disableExtension(extensionName); 24 | registry.saveActiveExtensions(); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /dartstream/bin/ds_commands/ds_enable_extension_command.dart: -------------------------------------------------------------------------------- 1 | import 'package:args/command_runner.dart'; 2 | import '../../dartstream_backend/packages/standard/extensions/discovery/ds_discovery.dart'; 3 | 4 | class DSEnableExtensionCommand extends Command { 5 | @override 6 | final name = 'enable-extension'; 7 | @override 8 | final description = 'Enables a specified extension.'; 9 | 10 | @override 11 | Future run() async { 12 | final args = argResults?.arguments ?? []; 13 | if (args.isEmpty) { 14 | print('Error: Please specify the name of the extension to enable.'); 15 | return; 16 | } 17 | final extensionName = args[0]; 18 | final registry = ExtensionRegistry( 19 | extensionsDirectory: 'path/to/extensions', 20 | registryFile: 'path/to/registry.json', 21 | ); 22 | registry.discoverExtensions(); // Ensure registry is populated 23 | registry.enableExtension(extensionName); 24 | registry.saveActiveExtensions(); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /dartstream/bin/ds_commands/ds_generate_command.dart: -------------------------------------------------------------------------------- 1 | // ds_commands/ds_generate_command.dart 2 | import 'package:args/command_runner.dart'; 3 | 4 | class DSGenerateCommand extends Command { 5 | @override 6 | final name = 'generate'; 7 | @override 8 | final description = 'Generate project files based on the configuration.'; 9 | 10 | DSGenerateCommand(); 11 | 12 | @override 13 | void run() { 14 | print('Generating project files...'); 15 | // Implement logic for generating files based on saved configuration. 16 | print('Project files generated successfully.'); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /dartstream/bin/ds_commands/ds_list_feature_flag_command.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/bin/ds_commands/ds_list_feature_flag_command.dart -------------------------------------------------------------------------------- /dartstream/bin/pubspec_overrides.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/bin/pubspec_overrides.yaml -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/config/development/general/ds_general.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/config/development/general/ds_general.yaml -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/config/development/middleware/ds_custom.yaml: -------------------------------------------------------------------------------- 1 | server: 2 | host: localhost 3 | port: 9090 4 | database: 5 | url: "postgresql://localhost" 6 | name: "devdb" 7 | user: "devuser" 8 | password: "devpassword" 9 | logging: 10 | level: info 11 | output: "logs/custom_dev.log" 12 | authentication: 13 | jwt_secret: "your_jwt_secret_here" 14 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/config/development/middleware/ds_shelf.yaml: -------------------------------------------------------------------------------- 1 | server: 2 | host: localhost 3 | port: 8080 4 | database: 5 | url: "mongodb://localhost:27017" 6 | name: "devdb" 7 | logging: 8 | level: debug 9 | output: "logs/dev.log" 10 | external_services: 11 | stripe_api_key: "sk_test_YourTestApiKeyHere" 12 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/config/production/middleware/ds_custom.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/config/production/middleware/ds_custom.yaml -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/config/production/middleware/ds_shelf.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/config/production/middleware/ds_shelf.yaml -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/config/registered_extensions.json: -------------------------------------------------------------------------------- 1 | [{"name":"AmazonAuth","version":"0.0.1","description":"Google authentication provider for Dartstream.","dependencies":["Auth >=0.0.1"],"entry_point":"lib/ds_cognito_auth_provider.dart"},{"name":"AzureAuth","version":"0.0.1","description":"Azure authentication provider for Dartstream.","dependencies":["Auth >=0.0.1"],"entry_point":"lib/ds_azure_ad_b2c_auth_provider.dart"},{"name":"GoogleAuth","version":"0.0.1","description":"Google authentication provider for Dartstream.","dependencies":["Auth >=0.0.1"],"entry_point":"lib/ds_firebase_auth_provider.dart"}] -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/config/registered_extensions.yaml: -------------------------------------------------------------------------------- 1 | # This file is beneficial for the following: 2 | # We want to cache discovered extensions to avoid repeated scans. 3 | # Provides a high-level view of all registered extensions. 4 | # Provides a global configuration or dependency resolver. -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/enhanced/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## [0.0.1-pre] - 2024-05-11 4 | 5 | ### Added 6 | - Initial release with enhanced features framework functionality. 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/enhanced/extensions/ds_package_extensions.dart: -------------------------------------------------------------------------------- 1 | /* import 'package:some_package/some_package.dart'; 2 | 3 | extension ExtendedFeature on SomeClassFromPackage { 4 | void newMethod() { 5 | // Your custom logic 6 | } 7 | } */ 8 | 9 | //abstract class DSAuthExtensionAmazonCore extends DSAuthAmazonCore {} 10 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/enhanced/lib/core/authentication/lib/amazon_cognito_sdk/azure_identity_sdk/ds_azure_identity_core.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | import 'package:ds_shelf/ds_shelf.dart' as shelf; //Coverage for shelf 3 | import 'package:ds_shelf/ds_shelf.dart'; //Coverage for other packages 4 | 5 | //Import Azure SDk Package 6 | //import xxxxxxx; 7 | 8 | //Begin Class Code Structure 9 | 10 | /*class DSAuthAzureCore extends Onyema class { 11 | Do Nothing but have a base class 12 | */ 13 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/enhanced/lib/core/authentication/lib/amazon_cognito_sdk/azure_identity_sdk/ds_azure_identity_export.dart: -------------------------------------------------------------------------------- 1 | library ds_amazon_cognito_core; 2 | 3 | // Export main core module 4 | export 'ds_azure_identity_core.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | 9 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/enhanced/lib/core/authentication/lib/amazon_cognito_sdk/ds_amazon_cognito_core.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | import 'package:ds_shelf/ds_shelf.dart' as shelf; //Coverage for shelf 3 | import 'package:ds_shelf/ds_shelf.dart'; //Coverage for other packages 4 | 5 | //Import other core packages 6 | import '../ds_enhanced_authentication_features.dart'; 7 | 8 | //Begin Class Code Structure 9 | 10 | class DSAuthAmazonCore extends { 11 | //Should this feature from this other third party - is a core feature? 12 | } 13 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/enhanced/lib/core/authentication/lib/amazon_cognito_sdk/ds_amazon_cognito_export.dart: -------------------------------------------------------------------------------- 1 | library ds_amazon_cognito_core; 2 | 3 | // Export main core module 4 | export 'ds_amazon_cognito_core.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | 9 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/enhanced/lib/core/authentication/lib/amazon_cognito_sdk/firebase_admin_sdk/ds_firebase_admin_export.dart: -------------------------------------------------------------------------------- 1 | library ds_amazon_cognito_core; 2 | 3 | // Export main core module 4 | export 'ds_firebase_admin_core.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | 9 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/enhanced/lib/core/authentication/melos_ds_enhanced_authentication_features.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/enhanced/lib/core/authentication/pubspec.yaml: -------------------------------------------------------------------------------- 1 | #This pubspec file is used for any dependencies that both the frontend and backend framework use(aka. shared dependencies) 2 | name: ds_enhanced_authentication_features 3 | description: Packages for our enhanced authentication features 4 | version: 0.0.1-pre 5 | # repository: https://github.com/my_org/my_repo 6 | 7 | environment: 8 | sdk: ">=3.3.0 <4.0.0" 9 | 10 | # Dependencies are added in sections alphabetically and according to features. 11 | dependencies: 12 | 13 | # MIDDLEWARE - USE ONLY ONE 14 | 15 | # Shelf Middleware Import // On By Default 16 | ds_shelf: ^0.0.1-pre 17 | 18 | # Custom Middleware Import // Off By Default 19 | 20 | # AUTHENTICATION SDK PACKAGES - USE ONLY ONE 21 | 22 | # Amazon Cognito SDK 23 | amazon_cognito_identity_dart_2: ^3.6.2 24 | 25 | # Core Custom Import 26 | 27 | #Cosmetic 28 | lints: ^3.0.0 #Included In ds_standard_features 29 | 30 | #Testing Packages 31 | test: ^1.24.0 32 | mockito: ^5.0.0 33 | mocktail: ^1.0.3 34 | 35 | #Globally Activated Package 36 | executables: 37 | ds: ds_cli -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/enhanced/lib/core/ds_enhanced_core_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_core; 2 | 3 | // Export standard core module 4 | export 'ds_standard_core.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/enhanced/lib/core/ds_standard_core.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | //import 'package:ds'; //Coverage for other packages 3 | 4 | //Import other core packages 5 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/enhanced/lib/core/google_dev/google_dev.dart: -------------------------------------------------------------------------------- 1 | //These packages are developed by official google developers 2 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/enhanced/lib/extensions/ds_package_extensions.dart: -------------------------------------------------------------------------------- 1 | /* import 'package:some_package/some_package.dart'; 2 | 3 | extension ExtendedFeature on SomeClassFromPackage { 4 | void newMethod() { 5 | // Your custom logic 6 | } 7 | } */ 8 | 9 | abstract class DSAuthExtensionAmazonCore extends DSAuthAmazonCore {} 10 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/enhanced/lib/extensions/ds_package_extensions2.dart: -------------------------------------------------------------------------------- 1 | /* import 'package:some_package/some_package.dart'; 2 | 3 | extension ExtendedFeature on SomeClassFromPackage { 4 | void newMethod() { 5 | // Your custom logic 6 | } 7 | } */ -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/enhanced/lib/overrides/ds_custom_package.dart: -------------------------------------------------------------------------------- 1 | /* import 'package:some_package/some_package.dart'; 2 | 3 | class CustomSomeClass extends SomeClassFromPackage { 4 | @override 5 | void someMethod() { 6 | // Custom implementation 7 | } 8 | } 9 | */ -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/enhanced/lib/overrides/ds_custom_package2.dart: -------------------------------------------------------------------------------- 1 | /* import 'package:some_package/some_package.dart'; 2 | 3 | class CustomSomeClass extends SomeClassFromPackage { 4 | @override 5 | void someMethod() { 6 | // Custom implementation 7 | } 8 | } 9 | */ -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/enhanced/melos_ds_enhanced_features.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/enhanced/pubspec.yaml: -------------------------------------------------------------------------------- 1 | #This pubspec file imports is used for any dependencies that both the frontend and backend framework use(aka. shared dependencies) 2 | name: ds_enhanced_features 3 | description: Packages for our enhanced features 4 | version: 0.0.1-pre 5 | repository: https://github.com/aortem/dartstream 6 | 7 | environment: 8 | sdk: ">=3.4.0 <4.0.0" 9 | 10 | # Dependencies are added in sections alphabetically and according to features. 11 | dependencies: 12 | 13 | # MIDDLEWARE - USE ONLY ONE 14 | 15 | # Shelf Middleware Import // On By Default 16 | ds_shelf: ^0.0.1-pre 17 | 18 | # Custom Middleware Import // Off By Default 19 | 20 | # STANDARD FEATURES 21 | # ds_standard_features: ^0.0.1-pre+5 22 | 23 | # Database 24 | sqlite3: ^2.4.2 #Local database development - No driver 25 | 26 | #Globally Activated Package 27 | #executables: 28 | # ds: ds_cli -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/enhanced/pubspec_overrides.yaml: -------------------------------------------------------------------------------- 1 | # melos_managed_dependency_overrides: ds_shelf,ds_standard_features 2 | #dependency_overrides: 3 | # ds_shelf: 4 | # path: ../tooling/ds_shelf 5 | # ds_standard_features: 6 | # path: ../standard 7 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/experimental/extensions/ds_package_extensions.dart: -------------------------------------------------------------------------------- 1 | /* import 'package:some_package/some_package.dart'; 2 | 3 | extension ExtendedFeature on SomeClassFromPackage { 4 | void newMethod() { 5 | // Your custom logic 6 | } 7 | } */ -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/experimental/extensions/ds_package_extensions2.dart: -------------------------------------------------------------------------------- 1 | /* import 'package:some_package/some_package.dart'; 2 | 3 | extension ExtendedFeature on SomeClassFromPackage { 4 | void newMethod() { 5 | // Your custom logic 6 | } 7 | } */ -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/experimental/overrides/ds_custom_package.dart: -------------------------------------------------------------------------------- 1 | /* import 'package:some_package/some_package.dart'; 2 | 3 | class CustomSomeClass extends SomeClassFromPackage { 4 | @override 5 | void someMethod() { 6 | // Custom implementation 7 | } 8 | } 9 | */ -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/experimental/overrides/ds_custom_package2.dart: -------------------------------------------------------------------------------- 1 | /* import 'package:some_package/some_package.dart'; 2 | 3 | class CustomSomeClass extends SomeClassFromPackage { 4 | @override 5 | void someMethod() { 6 | // Custom implementation 7 | } 8 | } 9 | */ -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/android_compose/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## 0.0.1-pre+1 - 2024-08-12 4 | 5 | - update web package to stable version 1.0.0. 6 | 7 | ## 0.0.1-pre - 2024-08-07 8 | 9 | ### Added 10 | - Initial release with standard features web framework functionality. 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/android_compose/lib/api/ds_standard_web_api.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | //import 'package:ds'; 3 | 4 | //Import other core packages 5 | 6 | class DSStandardApiCore {} 7 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/android_compose/lib/api/ds_standard_web_api_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_api; 2 | 3 | // Export standard api module 4 | export 'ds_standard_web_api.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/android_compose/lib/core/ds_standard_web_core.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | //import 'package:ds'; //Coverage for other packages 3 | 4 | //Import other core packages 5 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/android_compose/lib/core/ds_standard_web_core_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_core; 2 | 3 | // Export standard core module 4 | export 'ds_standard_web_core.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/android_compose/lib/ds_flutter_web_core.dart: -------------------------------------------------------------------------------- 1 | // lib/ds_standard_features.dart 2 | library ds_standard_features_web; 3 | 4 | //------------------ IMPORTS --------------------------------- 5 | 6 | //The Standard Core Libraries - Built by the dart team 7 | 8 | import 'package:web/web.dart'; 9 | import 'package:matcher/matcher.dart'; 10 | 11 | //------------------ EXPORTS ------------------ 12 | 13 | //The Standard Core Libraries - Built by the dart team 14 | 15 | export 'package:web/web.dart'; 16 | export 'package:matcher/matcher.dart'; 17 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/android_compose/lib/extensions/ds_standard_web_extensions.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/frameworks/android_compose/lib/extensions/ds_standard_web_extensions.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/android_compose/lib/extensions/ds_standard_web_extensions_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_extensions; 2 | 3 | // Export standard extensions module 4 | export 'ds_standard_web_extensions.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/android_compose/lib/overrides/ds_standard_web_overrides.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/frameworks/android_compose/lib/overrides/ds_standard_web_overrides.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/android_compose/lib/overrides/ds_standard_web_overrides_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_overrides; 2 | 3 | // Export standard overrides module 4 | export 'ds_standard_web_overrides.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/android_compose/lib/utilities/ds_standard_web_utilities.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/frameworks/android_compose/lib/utilities/ds_standard_web_utilities.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/android_compose/lib/utilities/ds_standard_web_utilities_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_utilities; 2 | 3 | // Export standard utilities module 4 | export 'ds_standard_web_utilities.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/android_compose/pubspec.yaml: -------------------------------------------------------------------------------- 1 | #This pubspec file imports is used for any dependencies for standard Dartstream features. 2 | 3 | name: ds_android_compose_framework_base 4 | description: Packages for our android_compose framework - maintained by the Aortem and Dart team. 5 | version: 0.0.1-pre+1 6 | repository: https://github.com/aortem/dartstream 7 | 8 | environment: 9 | sdk: ">=3.4.0 <4.0.0" 10 | 11 | # Dependencies are added in sections alphabetically and according to features. 12 | dependencies: 13 | 14 | # STANDARD PACKAGES - Built By The Dart Team 15 | ds_standard_features: ^0.0.1-pre+11 -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/dartweb/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## 0.0.1-pre+1 - 2024-08-12 4 | 5 | - update web package to stable version 1.0.0. 6 | 7 | ## 0.0.1-pre - 2024-08-07 8 | 9 | ### Added 10 | - Initial release with standard features web framework functionality. 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/dartweb/lib/api/ds_standard_web_api.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | //import 'package:ds'; 3 | 4 | //Import other core packages 5 | 6 | class DSStandardApiCore {} 7 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/dartweb/lib/api/ds_standard_web_api_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_api; 2 | 3 | // Export standard api module 4 | export 'ds_standard_web_api.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/dartweb/lib/core/ds_standard_web_core.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | //import 'package:ds'; //Coverage for other packages 3 | 4 | //Import other core packages 5 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/dartweb/lib/core/ds_standard_web_core_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_core; 2 | 3 | // Export standard core module 4 | export 'ds_standard_web_core.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/dartweb/lib/ds_dartweb_core.dart.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/frameworks/dartweb/lib/ds_dartweb_core.dart.txt -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/dartweb/lib/extensions/ds_standard_web_extensions.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/frameworks/dartweb/lib/extensions/ds_standard_web_extensions.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/dartweb/lib/extensions/ds_standard_web_extensions_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_extensions; 2 | 3 | // Export standard extensions module 4 | export 'ds_standard_web_extensions.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/dartweb/lib/overrides/ds_standard_web_overrides.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/frameworks/dartweb/lib/overrides/ds_standard_web_overrides.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/dartweb/lib/overrides/ds_standard_web_overrides_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_overrides; 2 | 3 | // Export standard overrides module 4 | export 'ds_standard_web_overrides.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/dartweb/lib/utilities/ds_standard_web_utilities.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/frameworks/dartweb/lib/utilities/ds_standard_web_utilities.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/dartweb/lib/utilities/ds_standard_web_utilities_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_utilities; 2 | 3 | // Export standard utilities module 4 | export 'ds_standard_web_utilities.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/dartweb/pubspec.yaml: -------------------------------------------------------------------------------- 1 | #This pubspec file imports is used for any dependencies for standard Dartstream features. 2 | 3 | name: ds_dartweb_framework_base 4 | description: Packages for our dartweb framework - maintained by the Aortem and Dart team. 5 | version: 0.0.1-pre+1 6 | repository: https://github.com/aortem/dartstream 7 | 8 | environment: 9 | sdk: ">=3.4.0 <4.0.0" 10 | 11 | # Dependencies are added in sections alphabetically and according to features. 12 | dependencies: 13 | 14 | # STANDARD PACKAGES - Built By The Dart Team 15 | ds_standard_features: ^0.0.1-pre+11 -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_desktop/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## 0.0.1-pre+1 - 2024-08-12 4 | 5 | - update web package to stable version 1.0.0. 6 | 7 | ## 0.0.1-pre - 2024-08-07 8 | 9 | ### Added 10 | - Initial release with standard features web framework functionality. 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_desktop/lib/api/ds_standard_web_api.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | //import 'package:ds'; 3 | 4 | //Import other core packages 5 | 6 | class DSStandardApiCore {} 7 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_desktop/lib/api/ds_standard_web_api_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_api; 2 | 3 | // Export standard api module 4 | export 'ds_standard_web_api.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_desktop/lib/core/ds_standard_web_core.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | //import 'package:ds'; //Coverage for other packages 3 | 4 | //Import other core packages 5 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_desktop/lib/core/ds_standard_web_core_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_core; 2 | 3 | // Export standard core module 4 | export 'ds_standard_web_core.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_desktop/lib/ds_flutter_desktop_core.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/frameworks/flutter_desktop/lib/ds_flutter_desktop_core.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_desktop/lib/extensions/ds_standard_web_extensions.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/frameworks/flutter_desktop/lib/extensions/ds_standard_web_extensions.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_desktop/lib/extensions/ds_standard_web_extensions_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_extensions; 2 | 3 | // Export standard extensions module 4 | export 'ds_standard_web_extensions.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_desktop/lib/overrides/ds_standard_web_overrides.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/frameworks/flutter_desktop/lib/overrides/ds_standard_web_overrides.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_desktop/lib/overrides/ds_standard_web_overrides_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_overrides; 2 | 3 | // Export standard overrides module 4 | export 'ds_standard_web_overrides.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_desktop/lib/utilities/ds_standard_web_utilities.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/frameworks/flutter_desktop/lib/utilities/ds_standard_web_utilities.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_desktop/lib/utilities/ds_standard_web_utilities_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_utilities; 2 | 3 | // Export standard utilities module 4 | export 'ds_standard_web_utilities.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_desktop/melos_ds_standard_features.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_desktop/melos_ds_standard_features_web.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_desktop/pubspec.yaml: -------------------------------------------------------------------------------- 1 | #This pubspec file imports is used for any dependencies for standard Dartstream features. 2 | 3 | name: ds_flutter_desktop_framework_base 4 | description: Packages for our Flutter desktop framework - maintained by the Aortem and Dart team. 5 | version: 0.0.1-pre+1 6 | repository: https://github.com/aortem/dartstream 7 | 8 | environment: 9 | sdk: ">=3.4.0 <4.0.0" 10 | 11 | # Dependencies are added in sections alphabetically and according to features. 12 | dependencies: 13 | 14 | # STANDARD PACKAGES - Built By The Dart Team 15 | ds_standard_features: ^0.0.1-pre+11 -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_games/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## 0.0.1-pre+1 - 2024-08-12 4 | 5 | - update web package to stable version 1.0.0. 6 | 7 | ## 0.0.1-pre - 2024-08-07 8 | 9 | ### Added 10 | - Initial release with standard features web framework functionality. 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_games/lib/api/ds_standard_web_api.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | //import 'package:ds'; 3 | 4 | //Import other core packages 5 | 6 | class DSStandardApiCore {} 7 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_games/lib/api/ds_standard_web_api_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_api; 2 | 3 | // Export standard api module 4 | export 'ds_standard_web_api.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_games/lib/core/ds_standard_web_core.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | //import 'package:ds'; //Coverage for other packages 3 | 4 | //Import other core packages 5 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_games/lib/core/ds_standard_web_core_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_core; 2 | 3 | // Export standard core module 4 | export 'ds_standard_web_core.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_games/lib/ds_flutter_games_core.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/frameworks/flutter_games/lib/ds_flutter_games_core.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_games/lib/extensions/ds_standard_web_extensions.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/frameworks/flutter_games/lib/extensions/ds_standard_web_extensions.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_games/lib/extensions/ds_standard_web_extensions_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_extensions; 2 | 3 | // Export standard extensions module 4 | export 'ds_standard_web_extensions.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_games/lib/overrides/ds_standard_web_overrides.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/frameworks/flutter_games/lib/overrides/ds_standard_web_overrides.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_games/lib/overrides/ds_standard_web_overrides_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_overrides; 2 | 3 | // Export standard overrides module 4 | export 'ds_standard_web_overrides.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_games/lib/utilities/ds_standard_web_utilities.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/frameworks/flutter_games/lib/utilities/ds_standard_web_utilities.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_games/lib/utilities/ds_standard_web_utilities_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_utilities; 2 | 3 | // Export standard utilities module 4 | export 'ds_standard_web_utilities.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_games/pubspec.yaml: -------------------------------------------------------------------------------- 1 | #This pubspec file imports is used for any dependencies for standard Dartstream features. 2 | 3 | name: ds_flutter_games_framework_base 4 | description: Packages for our Flutter games framework - maintained by the Aortem and Dart team. 5 | version: 0.0.1-pre+1 6 | repository: https://github.com/aortem/dartstream 7 | 8 | environment: 9 | sdk: ">=3.4.0 <4.0.0" 10 | 11 | # Dependencies are added in sections alphabetically and according to features. 12 | dependencies: 13 | 14 | # STANDARD PACKAGES - Built By The Dart Team 15 | ds_standard_features: ^0.0.1-pre+11 -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_mobile/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## 0.0.1-pre+1 - 2024-08-12 4 | 5 | - update web package to stable version 1.0.0. 6 | 7 | ## 0.0.1-pre - 2024-08-07 8 | 9 | ### Added 10 | - Initial release with standard features web framework functionality. 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_mobile/lib/api/ds_flutter_mobile_api.dart: -------------------------------------------------------------------------------- 1 | /* Used for API-related logic (if applicable), such as REST or GraphQL integrations, 2 | SDK bindings, or framework-specific network utilities. */ 3 | 4 | class DSFLutterMobileApiCore {} 5 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_mobile/lib/api/ds_flutter_mobile_api_export.dart: -------------------------------------------------------------------------------- 1 | library ds_flutter_mobile_api; 2 | 3 | // Export standard api module 4 | export 'ds_flutter_mobile_api.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_mobile/lib/core/ds_flutter_mobile_auth_adapter.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:dartstream_backend/extensions/auth/lib/ds_auth_export.dart'; 3 | import 'package:dartstream_auth/ds_auth_export.dart'; 4 | import 'package:dartstream_backend/extensions/auth/ds_user.dart'; 5 | 6 | /// AuthAdapter for Flutter Mobile framework 7 | class DSFlutterMobileAuthAdapter extends ChangeNotifier { 8 | final DSAuthManager _authManager; 9 | DSUser? _user; 10 | 11 | DSFlutterMobileAuthAdapter(String providerName) 12 | : _authManager = DSAuthManager(providerName); 13 | 14 | Future signIn(String username, String password) async { 15 | await _authManager.signIn(username, password); 16 | _user = await _authManager.getUser("123"); 17 | notifyListeners(); // Notify Flutter widgets of changes 18 | } 19 | 20 | Future signOut() async { 21 | await _authManager.signOut(); 22 | _user = null; 23 | notifyListeners(); 24 | } 25 | 26 | DSUser? get user => _user; 27 | } 28 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_mobile/lib/core/ds_flutter_mobile_core_export.dart: -------------------------------------------------------------------------------- 1 | library ds_flutter_mobile_core_export; 2 | 3 | // Export standard core module 4 | export 'ds_flutter_mobile_core.dart'; 5 | export 'ds_flutter_mobile_auth_adapter.dart'; 6 | 7 | 8 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 9 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_mobile/lib/core/pubspec.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | flutter: 3 | sdk: flutter 4 | dartstream_auth: # Reference the auth package 5 | path: ../../../../standard/extensions/auth/base 6 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_mobile/lib/ds_flutter_mobile_core.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/frameworks/flutter_mobile/lib/ds_flutter_mobile_core.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_mobile/lib/extensions/ds_flutter_mobile_extensions.dart: -------------------------------------------------------------------------------- 1 | /*Users wanting to extend the framework see the extensions/ folder as the dedicated space for their work.*/ 2 | 3 | class DSFlutterMobileExtensions {} 4 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_mobile/lib/extensions/ds_flutter_mobile_extensions_export.dart: -------------------------------------------------------------------------------- 1 | //Anything in extensions/ is specifically meant for custom or optional additions. 2 | 3 | library ds_flutter_mobile_extensions; 4 | 5 | // Export standard extensions module 6 | export 'ds_flutter_mobile_extensions.dart'; 7 | 8 | 9 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 10 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_mobile/lib/modules/ds_flutter_mobile_modules.dart: -------------------------------------------------------------------------------- 1 | /*For frameworks with specific requirements (e.g., Flame’s lifecycle hooks, Vue’s state management), 2 | the modules/ folder provides an intuitive way to add features without cluttering other folders.*/ 3 | 4 | class DSFlutterMobileModules {} 5 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_mobile/lib/modules/ds_flutter_mobile_modules_export.dart: -------------------------------------------------------------------------------- 1 | library ds_flutter_mobile_modules; 2 | 3 | // Export ds_flutter_mobile_modules 4 | export 'ds_flutter_mobile_modules.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_mobile/lib/overrides/ds_flutter_mobile_overrides.dart: -------------------------------------------------------------------------------- 1 | class DSFlutterMobileOverrides {} 2 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_mobile/lib/overrides/ds_flutter_mobile_overrides_export.dart: -------------------------------------------------------------------------------- 1 | library ds_flutter_mobile_overrides; 2 | 3 | // Export standard overrides module 4 | export 'ds_flutter_mobile_overrides.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_mobile/lib/utilities/ds_flutter_mobile_utilities.dart: -------------------------------------------------------------------------------- 1 | /*Contains framework-specific helper functions, such as formatters, validators, 2 | or commonly used methods. This folder helps modularize non-core logic. */ 3 | 4 | class DSFlutterMobileUtilties {} 5 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_mobile/lib/utilities/ds_flutter_mobile_utilities_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_utilities; 2 | 3 | // Export standard utilities module 4 | export 'ds_flutter_mobile_utilities.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_mobile/pubspec.yaml: -------------------------------------------------------------------------------- 1 | #This pubspec file imports is used for any dependencies for standard Dartstream features. 2 | 3 | name: ds_flutter_mobile_framework_base 4 | description: Packages for our Flutter mobile framework - maintained by the Aortem and Dart team. 5 | version: 0.0.1-pre+1 6 | repository: https://github.com/aortem/dartstream 7 | 8 | environment: 9 | sdk: ">=3.4.0 <4.0.0" 10 | 11 | # Dependencies are added in sections alphabetically and according to features. 12 | dependencies: 13 | 14 | # STANDARD PACKAGES - Built By The Dart Team 15 | ds_standard_features: ^0.0.1-pre+11 -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_web/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## 0.0.1-pre+1 - 2024-08-12 4 | 5 | - update web package to stable version 1.0.0. 6 | 7 | ## 0.0.1-pre - 2024-08-07 8 | 9 | ### Added 10 | - Initial release with standard features web framework functionality. 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_web/lib/api/ds_standard_web_api.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | //import 'package:ds'; 3 | 4 | //Import other core packages 5 | 6 | class DSStandardApiCore {} 7 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_web/lib/api/ds_standard_web_api_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_api; 2 | 3 | // Export standard api module 4 | export 'ds_standard_web_api.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_web/lib/core/ds_standard_web_core.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | //import 'package:ds'; //Coverage for other packages 3 | 4 | //Import other core packages 5 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_web/lib/core/ds_standard_web_core_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_core; 2 | 3 | // Export standard core module 4 | export 'ds_standard_web_core.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_web/lib/ds_flutter_web_core.dart: -------------------------------------------------------------------------------- 1 | // lib/ds_standard_features.dart 2 | library ds_standard_features_web; 3 | 4 | //------------------ IMPORTS --------------------------------- 5 | 6 | //The Standard Core Libraries - Built by the dart team 7 | 8 | import 'package:web/web.dart'; 9 | import 'package:matcher/matcher.dart'; 10 | 11 | //------------------ EXPORTS ------------------ 12 | 13 | //The Standard Core Libraries - Built by the dart team 14 | 15 | export 'package:web/web.dart'; 16 | export 'package:matcher/matcher.dart'; 17 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_web/lib/extensions/ds_standard_web_extensions.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/frameworks/flutter_web/lib/extensions/ds_standard_web_extensions.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_web/lib/extensions/ds_standard_web_extensions_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_extensions; 2 | 3 | // Export standard extensions module 4 | export 'ds_standard_web_extensions.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_web/lib/overrides/ds_standard_web_overrides.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/frameworks/flutter_web/lib/overrides/ds_standard_web_overrides.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_web/lib/overrides/ds_standard_web_overrides_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_overrides; 2 | 3 | // Export standard overrides module 4 | export 'ds_standard_web_overrides.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_web/lib/utilities/ds_standard_web_utilities.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/frameworks/flutter_web/lib/utilities/ds_standard_web_utilities.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_web/lib/utilities/ds_standard_web_utilities_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_utilities; 2 | 3 | // Export standard utilities module 4 | export 'ds_standard_web_utilities.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/flutter_web/pubspec.yaml: -------------------------------------------------------------------------------- 1 | #This pubspec file imports is used for any dependencies for standard Dartstream features. 2 | 3 | name: ds_dartweb_framework_base 4 | description: Packages for our flutter_web framework - maintained by the Aortem and Dart team. 5 | version: 0.0.1-pre+1 6 | repository: https://github.com/aortem/dartstream 7 | 8 | environment: 9 | sdk: ">=3.4.0 <4.0.0" 10 | 11 | # Dependencies are added in sections alphabetically and according to features. 12 | dependencies: 13 | 14 | # STANDARD PACKAGES - Built By The Dart Team 15 | ds_standard_features: ^0.0.1-pre+11 -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/svelte/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## 0.0.1-pre+1 - 2024-08-12 4 | 5 | - update web package to stable version 1.0.0. 6 | 7 | ## 0.0.1-pre - 2024-08-07 8 | 9 | ### Added 10 | - Initial release with standard features web framework functionality. 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/svelte/lib/api/ds_standard_web_api.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | //import 'package:ds'; 3 | 4 | //Import other core packages 5 | 6 | class DSStandardApiCore {} 7 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/svelte/lib/api/ds_standard_web_api_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_api; 2 | 3 | // Export standard api module 4 | export 'ds_standard_web_api.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/svelte/lib/core/ds_standard_web_core.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | //import 'package:ds'; //Coverage for other packages 3 | 4 | //Import other core packages 5 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/svelte/lib/core/ds_standard_web_core_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_core; 2 | 3 | // Export standard core module 4 | export 'ds_standard_web_core.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/svelte/lib/ds_svelte_core.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/frameworks/svelte/lib/ds_svelte_core.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/svelte/lib/extensions/ds_standard_web_extensions.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/frameworks/svelte/lib/extensions/ds_standard_web_extensions.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/svelte/lib/extensions/ds_standard_web_extensions_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_extensions; 2 | 3 | // Export standard extensions module 4 | export 'ds_standard_web_extensions.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/svelte/lib/overrides/ds_standard_web_overrides.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/frameworks/svelte/lib/overrides/ds_standard_web_overrides.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/svelte/lib/overrides/ds_standard_web_overrides_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_overrides; 2 | 3 | // Export standard overrides module 4 | export 'ds_standard_web_overrides.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/svelte/lib/utilities/ds_standard_web_utilities.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/frameworks/svelte/lib/utilities/ds_standard_web_utilities.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/svelte/lib/utilities/ds_standard_web_utilities_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_utilities; 2 | 3 | // Export standard utilities module 4 | export 'ds_standard_web_utilities.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/svelte/pubspec.yaml: -------------------------------------------------------------------------------- 1 | #This pubspec file imports is used for any dependencies for standard Dartstream features. 2 | 3 | name: ds_svelte_framework_base 4 | description: Packages for our svelte framework - maintained by the Aortem and Dart team. 5 | version: 0.0.1-pre+1 6 | repository: https://github.com/aortem/dartstream 7 | 8 | environment: 9 | sdk: ">=3.4.0 <4.0.0" 10 | 11 | # Dependencies are added in sections alphabetically and according to features. 12 | dependencies: 13 | 14 | # STANDARD PACKAGES - Built By The Dart Team 15 | ds_standard_features: ^0.0.1-pre+11 -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/vue/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## 0.0.1-pre+1 - 2024-08-12 4 | 5 | - update web package to stable version 1.0.0. 6 | 7 | ## 0.0.1-pre - 2024-08-07 8 | 9 | ### Added 10 | - Initial release with standard features web framework functionality. 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/vue/lib/api/ds_standard_web_api.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | //import 'package:ds'; 3 | 4 | //Import other core packages 5 | 6 | class DSStandardApiCore {} 7 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/vue/lib/api/ds_standard_web_api_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_api; 2 | 3 | // Export standard api module 4 | export 'ds_standard_web_api.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/vue/lib/core/ds_standard_web_core.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | //import 'package:ds'; //Coverage for other packages 3 | 4 | //Import other core packages 5 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/vue/lib/core/ds_standard_web_core_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_core; 2 | 3 | // Export standard core module 4 | export 'ds_standard_web_core.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/vue/lib/ds_vue_core.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/frameworks/vue/lib/ds_vue_core.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/vue/lib/extensions/ds_standard_web_extensions.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/frameworks/vue/lib/extensions/ds_standard_web_extensions.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/vue/lib/extensions/ds_standard_web_extensions_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_extensions; 2 | 3 | // Export standard extensions module 4 | export 'ds_standard_web_extensions.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/vue/lib/overrides/ds_standard_web_overrides.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/frameworks/vue/lib/overrides/ds_standard_web_overrides.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/vue/lib/overrides/ds_standard_web_overrides_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_overrides; 2 | 3 | // Export standard overrides module 4 | export 'ds_standard_web_overrides.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/vue/lib/utilities/ds_standard_web_utilities.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/frameworks/vue/lib/utilities/ds_standard_web_utilities.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/vue/lib/utilities/ds_standard_web_utilities_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_utilities; 2 | 3 | // Export standard utilities module 4 | export 'ds_standard_web_utilities.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/frameworks/vue/pubspec.yaml: -------------------------------------------------------------------------------- 1 | #This pubspec file imports is used for any dependencies for standard Dartstream features. 2 | 3 | name: ds_vue_framework_base 4 | description: Packages for our vue framework - maintained by the Aortem and Dart team. 5 | version: 0.0.1-pre+1 6 | repository: https://github.com/aortem/dartstream 7 | 8 | environment: 9 | sdk: ">=3.4.0 <4.0.0" 10 | 11 | # Dependencies are added in sections alphabetically and according to features. 12 | dependencies: 13 | 14 | # STANDARD PACKAGES - Built By The Dart Team 15 | ds_standard_features: ^0.0.1-pre+11 -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/api/ds_standard_api.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | //import 'package:ds'; 3 | 4 | //Import other core packages 5 | 6 | class DSStandardApiCore {} 7 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/api/ds_standard_api_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_api; 2 | 3 | // Export standard api module 4 | export 'ds_standard_api.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/core/ds_standard_core_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_core; 2 | 3 | // Export standard core module 4 | export 'ds_standard_core.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/auth/base/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## [0.0.1-pre] - 2024-11-18 4 | 5 | ### Added 6 | - Initial release for the auth integration package providers. 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/auth/base/lib/ds_auth_base_export.dart: -------------------------------------------------------------------------------- 1 | /*The auth folder contains core authentication logic and extensions. 2 | Use a single export file (ds_auth_export.dart) to simplify imports across the framework. */ 3 | 4 | library ds_auth_base_export; 5 | 6 | export 'ds_auth_provider.dart'; 7 | export 'ds_auth_manager.dart'; 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/auth/base/lib/ds_auth_provider.dart: -------------------------------------------------------------------------------- 1 | // extensions/auth/ds_auth_provider.dart 2 | 3 | abstract class DSAuthProvider { 4 | Future signIn(String username, String password); 5 | Future signOut(); 6 | Future getUser(String userId); 7 | Future verifyToken(String token); 8 | } 9 | 10 | // Standardized User model to ensure consistent structure across providers 11 | class DSAuthUser { 12 | final String id; 13 | final String email; 14 | final String displayName; 15 | 16 | DSAuthUser({ 17 | required this.id, 18 | required this.email, 19 | required this.displayName, 20 | }); 21 | } 22 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/auth/base/pubspec.yaml: -------------------------------------------------------------------------------- 1 | #This pubspec file imports is used for any authentication framework features. 2 | #This works for both mobile and web. 3 | name: ds_auth_base 4 | description: Base package for DartStream authentication, including foundational classes and interfaces. 5 | version: 0.0.1-pre+1 6 | repository: https://github.com/aortem/dartstream 7 | 8 | environment: 9 | sdk: ">=3.4.0 <4.0.0" 10 | 11 | # Dependencies are added in sections alphabetically and according to features. 12 | dependencies: 13 | 14 | firebase_dart_admin_auth_sdk: ^0.0.1-pre+10 15 | 16 | # STANDARD PACKAGES - Built By The Dart Team 17 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/auth/providers/amazon/lib/ds_cognito_auth_provider.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/auth/providers/amazon/lib/ds_cognito_auth_provider.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/auth/providers/amazon/manifest.yaml: -------------------------------------------------------------------------------- 1 | name: "AmazonAuth" 2 | version: "0.0.1" 3 | description: "Google authentication provider for Dartstream." 4 | dependencies: 5 | - "Auth >=0.0.1" 6 | entry_point: "lib/ds_cognito_auth_provider.dart" 7 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/auth/providers/amazon/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: "AmazonAuth" 2 | version: "1.0.0" 3 | description: "Amazon authentication provider for Dartstream." 4 | dependencies: 5 | - "Auth >=1.0.0" 6 | entry_point: "lib/amazon_auth_provider.dart" 7 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/auth/providers/azure/lib/ds_azure_ad_b2c_auth_provider.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/auth/providers/azure/lib/ds_azure_ad_b2c_auth_provider.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/auth/providers/azure/manifest.yaml: -------------------------------------------------------------------------------- 1 | name: "AzureAuth" 2 | version: "0.0.1" 3 | description: "Azure authentication provider for Dartstream." 4 | dependencies: 5 | - "Auth >=0.0.1" 6 | entry_point: "lib/ds_azure_ad_b2c_auth_provider.dart" -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/auth/providers/azure/pubspec.yaml: -------------------------------------------------------------------------------- 1 | Name: "AzureAuth" 2 | version: "1.0.0" 3 | description: "Amazon authentication provider for Dartstream." 4 | dependencies: 5 | - "Auth >=1.0.0" 6 | entry_point: "lib/amazon_auth_provider.dart" 7 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/auth/providers/google/manifest.yaml: -------------------------------------------------------------------------------- 1 | name: "GoogleAuth" 2 | version: "0.0.1" 3 | description: "Google authentication provider for Dartstream." 4 | dependencies: 5 | - "Auth >=0.0.1" 6 | entry_point: "lib/ds_firebase_auth_provider.dart" 7 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/auth/providers/google/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: google_auth_provider 2 | description: Google authentication provider for Dartstream. 3 | version: 0.0.1-pre+10 4 | repository: https://github.com/aortem/dartstream 5 | 6 | publish_to: none # Mark the package as non-publishable for local testing: 7 | 8 | environment: 9 | sdk: ">=3.5.2 <4.0.0" 10 | 11 | dependencies: 12 | firebase_dart_admin_auth_sdk: ^0.0.1-pre+10 # Include the Firebase Auth SDK 13 | ds_auth_base: 14 | path: ../../base 15 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/data_streaming/manifest.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/data_streaming/manifest.yaml -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/database/ds_firebase_database.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/database/ds_firebase_database.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/database/ds_mysql_database.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/database/ds_mysql_database.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/database/ds_postgres_database.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/database/ds_postgres_database.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/database/manifest.yaml: -------------------------------------------------------------------------------- 1 | name: "Database" 2 | version: "0.1.0" 3 | description: "Database extension placeholder." 4 | dependencies: [] 5 | entry_point: "lib/database_extension.dart" 6 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/discovery/README.md: -------------------------------------------------------------------------------- 1 | # Key Improvements 2 | 3 | ## Error Handling: 4 | 5 | - Detects and reports invalid dependency formats in manifest.yaml (e.g., missing >=). 6 | 7 | - Provides clear messages for invalid manifest structures. 8 | 9 | ## Camel Case Enforcement: 10 | 11 | - Dependency names must match camel case conventions exactly. 12 | 13 | - If needed, normalization can be added (e.g., _normalizeCamelCase()). 14 | 15 | # Improved Logging: 16 | 17 | - Logs more detailed messages for missing files, invalid formats, and errors. 18 | 19 | # Registry Save Error Handling: 20 | 21 | - Ensures that errors during registry save are caught and logged. -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/ds_standard_extensions_export.dart: -------------------------------------------------------------------------------- 1 | // ds_standard_extensions_export.dart 2 | 3 | library ds_standard_extensions; 4 | 5 | // Export the main extension system and interfaces 6 | export 'ds_standard_extensions.dart'; 7 | export '../lib/extensions/ds_feature_extension.dart'; 8 | export '../lib/extensions/ds_lifecycle_hooks.dart'; 9 | 10 | // Export extension providers 11 | export 'auth/base/lib/ds_auth_manager.dart'; 12 | export 'auth/base/lib/ds_auth_provider.dart'; 13 | export 'database/ds_firebase_database.dart'; 14 | export 'database/ds_mysql_database.dart'; 15 | export 'database/ds_postgres_database.dart'; 16 | export 'feature_flags/base/lib/ds_feature_flag_manager.dart'; 17 | export 'feature_flags/noop_feature_flag_manager.dart'; 18 | 19 | // Export utility interfaces 20 | export '../utilities/ds_di_container.dart'; 21 | export '../utilities/ds_services.dart'; 22 | export '../utilities/ds_logging.dart'; 23 | export '../utilities/ds_error_handling.dart'; 24 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/events/base/ds_event_manager.dart: -------------------------------------------------------------------------------- 1 | class EventManager { 2 | final Map> _listeners = {}; 3 | 4 | void subscribe(String event, void Function(dynamic) callback) { 5 | _listeners.putIfAbsent(event, () => []).add(callback); 6 | } 7 | 8 | void publish(String event, dynamic data) { 9 | if (_listeners.containsKey(event)) { 10 | for (var listener in _listeners[event]!) { 11 | listener(data); 12 | } 13 | } else { 14 | print('No subscribers for event: $event'); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/events/manifest.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/events/manifest.yaml -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/feature_flags/base/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## [0.0.1-pre] - 2024-11-18 4 | 5 | ### Added 6 | - Initial release for the auth integration package providers. 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/feature_flags/base/lib/ds_feature_flag_evaluation_result.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/feature_flags/base/lib/ds_feature_flag_evaluation_result.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/feature_flags/base/pubspec.yaml: -------------------------------------------------------------------------------- 1 | #This pubspec file imports is used for any authentication framework features. 2 | #This works for both mobile and web. 3 | name: ds_feature_flags_base 4 | description: Base package for DartStream authentication, including foundational classes and interfaces. 5 | version: 0.0.1-pre+1 6 | repository: https://github.com/aortem/dartstream 7 | 8 | environment: 9 | sdk: ">=3.4.0 <4.0.0" 10 | 11 | # Dependencies are added in sections alphabetically and according to features. 12 | dependencies: 13 | 14 | 15 | 16 | # STANDARD PACKAGES - Built By The Dart Team 17 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/feature_flags/noop_feature_flag_manager.dart: -------------------------------------------------------------------------------- 1 | //This is a default no-operation implementation to use if no provider is selected. 2 | 3 | // extensions/feature_flags/noop_feature_flag_manager.dart 4 | import 'base/lib/ds_feature_flag_manager.dart'; 5 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/feature_flags/providers/flagd/ds_flagd.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/feature_flags/providers/flagd/ds_flagd.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/feature_flags/providers/go_feature_flag/manifest.yaml: -------------------------------------------------------------------------------- 1 | name: go_feature_flag 2 | version: 0.0.1 3 | description: Integration with Go Feature Flag. 4 | dependencies: 5 | - Core >= 0.0.1 6 | - FeatureFlags >= 0.0.1 7 | entry_point: lib/ds_go_feature_flag.dart 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/feature_flags/providers/go_feature_flag/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: go_feature_flag_provider 2 | description: Provides an integration with Go Feature Flag, enabling Dartstream to manage and evaluate feature flags dynamically. 3 | version: 0.0.1-pre+1 4 | repository: https://github.com/aortem/dartstream 5 | 6 | publish_to: none # Mark the package as non-publishable for local testing: 7 | 8 | environment: 9 | sdk: ">=3.5.2 <4.0.0" 10 | 11 | dependencies: 12 | http: ^1.2.2 13 | ds_feature_flags_base: 14 | path: ../../base 15 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/lifecycle/README.md: -------------------------------------------------------------------------------- 1 | # Lifecycle although in the extension folder is part of the core framework and does not have a manifest file 2 | 3 | # Core Functionality: 4 | 5 | - Lifecycle hooks (onStart, onStop, etc.) are foundational to the framework and likely used by all extensions. 6 | 7 | # Extensibility: 8 | 9 | The lifecycle module can provide APIs (e.g., LifecycleManager.registerHook()) that extensions interact with. This makes lifecycle a service offered by the core, rather than an extension itself. 10 | 11 | # Avoid Circular Dependencies: 12 | 13 | We've designed this to expose APIs that extensions can use to register hooks or respond to lifecycle events. -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/lifecycle/base/ds_lifecycle_hooks.dart: -------------------------------------------------------------------------------- 1 | /// Interface for defining lifecycle hooks in Dartstream extensions. 2 | /// Allows extensions to execute code at specific points in their lifecycle. 3 | mixin LifecycleHook { 4 | /// Called when the extension is initialized. 5 | void onInitialize() { 6 | print('Default onInitialize executed in mixin.'); 7 | } 8 | 9 | /// Called when the extension is disposed. 10 | void onDispose() { 11 | print('Default onDispose executed in mixin.'); 12 | } 13 | } 14 | 15 | /// Example of a default implementation that uses the LifecycleHook mixin. 16 | /// This class can be extended or used as is by extensions to inherit default behavior. 17 | class DefaultLifecycleHook with LifecycleHook { 18 | @override 19 | void onInitialize() { 20 | super.onInitialize(); 21 | print('Custom onInitialize logic for DefaultLifecycleHook.'); 22 | } 23 | 24 | @override 25 | void onDispose() { 26 | super.onDispose(); 27 | print('Custom onDispose logic for DefaultLifecycleHook.'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/logging/manifest.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/logging/manifest.yaml -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/base/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## [0.0.1-pre] - 2024-11-18 4 | 5 | ### Added 6 | - Initial release for the auth integration package providers. 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/base/lib/ds_middleware_base_export.dart: -------------------------------------------------------------------------------- 1 | /*The middleware folder contains core middleware logic to perform hte following: 2 | - Framework registeration. 3 | - Framework configuration. 4 | - Set the default behavior. 5 | - set the frontend-aware middleware to specify context 6 | Use a single export file (ds_auth_export.dart) to simplify imports across the framework. */ 7 | 8 | library ds_auth_base_export; 9 | 10 | export 'ds_middleware_provider.dart'; 11 | export 'ds_middleware_manager.dart'; 12 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/base/lib/ds_middleware_provider.dart: -------------------------------------------------------------------------------- 1 | // extensions/auth/ds_auth_provider.dart 2 | 3 | abstract class DSAuthProvider { 4 | Future signIn(String username, String password); 5 | Future signOut(); 6 | Future getUser(String userId); 7 | Future verifyToken(String token); 8 | } 9 | 10 | // Standardized User model to ensure consistent structure across providers 11 | class DSMiddlewareUser { 12 | final String id; 13 | final String email; 14 | final String displayName; 15 | 16 | DSUser({ 17 | required this.id, 18 | required this.email, 19 | required this.displayName, 20 | }); 21 | } 22 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/base/pubspec.yaml: -------------------------------------------------------------------------------- 1 | #This pubspec file imports is used for any authentication framework features. 2 | #This works for both mobile and web. 3 | name: ds_auth_base 4 | description: Base package for DartStream authentication, including foundational classes and interfaces. 5 | version: 0.0.1-pre+1 6 | repository: https://github.com/aortem/dartstream 7 | 8 | environment: 9 | sdk: ">=3.4.0 <4.0.0" 10 | 11 | # Dependencies are added in sections alphabetically and according to features. 12 | dependencies: 13 | 14 | 15 | # STANDARD PACKAGES - Built By The Dart Team 16 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/manifest.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/manifest.yaml -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_custom/pubspec.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_custom/pubspec.yaml -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## [0.0.1-pre] - 2024-05-14 4 | 5 | ### Added 6 | - Initial release with custom DartStream Middleware framework functionality. 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/example/ds_example_database.dart: -------------------------------------------------------------------------------- 1 | class DsCustomMiddleWareDatabase { 2 | static final Map users = { 3 | 'user1': 'password1', 4 | 'user2': 'password2', 5 | }; 6 | 7 | static bool authenticate(String username, String password) { 8 | return users.containsKey(username) && users[username] == password; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/example/ds_example_routing.dart: -------------------------------------------------------------------------------- 1 | import 'package:ds_custom_middleware/ds_custom_middleware.dart'; 2 | 3 | class DsCustomMiddleWareRouter { 4 | final List _middlewares; 5 | 6 | DsCustomMiddleWareRouter() : _middlewares = []; 7 | 8 | void addMiddleware(dsCustomMiddleware middleware) { 9 | _middlewares.add(middleware); 10 | } 11 | 12 | Future handle( 13 | DsCustomMiddleWareRequest request) async { 14 | Future Function(DsCustomMiddleWareRequest) 15 | handler = (req) async { 16 | return DsCustomMiddleWareResponse.notFound(); 17 | }; 18 | 19 | for (var middleware in _middlewares.reversed) { 20 | handler = (req) async { 21 | return middleware.handle(req, handler); 22 | }; 23 | } 24 | 25 | return await handler(request); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/app/controllers/test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/app/controllers/test.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/app/dependency_injection/test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/app/dependency_injection/test.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/app/error_handling/test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/app/error_handling/test.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/app/logging/ds_logger.dart: -------------------------------------------------------------------------------- 1 | import 'package:logging/logging.dart'; 2 | import 'dart:io'; 3 | 4 | class DsLogger { 5 | static Logger? _instance; 6 | 7 | static void initialize({ 8 | Level logLevel = Level.INFO, 9 | String logFilePath = 'app.log', 10 | }) { 11 | Logger.root.level = logLevel; 12 | Logger.root.onRecord.listen((record) { 13 | final message = '${record.time}: ${record.level.name}: ${record.message}'; 14 | print(message); 15 | _writeToFile(logFilePath, message); 16 | }); 17 | _instance = Logger('DsLogger'); 18 | } 19 | 20 | static void _writeToFile(String filePath, String message) { 21 | File(filePath).writeAsStringSync('$message\n', mode: FileMode.append); 22 | } 23 | 24 | static void info(String message) => _instance?.info(message); 25 | static void warning(String message) => _instance?.warning(message); 26 | static void error(String message) => _instance?.severe(message); 27 | static void debug(String message) => _instance?.fine(message); 28 | } 29 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/app/logging/test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/app/logging/test.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/app/middleware/ds_custom_core_middleware.dart: -------------------------------------------------------------------------------- 1 | import '../models/ds_custom_middleware_model.dart'; 2 | 3 | abstract class dsCustomMiddleware { 4 | Future handle( 5 | DsCustomMiddleWareRequest request, 6 | Future Function(DsCustomMiddleWareRequest) 7 | next); 8 | } 9 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/app/parsers/ds_body_parser.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | import '../models/ds_custom_middleware_model.dart'; 3 | 4 | class DsBodyParser { 5 | Future> parseBody( 6 | DsCustomMiddleWareRequest request) async { 7 | final contentType = request.headers['content-type']; 8 | final body = await utf8.decoder.bind(request.read()).join(); 9 | 10 | if (contentType?.contains('application/json') == true) { 11 | return jsonDecode(body) as Map; 12 | } else if (contentType?.contains('application/x-www-form-urlencoded') == 13 | true) { 14 | return Uri.splitQueryString(body); 15 | } else { 16 | return {'rawBody': body}; 17 | } 18 | } 19 | 20 | Future addParsedBodyToRequest( 21 | DsCustomMiddleWareRequest request) async { 22 | final parsedBody = await parseBody(request); 23 | return request.copyWith(body: parsedBody); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/app/parsers/test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/app/parsers/test.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/authentication/sdks/azure_sdk/azure.dart: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/authentication/sdks/cognito_sdk/cognito.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/authentication/sdks/cognito_sdk/cognito.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/authentication/sdks/firebase_admin_sdk/firebaseadmin.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/authentication/sdks/firebase_admin_sdk/firebaseadmin.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/database/test.dart: -------------------------------------------------------------------------------- 1 | //You have to connect to a cloud database in order to use the project. -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/ds_custom_middleware.dart: -------------------------------------------------------------------------------- 1 | // lib/DsCustumMiddleware 2 | 3 | library ds_custom_middleware; 4 | 5 | // Export Base DsCustumMiddleware Component so users don't have to import them separately 6 | // //EXPORTS 7 | export 'app/middleware/ds_custom_core_middleware.dart'; 8 | // export 'app/models/ds_custom_middleware_model.dart'; //removed to hide the conflict 9 | export 'ds_custom_middleware_base.dart'; 10 | export 'ds_custom_middleware_interceptor.dart'; 11 | export 'src/authorization/ds_authorization.dart'; 12 | export 'src/cors/ds_cors_middleware.dart'; 13 | export 'src/error_handling/ds_error_handler.dart'; 14 | export 'src/model/ds_request_model.dart'; 15 | export 'src/model/ds_response_model.dart'; 16 | export 'app/models/ds_custom_middleware_model.dart' 17 | hide 18 | DsCustomMiddleWareRequest, 19 | DsCustomMiddleWareResponse; //use instead of export 'app/models/ds_custom_middleware_model.dart'; 20 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/ds_custom_middleware_base.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | import 'src/model/ds_request_model.dart'; 4 | import 'src/model/ds_response_model.dart'; 5 | 6 | /// Base class for middleware components. 7 | abstract class DsCustomMiddleware { 8 | /// Handles the incoming request and processes it through the middleware chain. 9 | Future handle( 10 | DsCustomMiddleWareRequest request, 11 | Future Function(DsCustomMiddleWareRequest) 12 | next); 13 | } 14 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/ds_middleware/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: ds_custom_middleware 2 | description: DartStream Custom Middleware. Use as the secondary option to Shelf Middleware. 3 | version: 0.0.1-pre 4 | repository: https://github.com/aortem/dartstream 5 | 6 | environment: 7 | sdk: '>=3.0.0 <4.0.0' 8 | 9 | # Dependencies are added in sections alphabetically and according to features. 10 | dependencies: 11 | ds_standard_features: ^0.0.1-pre+11 12 | ds_tools_testing: ^0.0.1-pre+2 13 | ds_tools_general: ^0.0.1-pre 14 | 15 | # Dev dependencies are added in sections alphabetically and according to features. 16 | dev_dependencies: -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/presentation/templates/test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/presentation/templates/test.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/presentation/views/test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/presentation/views/test.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/public/api/images/vip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/public/api/images/vip.png -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/public/test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/public/test.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/public/upload/1674945061510.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/public/upload/1674945061510.jpg -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/public/upload/Rectangle 2014.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/public/upload/Rectangle 2014.png -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/public/upload/Rectangle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/public/upload/Rectangle.png -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/public/upload/download.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/public/upload/download.jpg -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/public/upload/vip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/public/upload/vip.png -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/routing/ds_index_route.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; //Part Of The Dart SDK Core 2 | 3 | void DsMainDynamic() async { 4 | final server = await HttpServer.bind('localhost', 8080); 5 | print('Server running on localhost:${server.port}'); 6 | 7 | server.listen((HttpRequest request) { 8 | if (request.uri.path == '/') { 9 | handleHtmlRequest(request); 10 | } else { 11 | request.response 12 | ..statusCode = HttpStatus.notFound 13 | ..write('Not Found') 14 | ..close(); 15 | } 16 | }); 17 | } 18 | 19 | void handleHtmlRequest(HttpRequest request) { 20 | request.response 21 | ..statusCode = HttpStatus.ok 22 | ..headers.contentType = ContentType.html 23 | ..write('

Welcome, To the main page!

') 24 | ..close(); 25 | } 26 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/routing/ds_print_route.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; //Part of the Dart SDK Core 2 | 3 | void main() async { 4 | final server = await HttpServer.bind('localhost', 8080); 5 | print('Server running on localhost:${server.port}'); 6 | 7 | server.listen((HttpRequest request) { 8 | if (request.uri.path == '/html') { 9 | handleHtmlRequest(request); 10 | } else { 11 | request.response 12 | ..statusCode = HttpStatus.notFound 13 | ..write('Not Found') 14 | ..close(); 15 | } 16 | }); 17 | } 18 | 19 | void handleHtmlRequest(HttpRequest request) { 20 | request.response 21 | ..statusCode = HttpStatus.ok 22 | ..headers.contentType = ContentType.html 23 | ..write('

Hello, World!

') 24 | ..close(); 25 | } 26 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/routing/ds_query_string_handler.dart: -------------------------------------------------------------------------------- 1 | import '../app/models/ds_custom_middleware_model.dart'; 2 | 3 | class DsQueryStringHandler { 4 | Map parseQueryString(String queryString) { 5 | if (queryString.isEmpty) return {}; 6 | 7 | return Uri.splitQueryString(queryString).map((key, value) { 8 | if (value.contains(',')) { 9 | return MapEntry(key, value.split(',').join(',')); 10 | } 11 | return MapEntry(key, value); 12 | }); 13 | } 14 | 15 | DsCustomMiddleWareRequest addQueryParamsToRequest( 16 | DsCustomMiddleWareRequest request) { 17 | final queryParams = parseQueryString(request.uri.query); 18 | return request.copyWith(queryParams: queryParams); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/routing/ds_route_params.dart: -------------------------------------------------------------------------------- 1 | import '../app/models/ds_custom_middleware_model.dart'; 2 | 3 | class DsRouteParamHandler { 4 | final RegExp _paramRegex = RegExp(r':(\w+)'); 5 | 6 | Map extractParams(String routePattern, String actualPath) { 7 | final paramNames = _paramRegex 8 | .allMatches(routePattern) 9 | .map((match) => match.group(1)!) 10 | .toList(); 11 | 12 | final patternParts = routePattern.split('/'); 13 | final actualParts = actualPath.split('/'); 14 | 15 | final params = {}; 16 | 17 | for (var i = 0; i < patternParts.length; i++) { 18 | if (patternParts[i].startsWith(':')) { 19 | params[paramNames[params.length]] = actualParts[i]; 20 | } 21 | } 22 | 23 | return params; 24 | } 25 | 26 | DsCustomMiddleWareRequest addParamsToRequest( 27 | DsCustomMiddleWareRequest request, String routePattern) { 28 | final params = extractParams(routePattern, request.uri.path); 29 | return request.copyWith(routeParams: params); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/routing/ds_routing_export.dart: -------------------------------------------------------------------------------- 1 | library ds_middleware_routing; 2 | 3 | // Export main routing modules 4 | export 'ds_dynamic_route.dart'; 5 | export 'ds_index_route.dart'; 6 | export 'ds_nested_route.dart'; 7 | // export 'ds_print_route.dart'; 8 | 9 | 10 | 11 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 12 | 13 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/routing/test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/routing/test.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/services/push notifications/push.notifications_service.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/services/push notifications/push.notifications_service.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/services/storage/aws/ds_aws_storage_dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/services/storage/aws/ds_aws_storage_dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/services/storage/azure/ds_gcp_storage.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/services/storage/azure/ds_gcp_storage.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/services/storage/gcp/ds_gcp_storage.dart: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/shared/utilities/test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/shared/utilities/test.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/src/logging/ds_logger.dart: -------------------------------------------------------------------------------- 1 | import 'package:logging/logging.dart'; 2 | 3 | class DsLogger { 4 | static final Logger _logger = Logger('DsLogger'); 5 | 6 | static void initialize() { 7 | Logger.root.level = Level.ALL; 8 | Logger.root.onRecord.listen((record) { 9 | print('${record.level.name}: ${record.time}: ${record.message}'); 10 | }); 11 | } 12 | 13 | static void debug(String message) => _logger.fine(message); 14 | static void info(String message) => _logger.info(message); 15 | static void warning(String message) => _logger.warning(message); 16 | static void error(String message) => _logger.severe(message); 17 | } 18 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/src/model/ds_request_model.dart: -------------------------------------------------------------------------------- 1 | class DsCustomMiddleWareRequest { 2 | final String method; 3 | final Uri uri; 4 | final Map headers; 5 | final dynamic body; 6 | 7 | DsCustomMiddleWareRequest( 8 | this.method, this.uri, this.headers, this.body); 9 | 10 | /// Creates a new request with updated headers. 11 | DsCustomMiddleWareRequest change({Map? headers}) { 12 | return DsCustomMiddleWareRequest( 13 | method, 14 | uri, 15 | headers ?? this.headers, 16 | body, 17 | ); 18 | } 19 | } -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/src/query_string/ds_query_string_handler.dart: -------------------------------------------------------------------------------- 1 | import '../model/ds_request_model.dart'; 2 | 3 | class DsQueryStringHandler { 4 | static Map parse(DsCustomMiddleWareRequest request) { 5 | return request.uri.queryParameters; 6 | } 7 | 8 | static String? getValue(DsCustomMiddleWareRequest request, String key) { 9 | return request.uri.queryParameters[key]; 10 | } 11 | 12 | static List getValues(DsCustomMiddleWareRequest request, String key) { 13 | return request.uri.queryParametersAll[key] ?? []; 14 | } 15 | 16 | static bool hasKey(DsCustomMiddleWareRequest request, String key) { 17 | return request.uri.queryParameters.containsKey(key); 18 | } 19 | 20 | static Map getAll(DsCustomMiddleWareRequest request) { 21 | return Map.from(request.uri.queryParameters); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/src/routing/index_routing.dart: -------------------------------------------------------------------------------- 1 | import '../model/ds_request_model.dart'; 2 | import '../model/ds_response_model.dart'; 3 | 4 | 5 | class IndexRouter { 6 | Future handleIndexRequest(DsCustomMiddleWareRequest request) async { 7 | if (request.uri.path == '/' || request.uri.path == '/index') { 8 | return DsCustomMiddleWareResponse.ok('Welcome to the homepage!'); 9 | } else { 10 | return DsCustomMiddleWareResponse.notFound(); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/src/routing/nested_router.dart: -------------------------------------------------------------------------------- 1 | import '../model/ds_request_model.dart'; 2 | import '../model/ds_response_model.dart'; 3 | 4 | 5 | 6 | class NestedRouter { 7 | Future handleNestedRequest(DsCustomMiddleWareRequest request) async { 8 | if (request.uri.path.startsWith('/users/') && request.uri.path.contains('/profile')) { 9 | final userId = request.uri.path.split('/')[2]; 10 | return DsCustomMiddleWareResponse.ok('Fetching profile for user with ID $userId...'); 11 | } else { 12 | return DsCustomMiddleWareResponse.notFound(); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/src/routing/path_parser.dart: -------------------------------------------------------------------------------- 1 | class PathParser { 2 | /// Parses the path into a map of parameters. 3 | Map parsePath(String path) { 4 | final parts = path.split('/'); 5 | final params = {}; 6 | 7 | // Start at index 1 to skip the first part (empty string) 8 | for (var i = 1; i < parts.length; i += 2) { 9 | if (i + 1 < parts.length) { 10 | params[parts[i]] = parts[i + 1]; 11 | } 12 | } 13 | return params; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/lib/src/routing/print_router.dart: -------------------------------------------------------------------------------- 1 | import '../model/ds_request_model.dart'; 2 | import '../model/ds_response_model.dart'; 3 | 4 | 5 | 6 | class PrintRouter { 7 | Future handlePrintRequest(DsCustomMiddleWareRequest request) async { 8 | final responseString = 'Request received: ${request.method} ${request.uri.path}\nHeaders:\n${request.headers}'; 9 | print(responseString); 10 | return DsCustomMiddleWareResponse.ok('Request details have been printed to the console.'); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/melos_ds_custom_middleware.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/melos_ds_dartstream.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: ds_middleware 2 | description: DartStream Custom Middleware. Use as the secondary option to Shelf Middleware. 3 | version: 0.0.1-pre 4 | repository: https://github.com/aortem/dartstream 5 | 6 | environment: 7 | sdk: ">=3.4.0 <4.0.0" 8 | 9 | # Dependencies are added in sections alphabetically and according to features. 10 | dependencies: 11 | ds_standard_features: ^0.0.1-pre+11 12 | ds_tools_testing: ^0.0.1-pre+2 13 | ds_tools_general: ^0.0.1-pre 14 | 15 | 16 | # Dev dependencies are added in sections alphabetically and according to features. 17 | dev_dependencies: -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/pubspec_overrides.yaml: -------------------------------------------------------------------------------- 1 | # melos_managed_dependency_overrides: ds_standard_features,ds_tools_general,ds_tools_testing 2 | dependency_overrides: 3 | ds_standard_features: 4 | path: ../../../../standard_features 5 | ds_tools_general: 6 | path: ../../../../../tooling/ds_tools/general 7 | ds_tools_testing: 8 | path: ../../../../../tooling/ds_tools/testing 9 | 10 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/app/controllers/test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/app/controllers/test.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/app/dependency_injection/test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/app/dependency_injection/test.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/app/error_handling/test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/app/error_handling/test.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/app/logging/test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/app/logging/test.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/app/middleware/ds_custom_core_middleware.dart: -------------------------------------------------------------------------------- 1 | import '../models/ds_custom_middleware_model.dart'; 2 | 3 | abstract class dsCustomMiddleware { 4 | Future handle( 5 | DsCustomMiddleWareRequest request, 6 | Future Function(DsCustomMiddleWareRequest) 7 | next); 8 | } 9 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/app/parsers/test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/app/parsers/test.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/authentication/sdks/azure_sdk/azure.dart: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/authentication/sdks/cognito_sdk/cognito.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/authentication/sdks/cognito_sdk/cognito.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/authentication/sdks/firebase_admin_sdk/firebaseadmin.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/authentication/sdks/firebase_admin_sdk/firebaseadmin.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/database/test.dart: -------------------------------------------------------------------------------- 1 | //You have to connect to a cloud database in order to use the project. -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/ds_custom_middleware.dart: -------------------------------------------------------------------------------- 1 | // lib/DsCustumMiddleware 2 | 3 | library ds_custom_middleware; 4 | 5 | // Export Base DsCustumMiddleware Component so users don't have to import them separately 6 | // //EXPORTS 7 | export 'app/middleware/ds_custom_core_middleware.dart'; 8 | export 'app/models/ds_custom_middleware_model.dart'; 9 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/presentation/templates/test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/presentation/templates/test.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/presentation/views/test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/presentation/views/test.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/public/api/images/vip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/public/api/images/vip.png -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/public/test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/public/test.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/public/upload/1674945061510.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/public/upload/1674945061510.jpg -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/public/upload/Rectangle 2014.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/public/upload/Rectangle 2014.png -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/public/upload/Rectangle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/public/upload/Rectangle.png -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/public/upload/download.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/public/upload/download.jpg -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/public/upload/vip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/public/upload/vip.png -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/routing/ds_index_route.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; //Part Of The Dart SDK Core 2 | 3 | void DsMainDynamic() async { 4 | final server = await HttpServer.bind('localhost', 8080); 5 | print('Server running on localhost:${server.port}'); 6 | 7 | server.listen((HttpRequest request) { 8 | if (request.uri.path == '/') { 9 | handleHtmlRequest(request); 10 | } else { 11 | request.response 12 | ..statusCode = HttpStatus.notFound 13 | ..write('Not Found') 14 | ..close(); 15 | } 16 | }); 17 | } 18 | 19 | void handleHtmlRequest(HttpRequest request) { 20 | request.response 21 | ..statusCode = HttpStatus.ok 22 | ..headers.contentType = ContentType.html 23 | ..write('

Welcome, To the main page!

') 24 | ..close(); 25 | } 26 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/routing/ds_print_route.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; //Part of the Dart SDK Core 2 | 3 | void main() async { 4 | final server = await HttpServer.bind('localhost', 8080); 5 | print('Server running on localhost:${server.port}'); 6 | 7 | server.listen((HttpRequest request) { 8 | if (request.uri.path == '/html') { 9 | handleHtmlRequest(request); 10 | } else { 11 | request.response 12 | ..statusCode = HttpStatus.notFound 13 | ..write('Not Found') 14 | ..close(); 15 | } 16 | }); 17 | } 18 | 19 | void handleHtmlRequest(HttpRequest request) { 20 | request.response 21 | ..statusCode = HttpStatus.ok 22 | ..headers.contentType = ContentType.html 23 | ..write('

Hello, World!

') 24 | ..close(); 25 | } 26 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/routing/ds_routing_export.dart: -------------------------------------------------------------------------------- 1 | library ds_middleware_routing; 2 | 3 | // Export main routing modules 4 | export 'ds_dynamic_route.dart'; 5 | export 'ds_index_route.dart'; 6 | export 'ds_nested_route.dart'; 7 | // export 'ds_print_route.dart'; 8 | 9 | 10 | 11 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 12 | 13 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/routing/test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/routing/test.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/services/push notifications/push.notifications_service.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/services/push notifications/push.notifications_service.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/services/storage/aws/ds_aws_storage_dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/services/storage/aws/ds_aws_storage_dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/services/storage/azure/ds_gcp_storage.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/services/storage/azure/ds_gcp_storage.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/services/storage/gcp/ds_gcp_storage.dart: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/shared/utilities/test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_middleware/test/shared/utilities/test.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_shelf/lib/ds_shelf/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## 0.0.1-pre+4 4 | 5 | - update shelf based dependencies 6 | - added shelf packages handler in pubspec 7 | 8 | ## 0.0.1-pre+3 9 | 10 | - update formatting of pubspec.yaml 11 | 12 | ## 0.0.1-pre+2 13 | 14 | - update pubspec.yaml to use latest testing package 15 | 16 | ## 0.0.1-pre+1 17 | 18 | - update Shelf web socket to: ^1.0.4 19 | - update Build Runner to: ^2.4.9 20 | 21 | ## 0.0.1-pre 22 | 23 | ### Added 24 | - Initial release with core shelf framework functionality. 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_shelf/lib/ds_shelf/lib/api/ds_shelf_api.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | import 'package:ds_shelf/ds_shelf.dart' as shelf; //Coverage for shelf 3 | import 'package:ds_shelf/ds_shelf.dart'; //Coverage for other packages 4 | 5 | //Import other core packages 6 | 7 | abstract class DSshelf2 extends DSShelfCore {} 8 | 9 | void configureApi(Router router) { 10 | // Define your API endpoints here 11 | router.get('/example', (shelf.Request request) { 12 | return shelf.Response.ok('API Endpoint Reached'); 13 | }); 14 | } 15 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_shelf/lib/ds_shelf/lib/api/ds_shelf_api_export.dart: -------------------------------------------------------------------------------- 1 | library ds_shelf_api; 2 | 3 | // Export main core module 4 | export 'ds_shelf_api.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | 9 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_shelf/lib/ds_shelf/lib/core/ds_shelf_core_export.dart: -------------------------------------------------------------------------------- 1 | library ds_shelf_core; 2 | 3 | // Export main core module 4 | export 'ds_shelf_core.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | 9 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_shelf/lib/ds_shelf/lib/extensions/ds_shelf_extension.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | import 'package:ds_shelf/ds_shelf.dart' as shelf; //Coverage for shelf 3 | import 'package:ds_shelf/ds_shelf.dart'; //Coverage for other packages 4 | 5 | //Import other core packages 6 | 7 | abstract class DSStaticFileHanlder extends DSShelfCore {} 8 | 9 | extension StaticFileHandler on Router { 10 | void serveStaticFiles(String path) { 11 | // Implementation for serving static files 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_shelf/lib/ds_shelf/lib/extensions/ds_shelf_extension_export.dart: -------------------------------------------------------------------------------- 1 | library ds_shelf_extension; 2 | 3 | // Export main core module 4 | export 'ds_shelf_extension.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | 9 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_shelf/lib/ds_shelf/lib/overrides/ds_shelf_overrides.dart: -------------------------------------------------------------------------------- 1 | // No specific example code snippet, as overrides will depend on specific needs 2 | 3 | // Import Top Level Package 4 | import 'package:ds_shelf/ds_shelf.dart' as shelf; //Coverage for shelf 5 | import 'package:ds_shelf/ds_shelf.dart'; //Coverage for other packages 6 | 7 | 8 | //Import other core packages -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_shelf/lib/ds_shelf/lib/overrides/ds_shelf_overrides_export.dart: -------------------------------------------------------------------------------- 1 | // No specific example code snippet, as overrides will depend on specific needs 2 | 3 | library ds_shelf_overrides; 4 | 5 | // Export main core module 6 | export 'ds_shelf_overrides.dart'; 7 | 8 | 9 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 10 | 11 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_shelf/lib/ds_shelf/lib/src/ds_internal_middleware.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | import '../../ds_shelf.dart' as shelf; //Coverage for shelf 3 | import '../../ds_shelf.dart'; //Coverage for other packages 4 | 5 | //Import other core packages 6 | 7 | shelf.Middleware myCustomMiddleware() { 8 | return (shelf.Handler handler) { 9 | return (shelf.Request request) async { 10 | // Middleware logic before calling the handler 11 | final modifiedRequest = request.change(context: {'foo': 'bar'}); 12 | final response = await handler(modifiedRequest); 13 | // Modify the response or perform actions after the handler call 14 | return response; 15 | }; 16 | }; 17 | } 18 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_shelf/lib/ds_shelf/lib/utilities/ds_shelf_utilities_base.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | import 'package:ds_shelf/ds_shelf.dart' as shelf; //Coverage for shelf 3 | import 'package:ds_shelf/ds_shelf.dart'; //Coverage for other packages 4 | 5 | //Import other core packages 6 | 7 | abstract class DSUtilitiesBase extends DSShelfCore { 8 | // Example of a shared utility method 9 | void log(String message) { 10 | print("Utility Log: $message"); 11 | } 12 | 13 | // You might also define abstract methods or interfaces here that 14 | // all extending utility classes should implement. 15 | } 16 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_shelf/lib/ds_shelf/lib/utilities/ds_shelf_utilities_export.dart: -------------------------------------------------------------------------------- 1 | library ds_utilities; 2 | 3 | // Export all utility module 4 | export 'ds_shelf_utilities_string.dart'; 5 | export 'ds_shelf_utilities_response.dart'; 6 | export 'ds_shelf_utilities_request.dart'; 7 | export 'ds_shelf_utilities_file.dart'; 8 | export 'ds_shelf_utilities_security.dart'; 9 | export 'ds_shelf_utilities_middleware.dart'; 10 | export 'ds_shelf_utilities_json.dart'; 11 | export 'ds_shelf_utilities_path.dart'; 12 | export 'ds_shelf_utilities_base.dart'; 13 | export 'ds_shelf_utilities_export.dart'; 14 | 15 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 16 | 17 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_shelf/lib/ds_shelf/lib/utilities/ds_shelf_utilities_file.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | import 'package:ds_shelf/ds_shelf.dart' as shelf; //Coverage for shelf 3 | import 'package:ds_shelf/ds_shelf.dart'; //Coverage for other packages 4 | 5 | //Import other core packages 6 | import 'dart:io'; 7 | 8 | Future saveUploadedFile(shelf.Request request, String targetPath) async { 9 | final content = await request.readAsString(); 10 | final file = File(targetPath); 11 | await file.writeAsString(content); 12 | return file; 13 | } 14 | 15 | abstract class DS extends DSUtilitiesBase {} 16 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_shelf/lib/ds_shelf/lib/utilities/ds_shelf_utilities_json.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | import 'package:ds_shelf/ds_shelf.dart' as shelf; //Coverage for shelf 3 | import 'package:ds_shelf/ds_shelf.dart'; //Coverage for other packages 4 | 5 | //Import other core packages 6 | import 'dart:convert'; 7 | 8 | abstract class DL extends DSUtilitiesBase {} 9 | 10 | Map parseJson(String jsonStr) { 11 | return json.decode(jsonStr) as Map; 12 | } 13 | 14 | String toJson(Map jsonObject) { 15 | return json.encode(jsonObject); 16 | } 17 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_shelf/lib/ds_shelf/lib/utilities/ds_shelf_utilities_middleware.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | import 'package:ds_shelf/ds_shelf.dart' as shelf; //Coverage for shelf 3 | import 'package:ds_shelf/ds_shelf.dart'; //Coverage for other packages 4 | 5 | //Import other core packages 6 | 7 | shelf.Middleware corsHeaders({Map? headers}) { 8 | return (shelf.Handler innerHandler) { 9 | return (shelf.Request request) async { 10 | final mapHeaders = { 11 | 'Access-Control-Allow-Origin': '*', 12 | ...?headers, 13 | }; 14 | 15 | if (request.method == 'OPTIONS') { 16 | return shelf.Response.ok('', headers: mapHeaders); 17 | } 18 | 19 | final response = await innerHandler(request); 20 | return response.change(headers: mapHeaders); 21 | }; 22 | }; 23 | } 24 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_shelf/lib/ds_shelf/lib/utilities/ds_shelf_utilities_path.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | import 'package:ds_shelf/ds_shelf.dart' as shelf; //Coverage for shelf 3 | import 'package:ds_shelf/ds_shelf.dart'; //Coverage for other packages 4 | 5 | //Import other core packages 6 | 7 | String joinPaths(String base, String path) { 8 | return base.endsWith('/') ? '$base$path' : '$base/$path'; 9 | } 10 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_shelf/lib/ds_shelf/lib/utilities/ds_shelf_utilities_request.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | import 'package:ds_shelf/ds_shelf.dart' as shelf; //Coverage for shelf 3 | import 'package:ds_shelf/ds_shelf.dart'; //Coverage for other packages 4 | 5 | //Import other core packages 6 | 7 | Map parseQueryParams(shelf.Request request) { 8 | return request.url.queryParameters; 9 | } 10 | 11 | String? extractBearerToken(shelf.Request request) { 12 | final authHeader = request.headers['Authorization']; 13 | if (authHeader != null && authHeader.startsWith('Bearer ')) { 14 | return authHeader.substring(7); 15 | } 16 | return null; 17 | } 18 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_shelf/lib/ds_shelf/lib/utilities/ds_shelf_utilities_response.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | import 'package:ds_shelf/ds_shelf.dart' as shelf; //Coverage for shelf 3 | import 'package:ds_shelf/ds_shelf.dart'; //Coverage for other packages 4 | 5 | //Import other core packages 6 | import 'dart:convert'; 7 | 8 | shelf.Response jsonResponse(Map body, {int statusCode = 200}) { 9 | return shelf.Response( 10 | statusCode, 11 | body: json.encode(body), 12 | headers: {'Content-Type': 'application/json'}, 13 | ); 14 | } 15 | 16 | shelf.Response errorResponse(String message, {int statusCode = 400}) { 17 | return jsonResponse({'error': message}, statusCode: statusCode); 18 | } 19 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_shelf/lib/ds_shelf/lib/utilities/ds_shelf_utilities_security.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | import 'package:ds_shelf/ds_shelf.dart' as shelf; //Coverage for shelf 3 | import 'package:ds_shelf/ds_shelf.dart'; //Coverage for other packages 4 | 5 | //Import other core packages 6 | import 'dart:convert'; 7 | //import 'package:crypto/crypto.dart'; get from standard 8 | 9 | /*String hashPassword(String password) { 10 | return sha256.convert(utf8.encode(password)).toString(); 11 | } */ 12 | 13 | String sanitizeForSQL(String input) { 14 | // Simple example. Consider using prepared statements or a library instead. 15 | return input.replaceAll("'", "''"); 16 | } 17 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_shelf/lib/ds_shelf/lib/utilities/ds_shelf_utilities_string.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | import 'package:ds_shelf/ds_shelf.dart' as shelf; //Coverage for shelf 3 | import 'package:ds_shelf/ds_shelf.dart'; //Coverage for other packages 4 | 5 | //Import other core packages 6 | 7 | class StringUtilities extends DSUtilitiesBase { 8 | String capitalizeFirstLetter(String input) { 9 | // Implementation... 10 | return input[0].toUpperCase() + input.substring(1); 11 | } 12 | 13 | @override 14 | void log(String message) { 15 | // Optionally override the base log method 16 | super.log(message); // Call the base method 17 | // Additional logging logic specific to string utilities, if needed 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_shelf/lib/ds_shelf/melos_ds_shelf.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_shelf/lib/ds_shelf/pubspec_overrides.yaml: -------------------------------------------------------------------------------- 1 | # melos_managed_dependency_overrides: ds_tools_testing 2 | dependency_overrides: 3 | ds_tools_testing: 4 | path: ../ds_tools/testing 5 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/middleware/provider/ds_shelf/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: ds_shelf 2 | description: DartStream Custom Middleware. Use as the secondary option to Shelf Middleware. 3 | version: 0.0.1-pre 4 | repository: https://github.com/aortem/dartstream 5 | 6 | environment: 7 | sdk: ">=3.4.0 <4.0.0" 8 | 9 | # Dependencies are added in sections alphabetically and according to features. 10 | dependencies: 11 | ds_standard_features: ^0.0.1-pre+11 12 | ds_tools_testing: ^0.0.1-pre+2 13 | ds_tools_general: ^0.0.1-pre 14 | 15 | # Dev dependencies are added in sections alphabetically and according to features. 16 | dev_dependencies: -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/notifications/manifest.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/notifications/manifest.yaml -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/extensions/storage/manifest.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/extensions/storage/manifest.yaml -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/overrides/ds_standard_overrides.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/standard/overrides/ds_standard_overrides.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/overrides/ds_standard_overrides_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_overrides; 2 | 3 | // Export standard overrides module 4 | export 'ds_standard_overrides.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/utilities/ds_di_container.dart: -------------------------------------------------------------------------------- 1 | // ds_di_container.dart 2 | 3 | class DartstreamDIContainer { 4 | final Map _services = {}; 5 | 6 | void register(T service) { 7 | _services[T] = service; 8 | } 9 | 10 | T get() { 11 | final service = _services[T]; 12 | if (service == null) { 13 | throw Exception('Service of type $T not found'); 14 | } 15 | return service; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/utilities/ds_error_handling.dart: -------------------------------------------------------------------------------- 1 | // ds_error_handling.dart 2 | 3 | /// Custom exception for handling errors specific to Dartstream extensions. 4 | class DartstreamExtensionException implements Exception { 5 | final String message; 6 | DartstreamExtensionException(this.message); 7 | 8 | @override 9 | String toString() => 'DartstreamExtensionException: $message'; 10 | } 11 | 12 | /// Utility function for error handling 13 | void handleError(Exception error) { 14 | print('An error occurred: $error'); 15 | } 16 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/utilities/ds_logging.dart: -------------------------------------------------------------------------------- 1 | // ds_logging.dart 2 | 3 | class DartstreamLogger { 4 | /// Logs a message with the specified level. 5 | void log(String message, {String level = 'info'}) { 6 | final logOutput = '[${DateTime.now().toIso8601String()}][$level] $message'; 7 | print(logOutput); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/utilities/ds_services.dart: -------------------------------------------------------------------------------- 1 | // ds_services.dart 2 | 3 | import '../standard_features/ds_standard_features.dart'; 4 | 5 | /// Provides core services to be used by extensions in the Dartstream framework. 6 | class DartstreamServices { 7 | // Define core services (e.g., logger, configuration, etc.) 8 | final Logger logger; 9 | 10 | DartstreamServices({required this.logger}); 11 | } 12 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/utilities/ds_standard_utilities.dart: -------------------------------------------------------------------------------- 1 | //Additional utilities and shared logic for utilities. -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/standard/utilities/ds_standard_utilities_export.dart: -------------------------------------------------------------------------------- 1 | library ds_standard_utilities; 2 | 3 | // Export standard utility functions and classes 4 | export 'ds_standard_utilities.dart'; 5 | // Add other utility exports as you develop them 6 | export 'ds_di_container.dart'; 7 | export 'ds_error_handling.dart'; 8 | export 'ds_logging.dart'; 9 | export 'ds_services.dart'; 10 | 11 | 12 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 13 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_cli_util/lib/core/ds_core.dart: -------------------------------------------------------------------------------- 1 | // Core CLI functionalities 2 | 3 | import 'package:args/command_runner.dart'; //this should not be here. 4 | 5 | class DSCore { 6 | void run() { 7 | print("Running core functionality..."); 8 | } 9 | 10 | String performAction() { 11 | return "Expected Result"; //For testing Only 12 | } 13 | } 14 | 15 | class DSCoreCommand extends Command { 16 | @override 17 | final name = "core"; 18 | @override 19 | final description = "Runs core functionality."; 20 | 21 | DSCoreCommand() { 22 | // Command specific arguments 23 | } 24 | 25 | @override 26 | void run() => DSCore().run(); 27 | } 28 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_cli_util/lib/core/ds_deploy.dart: -------------------------------------------------------------------------------- 1 | // Core CLI functionalities 2 | 3 | import 'package:ds_tools_cli/ds_tools_cli.dart'; 4 | 5 | class DSDeploy { 6 | void run() { 7 | print("Running core functionality..."); 8 | } 9 | 10 | String performAction() { 11 | return "Expected Result"; //For testing Only 12 | } 13 | } 14 | 15 | class DSDeployCommand extends Command { 16 | @override 17 | final name = "deploy"; 18 | @override 19 | final description = "Runs deployment functionality."; 20 | 21 | DSDeployCommand() { 22 | // Command specific arguments 23 | } 24 | 25 | @override 26 | void run() => DSDeploy().run(); 27 | } 28 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_cli_util/lib/core/ds_doctor.dart: -------------------------------------------------------------------------------- 1 | // Core CLI functionalities 2 | 3 | import 'package:ds_tools_cli/ds_tools_cli.dart'; 4 | 5 | class DSDoctor { 6 | void run() { 7 | print("Running core functionality..."); 8 | } 9 | 10 | String performAction() { 11 | return "Expected Result"; //For testing Only 12 | } 13 | } 14 | 15 | class DSDoctorCommand extends Command { 16 | @override 17 | final name = "doctor"; 18 | @override 19 | final description = "Runs doctor/health check functionality."; 20 | 21 | DSDoctorCommand() { 22 | // Command specific arguments 23 | } 24 | 25 | @override 26 | void run() => DSDoctor().run(); 27 | } 28 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_cli_util/lib/core/ds_init-sample.dart: -------------------------------------------------------------------------------- 1 | // Core CLI functionalities 2 | 3 | import 'package:ds_tools_cli/ds_tools_cli.dart'; 4 | 5 | class DSInit { 6 | void run() { 7 | print("Running core functionality..."); 8 | } 9 | 10 | String performAction() { 11 | return "Expected Result"; //For testing Only 12 | } 13 | } 14 | 15 | class DSInitCommand extends Command { 16 | @override 17 | final name = "sample"; 18 | @override 19 | final description = "Runs core functionality."; 20 | 21 | DSInitCommand() { 22 | // Command specific arguments 23 | } 24 | 25 | @override 26 | void run() => DSInit().run(); 27 | } 28 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_cli_util/lib/core/ds_make.dart: -------------------------------------------------------------------------------- 1 | // Core CLI functionalities 2 | 3 | import 'package:ds_tools_cli/ds_tools_cli.dart'; 4 | 5 | class DSMake { 6 | void run() { 7 | print("Running core functionality..."); 8 | } 9 | 10 | String performAction() { 11 | return "Expected Result"; //For testing Only 12 | } 13 | } 14 | 15 | class DSMakeCommand extends Command { 16 | @override 17 | final name = "make"; 18 | @override 19 | final description = "Runs make functionality."; 20 | 21 | DSMakeCommand() { 22 | // Command specific arguments 23 | } 24 | 25 | @override 26 | void run() => DSMake().run(); 27 | } 28 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_cli_util/lib/core/ds_rename.dart: -------------------------------------------------------------------------------- 1 | // Core CLI functionalities 2 | 3 | import 'package:ds_tools_cli/ds_tools_cli.dart'; 4 | 5 | class DSRename { 6 | void run() { 7 | print("Running core functionality..."); 8 | } 9 | 10 | String performAction() { 11 | return "Expected Result"; //For testing Only 12 | } 13 | } 14 | 15 | class DSRenameCommand extends Command { 16 | @override 17 | final name = "rename"; 18 | @override 19 | final description = "Runs rename/refactor functionality."; 20 | 21 | DSRenameCommand() { 22 | // Command specific arguments 23 | } 24 | 25 | @override 26 | void run() => DSRename().run(); 27 | } 28 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_cli_util/lib/examples/ds_example.dart: -------------------------------------------------------------------------------- 1 | /* import 'package:ds_cli/api/ds_cli_util.dart'; 2 | 3 | void main() { 4 | // Example using utilities 5 | DSUtilities.printMessage("This is an example utility message."); 6 | 7 | // Simulate running a command (would actually be run from the CLI) 8 | var coreCommand = DSCoreCommand(); 9 | coreCommand.run(); 10 | 11 | var extendCommand = DSExtensionsCommand(); 12 | extendCommand.run(); 13 | } */ 14 | // demo test -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_cli_util/lib/extensions/ds_extensions.dart: -------------------------------------------------------------------------------- 1 | // Extensions to core CLI functionalities 2 | 3 | import 'package:args/command_runner.dart'; 4 | 5 | class DSExtensions { 6 | void run() { 7 | print("Running extended functionality..."); 8 | } 9 | } 10 | 11 | class DSExtensionsCommand extends Command { 12 | @override 13 | final name = "extend"; 14 | @override 15 | final description = "Runs extended functionality."; 16 | 17 | DSExtensionsCommand() { 18 | // Command specific arguments 19 | } 20 | 21 | @override 22 | void run() => DSExtensions().run(); 23 | } 24 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_cli_util/lib/overrides/ds_overrides.dart: -------------------------------------------------------------------------------- 1 | // Overrides to core CLI functionalities 2 | 3 | import 'package:args/command_runner.dart'; 4 | 5 | class DSOverrides { 6 | void run() { 7 | print("Running extended functionality..."); 8 | } 9 | } 10 | 11 | class DSOverridesCommand extends Command { 12 | @override 13 | final name = "override"; 14 | @override 15 | final description = "Runs overrides functionality."; 16 | 17 | DSOverridesCommand() { 18 | // Command specific arguments 19 | } 20 | 21 | @override 22 | void run() => DSOverrides().run(); 23 | } 24 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_cli_util/lib/src/internal_code.dart: -------------------------------------------------------------------------------- 1 | /* TBD 2 | - Private Utilities for CLI 3 | - Part Files for CLI 4 | - Internal Implementations for CLI */ -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_cli_util/lib/utilities/ds_utilities.dart: -------------------------------------------------------------------------------- 1 | // Utilities For CLI functionalities 2 | 3 | import 'package:args/command_runner.dart'; 4 | 5 | class DSUtilities { 6 | void run() { 7 | print("Running extended functionality..."); 8 | } 9 | 10 | String performAction() { 11 | return "Expected Result"; //For testing Only 12 | } 13 | } 14 | 15 | class DSUtilitiesCommand extends Command { 16 | @override 17 | final name = "utilities"; 18 | @override 19 | final description = "Runs utility functionality."; 20 | 21 | DSUtilitiesCommand() { 22 | // Command specific arguments 23 | } 24 | 25 | @override 26 | void run() => DSUtilities().run(); 27 | } 28 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_cli_util/melos_ds_cli.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_cli_util/pubspec.yaml: -------------------------------------------------------------------------------- 1 | #This pubspec file is used for the Main Dartstream CLI 2 | #It pulls in both DS Shelf and DS Custom Middlewrae packages for the user to scaffold with. 3 | 4 | name: ds_cli 5 | description: Main Dartstream CLI. 6 | version: 0.0.1-pre+1 7 | repository: https://github.com/aortem/dartstream 8 | 9 | environment: 10 | sdk: ">=3.4.0 <4.0.0" 11 | 12 | # Dependencies are added in sections alphabetically and according to features. 13 | dependencies: 14 | 15 | # DS Shelf Middleware 16 | ds_shelf: ^0.0.1-pre 17 | ds_custom_middleware: ^0.0.1-pre 18 | 19 | # DS Custom Middleware 20 | # TBD: ^0.0.1 21 | 22 | # DS Standard Features 23 | ds_standard_features: ^0.0.1-pre+5 24 | 25 | # DS Tools Testing 26 | ds_tools_testing: ^0.0.1-pre 27 | 28 | #DS Tools CLI 29 | ds_tools_cli: ^0.0.1-pre+2 30 | 31 | # Dev dependencies are added in sections alphabetically and according to features. 32 | dev_dependencies: 33 | 34 | #Cosmetic 35 | lints: ^4.0.0 #Included In ds_standard_features 36 | 37 | #Globally Activated Package 38 | executables: 39 | ds: ds_cli -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_cli_util/pubspec_overrides.yaml: -------------------------------------------------------------------------------- 1 | # melos_managed_dependency_overrides: ds_custom_middleware,ds_shelf,ds_standard_features,ds_tools_cli,ds_tools_general,ds_tools_testing 2 | dependency_overrides: 3 | ds_custom_middleware: 4 | path: ../ds_middleware 5 | ds_shelf: 6 | path: ../ds_shelf 7 | ds_standard_features: 8 | path: ../../standard 9 | ds_tools_cli: 10 | path: ../ds_tools/cli 11 | ds_tools_general: 12 | path: ../ds_tools/general 13 | ds_tools_testing: 14 | path: ../ds_tools/testing 15 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_tools/cli/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## [0.0.1-pre+3deprecated] - 2024-11-25 4 | 5 | ### Deprecated 6 | - Marked the `ds_tools_cli` package as deprecated. 7 | - Added `deprecated.md` with detailed migration instructions. 8 | - Transitioned CLI functionality to the `ds_cli` in the `bin` folder of the DartStream framework. 9 | - Users are encouraged to migrate to the updated CLI tools provided in the main framework. 10 | 11 | ## [0.0.1-pre+2] - 2024-06-7 12 | 13 | ### Added 14 | - Add,import, export the args package to the ds_tools_cli library. 15 | 16 | ## [0.0.1-pre+1] - 2024-05-16 17 | 18 | ### Added 19 | - Add the args package to the ds_tools_cli library. 20 | 21 | ## [0.0.1-pre] - 2024-04-17 22 | 23 | ### Added 24 | - Initial release with cli framework functionality. 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_tools/cli/deprecated.md: -------------------------------------------------------------------------------- 1 | ## Deprecation Notice 2 | 3 | This package has been deprecated and is no longer maintained. All CLI functionality has been integrated into the bin directory of the main Dartstream framework. 4 | 5 | The `ds_tools_cli` package was part of the early Dartstream ecosystem but has been superseded by the enhanced CLI tools located in the bin/ds_cli.dart file within the Dartstream framework. To ensure consistency and better support for developers, this package is no longer updated. 6 | 7 | Migration Guide: 8 | - Replace references to `ds_cli_util` with the `ds_cli.dart` file in the `bin` folder. 9 | - Update your scripts to use the new CLI commands. 10 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_tools/cli/lib/ds_tools_cli.dart: -------------------------------------------------------------------------------- 1 | // lib/ds_tools_cli.dart 2 | library ds_tools_cli; 3 | 4 | //Import CLI Args 5 | import 'package:args/command_runner.dart'; //required to control CLI commands 6 | import 'package:args/args.dart'; 7 | 8 | // Export CLI Args 9 | export 'package:args/command_runner.dart'; 10 | export 'package:args/args.dart'; 11 | 12 | //Export DS Extension Code Libraries 13 | //export 'extensions/ds_tools_cli_extension_export.dart'; // Exporting your extensions classes -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_tools/cli/lib/extensions/ds_tools_cli_extension.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | import 'package:ds_tools_testing/ds_tools_testing.dart'; //Import Testing Tools 3 | 4 | //Import other core packages 5 | 6 | //Add Core Abstract Classes To Extend The CLI 7 | 8 | /* 9 | class EnhancedCliUtils { 10 | // Example method that wraps a cli_util functionality 11 | static String getSdkPath() { 12 | // You can modify or enhance the functionality here 13 | return getSdkPath(); // from cli_util 14 | } 15 | 16 | // Add additional functionalities that are not in cli_util 17 | static void customFunctionality() { 18 | // Implementation of custom functionality 19 | print("Performing custom operation..."); 20 | } 21 | } */ 22 | 23 | 24 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_tools/cli/lib/extensions/ds_tools_cli_extension_export.dart: -------------------------------------------------------------------------------- 1 | library ds_tools_cli_extension; 2 | 3 | // Export main core module 4 | export 'ds_tools_cli_extension.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | 9 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_tools/cli/melos_ds_tools_cli.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_tools/cli/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: ds_tools_cli 2 | description: This package has been deprecated. Please use the new CLI tools provided in the `bin` folder of the DartStream framework. 3 | version: 0.0.1-pre+3-deprecated 4 | repository: https://github.com/aortem/dartstream 5 | 6 | environment: 7 | sdk: ">=2.12.0 <4.0.0" 8 | dependencies: 9 | args: ^2.6.0 10 | ds_tools_testing: ^0.0.1-pre+2 11 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_tools/cli/pubspec_overrides.yaml: -------------------------------------------------------------------------------- 1 | # melos_managed_dependency_overrides: ds_tools_testing 2 | #dependency_overrides: 3 | # ds_tools_testing: 4 | # path: ../testing 5 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_tools/deployment/test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/tooling/ds_tools/deployment/test.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_tools/development/test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/tooling/ds_tools/development/test.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_tools/general/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## [0.0.1-pre] - 2024-04-14 4 | 5 | ### Added 6 | - Initial release with DartStream General tools. 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_tools/general/ds_yaml.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/tooling/ds_tools/general/ds_yaml.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_tools/general/lib/ds_tools_general.dart: -------------------------------------------------------------------------------- 1 | // lib/ds_tools_testing.dart 2 | library ds_tools_general; 3 | 4 | //Import DS Tools General Libraries 5 | 6 | import 'package:mime/mime.dart'; 7 | 8 | // Export DS Tools General Libraries 9 | export 'package:mime/mime.dart'; 10 | 11 | //Export our Core Libraries 12 | export 'extensions/ds_tools_general_extension_export.dart'; // Exporting your extensions classes 13 | 14 | 15 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_tools/general/lib/extensions/ds_tools_general_extension.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | //import 'package:ds_tools_testing/ds_tools_general.dart'; //Coverage for shelf 3 | 4 | //Import other core packages 5 | 6 | 7 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_tools/general/lib/extensions/ds_tools_general_extension_export.dart: -------------------------------------------------------------------------------- 1 | library ds_tools_testing_extension; 2 | 3 | // Export main core module 4 | export 'ds_tools_general_extension.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | 9 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_tools/general/melos_ds_tools_general.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_tools/general/pubspec.yaml: -------------------------------------------------------------------------------- 1 | #This pubspec file is used for any dependencies that both the frontend and backend framework use(aka. shared dependencies) 2 | name: ds_tools_general 3 | description: Dartstream General Tools. 4 | version: 0.0.1-pre 5 | repository: https://github.com/aortem/dartstream 6 | 7 | environment: 8 | sdk: ">=3.4.0 <4.0.0" 9 | 10 | # Dependencies are added in sections alphabetically and according to features. 11 | dependencies: 12 | #Testing Packages 13 | mime: ^1.0.5 14 | 15 | #Globally Activated Package 16 | #executables: 17 | # ds: ds_cli -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_tools/integration/test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/tooling/ds_tools/integration/test.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_tools/performance/test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/tooling/ds_tools/performance/test.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_tools/security/test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/dartstream_backend/packages/tooling/ds_tools/security/test.dart -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_tools/testing/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## [0.0.1-pre+2] - 2024-05-30 4 | 5 | ### Downgraded Test Dependency 6 | - Downgraded test package dependency to 1.25.2 to maintain flutter compatibility. 7 | 8 | ## [0.0.1-pre+1] - 2024-05-11 9 | 10 | ### Added 11 | - Added Lints Package to streaming testing toolset in the framework. 12 | 13 | ## [0.0.1-pre] - 2024-04-14 14 | 15 | ### Added 16 | - Initial release with testing framework functionality. 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_tools/testing/lib/ds_tools_testing.dart: -------------------------------------------------------------------------------- 1 | // lib/ds_tools_testing.dart 2 | library ds_tools_testing; 3 | 4 | //Import DS Tools Testing Libraries 5 | 6 | import 'package:build_runner/build_runner.dart'; 7 | import 'package:build_test/build_test.dart'; 8 | import 'package:coverage/coverage.dart'; 9 | import 'package:mocktail/mocktail.dart'; 10 | import 'package:test/test.dart'; 11 | 12 | //import 'package:mockito/mockito.dart'; 13 | 14 | // Export DS Tools Testing Libraries 15 | export 'package:build_runner/build_runner.dart'; 16 | export 'package:build_test/build_test.dart'; 17 | export 'package:coverage/coverage.dart'; 18 | export 'package:mocktail/mocktail.dart'; // On By Default 19 | export 'package:test/test.dart'; 20 | 21 | //export 'package:mockito/mockito.dart'; 22 | 23 | //Export our Core Libraries 24 | export 'extensions/ds_tools_testing_extension_export.dart'; // Exporting your extensions classes 25 | 26 | 27 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_tools/testing/lib/extensions/ds_tools_testing_extension.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | import 'package:ds_tools_testing/ds_tools_testing.dart'; //Coverage for shelf 3 | 4 | //Import other core packages 5 | 6 | 7 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_tools/testing/lib/extensions/ds_tools_testing_extension_export.dart: -------------------------------------------------------------------------------- 1 | library ds_tools_testing_extension; 2 | 3 | // Export main core module 4 | export 'ds_tools_testing_extension.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | 9 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_tools/testing/melos_ds_shelf.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_tools/testing/melos_ds_tools_testing.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /dartstream/dartstream_backend/packages/tooling/ds_tools/testing/pubspec.yaml: -------------------------------------------------------------------------------- 1 | #This pubspec file is used for any dependencies that both the frontend and backend framework use(aka. shared dependencies) 2 | name: ds_tools_testing 3 | description: Core Testing Components Within Larger DartStream Ecosystem. 4 | version: 0.0.1-pre+3 5 | repository: https://github.com/aortem/dartstream 6 | 7 | environment: 8 | sdk: ">=3.4.0 <4.0.0" 9 | 10 | # Dependencies are added in sections alphabetically and according to features. 11 | dependencies: 12 | #Testing Packages 13 | build_runner: ^2.4.10 14 | build_test: ^2.2.2 15 | coverage: ^1.8.0 16 | lints: ^4.0.0 17 | test: ^1.25.5 18 | mocktail: ^1.0.3 19 | mockito: ^5.4.4 20 | 21 | 22 | #Globally Activated Package 23 | #executables: 24 | # ds: ds_cli -------------------------------------------------------------------------------- /dartstream/dartstream_backend/pubspec.yaml: -------------------------------------------------------------------------------- 1 | #This pubspec file is used for any dependencies that both the frontend and backend framework use(aka. shared dependencies) 2 | name: ds_dartstream 3 | description: The root Yaml file. Placeholder for future expansion. 4 | version: 0.0.1-pre+1 5 | # repository: https://github.com/my_org/my_repo 6 | 7 | environment: 8 | sdk: '>=3.0.0 <4.0.0' 9 | 10 | # Dependencies are added in sections alphabetically and according to features. 11 | dependencies: 12 | 13 | # Dev dependencies are added in sections alphabetically and according to features. 14 | dev_dependencies: 15 | 16 | #Cosmetic 17 | lints: ^4.0.0 #Included In ds_standard_features 18 | 19 | #Testing Packages 20 | test: ^1.25.8 21 | mockito: ^5.4.4 22 | mocktail: ^1.0.3 -------------------------------------------------------------------------------- /dartstream/dartstream_backend/src/utils/example/example.dart: -------------------------------------------------------------------------------- 1 | //Example of How the configuration Loader Might be used in the application 2 | 3 | /*import 'src/core/utils/config_loader.dart'; 4 | 5 | void main(List args) { 6 | // Assuming configuration files are stored in `config/` 7 | var config = ConfigLoader.load('config/'); 8 | runApp(config); 9 | } 10 | 11 | void runApp(dynamic config) { 12 | // Start your application with loaded configurations 13 | print('App running with config: $config'); 14 | } */ 15 | -------------------------------------------------------------------------------- /dartstream/dartstream_registry.json: -------------------------------------------------------------------------------- 1 | [{"name":"AmazonAuth","version":"0.0.1","description":"Google authentication provider for Dartstream.","dependencies":["Auth >=0.0.1"],"entry_point":"lib/ds_cognito_auth_provider.dart"},{"name":"AzureAuth","version":"0.0.1","description":"Azure authentication provider for Dartstream.","dependencies":["Auth >=0.0.1"],"entry_point":"lib/ds_azure_ad_b2c_auth_provider.dart"},{"name":"GoogleAuth","version":"0.0.1","description":"Google authentication provider for Dartstream.","dependencies":["Auth >=0.0.1"],"entry_point":"lib/ds_firebase_auth_provider.dart"},{"name":"Database","version":"0.1.0","description":"Database extension placeholder.","dependencies":[],"entry_point":"lib/database_extension.dart"}] -------------------------------------------------------------------------------- /dartstream/pubspec.yaml: -------------------------------------------------------------------------------- 1 | # This pubspec file is used for any dependencies that both the frontend and backend framework use(aka. shared dependencies) 2 | name: ds_dartstream 3 | description: A starting point for Dart libraries or applications. 4 | version: 1.0.0-pre+1 5 | # repository: https://github.com/my_org/my_repo 6 | 7 | environment: 8 | sdk: "^3.3.0" 9 | 10 | # Dependencies are added in sections alphabetically and according to features. 11 | dependencies: 12 | 13 | # Multi Repository Dependencies 14 | melos: ^5.2.2 15 | 16 | # Dev dependencies are added in sections alphabetically and according to features. 17 | dev_dependencies: 18 | 19 | # CLI 20 | cli_util: ^0.4.1 21 | #TBD 22 | lints: ^4.0.0 #Included In ds_standard_features 23 | test: ^1.25.5 24 | -------------------------------------------------------------------------------- /dartstream/test/config/ds_config_tests.dart: -------------------------------------------------------------------------------- 1 | // Placeholder for config-related tests 2 | void main() { 3 | // Config tests go here 4 | } 5 | -------------------------------------------------------------------------------- /dartstream/test/enhanced/enhanced_feature_tests.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/test/enhanced/enhanced_feature_tests.dart -------------------------------------------------------------------------------- /dartstream/test/experimental/experimental_feature_tests.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/test/experimental/experimental_feature_tests.dart -------------------------------------------------------------------------------- /dartstream/test/frameworks/framework_specific_tests.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/test/frameworks/framework_specific_tests.dart -------------------------------------------------------------------------------- /dartstream/test/standard/core/ds_standard_core_test.dart: -------------------------------------------------------------------------------- 1 | import 'package:test/test.dart'; 2 | 3 | void main() { 4 | group('Dartstream Core Tests', () { 5 | test('Core Initialization', () { 6 | expect(1 + 1, equals(2)); 7 | }); 8 | }); 9 | } 10 | -------------------------------------------------------------------------------- /dartstream/test/tooling/cli_util/bin/ds_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/test/tooling/cli_util/bin/ds_test.dart -------------------------------------------------------------------------------- /dartstream/test/tooling/cli_util/core/ds_core_test.dart: -------------------------------------------------------------------------------- 1 | import 'package:test/test.dart'; 2 | import 'package:ds_dartstream/backend/packages/tooling/cli_util/lib/core/ds_core.dart'; 3 | 4 | void main() { 5 | group('DSCore', () { 6 | test('core functionality behaves as expected', () { 7 | var core = DSCore(); 8 | 9 | // Assuming DSCore has a method `performAction` you want to test 10 | var result = core.performAction(); 11 | 12 | // Verify the result is as expected 13 | expect(result, equals("Expected Result")); 14 | }); 15 | }); 16 | } 17 | -------------------------------------------------------------------------------- /dartstream/test/tooling/cli_util/core/ds_deploy_test.dart: -------------------------------------------------------------------------------- 1 | import 'package:test/test.dart'; 2 | import 'package:ds_dartstream/backend/packages/tooling/cli_util/lib/core/ds_deploy.dart'; 3 | 4 | void main() { 5 | group('DSDeploy', () { 6 | test('core functionality behaves as expected', () { 7 | var deploy = DSDeploy(); 8 | 9 | // Assuming DSCore has a method `performAction` you want to test 10 | var result = deploy.performAction(); 11 | 12 | // Verify the result is as expected 13 | expect(result, equals("Expected Result")); 14 | }); 15 | }); 16 | } 17 | -------------------------------------------------------------------------------- /dartstream/test/tooling/cli_util/core/ds_doctor_test.dart: -------------------------------------------------------------------------------- 1 | import 'package:test/test.dart'; 2 | import 'package:ds_dartstream/backend/packages/tooling/cli_util/lib/core/ds_doctor.dart'; 3 | 4 | void main() { 5 | group('DSDoctor', () { 6 | test('core functionality behaves as expected', () { 7 | var doctor = DSDoctor(); 8 | 9 | // Assuming DSCore has a method `performAction` you want to test 10 | var result = doctor.performAction(); 11 | 12 | // Verify the result is as expected 13 | expect(result, equals("Expected Result")); 14 | }); 15 | }); 16 | } 17 | -------------------------------------------------------------------------------- /dartstream/test/tooling/cli_util/core/ds_init_test.dart: -------------------------------------------------------------------------------- 1 | import 'package:test/test.dart'; 2 | import 'package:ds_dartstream/backend/packages/tooling/cli_util/lib/core/ds_init.dart'; 3 | 4 | void main() { 5 | group('DSInit', () { 6 | test('core functionality behaves as expected', () { 7 | var init = DSInit(); 8 | 9 | // Assuming DSCore has a method `performAction` you want to test 10 | var result = init.performAction(); 11 | 12 | // Verify the result is as expected 13 | expect(result, equals("Expected Result")); 14 | }); 15 | }); 16 | } 17 | -------------------------------------------------------------------------------- /dartstream/test/tooling/cli_util/core/ds_make_test.dart: -------------------------------------------------------------------------------- 1 | import 'package:test/test.dart'; 2 | import 'package:ds_dartstream/backend/packages/tooling/cli_util/lib/core/ds_make.dart'; 3 | 4 | void main() { 5 | group('DSCore', () { 6 | test('core functionality behaves as expected', () { 7 | var make = DSMake(); 8 | 9 | // Assuming DSCore has a method `performAction` you want to test 10 | var result = make.performAction(); 11 | 12 | // Verify the result is as expected 13 | expect(result, equals("Expected Result")); 14 | }); 15 | }); 16 | } 17 | -------------------------------------------------------------------------------- /dartstream/test/tooling/cli_util/core/ds_rename_test.dart: -------------------------------------------------------------------------------- 1 | import 'package:test/test.dart'; 2 | import 'package:ds_dartstream/backend/packages/tooling/cli_util/lib/core/ds_rename.dart'; 3 | 4 | void main() { 5 | group('DSRename', () { 6 | test('core functionality behaves as expected', () { 7 | var rename = DSRename(); 8 | 9 | // Assuming DSCore has a method `performAction` you want to test 10 | var result = rename.performAction(); 11 | 12 | // Verify the result is as expected 13 | expect(result, equals("Expected Result")); 14 | }); 15 | }); 16 | } 17 | -------------------------------------------------------------------------------- /dartstream/test/tooling/cli_util/extensions/ds_extensions_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/dartstream/test/tooling/cli_util/extensions/ds_extensions_test.dart -------------------------------------------------------------------------------- /dartstream/test/tooling/cli_util/utilities/ds_utilities_test.dart: -------------------------------------------------------------------------------- 1 | import 'package:test/test.dart'; 2 | import 'package:ds_dartstream/backend/packages/tooling/cli_util/lib/utilities/ds_utilities.dart'; 3 | 4 | void main() { 5 | group('DSUtilities', () { 6 | test('core functionality behaves as expected', () { 7 | var utilities = DSUtilities(); 8 | 9 | // Assuming DSUtilities has a method `performAction` you want to test 10 | var result = utilities.performAction(); 11 | 12 | // Verify the result is as expected 13 | expect(result, equals("Expected Result")); 14 | }); 15 | }); 16 | } 17 | -------------------------------------------------------------------------------- /dartstream/test/tooling/shelf/lib/api/ds_shelf_api_export_test.dart: -------------------------------------------------------------------------------- 1 | library ds_shelf_api; 2 | 3 | // Export main core module 4 | export 'ds_shelf_api_test.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | 9 | -------------------------------------------------------------------------------- /dartstream/test/tooling/shelf/lib/api/ds_shelf_api_test.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | import 'package:ds_shelf/ds_shelf_test.dart' as shelf; //Coverage for shelf 3 | import 'package:ds_shelf/ds_shelf_test.dart'; //Coverage for other packages 4 | 5 | //Import other core packages 6 | 7 | abstract class DSshelf2 extends DSShelfCore {} 8 | 9 | void configureApi(Router router) { 10 | // Define your API endpoints here 11 | router.get('/example', (shelf.Request request) { 12 | return shelf.Response.ok('API Endpoint Reached'); 13 | }); 14 | } 15 | -------------------------------------------------------------------------------- /dartstream/test/tooling/shelf/lib/core/ds_shelf_core_export_test.dart: -------------------------------------------------------------------------------- 1 | library ds_shelf_core; 2 | 3 | // Export main core module 4 | export 'ds_shelf_core_test.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | 9 | -------------------------------------------------------------------------------- /dartstream/test/tooling/shelf/lib/extensions/ds_shelf_extension_test.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | //Coverage for shelf 3 | import 'package:ds_shelf/ds_shelf_test.dart'; //Coverage for other packages 4 | 5 | //Import other core packages 6 | 7 | abstract class DSStaticFileHanlder extends DSShelfCore {} 8 | 9 | extension StaticFileHandler on Router { 10 | void serveStaticFiles(String path) { 11 | // Implementation for serving static files 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /dartstream/test/tooling/shelf/lib/extensions/ds_shelf_extensions_export_test.dart: -------------------------------------------------------------------------------- 1 | library ds_shelf_extension; 2 | 3 | // Export main core module 4 | export 'ds_shelf_extension_test.dart'; 5 | 6 | 7 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 8 | 9 | -------------------------------------------------------------------------------- /dartstream/test/tooling/shelf/lib/overrides/ds_shelf_overrides_export_test.dart: -------------------------------------------------------------------------------- 1 | // No specific example code snippet, as overrides will depend on specific needs 2 | 3 | library ds_shelf_overrides; 4 | 5 | // Export main core module 6 | export 'ds_shelf_overrides_test.dart'; 7 | 8 | 9 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 10 | 11 | -------------------------------------------------------------------------------- /dartstream/test/tooling/shelf/lib/overrides/ds_shelf_overrides_test.dart: -------------------------------------------------------------------------------- 1 | // No specific example code snippet, as overrides will depend on specific needs 2 | 3 | // Import Top Level Package 4 | //Coverage for shelf 5 | //Coverage for other packages 6 | 7 | //Import other core packages -------------------------------------------------------------------------------- /dartstream/test/tooling/shelf/lib/src/ds_internal_middleware_test.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | import 'package:ds_shelf/ds_shelf_test.dart' as shelf; //Coverage for shelf 3 | //Coverage for other packages 4 | 5 | //Import other core packages 6 | 7 | shelf.Middleware myCustomMiddleware() { 8 | return (shelf.Handler handler) { 9 | return (shelf.Request request) async { 10 | // Middleware logic before calling the handler 11 | final modifiedRequest = request.change(context: {'foo': 'bar'}); 12 | final response = await handler(modifiedRequest); 13 | // Modify the response or perform actions after the handler call 14 | return response; 15 | }; 16 | }; 17 | } 18 | -------------------------------------------------------------------------------- /dartstream/test/tooling/shelf/lib/utilities/ds_shelf_utilities_base_test.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | //Coverage for shelf 3 | import 'package:ds_shelf/ds_shelf_test.dart'; //Coverage for other packages 4 | 5 | //Import other core packages 6 | 7 | abstract class DSUtilitiesBase extends DSShelfCore { 8 | // Example of a shared utility method 9 | void log(String message) { 10 | print("Utility Log: $message"); 11 | } 12 | 13 | // You might also define abstract methods or interfaces here that 14 | // all extending utility classes should implement. 15 | } 16 | -------------------------------------------------------------------------------- /dartstream/test/tooling/shelf/lib/utilities/ds_shelf_utilities_export_test.dart: -------------------------------------------------------------------------------- 1 | library ds_utilities; 2 | 3 | // Export all utility module 4 | export 'ds_shelf_utilities_string_test.dart'; 5 | export 'ds_shelf_utilities_response_test.dart'; 6 | export 'ds_shelf_utilities_request_test.dart'; 7 | export 'ds_shelf_utilities_file_test.dart'; 8 | export 'ds_shelf_utilities_security_test.dart'; 9 | export 'ds_shelf_utilities_middleware_test.dart'; 10 | export 'ds_shelf_utilities_json_test.dart'; 11 | export 'ds_shelf_utilities_path_test.dart'; 12 | export 'ds_shelf_utilities_base_test.dart'; 13 | export 'ds_shelf_utilities_export_test.dart'; 14 | 15 | // You can also include any shared utility functions or common interfaces here that might be used across multiple utility files. 16 | 17 | -------------------------------------------------------------------------------- /dartstream/test/tooling/shelf/lib/utilities/ds_shelf_utilities_file_test.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | import 'package:ds_shelf/ds_shelf_test.dart' as shelf; //Coverage for shelf 3 | import 'package:ds_shelf/ds_shelf_test.dart'; //Coverage for other packages 4 | 5 | //Import other core packages 6 | import 'dart:io'; 7 | 8 | Future saveUploadedFile(shelf.Request request, String targetPath) async { 9 | final content = await request.readAsString(); 10 | final file = File(targetPath); 11 | await file.writeAsString(content); 12 | return file; 13 | } 14 | 15 | abstract class DS extends DSUtilitiesBase {} 16 | -------------------------------------------------------------------------------- /dartstream/test/tooling/shelf/lib/utilities/ds_shelf_utilities_json_test.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | //Coverage for shelf 3 | import 'package:ds_shelf/ds_shelf_test.dart'; //Coverage for other packages 4 | 5 | //Import other core packages 6 | import 'dart:convert'; 7 | 8 | abstract class DL extends DSUtilitiesBase {} 9 | 10 | Map parseJson(String jsonStr) { 11 | return json.decode(jsonStr) as Map; 12 | } 13 | 14 | String toJson(Map jsonObject) { 15 | return json.encode(jsonObject); 16 | } 17 | -------------------------------------------------------------------------------- /dartstream/test/tooling/shelf/lib/utilities/ds_shelf_utilities_middleware_test.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | import 'package:ds_shelf/ds_shelf_test.dart' as shelf; //Coverage for shelf 3 | //Coverage for other packages 4 | 5 | //Import other core packages 6 | 7 | shelf.Middleware corsHeaders({Map? headers}) { 8 | return (shelf.Handler innerHandler) { 9 | return (shelf.Request request) async { 10 | final mapHeaders = { 11 | 'Access-Control-Allow-Origin': '*', 12 | ...?headers, 13 | }; 14 | 15 | if (request.method == 'OPTIONS') { 16 | return shelf.Response.ok('', headers: mapHeaders); 17 | } 18 | 19 | final response = await innerHandler(request); 20 | return response.change(headers: mapHeaders); 21 | }; 22 | }; 23 | } 24 | -------------------------------------------------------------------------------- /dartstream/test/tooling/shelf/lib/utilities/ds_shelf_utilities_path_test.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | //Coverage for shelf 3 | //Coverage for other packages 4 | 5 | //Import other core packages 6 | 7 | String joinPaths(String base, String path) { 8 | return base.endsWith('/') ? '$base$path' : '$base/$path'; 9 | } 10 | -------------------------------------------------------------------------------- /dartstream/test/tooling/shelf/lib/utilities/ds_shelf_utilities_request_test.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | import 'package:ds_shelf/ds_shelf_test.dart' as shelf; //Coverage for shelf 3 | //Coverage for other packages 4 | 5 | //Import other core packages 6 | 7 | Map parseQueryParams(shelf.Request request) { 8 | return request.url.queryParameters; 9 | } 10 | 11 | String? extractBearerToken(shelf.Request request) { 12 | final authHeader = request.headers['Authorization']; 13 | if (authHeader != null && authHeader.startsWith('Bearer ')) { 14 | return authHeader.substring(7); 15 | } 16 | return null; 17 | } 18 | -------------------------------------------------------------------------------- /dartstream/test/tooling/shelf/lib/utilities/ds_shelf_utilities_response_test.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | import 'package:ds_shelf/ds_shelf_test.dart' as shelf; //Coverage for shelf 3 | //Coverage for other packages 4 | 5 | //Import other core packages 6 | import 'dart:convert'; 7 | 8 | shelf.Response jsonResponse(Map body, {int statusCode = 200}) { 9 | return shelf.Response( 10 | statusCode, 11 | body: json.encode(body), 12 | headers: {'Content-Type': 'application/json'}, 13 | ); 14 | } 15 | 16 | shelf.Response errorResponse(String message, {int statusCode = 400}) { 17 | return jsonResponse({'error': message}, statusCode: statusCode); 18 | } 19 | -------------------------------------------------------------------------------- /dartstream/test/tooling/shelf/lib/utilities/ds_shelf_utilities_security_test.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | //Coverage for shelf 3 | //Coverage for other packages 4 | 5 | //Import other core packages 6 | import 'dart:convert'; 7 | import 'package:crypto/crypto.dart'; 8 | 9 | String hashPassword(String password) { 10 | return sha256.convert(utf8.encode(password)).toString(); 11 | } 12 | 13 | String sanitizeForSQL(String input) { 14 | // Simple example. Consider using prepared statements or a library instead. 15 | return input.replaceAll("'", "''"); 16 | } 17 | -------------------------------------------------------------------------------- /dartstream/test/tooling/shelf/lib/utilities/ds_shelf_utilities_string_test.dart: -------------------------------------------------------------------------------- 1 | // Import Top Level Package 2 | //Coverage for shelf 3 | import 'package:ds_shelf/ds_shelf_test.dart'; //Coverage for other packages 4 | 5 | //Import other core packages 6 | 7 | class StringUtilities extends DSUtilitiesBase { 8 | String capitalizeFirstLetter(String input) { 9 | // Implementation... 10 | return input[0].toUpperCase() + input.substring(1); 11 | } 12 | 13 | @override 14 | void log(String message) { 15 | // Optionally override the base log method 16 | super.log(message); // Call the base method 17 | // Additional logging logic specific to string utilities, if needed 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /dartstream/test/tooling/shelf/melos_ds_shelf.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /images/dartstream-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aortem/dartstream/8290bbb2fac6321203d67be52d1a4252e4fd5712/images/dartstream-logo.png -------------------------------------------------------------------------------- /melos.yaml: -------------------------------------------------------------------------------- 1 | name: ds_melos 2 | version: 0.0.1 3 | description: A package for DartStream project-wide Melos configurations and scripts. 4 | packages: 5 | - dartstream/backend/packages/** # Glob pattern to include all packages under "packages" 6 | ignore: 7 | - "**/node_modules/**" 8 | - "**/.dart_tool/**" 9 | - "**/build/**" 10 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: ds_workspace 2 | version: 0.0.1 3 | description: A package for DartStream project-wide configurations and scripts. 4 | repository: https://github.com/aortem/dartstream 5 | 6 | environment: 7 | sdk: '>=3.0.0 <4.0.0' 8 | 9 | dev_dependencies: 10 | melos: ^5.3.0 --------------------------------------------------------------------------------