├── packages ├── orm │ ├── .idea │ │ ├── .name │ │ ├── vcs.xml │ │ ├── modules.xml │ │ └── runConfigurations │ │ │ └── tests_in_has_one_test.xml │ ├── angel_orm │ │ ├── mono_pkg.yaml │ │ ├── lib │ │ │ └── src │ │ │ │ ├── util.dart │ │ │ │ ├── join_on.dart │ │ │ │ ├── order_by.dart │ │ │ │ └── map_query_values.dart │ │ ├── analysis_options.yaml │ │ └── README.md │ ├── angel_orm_test │ │ ├── README.md │ │ ├── mono_pkg.yaml │ │ └── lib │ │ │ ├── src │ │ │ ├── util.dart │ │ │ └── models │ │ │ │ └── car.dart │ │ │ └── angel_orm_test.dart │ ├── angel_migration │ │ ├── mono_pkg.yaml │ │ ├── analysis_options.yaml │ │ ├── README.md │ │ ├── lib │ │ │ ├── angel_migration.dart │ │ │ └── src │ │ │ │ └── migration.dart │ │ ├── CHANGELOG.md │ │ ├── pubspec.yaml │ │ └── .gitignore │ ├── angel_orm_mysql │ │ ├── mono_pkg.yaml │ │ └── test │ │ │ └── migrations │ │ │ ├── unorthodox.sql │ │ │ ├── role.sql │ │ │ ├── has_car.sql │ │ │ ├── leg.sql │ │ │ ├── author.sql │ │ │ ├── numba.sql │ │ │ ├── foot.sql │ │ │ ├── fruit.sql │ │ │ ├── has_map.sql │ │ │ ├── tree.sql │ │ │ ├── user_role.sql │ │ │ ├── book.sql │ │ │ ├── song.sql │ │ │ ├── user.sql │ │ │ ├── car.sql │ │ │ └── weird_join.sql │ ├── angel_orm_sqlite │ │ ├── mono_pkg.yaml │ │ └── pubspec.yaml │ ├── angel_orm_generator │ │ ├── mono_pkg.yaml │ │ ├── analysis_options.yaml │ │ ├── lib │ │ │ └── angel_orm_generator.dart │ │ └── README.md │ ├── angel_orm_postgres │ │ ├── mono_pkg.yaml │ │ ├── test │ │ │ └── migrations │ │ │ │ ├── unorthodox.sql │ │ │ │ ├── role.sql │ │ │ │ ├── has_car.sql │ │ │ │ ├── leg.sql │ │ │ │ ├── author.sql │ │ │ │ ├── numba.sql │ │ │ │ ├── foot.sql │ │ │ │ ├── fruit.sql │ │ │ │ ├── tree.sql │ │ │ │ ├── has_map.sql │ │ │ │ ├── user_role.sql │ │ │ │ ├── book.sql │ │ │ │ ├── song.sql │ │ │ │ ├── user.sql │ │ │ │ ├── car.sql │ │ │ │ ├── custom_expr.sql │ │ │ │ └── weird_join.sql │ │ ├── README.md │ │ └── example │ │ │ └── main.dart │ ├── angel_orm_service │ │ ├── mono_pkg.yaml │ │ ├── CHANGELOG.md │ │ ├── analysis_options.yaml │ │ └── example │ │ │ ├── todo.dart │ │ │ └── migrate.dart │ ├── angel_migration_runner │ │ ├── mono_pkg.yaml │ │ ├── analysis_options.yaml │ │ ├── lib │ │ │ ├── angel_migration_runner.dart │ │ │ ├── postgres.dart │ │ │ └── src │ │ │ │ ├── runner.dart │ │ │ │ └── util.dart │ │ ├── README.md │ │ ├── example │ │ │ └── todo.sql │ │ ├── .gitignore │ │ └── pubspec.yaml │ ├── .travis.yml │ └── tool │ │ └── .travis.sh ├── jael │ ├── jael │ │ ├── mono_pkg.yaml │ │ ├── analysis_options.yaml │ │ ├── lib │ │ │ ├── src │ │ │ │ ├── ast │ │ │ │ │ └── ast_node.dart │ │ │ │ └── text │ │ │ │ │ └── parselet │ │ │ │ │ └── parselet.dart │ │ │ └── jael.dart │ │ └── .gitignore │ ├── angel_jael │ │ ├── mono_pkg.yaml │ │ ├── analysis_options.yaml │ │ ├── CHANGELOG.md │ │ ├── example │ │ │ └── views │ │ │ │ └── layout.jael │ │ └── .gitignore │ ├── jael_web │ │ ├── mono_pkg.yaml │ │ ├── lib │ │ │ ├── elements.dart │ │ │ ├── builder.dart │ │ │ ├── src │ │ │ │ ├── dom_node.dart │ │ │ │ ├── fn.dart │ │ │ │ ├── component.dart │ │ │ │ └── dom_builder.dart │ │ │ └── jael_web.dart │ │ ├── analysis_options.yaml │ │ ├── README.md │ │ ├── build.yaml │ │ ├── pubspec.yaml │ │ └── .gitignore │ ├── jael_language_server │ │ ├── mono_pkg.yaml │ │ ├── lib │ │ │ └── jael_language_server.dart │ │ └── analysis_options.yaml │ ├── jael_preprocessor │ │ ├── mono_pkg.yaml │ │ ├── analysis_options.yaml │ │ ├── CHANGELOG.md │ │ ├── pubspec.yaml │ │ └── .gitignore │ ├── .travis.yml │ ├── .idea │ │ ├── misc.xml │ │ ├── vcs.xml │ │ ├── modules.xml │ │ └── runConfigurations │ │ │ ├── jael__example.xml │ │ │ ├── tests_in_dsx_test_dart.xml │ │ │ ├── tests_in_jael.xml │ │ │ └── main_dart.xml │ └── travis.sh ├── security │ ├── example │ │ ├── main.dart │ │ └── pubspec.yaml │ ├── .travis.yml │ ├── .gitattributes │ ├── test │ │ └── all_test.dart │ ├── lib │ │ ├── src │ │ │ ├── helmet.dart │ │ │ └── csrf_filter.dart │ │ └── angel_security.dart │ ├── analysis_options.yaml │ ├── CHANGELOG.md │ └── README.md ├── static │ ├── test │ │ ├── index.txt │ │ ├── nested │ │ │ └── index.txt │ │ ├── sample.txt │ │ ├── HELLO.md │ │ ├── foo.mustache │ │ └── node_modules │ │ │ └── swagger-ui-dist │ │ │ ├── test.js │ │ │ ├── swagger-ui.css │ │ │ └── index.html │ ├── .travis.yml │ ├── lib │ │ └── angel_static.dart │ └── analysis_options.yaml ├── cli │ ├── .travis.yml │ ├── analysis_options.yaml │ ├── .DS_Store │ ├── example │ │ └── main.dart │ ├── lib │ │ ├── angel_cli.dart │ │ └── src │ │ │ ├── commands │ │ │ ├── commands.dart │ │ │ ├── pub.dart │ │ │ └── service_generators │ │ │ │ ├── service_generators.dart │ │ │ │ └── map.dart │ │ │ └── random_string.dart │ ├── screenshots │ │ └── screenshot.png │ ├── TODO.md │ ├── .idea │ │ ├── modules.xml │ │ └── runConfigurations │ │ │ ├── Doctor.xml │ │ │ ├── Version.xml │ │ │ ├── Show_Help.xml │ │ │ ├── Update.xml │ │ │ ├── Init.xml │ │ │ └── Controller.xml │ └── README.md ├── cors │ ├── .travis.yml │ ├── CHANGELOG.md │ ├── analysis_options.yaml │ ├── README.md │ └── pubspec.yaml ├── graphql │ ├── data_loader │ │ ├── mono_pkg.yaml │ │ ├── CHANGELOG.md │ │ ├── .gitignore │ │ ├── analysis_options.yaml │ │ └── pubspec.yaml │ ├── angel_graphql │ │ ├── mono_pkg.yaml │ │ ├── analysis_options.yaml │ │ └── CHANGELOG.md │ ├── example_star_wars │ │ ├── mono_pkg.yaml │ │ ├── analysis_options.yaml │ │ └── lib │ │ │ └── src │ │ │ └── models │ │ │ ├── models.dart │ │ │ ├── character.dart │ │ │ ├── episode.dart │ │ │ └── starship.dart │ ├── graphql_generator │ │ ├── mono_pkg.yaml │ │ ├── analysis_options.yaml │ │ ├── CHANGELOG.md │ │ ├── example │ │ │ └── main.dart │ │ └── build.yaml │ ├── graphql_parser │ │ ├── mono_pkg.yaml │ │ ├── lib │ │ │ ├── graphql_parser.dart │ │ │ └── src │ │ │ │ └── language │ │ │ │ ├── ast │ │ │ │ ├── node.dart │ │ │ │ ├── input_value.dart │ │ │ │ ├── type_condition.dart │ │ │ │ └── deprecated_value.dart │ │ │ │ ├── language.dart │ │ │ │ ├── syntax_error.dart │ │ │ │ └── token.dart │ │ ├── analysis_options.yaml │ │ ├── test │ │ │ ├── common.dart │ │ │ └── comment_test.dart │ │ └── pubspec.yaml │ ├── graphql_schema │ │ ├── mono_pkg.yaml │ │ ├── lib │ │ │ └── graphql_schema.dart │ │ ├── analysis_options.yaml │ │ ├── CHANGELOG.md │ │ └── pubspec.yaml │ ├── graphql_server │ │ ├── mono_pkg.yaml │ │ ├── analysis_options.yaml │ │ ├── test │ │ │ └── common.dart │ │ └── lib │ │ │ └── subscriptions_transport_ws.dart │ ├── video.png │ ├── .travis.yml │ ├── img │ │ ├── angel_logo.png │ │ ├── angel_logo.xcf │ │ └── angel_graphql.png │ ├── .idea │ │ ├── vcs.xml │ │ └── runConfigurations │ │ │ ├── tests_in_comment_test_dart.xml │ │ │ ├── tests_in_query_test_dart.xml │ │ │ ├── tests_in_value_test_dart.xml │ │ │ ├── tests_in_mirrors_test_dart.xml │ │ │ ├── main_dart.xml │ │ │ ├── tests_in_validation_test_dart.xml │ │ │ ├── tests_in_graphql_parser.xml │ │ │ └── tests_in_graphql_schema.xml │ └── travis.sh ├── html │ ├── .travis.yml │ ├── CHANGELOG.md │ ├── analysis_options.yaml │ ├── .idea │ │ └── vcs.xml │ └── pubspec.yaml ├── markdown │ ├── .travis.yml │ ├── CHANGELOG.md │ ├── analysis_options.yaml │ ├── example │ │ └── views │ │ │ └── hello.md │ └── pubspec.yaml ├── paginate │ ├── .travis.yml │ ├── .analysis-options │ ├── CHANGELOG.md │ ├── .idea │ │ ├── vcs.xml │ │ ├── modules.xml │ │ └── runConfigurations │ │ │ └── All_Tests.xml │ ├── test │ │ └── all_test.dart │ └── pubspec.yaml ├── poll │ ├── .travis.yml │ ├── CHANGELOG.md │ ├── analysis_options.yaml │ ├── .idea │ │ ├── vcs.xml │ │ ├── misc.xml │ │ ├── modules.xml │ │ └── runConfigurations │ │ │ └── tests_in_all_test_dart.xml │ └── pubspec.yaml ├── proxy │ ├── .travis.yml │ ├── lib │ │ └── angel_proxy.dart │ ├── .idea │ │ ├── vcs.xml │ │ ├── jsLibraryMappings.xml │ │ ├── modules.xml │ │ └── runConfigurations │ │ │ ├── Basic_Tests.xml │ │ │ ├── Pub_Serve_Tests.xml │ │ │ ├── All_Tests.xml │ │ │ └── multiple_dart.xml │ ├── analysis_options.yaml │ └── .vscode │ │ └── launch.json ├── sembast │ ├── .travis.yml │ ├── analysis_options.yaml │ ├── CHANGELOG.md │ ├── .gitignore │ └── pubspec.yaml ├── shelf │ ├── .travis.yml │ ├── analysis_options.yaml │ ├── test │ │ └── all.dart │ ├── lib │ │ └── angel_shelf.dart │ ├── .idea │ │ ├── vcs.xml │ │ ├── modules.xml │ │ └── runConfigurations │ │ │ ├── All_Tests__coverage_.xml │ │ │ └── tests_in_shelf.xml │ └── CHANGELOG.md ├── sync │ ├── .travis.yml │ ├── analysis_options.yaml │ ├── CHANGELOG.md │ ├── .gitignore │ └── pubspec.yaml ├── validate │ ├── .travis.yml │ ├── analysis_options.yaml │ ├── test │ │ └── all_test.dart │ └── lib │ │ └── angel_validate.dart ├── mustache │ ├── .travis.yml │ ├── test │ │ ├── hello.mustache │ │ ├── partials │ │ │ └── name.mustache │ │ ├── foo │ │ │ └── bar.mustache │ │ └── with-partial.mustache │ ├── CHANGELOG.md │ ├── analysis_options.yaml │ └── pubspec.yaml ├── relations │ ├── .travis.yml │ ├── lib │ │ ├── src │ │ │ └── no_service.dart │ │ └── angel_relations.dart │ └── pubspec.yaml ├── serialize │ ├── angel_serialize │ │ ├── mono_pkg.yaml │ │ ├── analysis_options.yaml │ │ ├── README.md │ │ ├── example │ │ │ └── main.dart │ │ └── pubspec.yaml │ ├── angel_serialize_generator │ │ ├── mono_pkg.yaml │ │ ├── README.md │ │ ├── analysis_options.yaml │ │ ├── example │ │ │ └── main.dart │ │ └── test │ │ │ └── models │ │ │ ├── goat.dart │ │ │ ├── game_pad_button.dart │ │ │ ├── with_enum.dart │ │ │ └── subclass.dart │ ├── .travis.yml │ ├── tool │ │ └── .travis.sh │ └── .idea │ │ ├── vcs.xml │ │ ├── modules.xml │ │ └── runConfigurations │ │ └── tests_in_enum_test_dart.xml ├── redis │ ├── CHANGELOG.md │ ├── lib │ │ └── angel_redis.dart │ ├── .travis.yml │ ├── .gitignore │ └── pubspec.yaml ├── wings │ ├── web │ │ ├── site.css │ │ └── index.html │ ├── libangel_wings.so │ ├── libangel_wings.dylib │ ├── lib │ │ ├── src │ │ │ ├── libangel_wings.so │ │ │ ├── libangel_wings.dylib │ │ │ └── CMakeLists.txt │ │ └── angel_wings.dart │ ├── ubuntu-bionic-18.04-cloudimg-console.log │ ├── analysis_options.yaml │ ├── Vagrantfile │ ├── CMakeLists.txt │ ├── .gitmodules │ └── pubspec.yaml ├── client │ ├── dart_test.yaml │ ├── .travis.yml │ ├── .babelrc │ ├── test │ │ ├── .DS_Store │ │ └── index.html │ ├── lib │ │ └── auth_types.dart │ ├── .npmignore │ ├── web │ │ ├── index.html │ │ └── main.dart │ ├── analysis_options.yaml │ └── build.yaml ├── framework │ ├── lib │ │ ├── http.dart │ │ ├── http2.dart │ │ ├── angel_framework.dart │ │ └── src │ │ │ ├── fast_name_from_symbol.dart │ │ │ └── core │ │ │ └── core.dart │ ├── .vscode │ │ └── settings.json │ ├── tool │ │ └── travis.sh │ ├── .travis.yml │ ├── example │ │ ├── views │ │ │ └── index.jl │ │ ├── http2 │ │ │ ├── common.dart │ │ │ ├── public │ │ │ │ ├── style.css │ │ │ │ └── index.html │ │ │ └── pretty_logging.dart │ │ └── status.dart │ ├── .idea │ │ ├── misc.xml │ │ ├── encodings.xml │ │ ├── vcs.xml │ │ ├── jsLibraryMappings.xml │ │ ├── modules.xml │ │ └── runConfigurations │ │ │ ├── DI_Tests.xml │ │ │ ├── Hooked_Tests.xml │ │ │ ├── Routing_Tests.xml │ │ │ ├── Controller_Tests.xml │ │ │ ├── All_Tests__for_coverage_.xml │ │ │ ├── All_Tests.xml │ │ │ ├── json_dart.xml │ │ │ ├── main_dart.xml │ │ │ ├── view_dart.xml │ │ │ ├── tests_in_find_one_test_dart.xml │ │ │ ├── tests_in_framework.xml │ │ │ ├── performance__hello__DEV_.xml │ │ │ ├── handle_error_dart.xml │ │ │ ├── All_Tests__PRODUCTION_.xml │ │ │ └── tests_in_server_test_dart__PRODUCTION_.xml │ ├── TODO.md │ ├── test │ │ ├── view_generator_test.dart │ │ └── hm.dart │ └── analysis_options.yaml ├── route │ ├── .travis.yml │ ├── repubspec.yaml │ ├── analysis_options.yaml │ ├── web │ │ ├── push_state │ │ │ └── basic.dart │ │ ├── hash │ │ │ └── basic.dart │ │ └── index.html │ ├── lib │ │ ├── angel_route.dart │ │ └── src │ │ │ └── symlink_route.dart │ ├── .idea │ │ ├── misc.xml │ │ ├── modules.xml │ │ └── runConfigurations │ │ │ └── tests_in_route.xml │ └── test │ │ └── root_test.dart ├── seo │ ├── example │ │ └── web │ │ │ ├── site.css │ │ │ ├── not-inlined.css │ │ │ ├── site.js │ │ │ └── not-inlined.js │ ├── lib │ │ └── angel_seo.dart │ ├── .travis.yml │ ├── analysis_options.yaml │ ├── CHANGELOG.md │ └── .gitignore ├── auth │ ├── lib │ │ ├── src │ │ │ ├── strategies │ │ │ │ └── strategies.dart │ │ │ └── strategy.dart │ │ ├── auth_token.dart │ │ └── angel_auth.dart │ ├── .travis.yml │ ├── analysis_options.yaml │ └── .idea │ │ ├── modules.xml │ │ └── runConfigurations │ │ ├── Local_Tests.xml │ │ ├── Callback_Tests.xml │ │ ├── Auth_Token_Tests.xml │ │ ├── All_Tests.xml │ │ └── tests_in_protect_cookie_test_dart.xml ├── configuration │ ├── .travis.yml │ ├── lib │ │ └── browser.dart │ ├── test │ │ └── config │ │ │ ├── .env │ │ │ ├── override.yaml │ │ │ ├── development.yaml │ │ │ └── default.yaml │ ├── analysis_options.yaml │ └── example │ │ └── main.dart ├── mongo │ ├── .travis.yml │ ├── lib │ │ ├── angel_mongo.dart │ │ └── model.dart │ ├── analysis_options.yaml │ ├── .idea │ │ ├── vcs.xml │ │ ├── modules.xml │ │ └── runConfigurations │ │ │ ├── Typed_Tests.xml │ │ │ ├── Generic_Tests.xml │ │ │ └── All_Tests.xml │ ├── .vscode │ │ └── tasks.json │ └── CHANGELOG.md ├── pretty_logging │ ├── CHANGELOG.md │ ├── analysis_options.yaml │ ├── example │ │ └── main.dart │ ├── pubspec.yaml │ └── .gitignore ├── rethink │ ├── lib │ │ └── angel_rethink.dart │ ├── .travis.yml │ ├── CHANGELOG.md │ ├── test │ │ ├── README.md │ │ ├── common.dart │ │ └── bootstrap.dart │ └── pubspec.yaml ├── user_agent │ ├── CHANGELOG.md │ ├── README.md │ └── pubspec.yaml ├── cache │ ├── .travis.yml │ ├── analysis_options.yaml │ ├── lib │ │ └── angel_cache.dart │ ├── CHANGELOG.md │ ├── .idea │ │ ├── vcs.xml │ │ ├── modules.xml │ │ └── runConfigurations │ │ │ ├── tests_in_cache_test_dart.xml │ │ │ ├── main_dart.xml │ │ │ └── cache_service_dart.xml │ └── pubspec.yaml ├── container │ ├── angel_container │ │ ├── lib │ │ │ ├── src │ │ │ │ ├── reflectable │ │ │ │ │ └── reflectable.dart │ │ │ │ ├── mirrors │ │ │ │ │ └── mirrors.dart │ │ │ │ └── exception.dart │ │ │ ├── mirrors.dart │ │ │ └── angel_container.dart │ │ ├── README.md │ │ ├── analysis_options.yaml │ │ ├── example │ │ │ └── throwing.dart │ │ ├── .gitignore │ │ └── pubspec.yaml │ ├── angel_container_generator │ │ ├── CHANGELOG.md │ │ ├── analysis_options.yaml │ │ ├── README.md │ │ ├── .gitignore │ │ └── pubspec.yaml │ └── README.md ├── oauth2 │ ├── .travis.yml │ ├── .DS_Store │ ├── lib │ │ ├── angel_oauth2.dart │ │ └── src │ │ │ └── token_type.dart │ ├── .idea │ │ ├── vcs.xml │ │ ├── modules.xml │ │ └── runConfigurations │ │ │ └── tests_in_auth_oauth2_server.xml │ └── analysis_options.yaml ├── test │ ├── .travis.yml │ ├── analysis_options.yaml │ ├── lib │ │ └── angel_test.dart │ └── .idea │ │ ├── vcs.xml │ │ ├── jsLibraryMappings.xml │ │ ├── modules.xml │ │ └── runConfigurations │ │ └── Simple_Tests.xml ├── body_parser │ ├── .travis.yml │ ├── analysis_options.yaml │ ├── CHANGELOG.md │ ├── .idea │ │ ├── vcs.xml │ │ ├── modules.xml │ │ └── runConfigurations │ │ │ └── main_dart.xml │ ├── lib │ │ ├── body_parser.dart │ │ └── src │ │ │ ├── chunk.dart │ │ │ └── file_upload_info.dart │ └── example │ │ └── post.lua ├── file_service │ ├── .travis.yml │ ├── analysis_options.yaml │ ├── .idea │ │ ├── vcs.xml │ │ └── modules.xml │ ├── example │ │ └── main.dart │ └── pubspec.yaml ├── websocket │ ├── .travis.yml │ ├── test │ │ └── service │ │ │ └── browser_test.dart │ ├── analysis_options.yaml │ └── web │ │ ├── index.html │ │ └── main.dart ├── jinja │ ├── CHANGELOG.md │ ├── analysis_options.yaml │ ├── example │ │ └── views │ │ │ ├── hello.html │ │ │ ├── index.html │ │ │ └── layout.html │ ├── .gitignore │ └── pubspec.yaml ├── vscode │ ├── angel_vscode │ │ ├── .gitignore │ │ ├── media │ │ │ └── logo.png │ │ ├── .vscodeignore │ │ ├── CHANGELOG.md │ │ └── .vscode │ │ │ └── settings.json │ └── jael_language_server │ │ ├── lib │ │ └── jael_language_server.dart │ │ └── analysis_options.yaml ├── eventsource │ ├── analysis_options.yaml │ ├── lib │ │ └── angel_eventsource.dart │ ├── .idea │ │ ├── vcs.xml │ │ ├── misc.xml │ │ ├── modules.xml │ │ └── runConfigurations │ │ │ ├── main_dart.xml │ │ │ ├── build_dart.xml │ │ │ └── watch_dart.xml │ └── pubspec.yaml ├── production │ ├── screenshot.png │ ├── lib │ │ ├── angel_production.dart │ │ └── src │ │ │ └── instance_info.dart │ ├── analysis_options.yaml │ ├── CHANGELOG.md │ └── .gitignore ├── hot │ ├── screenshots │ │ └── screenshot.png │ ├── example │ │ ├── src │ │ │ └── foo.dart │ │ └── main.dart │ ├── analysis_options.yaml │ └── .idea │ │ ├── vcs.xml │ │ ├── modules.xml │ │ └── runConfigurations │ │ └── main_dart__No_VM_service_.xml ├── auth_twitter │ ├── README.md │ ├── analysis_options.yaml │ └── CHANGELOG.md ├── model │ ├── analysis_options.yaml │ ├── CHANGELOG.md │ ├── README.md │ ├── pubspec.yaml │ ├── .gitignore │ └── example │ │ └── main.dart ├── auth_oauth2 │ ├── analysis_options.yaml │ ├── .idea │ │ ├── vcs.xml │ │ ├── modules.xml │ │ └── runConfigurations │ │ │ └── Github_Auth_Server.xml │ ├── CHANGELOG.md │ └── pubspec.yaml ├── http_exception │ ├── analysis_options.yaml │ ├── example │ │ └── main.dart │ ├── README.md │ ├── CHANGELOG.md │ ├── pubspec.yaml │ └── .gitignore └── typed_service │ ├── analysis_options.yaml │ ├── example │ └── README.md │ ├── CHANGELOG.md │ └── .gitignore ├── requirements.txt ├── .github └── FUNDING.yml └── tool └── pull_subproject /packages/orm/.idea/.name: -------------------------------------------------------------------------------- 1 | orm -------------------------------------------------------------------------------- /packages/jael/jael/mono_pkg.yaml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | PyGithub 2 | -------------------------------------------------------------------------------- /packages/jael/angel_jael/mono_pkg.yaml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/jael/jael_web/mono_pkg.yaml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/orm/angel_orm/mono_pkg.yaml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/orm/angel_orm_test/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/security/example/main.dart: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/static/test/index.txt: -------------------------------------------------------------------------------- 1 | index! -------------------------------------------------------------------------------- /packages/cli/.travis.yml: -------------------------------------------------------------------------------- 1 | language: dart 2 | -------------------------------------------------------------------------------- /packages/cors/.travis.yml: -------------------------------------------------------------------------------- 1 | language: dart -------------------------------------------------------------------------------- /packages/graphql/data_loader/mono_pkg.yaml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/html/.travis.yml: -------------------------------------------------------------------------------- 1 | language: dart -------------------------------------------------------------------------------- /packages/markdown/.travis.yml: -------------------------------------------------------------------------------- 1 | language: dart -------------------------------------------------------------------------------- /packages/orm/angel_migration/mono_pkg.yaml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/orm/angel_orm_mysql/mono_pkg.yaml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/orm/angel_orm_sqlite/mono_pkg.yaml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/orm/angel_orm_test/mono_pkg.yaml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/paginate/.travis.yml: -------------------------------------------------------------------------------- 1 | language: dart -------------------------------------------------------------------------------- /packages/poll/.travis.yml: -------------------------------------------------------------------------------- 1 | language: dart -------------------------------------------------------------------------------- /packages/proxy/.travis.yml: -------------------------------------------------------------------------------- 1 | language: dart -------------------------------------------------------------------------------- /packages/security/.travis.yml: -------------------------------------------------------------------------------- 1 | language: dart -------------------------------------------------------------------------------- /packages/sembast/.travis.yml: -------------------------------------------------------------------------------- 1 | language: dart -------------------------------------------------------------------------------- /packages/shelf/.travis.yml: -------------------------------------------------------------------------------- 1 | language: dart -------------------------------------------------------------------------------- /packages/static/test/nested/index.txt: -------------------------------------------------------------------------------- 1 | Bird -------------------------------------------------------------------------------- /packages/static/test/sample.txt: -------------------------------------------------------------------------------- 1 | Hello world -------------------------------------------------------------------------------- /packages/sync/.travis.yml: -------------------------------------------------------------------------------- 1 | language: dart -------------------------------------------------------------------------------- /packages/validate/.travis.yml: -------------------------------------------------------------------------------- 1 | language: dart -------------------------------------------------------------------------------- /packages/graphql/angel_graphql/mono_pkg.yaml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/graphql/example_star_wars/mono_pkg.yaml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/graphql/graphql_generator/mono_pkg.yaml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/graphql/graphql_parser/mono_pkg.yaml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/graphql/graphql_schema/mono_pkg.yaml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/graphql/graphql_server/mono_pkg.yaml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/jael/jael_language_server/mono_pkg.yaml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/jael/jael_preprocessor/mono_pkg.yaml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/mustache/.travis.yml: -------------------------------------------------------------------------------- 1 | language: dart 2 | -------------------------------------------------------------------------------- /packages/orm/angel_orm_generator/mono_pkg.yaml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/orm/angel_orm_postgres/mono_pkg.yaml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/orm/angel_orm_service/mono_pkg.yaml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/relations/.travis.yml: -------------------------------------------------------------------------------- 1 | language: dart -------------------------------------------------------------------------------- /packages/serialize/angel_serialize/mono_pkg.yaml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/static/test/HELLO.md: -------------------------------------------------------------------------------- 1 | # hello 2 | world! -------------------------------------------------------------------------------- /packages/mustache/test/hello.mustache: -------------------------------------------------------------------------------- 1 | Hello, {{name}}! -------------------------------------------------------------------------------- /packages/mustache/test/partials/name.mustache: -------------------------------------------------------------------------------- 1 | world -------------------------------------------------------------------------------- /packages/orm/angel_migration_runner/mono_pkg.yaml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/static/test/foo.mustache: -------------------------------------------------------------------------------- 1 |

{{foo}}

-------------------------------------------------------------------------------- /packages/redis/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 1.0.0 2 | * First version. -------------------------------------------------------------------------------- /packages/serialize/angel_serialize_generator/mono_pkg.yaml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/wings/web/site.css: -------------------------------------------------------------------------------- 1 | h1 { 2 | color: blue; 3 | } -------------------------------------------------------------------------------- /packages/client/dart_test.yaml: -------------------------------------------------------------------------------- 1 | # platforms: [vm, content-shell] -------------------------------------------------------------------------------- /packages/mustache/test/foo/bar.mustache: -------------------------------------------------------------------------------- 1 | {{framework}}_framework -------------------------------------------------------------------------------- /packages/mustache/test/with-partial.mustache: -------------------------------------------------------------------------------- 1 | Hello, {{> name}}! -------------------------------------------------------------------------------- /packages/poll/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 1.0.0 2 | * Created package + tests -------------------------------------------------------------------------------- /packages/framework/lib/http.dart: -------------------------------------------------------------------------------- 1 | export 'src/http/http.dart'; 2 | -------------------------------------------------------------------------------- /packages/html/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 2.0.0 2 | * Angel 2 + Dart 2 updates. -------------------------------------------------------------------------------- /packages/paginate/.analysis-options: -------------------------------------------------------------------------------- 1 | analyzer: 2 | strong-mode: true -------------------------------------------------------------------------------- /packages/paginate/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 2.0.0 2 | * Dart2 + Angel2 update. -------------------------------------------------------------------------------- /packages/poll/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | analyzer: 2 | strong-mode: true -------------------------------------------------------------------------------- /packages/route/.travis.yml: -------------------------------------------------------------------------------- 1 | language: dart 2 | dart: 3 | - stable -------------------------------------------------------------------------------- /packages/security/.gitattributes: -------------------------------------------------------------------------------- 1 | libinjection/* linguist-vendored -------------------------------------------------------------------------------- /packages/seo/example/web/site.css: -------------------------------------------------------------------------------- 1 | h1 { 2 | color: pink; 3 | } -------------------------------------------------------------------------------- /packages/seo/lib/angel_seo.dart: -------------------------------------------------------------------------------- 1 | export 'src/inline_assets.dart'; 2 | -------------------------------------------------------------------------------- /packages/auth/lib/src/strategies/strategies.dart: -------------------------------------------------------------------------------- 1 | export 'local.dart'; 2 | -------------------------------------------------------------------------------- /packages/configuration/.travis.yml: -------------------------------------------------------------------------------- 1 | language: dart 2 | dart: 3 | - stable -------------------------------------------------------------------------------- /packages/cors/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 2.0.0 2 | * Updates for Dart 2 and Angel 2. -------------------------------------------------------------------------------- /packages/graphql/data_loader/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 1.0.0 2 | * Initial version. -------------------------------------------------------------------------------- /packages/jael/.travis.yml: -------------------------------------------------------------------------------- 1 | language: dart 2 | script: bash ./travis.sh 3 | -------------------------------------------------------------------------------- /packages/jael/jael_web/lib/elements.dart: -------------------------------------------------------------------------------- 1 | export 'src/elements.dart'; 2 | -------------------------------------------------------------------------------- /packages/mongo/.travis.yml: -------------------------------------------------------------------------------- 1 | language: dart 2 | services: 3 | - mongodb -------------------------------------------------------------------------------- /packages/mustache/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 2.0.0 2 | * Angel 2 and Dart 2 support. -------------------------------------------------------------------------------- /packages/mustache/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | analyzer: 2 | strong-mode: true -------------------------------------------------------------------------------- /packages/orm/angel_orm_service/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 1.0.0 2 | * First version. -------------------------------------------------------------------------------- /packages/pretty_logging/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 1.0.0 2 | * Initial release. 3 | -------------------------------------------------------------------------------- /packages/redis/lib/angel_redis.dart: -------------------------------------------------------------------------------- 1 | export 'src/redis_service.dart'; 2 | -------------------------------------------------------------------------------- /packages/rethink/lib/angel_rethink.dart: -------------------------------------------------------------------------------- 1 | export 'src/rethink_service.dart'; -------------------------------------------------------------------------------- /packages/user_agent/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 2.0.0 2 | * Angel 2 + Dart 2 updates -------------------------------------------------------------------------------- /packages/auth/.travis.yml: -------------------------------------------------------------------------------- 1 | language: dart 2 | dart: 3 | - dev 4 | - stable -------------------------------------------------------------------------------- /packages/cache/.travis.yml: -------------------------------------------------------------------------------- 1 | language: dart 2 | dart: 3 | - stable 4 | - dev -------------------------------------------------------------------------------- /packages/container/angel_container/lib/src/reflectable/reflectable.dart: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /packages/jael/jael_web/lib/builder.dart: -------------------------------------------------------------------------------- 1 | export 'src/builder/builder.dart'; 2 | -------------------------------------------------------------------------------- /packages/jael/jael_web/lib/src/dom_node.dart: -------------------------------------------------------------------------------- 1 | abstract class DomNode {} 2 | -------------------------------------------------------------------------------- /packages/oauth2/.travis.yml: -------------------------------------------------------------------------------- 1 | language: dart 2 | dart: 3 | - dev 4 | - stable -------------------------------------------------------------------------------- /packages/redis/.travis.yml: -------------------------------------------------------------------------------- 1 | language: dart 2 | services: 3 | - redis-server -------------------------------------------------------------------------------- /packages/route/repubspec.yaml: -------------------------------------------------------------------------------- 1 | push_state: 2 | base: push_state/basic.html -------------------------------------------------------------------------------- /packages/seo/.travis.yml: -------------------------------------------------------------------------------- 1 | language: dart 2 | dart: 3 | - dev 4 | - stable -------------------------------------------------------------------------------- /packages/seo/example/web/not-inlined.css: -------------------------------------------------------------------------------- 1 | p { 2 | font-style: italic; 3 | } -------------------------------------------------------------------------------- /packages/static/.travis.yml: -------------------------------------------------------------------------------- 1 | language: dart 2 | dart: 3 | - dev 4 | - stable -------------------------------------------------------------------------------- /packages/static/test/node_modules/swagger-ui-dist/test.js: -------------------------------------------------------------------------------- 1 | console.log('foo'); -------------------------------------------------------------------------------- /packages/test/.travis.yml: -------------------------------------------------------------------------------- 1 | language: dart 2 | dart: 3 | - dev 4 | - stable -------------------------------------------------------------------------------- /packages/body_parser/.travis.yml: -------------------------------------------------------------------------------- 1 | language: dart 2 | dart: 3 | - dev 4 | - stable -------------------------------------------------------------------------------- /packages/client/.travis.yml: -------------------------------------------------------------------------------- 1 | language: dart 2 | dart: 3 | - dev 4 | - stable 5 | -------------------------------------------------------------------------------- /packages/configuration/lib/browser.dart: -------------------------------------------------------------------------------- 1 | external dynamic config(String key); 2 | -------------------------------------------------------------------------------- /packages/configuration/test/config/.env: -------------------------------------------------------------------------------- 1 | ANGEL_FRAMEWORK=cool 2 | JUSTIN=Timberlake -------------------------------------------------------------------------------- /packages/file_service/.travis.yml: -------------------------------------------------------------------------------- 1 | language: dart 2 | dart: 3 | - dev 4 | - stable -------------------------------------------------------------------------------- /packages/graphql/graphql_schema/lib/graphql_schema.dart: -------------------------------------------------------------------------------- 1 | export 'src/schema.dart'; 2 | -------------------------------------------------------------------------------- /packages/websocket/.travis.yml: -------------------------------------------------------------------------------- 1 | language: dart 2 | dart: 3 | - dev 4 | - stable 5 | -------------------------------------------------------------------------------- /packages/cli/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | analyzer: 2 | strong-mode: 3 | implicit-casts: false -------------------------------------------------------------------------------- /packages/container/angel_container/lib/mirrors.dart: -------------------------------------------------------------------------------- 1 | export 'src/mirrors/mirrors.dart'; 2 | -------------------------------------------------------------------------------- /packages/container/angel_container/lib/src/mirrors/mirrors.dart: -------------------------------------------------------------------------------- 1 | export 'reflector.dart'; 2 | -------------------------------------------------------------------------------- /packages/graphql/data_loader/.gitignore: -------------------------------------------------------------------------------- 1 | .packages 2 | pubspec.lock 3 | .dart_tool 4 | doc/api -------------------------------------------------------------------------------- /packages/jael/jael_language_server/lib/jael_language_server.dart: -------------------------------------------------------------------------------- 1 | export 'src/server.dart'; -------------------------------------------------------------------------------- /packages/jinja/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 1.0.0 2 | 3 | - Initial version, created by Stagehand 4 | -------------------------------------------------------------------------------- /packages/mongo/lib/angel_mongo.dart: -------------------------------------------------------------------------------- 1 | library angel_mongo; 2 | 3 | export 'services.dart'; 4 | -------------------------------------------------------------------------------- /packages/seo/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | analyzer: 2 | strong-mode: 3 | implicit-casts: false -------------------------------------------------------------------------------- /packages/sync/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | analyzer: 2 | strong-mode: 3 | implicit-casts: false -------------------------------------------------------------------------------- /packages/test/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | analyzer: 2 | strong-mode: 3 | implicit-casts: false -------------------------------------------------------------------------------- /packages/vscode/angel_vscode/.gitignore: -------------------------------------------------------------------------------- 1 | out 2 | node_modules 3 | .vscode-test/ 4 | *.vsix 5 | -------------------------------------------------------------------------------- /packages/vscode/jael_language_server/lib/jael_language_server.dart: -------------------------------------------------------------------------------- 1 | export 'src/server.dart'; -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [thosakwe] 4 | -------------------------------------------------------------------------------- /packages/cache/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | analyzer: 2 | strong-mode: 3 | implicit-casts: false -------------------------------------------------------------------------------- /packages/cli/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angel-dart/angel/HEAD/packages/cli/.DS_Store -------------------------------------------------------------------------------- /packages/markdown/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 2.0.0 2 | * Angel 2 + Dart 2 updates. 3 | * Use `package:file`. -------------------------------------------------------------------------------- /packages/security/test/all_test.dart: -------------------------------------------------------------------------------- 1 | import 'package:test/test.dart'; 2 | 3 | void main() {} 4 | -------------------------------------------------------------------------------- /packages/seo/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 2.0.0 2 | * Angel 2 updates. 3 | 4 | # 1.0.0 5 | * Initial release. -------------------------------------------------------------------------------- /packages/test/lib/angel_test.dart: -------------------------------------------------------------------------------- 1 | export 'src/client.dart'; 2 | export 'src/matchers.dart'; 3 | -------------------------------------------------------------------------------- /packages/body_parser/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | analyzer: 2 | strong-mode: 3 | implicit-casts: false -------------------------------------------------------------------------------- /packages/cli/example/main.dart: -------------------------------------------------------------------------------- 1 | void main() { 2 | // This package isn't usable from code. 3 | } 4 | -------------------------------------------------------------------------------- /packages/cli/lib/angel_cli.dart: -------------------------------------------------------------------------------- 1 | library angel_cli; 2 | 3 | export 'src/commands/commands.dart'; 4 | -------------------------------------------------------------------------------- /packages/client/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["es2015"], 3 | "plugins": ["add-module-exports"] 4 | } -------------------------------------------------------------------------------- /packages/eventsource/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | analyzer: 2 | strong-mode: 3 | implicit-casts: false -------------------------------------------------------------------------------- /packages/file_service/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | analyzer: 2 | strong-mode: 3 | implicit-casts: false -------------------------------------------------------------------------------- /packages/jael/jael_web/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | analyzer: 2 | strong-mode: 3 | implicit-casts: false -------------------------------------------------------------------------------- /packages/oauth2/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angel-dart/angel/HEAD/packages/oauth2/.DS_Store -------------------------------------------------------------------------------- /packages/proxy/lib/angel_proxy.dart: -------------------------------------------------------------------------------- 1 | library angel_proxy; 2 | 3 | export 'src/proxy_layer.dart'; 4 | -------------------------------------------------------------------------------- /packages/serialize/.travis.yml: -------------------------------------------------------------------------------- 1 | language: dart 2 | script: bash tool/.travis.sh 3 | dart: 4 | - stable -------------------------------------------------------------------------------- /packages/eventsource/lib/angel_eventsource.dart: -------------------------------------------------------------------------------- 1 | export 'package:angel_websocket/angel_websocket.dart'; 2 | -------------------------------------------------------------------------------- /packages/graphql/video.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angel-dart/angel/HEAD/packages/graphql/video.png -------------------------------------------------------------------------------- /packages/jael/angel_jael/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | analyzer: 2 | strong-mode: 3 | implicit-casts: false -------------------------------------------------------------------------------- /packages/orm/angel_migration/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | analyzer: 2 | strong-mode: 3 | implicit-casts: false -------------------------------------------------------------------------------- /packages/client/test/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angel-dart/angel/HEAD/packages/client/test/.DS_Store -------------------------------------------------------------------------------- /packages/container/angel_container_generator/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 1.0.1 2 | * Update for `pkg:angel_container@1.0.3`. -------------------------------------------------------------------------------- /packages/graphql/graphql_schema/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | analyzer: 2 | strong-mode: 3 | implicit-casts: false -------------------------------------------------------------------------------- /packages/jael/jael_preprocessor/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | analyzer: 2 | strong-mode: 3 | implicit-casts: false -------------------------------------------------------------------------------- /packages/static/test/node_modules/swagger-ui-dist/swagger-ui.css: -------------------------------------------------------------------------------- 1 | html, body { 2 | font-weight: bold; 3 | } -------------------------------------------------------------------------------- /packages/graphql/.travis.yml: -------------------------------------------------------------------------------- 1 | language: dart 2 | dart: 3 | - dev 4 | - stable 5 | script: 6 | - bash -ex travis.sh -------------------------------------------------------------------------------- /packages/graphql/example_star_wars/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | analyzer: 2 | strong-mode: 3 | implicit-casts: false -------------------------------------------------------------------------------- /packages/jael/jael_language_server/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | analyzer: 2 | strong-mode: 3 | implicit-casts: false -------------------------------------------------------------------------------- /packages/orm/angel_migration_runner/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | analyzer: 2 | strong-mode: 3 | implicit-casts: false -------------------------------------------------------------------------------- /packages/vscode/jael_language_server/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | analyzer: 2 | strong-mode: 3 | implicit-casts: false -------------------------------------------------------------------------------- /packages/wings/libangel_wings.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angel-dart/angel/HEAD/packages/wings/libangel_wings.so -------------------------------------------------------------------------------- /packages/configuration/test/config/override.yaml: -------------------------------------------------------------------------------- 1 | hello: goodbye 2 | foo: 3 | version: baz 4 | merge: 5 | hello: goodbye -------------------------------------------------------------------------------- /packages/graphql/img/angel_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angel-dart/angel/HEAD/packages/graphql/img/angel_logo.png -------------------------------------------------------------------------------- /packages/graphql/img/angel_logo.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angel-dart/angel/HEAD/packages/graphql/img/angel_logo.xcf -------------------------------------------------------------------------------- /packages/orm/angel_migration/README.md: -------------------------------------------------------------------------------- 1 | # migration 2 | A PostgreSQL database migration framework built on Angel's ORM. 3 | -------------------------------------------------------------------------------- /packages/orm/angel_orm_sqlite/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: angel_orm_sqlite 2 | dependencies: 3 | angel_orm: ^2.0.0-dev 4 | -------------------------------------------------------------------------------- /packages/production/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angel-dart/angel/HEAD/packages/production/screenshot.png -------------------------------------------------------------------------------- /packages/rethink/.travis.yml: -------------------------------------------------------------------------------- 1 | language: dart 2 | addons: 3 | rethinkdb: '2.3' 4 | before_script: 'dart test/bootstrap.dart' -------------------------------------------------------------------------------- /packages/wings/libangel_wings.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angel-dart/angel/HEAD/packages/wings/libangel_wings.dylib -------------------------------------------------------------------------------- /packages/container/angel_container_generator/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | analyzer: 2 | #strong-mode: 3 | #implicit-casts: false -------------------------------------------------------------------------------- /packages/framework/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | // Place your settings in this file to overwrite default and user settings. 2 | { 3 | } -------------------------------------------------------------------------------- /packages/graphql/img/angel_graphql.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angel-dart/angel/HEAD/packages/graphql/img/angel_graphql.png -------------------------------------------------------------------------------- /packages/orm/angel_migration_runner/lib/angel_migration_runner.dart: -------------------------------------------------------------------------------- 1 | export 'src/cli.dart'; 2 | export 'src/runner.dart'; 3 | -------------------------------------------------------------------------------- /packages/rethink/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 1.1.0 2 | * Moved to `package:rethinkdb_driver` 3 | * Fixed references to old hooked event names. -------------------------------------------------------------------------------- /packages/security/lib/src/helmet.dart: -------------------------------------------------------------------------------- 1 | import 'package:angel_framework/angel_framework.dart'; 2 | 3 | class Helmet { 4 | 5 | } -------------------------------------------------------------------------------- /packages/seo/example/web/site.js: -------------------------------------------------------------------------------- 1 | window.addEventListener('load', function() { 2 | console.log('Hello, inline world!'); 3 | }); -------------------------------------------------------------------------------- /packages/cli/screenshots/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angel-dart/angel/HEAD/packages/cli/screenshots/screenshot.png -------------------------------------------------------------------------------- /packages/client/lib/auth_types.dart: -------------------------------------------------------------------------------- 1 | @deprecated 2 | library auth_types; 3 | 4 | const String local = 'local', token = 'token'; 5 | -------------------------------------------------------------------------------- /packages/hot/screenshots/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angel-dart/angel/HEAD/packages/hot/screenshots/screenshot.png -------------------------------------------------------------------------------- /packages/orm/angel_migration_runner/README.md: -------------------------------------------------------------------------------- 1 | # migration 2 | A PostgreSQL database migration framework built on Angel's ORM. 3 | -------------------------------------------------------------------------------- /packages/wings/lib/src/libangel_wings.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angel-dart/angel/HEAD/packages/wings/lib/src/libangel_wings.so -------------------------------------------------------------------------------- /packages/auth_twitter/README.md: -------------------------------------------------------------------------------- 1 | # auth_twitter 2 | angel_auth strategy for Twitter login. 3 | 4 | See the [example](example/server.dart); -------------------------------------------------------------------------------- /packages/cache/lib/angel_cache.dart: -------------------------------------------------------------------------------- 1 | export 'src/cache.dart'; 2 | export 'src/cache_service.dart'; 3 | export 'src/serializer.dart'; 4 | -------------------------------------------------------------------------------- /packages/configuration/test/config/development.yaml: -------------------------------------------------------------------------------- 1 | _include: 2 | - "./include.yaml" 3 | hello: world 4 | foo: 5 | version: bar 6 | -------------------------------------------------------------------------------- /packages/graphql/graphql_parser/lib/graphql_parser.dart: -------------------------------------------------------------------------------- 1 | export 'src/language/ast/ast.dart'; 2 | export 'src/language/language.dart'; 3 | -------------------------------------------------------------------------------- /packages/static/lib/angel_static.dart: -------------------------------------------------------------------------------- 1 | library angel_static; 2 | 3 | export 'src/cache.dart'; 4 | export 'src/virtual_directory.dart'; 5 | -------------------------------------------------------------------------------- /packages/vscode/angel_vscode/media/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angel-dart/angel/HEAD/packages/vscode/angel_vscode/media/logo.png -------------------------------------------------------------------------------- /packages/wings/lib/src/libangel_wings.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angel-dart/angel/HEAD/packages/wings/lib/src/libangel_wings.dylib -------------------------------------------------------------------------------- /packages/auth/lib/auth_token.dart: -------------------------------------------------------------------------------- 1 | /// Stand-alone JWT library. 2 | library angel_auth.auth_token; 3 | 4 | export 'src/auth_token.dart'; 5 | -------------------------------------------------------------------------------- /packages/body_parser/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 1.1.1 2 | * Dart 2 updates; should fix Angel in Travis. 3 | 4 | # 1.1.0 5 | * Add `parseBodyFromStream` -------------------------------------------------------------------------------- /packages/cli/TODO.md: -------------------------------------------------------------------------------- 1 | # Todo 2 | 3 | * `service` 4 | * Add tests 5 | * `migration` 6 | * `deploy` 7 | * Call these from Grinder script :) -------------------------------------------------------------------------------- /packages/container/README.md: -------------------------------------------------------------------------------- 1 | # container 2 | A better IoC container for Angel, ultimately allowing Angel to be used without dart:mirrors. 3 | -------------------------------------------------------------------------------- /packages/orm/angel_orm/lib/src/util.dart: -------------------------------------------------------------------------------- 1 | import 'package:charcode/ascii.dart'; 2 | 3 | bool isAscii(int ch) => ch >= $nul && ch <= $del; 4 | -------------------------------------------------------------------------------- /packages/production/lib/angel_production.dart: -------------------------------------------------------------------------------- 1 | export 'src/instance_info.dart'; 2 | export 'src/options.dart'; 3 | export 'src/runner.dart'; 4 | -------------------------------------------------------------------------------- /packages/sync/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 2.0.0 2 | * Dart 2 + Angel 2 updates. 3 | * Extend `StreamChannel`, instead of the defunct `WebSocketSynchronizer`. -------------------------------------------------------------------------------- /packages/auth/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false -------------------------------------------------------------------------------- /packages/cors/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false -------------------------------------------------------------------------------- /packages/framework/tool/travis.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -e 3 | pub run test --timeout 5s 4 | ANGEL_ENV=production pub run test --timeout 5s -------------------------------------------------------------------------------- /packages/html/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false -------------------------------------------------------------------------------- /packages/jinja/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false -------------------------------------------------------------------------------- /packages/model/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false -------------------------------------------------------------------------------- /packages/mongo/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false -------------------------------------------------------------------------------- /packages/relations/lib/src/no_service.dart: -------------------------------------------------------------------------------- 1 | ArgumentError noService(Pattern path) => 2 | new ArgumentError("No service exists at path '$path'."); -------------------------------------------------------------------------------- /packages/sembast/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false -------------------------------------------------------------------------------- /packages/auth_oauth2/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false -------------------------------------------------------------------------------- /packages/auth_twitter/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false -------------------------------------------------------------------------------- /packages/configuration/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: true -------------------------------------------------------------------------------- /packages/jael/jael/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false -------------------------------------------------------------------------------- /packages/markdown/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false -------------------------------------------------------------------------------- /packages/production/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false -------------------------------------------------------------------------------- /packages/route/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false 5 | -------------------------------------------------------------------------------- /packages/security/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false -------------------------------------------------------------------------------- /packages/serialize/tool/.travis.sh: -------------------------------------------------------------------------------- 1 | cd angel_serialize_generator 2 | pub get 3 | pub run build_runner build --delete-conflicting-outputs 4 | pub run test -------------------------------------------------------------------------------- /packages/shelf/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false 5 | -------------------------------------------------------------------------------- /packages/validate/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false -------------------------------------------------------------------------------- /packages/websocket/test/service/browser_test.dart: -------------------------------------------------------------------------------- 1 | import 'package:test/test.dart'; 2 | 3 | main() { 4 | group('service.browser', () {}); 5 | } 6 | -------------------------------------------------------------------------------- /packages/container/angel_container/README.md: -------------------------------------------------------------------------------- 1 | # container 2 | A better IoC container for Angel, ultimately allowing Angel to be used without dart:mirrors. 3 | -------------------------------------------------------------------------------- /packages/framework/.travis.yml: -------------------------------------------------------------------------------- 1 | language: dart 2 | dart: 3 | - dev 4 | - stable 5 | before_script: chmod +x ./tool/travis.sh 6 | script: ./tool/travis.sh -------------------------------------------------------------------------------- /packages/http_exception/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false -------------------------------------------------------------------------------- /packages/orm/angel_orm/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false -------------------------------------------------------------------------------- /packages/orm/angel_orm_mysql/test/migrations/unorthodox.sql: -------------------------------------------------------------------------------- 1 | CREATE TEMPORARY TABLE "unorthodoxes" ( 2 | "name" varchar(255), 3 | PRIMARY KEY(name) 4 | ); -------------------------------------------------------------------------------- /packages/seo/example/web/not-inlined.js: -------------------------------------------------------------------------------- 1 | window.addEventListener('load', function() { 2 | console.log('THIS message was not from an inlined file.'); 3 | }); -------------------------------------------------------------------------------- /packages/typed_service/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false -------------------------------------------------------------------------------- /packages/validate/test/all_test.dart: -------------------------------------------------------------------------------- 1 | import 'package:angel_validate/angel_validate.dart'; 2 | import 'package:test/test.dart'; 3 | 4 | void main() {} 5 | -------------------------------------------------------------------------------- /packages/websocket/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false -------------------------------------------------------------------------------- /packages/client/.npmignore: -------------------------------------------------------------------------------- 1 | .babelrc 2 | .istanbul.yml 3 | .travis.yml 4 | .editorconfig 5 | .idea/ 6 | src/ 7 | test/ 8 | !lib/ 9 | .github/ 10 | coverage -------------------------------------------------------------------------------- /packages/graphql/angel_graphql/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false -------------------------------------------------------------------------------- /packages/graphql/data_loader/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false -------------------------------------------------------------------------------- /packages/graphql/graphql_parser/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false -------------------------------------------------------------------------------- /packages/graphql/graphql_parser/test/common.dart: -------------------------------------------------------------------------------- 1 | import 'package:graphql_parser/graphql_parser.dart'; 2 | 3 | Parser parse(String text) => Parser(scan(text)); 4 | -------------------------------------------------------------------------------- /packages/graphql/graphql_server/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false -------------------------------------------------------------------------------- /packages/jael/jael/lib/src/ast/ast_node.dart: -------------------------------------------------------------------------------- 1 | import 'package:source_span/source_span.dart'; 2 | 3 | abstract class AstNode { 4 | FileSpan get span; 5 | } 6 | -------------------------------------------------------------------------------- /packages/orm/angel_orm_postgres/test/migrations/unorthodox.sql: -------------------------------------------------------------------------------- 1 | CREATE TEMPORARY TABLE "unorthodoxes" ( 2 | "name" varchar(255), 3 | PRIMARY KEY(name) 4 | ); -------------------------------------------------------------------------------- /packages/orm/angel_orm_service/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false -------------------------------------------------------------------------------- /packages/pretty_logging/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false 5 | -------------------------------------------------------------------------------- /packages/wings/ubuntu-bionic-18.04-cloudimg-console.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angel-dart/angel/HEAD/packages/wings/ubuntu-bionic-18.04-cloudimg-console.log -------------------------------------------------------------------------------- /packages/container/angel_container/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false -------------------------------------------------------------------------------- /packages/container/angel_container_generator/README.md: -------------------------------------------------------------------------------- 1 | # container 2 | A better IoC container for Angel, ultimately allowing Angel to be used without dart:mirrors. 3 | -------------------------------------------------------------------------------- /packages/graphql/graphql_generator/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false -------------------------------------------------------------------------------- /packages/orm/angel_orm_generator/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false -------------------------------------------------------------------------------- /packages/route/web/push_state/basic.dart: -------------------------------------------------------------------------------- 1 | import 'package:angel_route/browser.dart'; 2 | import '../shared/basic.dart'; 3 | 4 | main() => basic(BrowserRouter()); 5 | -------------------------------------------------------------------------------- /packages/sembast/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 1.0.1 2 | * Fix flaw where clients could remove all records, even if `allowRemoveAll` were `false`. 3 | 4 | # 1.0.0 5 | * First release. -------------------------------------------------------------------------------- /packages/serialize/angel_serialize/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false -------------------------------------------------------------------------------- /packages/orm/angel_migration_runner/lib/postgres.dart: -------------------------------------------------------------------------------- 1 | export 'src/postgres/runner.dart'; 2 | export 'src/postgres/schema.dart'; 3 | export 'src/postgres/table.dart'; 4 | -------------------------------------------------------------------------------- /packages/route/web/hash/basic.dart: -------------------------------------------------------------------------------- 1 | import 'package:angel_route/browser.dart'; 2 | import '../shared/basic.dart'; 3 | 4 | main() => basic(BrowserRouter(hash: true)); 5 | -------------------------------------------------------------------------------- /packages/user_agent/README.md: -------------------------------------------------------------------------------- 1 | # user_agent 2 | Middleware to inject a User Agent object into requests. 3 | For convenience's sake, it also exports the `user_agent` library. -------------------------------------------------------------------------------- /packages/framework/example/views/index.jl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Title 5 | 6 | 7 |

Hello!

8 | 9 | -------------------------------------------------------------------------------- /packages/framework/lib/http2.dart: -------------------------------------------------------------------------------- 1 | export 'src/http2/angel_http2.dart'; 2 | export 'src/http2/http2_request_context.dart'; 3 | export 'src/http2/http2_response_context.dart'; 4 | -------------------------------------------------------------------------------- /packages/graphql/graphql_parser/lib/src/language/ast/node.dart: -------------------------------------------------------------------------------- 1 | import 'package:source_span/source_span.dart'; 2 | 3 | abstract class Node { 4 | FileSpan get span; 5 | } 6 | -------------------------------------------------------------------------------- /packages/orm/angel_migration/lib/angel_migration.dart: -------------------------------------------------------------------------------- 1 | export 'src/column.dart'; 2 | export 'src/migration.dart'; 3 | export 'src/schema.dart'; 4 | export 'src/table.dart'; 5 | -------------------------------------------------------------------------------- /packages/orm/angel_migration/lib/src/migration.dart: -------------------------------------------------------------------------------- 1 | import 'schema.dart'; 2 | 3 | abstract class Migration { 4 | void up(Schema schema); 5 | void down(Schema schema); 6 | } 7 | -------------------------------------------------------------------------------- /packages/route/lib/angel_route.dart: -------------------------------------------------------------------------------- 1 | library angel_route; 2 | 3 | export 'src/middleware_pipeline.dart'; 4 | export 'src/router.dart'; 5 | export 'src/routing_exception.dart'; 6 | -------------------------------------------------------------------------------- /packages/wings/lib/angel_wings.dart: -------------------------------------------------------------------------------- 1 | export 'src/wings_driver.dart'; 2 | export 'src/wings_request.dart'; 3 | export 'src/wings_response.dart'; 4 | export 'src/wings_socket.dart'; 5 | -------------------------------------------------------------------------------- /packages/cache/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 2.0.1 2 | * Add `ignoreQueryAndFragment` to `ResponseCache`. 3 | * Rename `CacheService.ignoreQuery` to `ignoreParams`. 4 | 5 | # 1.0.0 6 | * First version -------------------------------------------------------------------------------- /packages/client/web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Client 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /packages/shelf/test/all.dart: -------------------------------------------------------------------------------- 1 | import 'package:test/test.dart'; 2 | import 'embed_shelf_test.dart' as embed_shelf; 3 | 4 | main() { 5 | group('embed_shelf', embed_shelf.main); 6 | } 7 | -------------------------------------------------------------------------------- /packages/typed_service/example/README.md: -------------------------------------------------------------------------------- 1 | Command: 2 | 3 | ```bash 4 | curl -X POST -d '@example/data.json' -H 'content-type: application/json' http://localhost:3000/api/todos; echo 5 | ``` -------------------------------------------------------------------------------- /packages/websocket/web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Client 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /packages/jinja/example/views/hello.html: -------------------------------------------------------------------------------- 1 | {% extends "layout.html" %} 2 | {% block title %}hello {{ name }}!{% endblock %} 3 | {% block body %} 4 |

hello {{ name }}!

5 | {% endblock %} -------------------------------------------------------------------------------- /packages/graphql/example_star_wars/lib/src/models/models.dart: -------------------------------------------------------------------------------- 1 | export 'character.dart'; 2 | export 'droid.dart'; 3 | export 'episode.dart'; 4 | export 'human.dart'; 5 | export 'starship.dart'; 6 | -------------------------------------------------------------------------------- /packages/hot/example/src/foo.dart: -------------------------------------------------------------------------------- 1 | class Foo { 2 | final String bar; 3 | 4 | Foo({this.bar}); 5 | 6 | Map toJson() { 7 | return {'bar': bar}; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /packages/oauth2/lib/angel_oauth2.dart: -------------------------------------------------------------------------------- 1 | export 'src/exception.dart'; 2 | export 'src/pkce.dart'; 3 | export 'src/response.dart'; 4 | export 'src/server.dart'; 5 | export 'src/token_type.dart'; 6 | -------------------------------------------------------------------------------- /packages/production/lib/src/instance_info.dart: -------------------------------------------------------------------------------- 1 | /// Information about the currently-running instance. 2 | class InstanceInfo { 3 | final int id; 4 | 5 | const InstanceInfo({this.id}); 6 | } 7 | -------------------------------------------------------------------------------- /packages/vscode/angel_vscode/.vscodeignore: -------------------------------------------------------------------------------- 1 | .vscode/** 2 | .vscode-test/** 3 | out/test/** 4 | out/**/*.map 5 | src/** 6 | .gitignore 7 | tsconfig.json 8 | vsc-extension-quickstart.md 9 | tslint.json -------------------------------------------------------------------------------- /packages/wings/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | exclude: 4 | - cmake_dart_utils/example/* 5 | strong-mode: 6 | implicit-casts: false -------------------------------------------------------------------------------- /packages/auth_twitter/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 2.0.0 2 | * Angel 2 + Dart 2 suppport. 3 | * Use `package:twitter` instead of `package:twit`. 4 | * Add `TwitterAuthorizationException`. 5 | * Add `onError` callback. -------------------------------------------------------------------------------- /packages/client/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false 5 | # errors: 6 | # unawaited_futures: ignore -------------------------------------------------------------------------------- /packages/jael/jael/lib/jael.dart: -------------------------------------------------------------------------------- 1 | export 'src/ast/ast.dart'; 2 | export 'src/text/parser.dart'; 3 | export 'src/text/scanner.dart'; 4 | export 'src/formatter.dart'; 5 | export 'src/renderer.dart'; 6 | -------------------------------------------------------------------------------- /packages/oauth2/lib/src/token_type.dart: -------------------------------------------------------------------------------- 1 | /// The various types of OAuth2 authorization tokens. 2 | abstract class AuthorizationTokenType { 3 | static const String bearer = 'bearer', mac = 'mac'; 4 | } 5 | -------------------------------------------------------------------------------- /packages/validate/lib/angel_validate.dart: -------------------------------------------------------------------------------- 1 | export 'src/common_fields.dart'; 2 | export 'src/field.dart'; 3 | export 'src/form.dart'; 4 | export 'src/form_renderer.dart'; 5 | export 'src/matchers.dart'; 6 | -------------------------------------------------------------------------------- /packages/framework/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /packages/orm/angel_orm_mysql/test/migrations/role.sql: -------------------------------------------------------------------------------- 1 | CREATE TEMPORARY TABLE "roles" ( 2 | "id" serial PRIMARY KEY, 3 | "name" varchar(255), 4 | "created_at" timestamp, 5 | "updated_at" timestamp 6 | ); -------------------------------------------------------------------------------- /packages/orm/angel_orm_postgres/README.md: -------------------------------------------------------------------------------- 1 | # angel_orm_postgres 2 | PostgreSQL support for Angel's ORM. 3 | 4 | For documentation about the ORM, head to the main project repo: 5 | https://github.com/angel-dart/orm -------------------------------------------------------------------------------- /packages/orm/angel_orm_postgres/test/migrations/role.sql: -------------------------------------------------------------------------------- 1 | CREATE TEMPORARY TABLE "roles" ( 2 | "id" serial PRIMARY KEY, 3 | "name" varchar(255), 4 | "created_at" timestamp, 5 | "updated_at" timestamp 6 | ); -------------------------------------------------------------------------------- /packages/production/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 1.0.0 2 | * Support SSL/HTTP2. 3 | * Support muting the logger via `--quiet`. 4 | 5 | # 1.0.0-alpha.1 6 | * Import `framework/http`. 7 | 8 | # 1.0.0-alpha 9 | * Initial version. -------------------------------------------------------------------------------- /packages/serialize/angel_serialize/README.md: -------------------------------------------------------------------------------- 1 | # angel_serialize 2 | The frontend for Angel model serialization. 3 | See documentation in the main project repo: 4 | 5 | https://github.com/angel-dart/serialize 6 | -------------------------------------------------------------------------------- /packages/shelf/lib/angel_shelf.dart: -------------------------------------------------------------------------------- 1 | export 'src/convert.dart'; 2 | export 'src/embed_shelf.dart'; 3 | export 'src/shelf_driver.dart'; 4 | export 'src/shelf_request.dart'; 5 | export 'src/shelf_response.dart'; 6 | -------------------------------------------------------------------------------- /packages/cache/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /packages/framework/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /packages/http_exception/example/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:angel_http_exception/angel_http_exception.dart'; 2 | 3 | void main() => 4 | throw new AngelHttpException.notFound(message: "Can't find that page!"); 5 | -------------------------------------------------------------------------------- /packages/oauth2/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /packages/orm/angel_orm_mysql/test/migrations/has_car.sql: -------------------------------------------------------------------------------- 1 | CREATE TEMPORARY TABLE "has_cars" ( 2 | id serial PRIMARY KEY, 3 | type int not null, 4 | created_at timestamp, 5 | updated_at timestamp 6 | ); -------------------------------------------------------------------------------- /packages/orm/angel_orm_mysql/test/migrations/leg.sql: -------------------------------------------------------------------------------- 1 | CREATE TEMPORARY TABLE "legs" ( 2 | id serial PRIMARY KEY, 3 | name varchar(255) NOT NULL, 4 | created_at timestamp, 5 | updated_at timestamp 6 | ); -------------------------------------------------------------------------------- /packages/orm/angel_orm_postgres/test/migrations/has_car.sql: -------------------------------------------------------------------------------- 1 | CREATE TEMPORARY TABLE "has_cars" ( 2 | id serial PRIMARY KEY, 3 | type int not null, 4 | created_at timestamp, 5 | updated_at timestamp 6 | ); -------------------------------------------------------------------------------- /packages/poll/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /packages/security/example/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: example 2 | publish_to: none 3 | dependencies: 4 | angel_production: ^1.0.0 5 | angel_redis: ^1.0.0 6 | angel_security: 7 | path: ../ 8 | pretty_logging: ^1.0.0 -------------------------------------------------------------------------------- /packages/wings/Vagrantfile: -------------------------------------------------------------------------------- 1 | # -*- mode: ruby -*- 2 | # vi: set ft=ruby : 3 | Vagrant.configure("2") do |config| 4 | config.vm.box = "ubuntu/bionic64" 5 | config.vm.provision "shell", path: "provision.sh" 6 | end 7 | -------------------------------------------------------------------------------- /packages/body_parser/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /packages/eventsource/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /packages/hot/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false 5 | linter: 6 | rules: 7 | - unnecessary_const 8 | - unnecessary_new -------------------------------------------------------------------------------- /packages/jael/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /packages/orm/angel_orm/lib/src/join_on.dart: -------------------------------------------------------------------------------- 1 | import 'builder.dart'; 2 | 3 | class JoinOn { 4 | final SqlExpressionBuilder key; 5 | final SqlExpressionBuilder value; 6 | 7 | JoinOn(this.key, this.value); 8 | } 9 | -------------------------------------------------------------------------------- /packages/orm/angel_orm_postgres/test/migrations/leg.sql: -------------------------------------------------------------------------------- 1 | CREATE TEMPORARY TABLE "legs" ( 2 | id serial PRIMARY KEY, 3 | name varchar(255) NOT NULL, 4 | created_at timestamp, 5 | updated_at timestamp 6 | ); -------------------------------------------------------------------------------- /packages/poll/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /packages/route/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /packages/configuration/test/config/default.yaml: -------------------------------------------------------------------------------- 1 | set_via: default 2 | artist: $JUSTIN 3 | angel: 4 | framework: $ANGEL_FRAMEWORK 5 | must_be_null: $NONEXISTENT_KEY_FOO_BAR_BAZ_QUUX 6 | merge: 7 | map: true 8 | hello: world -------------------------------------------------------------------------------- /packages/eventsource/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /packages/hot/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /packages/html/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /packages/jael/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /packages/jinja/example/views/index.html: -------------------------------------------------------------------------------- 1 | {% extends "layout.html" %} 2 | {% block title %}Jinja.Dart!{% endblock %} 3 | {% block body %} 4 |

hello Jinja.Dart!

5 | hello Joe! 6 | {% endblock %} -------------------------------------------------------------------------------- /packages/mongo/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /packages/oauth2/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false 5 | linter: 6 | rules: 7 | - unnecessary_const 8 | - unnecessary_new -------------------------------------------------------------------------------- /packages/orm/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /packages/proxy/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /packages/proxy/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false 5 | linter: 6 | rules: 7 | - unnecessary_const 8 | - unnecessary_new -------------------------------------------------------------------------------- /packages/serialize/angel_serialize_generator/README.md: -------------------------------------------------------------------------------- 1 | # angel_serialize_generator 2 | The builder for Angel's model serialization. 3 | 4 | Find documentation in the main project repo: 5 | https://github.com/angel-dart/serialize -------------------------------------------------------------------------------- /packages/shelf/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /packages/static/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false 5 | linter: 6 | rules: 7 | - unnecessary_const 8 | - unnecessary_new -------------------------------------------------------------------------------- /packages/test/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /packages/framework/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /packages/graphql/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /packages/jael/travis.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Fast-fail on errors 3 | set -e 4 | 5 | cd jael && pub get && pub run test 6 | cd ../jael_preprocessor/ && pub get && pub run test 7 | cd ../angel_jael/ && pub get && pub run test 8 | -------------------------------------------------------------------------------- /packages/orm/angel_orm_mysql/test/migrations/author.sql: -------------------------------------------------------------------------------- 1 | CREATE TEMPORARY TABLE "authors" ( 2 | id serial PRIMARY KEY, 3 | name varchar(255) UNIQUE NOT NULL, 4 | created_at timestamp, 5 | updated_at timestamp 6 | ); -------------------------------------------------------------------------------- /packages/orm/angel_orm_mysql/test/migrations/numba.sql: -------------------------------------------------------------------------------- 1 | CREATE TEMPORARY TABLE "numbas" ( 2 | "i" int, 3 | "parent" int references weird_joins(id), 4 | created_at TIMESTAMP, 5 | updated_at TIMESTAMP, 6 | PRIMARY KEY(i) 7 | ); -------------------------------------------------------------------------------- /packages/orm/angel_orm_postgres/test/migrations/author.sql: -------------------------------------------------------------------------------- 1 | CREATE TEMPORARY TABLE "authors" ( 2 | id serial PRIMARY KEY, 3 | name varchar(255) UNIQUE NOT NULL, 4 | created_at timestamp, 5 | updated_at timestamp 6 | ); -------------------------------------------------------------------------------- /packages/paginate/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /packages/serialize/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /packages/auth_oauth2/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /packages/container/angel_container/example/throwing.dart: -------------------------------------------------------------------------------- 1 | import 'package:angel_container/angel_container.dart'; 2 | 3 | void main() { 4 | var reflector = const ThrowingReflector(); 5 | reflector.reflectClass(StringBuffer); 6 | } 7 | -------------------------------------------------------------------------------- /packages/file_service/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /packages/orm/angel_orm_postgres/test/migrations/numba.sql: -------------------------------------------------------------------------------- 1 | CREATE TEMPORARY TABLE "numbas" ( 2 | "i" int, 3 | "parent" int references weird_joins(id), 4 | created_at TIMESTAMP, 5 | updated_at TIMESTAMP, 6 | PRIMARY KEY(i) 7 | ); -------------------------------------------------------------------------------- /packages/serialize/angel_serialize/example/main.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: unused_element 2 | import 'package:angel_serialize/angel_serialize.dart'; 3 | 4 | @serializable 5 | class _Todo { 6 | String text; 7 | bool completed; 8 | } 9 | -------------------------------------------------------------------------------- /packages/graphql/graphql_parser/lib/src/language/language.dart: -------------------------------------------------------------------------------- 1 | library graphql_parser.language; 2 | 3 | export 'lexer.dart'; 4 | export 'parser.dart'; 5 | export 'syntax_error.dart'; 6 | export 'token.dart'; 7 | export 'token_type.dart'; 8 | -------------------------------------------------------------------------------- /packages/jael/jael_web/lib/jael_web.dart: -------------------------------------------------------------------------------- 1 | export 'src/builder_node.dart'; 2 | export 'src/component.dart'; 3 | export 'src/dom_builder.dart'; 4 | export 'src/dom_node.dart'; 5 | export 'src/fn.dart'; 6 | export 'src/jael_component.dart'; 7 | -------------------------------------------------------------------------------- /packages/markdown/example/views/hello.md: -------------------------------------------------------------------------------- 1 | # Welcome 2 | Welcome to a *simple* Markdown-gen site! 3 | 4 | Do you mind **starring** the 5 | [Angel repository](https://github.com/angel-dart/angel)? 6 | 7 | ``` 8 | Look, a code block!!! 9 | ``` -------------------------------------------------------------------------------- /packages/orm/angel_orm_mysql/test/migrations/foot.sql: -------------------------------------------------------------------------------- 1 | CREATE TEMPORARY TABLE "feet" ( 2 | id serial PRIMARY KEY, 3 | leg_id int NOT NULL, 4 | n_toes int NOT NULL, 5 | created_at timestamp, 6 | updated_at timestamp 7 | ); -------------------------------------------------------------------------------- /packages/orm/angel_orm_postgres/test/migrations/foot.sql: -------------------------------------------------------------------------------- 1 | CREATE TEMPORARY TABLE "feet" ( 2 | id serial PRIMARY KEY, 3 | leg_id int NOT NULL, 4 | n_toes int NOT NULL, 5 | created_at timestamp, 6 | updated_at timestamp 7 | ); -------------------------------------------------------------------------------- /packages/rethink/test/README.md: -------------------------------------------------------------------------------- 1 | # Tests 2 | 3 | The tests expect you to have installed RethinkDB. You must have a `test` database 4 | available, and a server ready at the default port. 5 | 6 | Also, the tests expect a table named `todos`. -------------------------------------------------------------------------------- /packages/security/lib/angel_security.dart: -------------------------------------------------------------------------------- 1 | export 'src/cookie_signer.dart'; 2 | export 'src/in_memory_rate_limiter.dart'; 3 | export 'src/rate_limiter.dart'; 4 | export 'src/rate_limiting_window.dart'; 5 | export 'src/service_rate_limiter.dart'; -------------------------------------------------------------------------------- /packages/static/test/node_modules/swagger-ui-dist/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Swagger... 5 | 6 | 7 |

Hello!

8 | Hooray for testing... 9 | 10 | -------------------------------------------------------------------------------- /packages/container/angel_container/lib/src/exception.dart: -------------------------------------------------------------------------------- 1 | class ReflectionException implements Exception { 2 | final String message; 3 | 4 | ReflectionException(this.message); 5 | 6 | @override 7 | String toString() => message; 8 | } 9 | -------------------------------------------------------------------------------- /packages/orm/angel_orm_mysql/test/migrations/fruit.sql: -------------------------------------------------------------------------------- 1 | CREATE TEMPORARY TABLE "fruits" ( 2 | "id" serial, 3 | "tree_id" int, 4 | "common_name" varchar, 5 | "created_at" timestamp, 6 | "updated_at" timestamp, 7 | PRIMARY KEY(id) 8 | ); -------------------------------------------------------------------------------- /packages/orm/angel_orm_mysql/test/migrations/has_map.sql: -------------------------------------------------------------------------------- 1 | CREATE TEMPORARY TABLE "has_maps" ( 2 | id serial PRIMARY KEY, 3 | value jsonb not null, 4 | list jsonb not null, 5 | created_at timestamp, 6 | updated_at timestamp 7 | ); -------------------------------------------------------------------------------- /packages/orm/angel_orm_mysql/test/migrations/tree.sql: -------------------------------------------------------------------------------- 1 | CREATE TEMPORARY TABLE "trees" ( 2 | "id" serial, 3 | "rings" smallint UNIQUE, 4 | "created_at" timestamp, 5 | "updated_at" timestamp, 6 | UNIQUE(rings), 7 | PRIMARY KEY(id) 8 | ); -------------------------------------------------------------------------------- /packages/orm/angel_orm_postgres/test/migrations/fruit.sql: -------------------------------------------------------------------------------- 1 | CREATE TEMPORARY TABLE "fruits" ( 2 | "id" serial, 3 | "tree_id" int, 4 | "common_name" varchar, 5 | "created_at" timestamp, 6 | "updated_at" timestamp, 7 | PRIMARY KEY(id) 8 | ); -------------------------------------------------------------------------------- /packages/orm/angel_orm_postgres/test/migrations/tree.sql: -------------------------------------------------------------------------------- 1 | CREATE TEMPORARY TABLE "trees" ( 2 | "id" serial, 3 | "rings" smallint UNIQUE, 4 | "created_at" timestamp, 5 | "updated_at" timestamp, 6 | UNIQUE(rings), 7 | PRIMARY KEY(id) 8 | ); -------------------------------------------------------------------------------- /packages/body_parser/lib/body_parser.dart: -------------------------------------------------------------------------------- 1 | /// A library for parsing HTTP request bodies and queries. 2 | library body_parser; 3 | 4 | export 'src/body_parse_result.dart'; 5 | export 'src/file_upload_info.dart'; 6 | export 'src/parse_body.dart'; 7 | -------------------------------------------------------------------------------- /packages/orm/angel_orm_mysql/test/migrations/user_role.sql: -------------------------------------------------------------------------------- 1 | CREATE TEMPORARY TABLE "role_users" ( 2 | "id" serial PRIMARY KEY, 3 | "user_id" int NOT NULL, 4 | "role_id" int NOT NULL, 5 | "created_at" timestamp, 6 | "updated_at" timestamp 7 | ); -------------------------------------------------------------------------------- /packages/orm/angel_orm_postgres/test/migrations/has_map.sql: -------------------------------------------------------------------------------- 1 | CREATE TEMPORARY TABLE "has_maps" ( 2 | id serial PRIMARY KEY, 3 | value jsonb not null, 4 | list jsonb not null, 5 | created_at timestamp, 6 | updated_at timestamp 7 | ); -------------------------------------------------------------------------------- /packages/shelf/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 2.1.0 2 | * `pedantic` lints. 3 | * Add the `AngelShelf` driver class, which allows you to embed Angel within shelf. 4 | 5 | # 2.0.0 6 | * Removed `supportShelf`. 7 | 8 | # 1.2.0 9 | * Upgraded for `>=1.1.0` compatibility. -------------------------------------------------------------------------------- /packages/typed_service/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 1.0.1 2 | * Explicitly extend `Service`. 3 | * Override `readData`. 4 | * Use `Service>` for `inner`, instead of just 5 | `Service`. 6 | 7 | # 1.0.0 8 | * Initial version. -------------------------------------------------------------------------------- /packages/framework/example/http2/common.dart: -------------------------------------------------------------------------------- 1 | import 'package:logging/logging.dart'; 2 | 3 | void dumpError(LogRecord rec) { 4 | print(rec); 5 | if (rec.error != null) print(rec.error); 6 | if (rec.stackTrace != null) print(rec.stackTrace); 7 | } 8 | -------------------------------------------------------------------------------- /packages/graphql/graphql_generator/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 1.0.0+1 2 | * Replace `snakeCase` with `camelCase`. 3 | 4 | # 1.0.0 5 | * Apply `package:pedantic`. 6 | 7 | # 1.0.0-rc.1 8 | * Add `CHANGELOG.md`, `example/main.dart`. 9 | * Add documentation to `README.md`. -------------------------------------------------------------------------------- /packages/orm/angel_orm/lib/src/order_by.dart: -------------------------------------------------------------------------------- 1 | class OrderBy { 2 | final String key; 3 | final bool descending; 4 | 5 | const OrderBy(this.key, {this.descending = false}); 6 | 7 | String compile() => descending ? '$key DESC' : '$key ASC'; 8 | } 9 | -------------------------------------------------------------------------------- /packages/orm/angel_orm_postgres/test/migrations/user_role.sql: -------------------------------------------------------------------------------- 1 | CREATE TEMPORARY TABLE "role_users" ( 2 | "id" serial PRIMARY KEY, 3 | "user_id" int NOT NULL, 4 | "role_id" int NOT NULL, 5 | "created_at" timestamp, 6 | "updated_at" timestamp 7 | ); -------------------------------------------------------------------------------- /packages/security/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 2.0.0-alpha.1 2 | * Make `ServiceRateLimiter` more fail-proof. 3 | 4 | # 2.0.0-alpha 5 | * Angel 2 updates. Remove previous functionality. 6 | * Add `CookieSigner`, `RateLimiter`/`InMemoryRateLimiter`/`ServiceRateLimiter`. -------------------------------------------------------------------------------- /packages/serialize/angel_serialize_generator/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | strong-mode: 4 | implicit-casts: false 5 | linter: 6 | rules: 7 | - unnecessary_new 8 | - unnecessary_const -------------------------------------------------------------------------------- /packages/client/test/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Browser 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /packages/model/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 1.0.3 2 | * `idAsInt` returns `null` when `id` is `null`. 3 | 4 | # 1.0.2 5 | * `idAsInt` now uses `int.tryParse`. 6 | 7 | # 1.0.1 8 | * Add `idAsInt`. 9 | 10 | # 1.0.0+1 11 | * Update constraint to work with Dart 2. 12 | -------------------------------------------------------------------------------- /packages/orm/angel_orm_generator/lib/angel_orm_generator.dart: -------------------------------------------------------------------------------- 1 | //export 'src/mongodb_orm_generator.dart'; 2 | export 'src/migration_generator.dart'; 3 | export 'src/orm_build_context.dart'; 4 | export 'src/orm_generator.dart'; 5 | export 'src/readers.dart'; 6 | -------------------------------------------------------------------------------- /packages/paginate/test/all_test.dart: -------------------------------------------------------------------------------- 1 | import 'package:test/test.dart'; 2 | import 'bounds_test.dart' as bounds; 3 | import 'paginate_test.dart' as paginate; 4 | 5 | main() { 6 | group('bounds', bounds.main); 7 | group('paginate', paginate.main); 8 | } 9 | -------------------------------------------------------------------------------- /packages/rethink/test/common.dart: -------------------------------------------------------------------------------- 1 | class Todo { 2 | String title; 3 | bool completed; 4 | 5 | Todo({this.title, this.completed: false}); 6 | 7 | Map toJson() { 8 | return {'title': title, 'completed': completed == true}; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /packages/body_parser/lib/src/chunk.dart: -------------------------------------------------------------------------------- 1 | import 'file_upload_info.dart'; 2 | 3 | List getFileDataFromChunk( 4 | String chunk, String boundary, String fileUploadName, Map body) { 5 | List result = []; 6 | return result; 7 | } 8 | -------------------------------------------------------------------------------- /packages/cli/lib/src/commands/commands.dart: -------------------------------------------------------------------------------- 1 | library angel_cli.commands; 2 | 3 | export "deploy.dart"; 4 | export "doctor.dart"; 5 | export "key.dart"; 6 | export "init.dart"; 7 | export "install.dart"; 8 | export "make.dart"; 9 | export "rename.dart"; 10 | -------------------------------------------------------------------------------- /packages/wings/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | project(angel_wings) 3 | list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake_dart_utils/cmake") 4 | find_package(Dart REQUIRED) 5 | set(CMAKE_CXX_STANDARD 11) 6 | add_subdirectory(lib/src) -------------------------------------------------------------------------------- /packages/client/web/main.dart: -------------------------------------------------------------------------------- 1 | import 'dart:html'; 2 | import 'package:angel_client/browser.dart'; 3 | 4 | /// Dummy app to ensure client works with DDC. 5 | main() { 6 | var app = new Rest(window.location.origin); 7 | window.alert(app.baseUrl.toString()); 8 | } 9 | -------------------------------------------------------------------------------- /packages/orm/angel_orm_mysql/test/migrations/book.sql: -------------------------------------------------------------------------------- 1 | CREATE TEMPORARY TABLE "books" ( 2 | id serial PRIMARY KEY, 3 | author_id int NOT NULL, 4 | partner_author_id int, 5 | name varchar(255), 6 | created_at timestamp, 7 | updated_at timestamp 8 | ); -------------------------------------------------------------------------------- /packages/orm/angel_orm_mysql/test/migrations/song.sql: -------------------------------------------------------------------------------- 1 | CREATE TEMPORARY TABLE "songs" ( 2 | "id" serial, 3 | "weird_join_id" int references weird_joins(id), 4 | "title" varchar(255), 5 | created_at TIMESTAMP, 6 | updated_at TIMESTAMP, 7 | PRIMARY KEY(id) 8 | ); -------------------------------------------------------------------------------- /packages/orm/angel_orm_mysql/test/migrations/user.sql: -------------------------------------------------------------------------------- 1 | CREATE TEMPORARY TABLE "users" ( 2 | "id" serial PRIMARY KEY, 3 | "username" varchar(255), 4 | "password" varchar(255), 5 | "email" varchar(255), 6 | "created_at" timestamp, 7 | "updated_at" timestamp 8 | ); -------------------------------------------------------------------------------- /packages/wings/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "cmake_dart_utils"] 2 | path = cmake_dart_utils 3 | url = https://github.com/thosakwe/cmake_dart_utils.git 4 | [submodule "lib/src/http-parser"] 5 | path = lib/src/http-parser 6 | url = https://github.com/nodejs/http-parser.git 7 | -------------------------------------------------------------------------------- /packages/body_parser/example/post.lua: -------------------------------------------------------------------------------- 1 | -- example HTTP POST script which demonstrates setting the 2 | -- HTTP method, body, and adding a header 3 | 4 | wrk.method = "POST" 5 | wrk.body = "foo=bar&baz=quux" 6 | wrk.headers["Content-Type"] = "application/x-www-form-urlencoded" -------------------------------------------------------------------------------- /packages/graphql/graphql_server/test/common.dart: -------------------------------------------------------------------------------- 1 | import 'package:graphql_schema/graphql_schema.dart'; 2 | import 'package:test/test.dart'; 3 | 4 | final Matcher throwsAGraphQLException = 5 | throwsA(predicate((x) => x is GraphQLException, 'is a GraphQL exception')); 6 | -------------------------------------------------------------------------------- /packages/jael/jael_web/lib/src/fn.dart: -------------------------------------------------------------------------------- 1 | // TODO: Lambda/anonymous component 2 | // 3 | // import 'component.dart'; 4 | // import 'dom_node.dart'; 5 | 6 | // class Fn extends Component { 7 | // final DomNode Function(T) f; 8 | 9 | // Fn(this.f); 10 | // } 11 | -------------------------------------------------------------------------------- /packages/orm/angel_orm/README.md: -------------------------------------------------------------------------------- 1 | # angel_orm 2 | Runtime support for Angel's ORM. Includes a clean, database-agnostic 3 | query builder and relationship/join support. 4 | 5 | For documentation about the ORM, head to the main project repo: 6 | https://github.com/angel-dart/orm -------------------------------------------------------------------------------- /packages/orm/angel_orm_postgres/test/migrations/book.sql: -------------------------------------------------------------------------------- 1 | CREATE TEMPORARY TABLE "books" ( 2 | id serial PRIMARY KEY, 3 | author_id int NOT NULL, 4 | partner_author_id int, 5 | name varchar(255), 6 | created_at timestamp, 7 | updated_at timestamp 8 | ); -------------------------------------------------------------------------------- /packages/orm/angel_orm_postgres/test/migrations/song.sql: -------------------------------------------------------------------------------- 1 | CREATE TEMPORARY TABLE "songs" ( 2 | "id" serial, 3 | "weird_join_id" int references weird_joins(id), 4 | "title" varchar(255), 5 | created_at TIMESTAMP, 6 | updated_at TIMESTAMP, 7 | PRIMARY KEY(id) 8 | ); -------------------------------------------------------------------------------- /packages/orm/angel_orm_postgres/test/migrations/user.sql: -------------------------------------------------------------------------------- 1 | CREATE TEMPORARY TABLE "users" ( 2 | "id" serial PRIMARY KEY, 3 | "username" varchar(255), 4 | "password" varchar(255), 5 | "email" varchar(255), 6 | "created_at" timestamp, 7 | "updated_at" timestamp 8 | ); -------------------------------------------------------------------------------- /packages/serialize/angel_serialize_generator/example/main.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: unused_element 2 | import 'package:angel_serialize/angel_serialize.dart'; 3 | part 'main.g.dart'; 4 | 5 | @serializable 6 | class _Todo { 7 | String text; 8 | bool completed; 9 | } 10 | -------------------------------------------------------------------------------- /packages/jinja/example/views/layout.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {% block title %}{% endblock %} 6 | 7 | 8 | {% block body %}{% endblock %} 9 | 10 | 11 | -------------------------------------------------------------------------------- /packages/orm/angel_migration/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 2.0.0 2 | * Bump to `2.0.0`. 3 | 4 | # 2.0.0-rc.0 5 | * Make abstract `Schema.alter` use `MutableTable`. 6 | 7 | # 2.0.0-alpha.1 8 | * Changes to work with `package:angel_orm@2.0.0-dev.15`. 9 | 10 | # 2.0.0-alpha 11 | Dart 2 update. -------------------------------------------------------------------------------- /packages/container/angel_container/lib/angel_container.dart: -------------------------------------------------------------------------------- 1 | library angel_container; 2 | 3 | export 'src/container.dart'; 4 | export 'src/empty/empty.dart'; 5 | export 'src/static/static.dart'; 6 | export 'src/exception.dart'; 7 | export 'src/reflector.dart'; 8 | export 'src/throwing.dart'; 9 | -------------------------------------------------------------------------------- /packages/http_exception/README.md: -------------------------------------------------------------------------------- 1 | # http_exception 2 | [![Pub](https://img.shields.io/pub/v/angel_http_exception.svg)](https://pub.dartlang.org/packages/angel_http_exception) 3 | 4 | Exception class that can be serialized to JSON and serialized to clients. 5 | Angel's HTTP exception class. 6 | -------------------------------------------------------------------------------- /packages/model/README.md: -------------------------------------------------------------------------------- 1 | # angel_model 2 | Angel's basic data model class, no longer with the added weight of the whole framework. 3 | 4 | ```dart 5 | import 'package:angel_model/angel_model.dart'; 6 | ``` 7 | 8 | This package was created to prevent dependency collisions with third-party packages. -------------------------------------------------------------------------------- /packages/wings/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: angel_wings 2 | environment: 3 | sdk: ">=2.0.0-dev <3.0.0" 4 | dependencies: 5 | angel_framework: ^2.0.0-alpha 6 | mock_request: ^1.0.0 7 | dev_dependencies: 8 | angel_static: ^2.0.0 9 | io: ^0.3.2 10 | pedantic: ^1.0.0 11 | pretty_logging: ^1.0.0 -------------------------------------------------------------------------------- /packages/jael/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /packages/orm/angel_orm_generator/README.md: -------------------------------------------------------------------------------- 1 | # angel_orm_generator 2 | Source code generators for Angel's ORM. 3 | This package can generate: 4 | * A strongly-typed ORM 5 | * SQL migration scripts 6 | 7 | For documentation about the ORM, head to the main project repo: 8 | https://github.com/angel-dart/orm -------------------------------------------------------------------------------- /packages/poll/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /packages/proxy/.idea/jsLibraryMappings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /packages/test/.idea/jsLibraryMappings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /packages/vscode/angel_vscode/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | All notable changes to the "angel-dart-vscode" extension will be documented in this file. 3 | 4 | Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file. 5 | 6 | ## [Unreleased] 7 | - Initial release -------------------------------------------------------------------------------- /packages/framework/.idea/jsLibraryMappings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /packages/route/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /packages/hot/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /packages/jinja/.gitignore: -------------------------------------------------------------------------------- 1 | # Files and directories created by pub 2 | .dart_tool/ 3 | .packages 4 | # Remove the following pattern if you wish to check in your lock file 5 | pubspec.lock 6 | 7 | # Conventional directory for build outputs 8 | build/ 9 | 10 | # Directory created by dartdoc 11 | doc/api/ 12 | -------------------------------------------------------------------------------- /packages/orm/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /packages/rethink/test/bootstrap.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | import 'package:rethinkdb_driver/rethinkdb_driver.dart'; 3 | 4 | main() async { 5 | var r = new Rethinkdb(); 6 | r.connect().then((conn) { 7 | r.tableCreate('todos').run(conn); 8 | print('Done'); 9 | exit(0); 10 | }); 11 | } 12 | -------------------------------------------------------------------------------- /packages/cache/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /packages/framework/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /packages/graphql/graphql_parser/lib/src/language/ast/input_value.dart: -------------------------------------------------------------------------------- 1 | import 'node.dart'; 2 | 3 | /// Represents a value in GraphQL. 4 | abstract class InputValueContext extends Node { 5 | /// Computes the value, relative to some set of [variables]. 6 | T computeValue(Map variables); 7 | } 8 | -------------------------------------------------------------------------------- /packages/shelf/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /packages/cli/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /packages/eventsource/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /packages/jael/angel_jael/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 2.0.0 2 | * Angel 2 and Dart 2 updates. 3 | * Default to `.jael` instead of `.jl`. 4 | 5 | # 1.0.3 6 | * Update for annoying map casting bug. 7 | 8 | # 1.0.2 9 | * Update for DSX support. 10 | * Clear the buffer on errors. 11 | 12 | # 1.0.1 13 | * Use `Renderer.errorDocument`. -------------------------------------------------------------------------------- /packages/orm/angel_orm_mysql/test/migrations/car.sql: -------------------------------------------------------------------------------- 1 | CREATE TEMPORARY TABLE "cars" ( 2 | id serial PRIMARY KEY, 3 | make varchar(255) NOT NULL, 4 | description TEXT NOT NULL, 5 | family_friendly BOOLEAN NOT NULL, 6 | recalled_at timestamp, 7 | created_at timestamp, 8 | updated_at timestamp 9 | ); -------------------------------------------------------------------------------- /packages/orm/angel_orm_postgres/test/migrations/car.sql: -------------------------------------------------------------------------------- 1 | CREATE TEMPORARY TABLE "cars" ( 2 | id serial PRIMARY KEY, 3 | make varchar(255) NOT NULL, 4 | description TEXT NOT NULL, 5 | family_friendly BOOLEAN NOT NULL, 6 | recalled_at timestamp, 7 | created_at timestamp, 8 | updated_at timestamp 9 | ); -------------------------------------------------------------------------------- /packages/auth/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /packages/graphql/graphql_schema/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 1.0.4 2 | * Add `convert` method to types, to avoid some annoying generics bugs. 3 | 4 | # 1.0.3 5 | * `enumTypeFromStrings` now returns `GraphQLEnumType`. 6 | 7 | # 1.0.2 8 | * Added `GraphQLClass()`. 9 | * Added `typeName`. 10 | 11 | # 1.0.1 12 | * Dart 2 updates. -------------------------------------------------------------------------------- /packages/graphql/travis.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | PWD=$(pwd) 3 | cd "$PWD/graphql_parser" && pub get && pub run test -j2 && cd .. 4 | cd "$PWD/graphql_schema" && pub get && pub run test -j2 && cd .. 5 | cd "$PWD/graphql_server" && pub get && pub run test -j2 && cd .. 6 | cd "$PWD/data_loader" && pub get && pub run test -j2 && cd .. -------------------------------------------------------------------------------- /packages/paginate/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /packages/proxy/.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "0.2.0", 3 | "configurations": [ 4 | { 5 | "name": "Multiple Proxies", 6 | "type": "dart-cli", 7 | "request": "launch", 8 | "program": "${workspaceRoot}/example/multiple.dart" 9 | } 10 | ] 11 | } -------------------------------------------------------------------------------- /packages/test/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /packages/jael/jael_web/lib/src/component.dart: -------------------------------------------------------------------------------- 1 | import 'dom_node.dart'; 2 | 3 | abstract class Component extends DomNode { 4 | State state; 5 | 6 | DomNode render(); 7 | 8 | void afterMount() {} 9 | 10 | void beforeDestroy() {} 11 | 12 | void setState(State newState) { 13 | // TODO: 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /packages/mongo/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /packages/orm/angel_orm/lib/src/map_query_values.dart: -------------------------------------------------------------------------------- 1 | import 'query_values.dart'; 2 | 3 | /// A [QueryValues] implementation that simply writes to a [Map]. 4 | class MapQueryValues extends QueryValues { 5 | final Map values = {}; 6 | 7 | @override 8 | Map toMap() => values; 9 | } 10 | -------------------------------------------------------------------------------- /packages/proxy/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /packages/serialize/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /packages/auth_oauth2/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /packages/auth_oauth2/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 2.1.0 2 | * Angel 2 + Dart 2 update 3 | * Support for handling errors + rejections. 4 | * Use `ExternalAuthOptions`. 5 | 6 | # 2.0.0+1 7 | * Meta update to improve Pub score. 8 | 9 | # 2.0.0 10 | * Angel 2 + Dart 2 updates. 11 | 12 | # 1.0.2 13 | Added `getParameters` to `AngelOAuth2Options`. -------------------------------------------------------------------------------- /packages/body_parser/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /packages/file_service/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /packages/framework/lib/angel_framework.dart: -------------------------------------------------------------------------------- 1 | /// An easily-extensible web server framework in Dart. 2 | library angel_framework; 3 | 4 | export 'package:angel_http_exception/angel_http_exception.dart'; 5 | export 'package:angel_model/angel_model.dart'; 6 | export 'package:angel_route/angel_route.dart'; 7 | export 'src/core/core.dart'; 8 | -------------------------------------------------------------------------------- /packages/graphql/example_star_wars/lib/src/models/character.dart: -------------------------------------------------------------------------------- 1 | import 'package:graphql_schema/graphql_schema.dart'; 2 | import 'episode.dart'; 3 | part 'character.g.dart'; 4 | 5 | @graphQLClass 6 | abstract class Character { 7 | String get id; 8 | 9 | String get name; 10 | 11 | // List get appearsIn; 12 | } 13 | -------------------------------------------------------------------------------- /packages/graphql/example_star_wars/lib/src/models/episode.dart: -------------------------------------------------------------------------------- 1 | import 'package:graphql_schema/graphql_schema.dart'; 2 | part 'episode.g.dart'; 3 | 4 | @GraphQLDocumentation( 5 | description: 'The episodes of the Star Wars original trilogy.') 6 | @graphQLClass 7 | enum Episode { 8 | NEWHOPE, 9 | EMPIRE, 10 | JEDI, 11 | } 12 | -------------------------------------------------------------------------------- /packages/http_exception/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 1.1.0 2 | * Emit `is_error` and `status_code` in `toJson()`. 3 | * No more `camelCase` at all. 4 | 5 | # 1.0.0+3 6 | * Slightly relax the deserialization of `errors`. 7 | 8 | # 1.0.0+2 9 | * Added a backwards-compatible way to cast the `errors` List. 10 | 11 | # 1.0.0+1 12 | * Dart 2 updates. -------------------------------------------------------------------------------- /packages/framework/example/http2/public/style.css: -------------------------------------------------------------------------------- 1 | button { 2 | margin-top: 2em; 3 | } 4 | 5 | html, body { 6 | background-color: #000; 7 | } 8 | 9 | #app { 10 | text-align: center; 11 | } 12 | 13 | #app h1 { 14 | font-style: italic; 15 | text-decoration: underline; 16 | } 17 | 18 | #loading { 19 | color: red; 20 | } -------------------------------------------------------------------------------- /packages/oauth2/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /packages/orm/angel_migration_runner/lib/src/runner.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | import 'package:angel_migration/angel_migration.dart'; 3 | 4 | abstract class MigrationRunner { 5 | void addMigration(Migration migration); 6 | 7 | Future up(); 8 | 9 | Future rollback(); 10 | 11 | Future reset(); 12 | 13 | Future close(); 14 | } 15 | -------------------------------------------------------------------------------- /packages/auth/lib/angel_auth.dart: -------------------------------------------------------------------------------- 1 | library angel_auth; 2 | 3 | export 'src/middleware/require_auth.dart'; 4 | export 'src/strategies/strategies.dart'; 5 | export 'src/auth_token.dart'; 6 | export 'src/configuration.dart'; 7 | export 'src/options.dart'; 8 | export 'src/plugin.dart'; 9 | export 'src/popup_page.dart'; 10 | export 'src/strategy.dart'; 11 | -------------------------------------------------------------------------------- /packages/jael/jael_web/README.md: -------------------------------------------------------------------------------- 1 | # jael_web 2 | [![Pub](https://img.shields.io/pub/v/jael_web.svg)](https://pub.dartlang.org/packages/jael_web) 3 | [![build status](https://travis-ci.org/angel-dart/jael_web.svg)](https://travis-ci.org/angel-dart/jael) 4 | 5 | Experimental virtual DOM/SPA engine built on Jael. Supports SSR. 6 | **Not ready for production use.** -------------------------------------------------------------------------------- /packages/model/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: angel_model 2 | version: 1.0.3 3 | description: Angel's basic data model class, no longer with the added weight of the whole framework. 4 | author: Tobe O 5 | homepage: https://github.com/angel-dart/model 6 | environment: 7 | sdk: ">=1.8.0 <3.0.0" 8 | dev_dependencies: 9 | pedantic: ^1.0.0 10 | -------------------------------------------------------------------------------- /packages/relations/lib/angel_relations.dart: -------------------------------------------------------------------------------- 1 | /// Hooks to populate data returned from services, in a fashion 2 | /// reminiscent of a relational database. 3 | library angel_relations; 4 | 5 | export 'src/belongs_to_many.dart'; 6 | export 'src/belongs_to.dart'; 7 | export 'src/has_many.dart'; 8 | export 'src/has_many_through.dart'; 9 | export 'src/has_one.dart'; -------------------------------------------------------------------------------- /packages/route/lib/src/symlink_route.dart: -------------------------------------------------------------------------------- 1 | part of angel_route.src.router; 2 | 3 | /// Placeholder [Route] to serve as a symbolic link 4 | /// to a mounted [Router]. 5 | class SymlinkRoute extends Route { 6 | final Router router; 7 | SymlinkRoute(String path, this.router) 8 | : super(path, method: null, handlers: null); 9 | } 10 | -------------------------------------------------------------------------------- /packages/framework/example/http2/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Angel HTTP/2 6 | 7 | 8 | 9 |
Loading...
10 | 11 | 12 | -------------------------------------------------------------------------------- /packages/mongo/.vscode/tasks.json: -------------------------------------------------------------------------------- 1 | { 2 | // See https://go.microsoft.com/fwlink/?LinkId=733558 3 | // for the documentation about the tasks.json format 4 | "version": "0.1.0", 5 | "command": "test", 6 | "isShellCommand": true, 7 | "args": ["pub", "run", "test"], 8 | "showOutput": "always", 9 | "suppressTaskName": true 10 | } -------------------------------------------------------------------------------- /packages/orm/angel_migration/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: angel_migration 2 | version: 2.0.0 3 | description: Database migration runtime for Angel's ORM. Use this package to define schemas. 4 | author: Tobe O 5 | homepage: https://github.com/angel-dart/migration 6 | environment: 7 | sdk: ">=2.0.0-dev <3.0.0" 8 | dependencies: 9 | angel_orm: ^2.0.0-dev -------------------------------------------------------------------------------- /packages/auth/.idea/runConfigurations/Local_Tests.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /packages/framework/.idea/runConfigurations/DI_Tests.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /packages/framework/TODO.md: -------------------------------------------------------------------------------- 1 | * Support for [Trestle](https://github.com/dart-bridge/trestle), use this as default, set up migration system around this 2 | * Angel CLI 3 | * Angel bootstrap project 4 | * More docs 5 | * Make tutorials, videos 6 | * Launch! 7 | * Get a nice launch process, so we can pre-compile things before running. Also support a sort of hot-reload 8 | -------------------------------------------------------------------------------- /packages/framework/lib/src/fast_name_from_symbol.dart: -------------------------------------------------------------------------------- 1 | final Map _cache = {}; 2 | 3 | String fastNameFromSymbol(Symbol s) { 4 | return _cache.putIfAbsent(s, () { 5 | String str = s.toString(); 6 | int open = str.indexOf('"'); 7 | int close = str.lastIndexOf('"'); 8 | return str.substring(open + 1, close); 9 | }); 10 | } 11 | -------------------------------------------------------------------------------- /packages/jael/jael_web/build.yaml: -------------------------------------------------------------------------------- 1 | builders: 2 | jael_web: 3 | import: "package:jael_web/builder.dart" 4 | builder_factories: 5 | - jaelComponentBuilder 6 | build_extensions: 7 | .dart: 8 | - .jael_web_cmp.g.part 9 | auto_apply: root_package 10 | applies_builders: ["source_gen|combining_builder", "source_gen|part_cleanup"] -------------------------------------------------------------------------------- /packages/mongo/.idea/runConfigurations/Typed_Tests.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /packages/proxy/.idea/runConfigurations/Basic_Tests.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /packages/auth/.idea/runConfigurations/Callback_Tests.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /packages/framework/.idea/runConfigurations/Hooked_Tests.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /packages/framework/test/view_generator_test.dart: -------------------------------------------------------------------------------- 1 | import 'package:angel_framework/angel_framework.dart'; 2 | import 'package:test/test.dart'; 3 | 4 | main() { 5 | test('default view generator', () async { 6 | var app = Angel(); 7 | var view = await app.viewGenerator('foo', {'bar': 'baz'}); 8 | expect(view, contains('No view engine')); 9 | }); 10 | } 11 | -------------------------------------------------------------------------------- /packages/mongo/.idea/runConfigurations/Generic_Tests.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /packages/orm/.travis.yml: -------------------------------------------------------------------------------- 1 | language: dart 2 | script: bash tool/.travis.sh 3 | before_script: 4 | - psql -c 'create database angel_orm_test;' -U postgres 5 | - psql -c 'create database angel_orm_service_test;' -U postgres 6 | - psql -c "CREATE USER angel_orm WITH PASSWORD 'angel_orm';" -U postgres 7 | services: 8 | - postgresql 9 | addons: 10 | postgresql: "9.4" -------------------------------------------------------------------------------- /packages/pretty_logging/example/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:logging/logging.dart'; 2 | import 'package:pretty_logging/pretty_logging.dart'; 3 | 4 | void main() { 5 | Logger.root 6 | ..level = Level.ALL 7 | ..onRecord.listen(prettyLog) 8 | ..info('Hey!') 9 | ..finest('Bye!') 10 | ..severe('Oops!', StateError('Wrong!'), StackTrace.current); 11 | } 12 | -------------------------------------------------------------------------------- /packages/auth/.idea/runConfigurations/Auth_Token_Tests.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /packages/framework/.idea/runConfigurations/Routing_Tests.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /packages/jael/jael_preprocessor/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 2.0.1 2 | * Fixed a bug where failed file resolutions would not become proper errors. 3 | 4 | # 2.0.0+1 5 | * Homepage update for Pub. 6 | 7 | # 2.0.0 8 | * Dart 2 updates. 9 | * Fix a templating bug where multiple inheritance did not work. 10 | 11 | # 1.0.0+1 12 | * Minor change to `Patcher` signature for Dart 2 compatibility. -------------------------------------------------------------------------------- /packages/proxy/.idea/runConfigurations/Pub_Serve_Tests.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /packages/websocket/web/main.dart: -------------------------------------------------------------------------------- 1 | import 'dart:html'; 2 | import 'package:angel_websocket/browser.dart'; 3 | 4 | /// Dummy app to ensure client works with DDC. 5 | main() { 6 | var app = new WebSockets(window.location.origin); 7 | window.alert(app.baseUrl.toString()); 8 | 9 | app.connect().catchError((_) { 10 | window.alert('no websocket'); 11 | }); 12 | } 13 | -------------------------------------------------------------------------------- /packages/framework/.idea/runConfigurations/Controller_Tests.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /packages/framework/example/http2/pretty_logging.dart: -------------------------------------------------------------------------------- 1 | import 'package:logging/logging.dart'; 2 | 3 | /// Prints the contents of a [LogRecord] with pretty colors. 4 | void prettyLog(LogRecord record) { 5 | print(record.toString()); 6 | 7 | if (record.error != null) print(record.error.toString()); 8 | if (record.stackTrace != null) print(record.stackTrace.toString()); 9 | } 10 | -------------------------------------------------------------------------------- /packages/graphql/graphql_parser/lib/src/language/ast/type_condition.dart: -------------------------------------------------------------------------------- 1 | import 'node.dart'; 2 | import 'package:source_span/source_span.dart'; 3 | import 'type_name.dart'; 4 | 5 | class TypeConditionContext extends Node { 6 | final TypeNameContext typeName; 7 | 8 | TypeConditionContext(this.typeName); 9 | 10 | @override 11 | FileSpan get span => typeName.span; 12 | } 13 | -------------------------------------------------------------------------------- /packages/graphql/graphql_parser/test/comment_test.dart: -------------------------------------------------------------------------------- 1 | import 'package:graphql_parser/graphql_parser.dart'; 2 | import 'package:test/test.dart'; 3 | 4 | void main() { 5 | test('heeds comments', () { 6 | var tokens = scan(''' 7 | # Hello 8 | { 9 | # Goodbye 10 | } 11 | # Bonjour 12 | '''); 13 | 14 | expect(tokens, hasLength(2)); 15 | }); 16 | } 17 | -------------------------------------------------------------------------------- /packages/orm/angel_orm_postgres/test/migrations/custom_expr.sql: -------------------------------------------------------------------------------- 1 | CREATE TEMPORARY TABLE "numbers" ( 2 | id serial PRIMARY KEY, 3 | created_at timestamp, 4 | updated_at timestamp 5 | ); 6 | 7 | CREATE TEMPORARY TABLE "alphabets" ( 8 | id serial PRIMARY KEY, 9 | value TEXT, 10 | numbers_id int, 11 | created_at timestamp, 12 | updated_at timestamp 13 | ); -------------------------------------------------------------------------------- /packages/user_agent/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: angel_user_agent 2 | version: 2.0.0 3 | description: Angel middleware to parse and inject a User Agent object into requests. 4 | author: Tobe O 5 | homepage: https://github.com/angel-dart/user_agent 6 | environment: 7 | sdk: ">=2.0.0-dev <3.0.0" 8 | dependencies: 9 | angel_framework: ^2.0.0-alpha 10 | user_agent: ^2.0.0 -------------------------------------------------------------------------------- /packages/vscode/angel_vscode/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | // Place your settings in this file to overwrite default and user settings. 2 | { 3 | "files.exclude": { 4 | "out": false // set this to true to hide the "out" folder with the compiled JS files 5 | }, 6 | "search.exclude": { 7 | "out": true // set this to false to include "out" folder in search results 8 | } 9 | } -------------------------------------------------------------------------------- /packages/configuration/example/main.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:angel_configuration/angel_configuration.dart'; 4 | import 'package:angel_framework/angel_framework.dart'; 5 | import 'package:file/local.dart'; 6 | 7 | Future main() async { 8 | var app = Angel(); 9 | var fs = const LocalFileSystem(); 10 | await app.configure(configuration(fs)); 11 | } 12 | -------------------------------------------------------------------------------- /packages/mongo/.idea/runConfigurations/All_Tests.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /packages/mongo/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 2.0.3 2 | * Add null-coalescing check when processing queries: https://github.com/angel-dart/mongo/pull/12 3 | 4 | # 2.0.2 5 | * Fix flaw where clients could remove all records, even if `allowRemoveAll` were `false`. 6 | 7 | # 2.0.1 8 | * Override `readMany` and `findOne`. 9 | 10 | # 2.0.0- 11 | * Delete `mongo_service_typed`. 12 | * Update for Angel 2. 13 | -------------------------------------------------------------------------------- /packages/graphql/example_star_wars/lib/src/models/starship.dart: -------------------------------------------------------------------------------- 1 | import 'package:angel_model/angel_model.dart'; 2 | import 'package:angel_serialize/angel_serialize.dart'; 3 | import 'package:graphql_schema/graphql_schema.dart'; 4 | part 'starship.g.dart'; 5 | 6 | @serializable 7 | @graphQLClass 8 | abstract class _Starship extends Model { 9 | String get name; 10 | int get length; 11 | } 12 | -------------------------------------------------------------------------------- /packages/orm/angel_orm_test/lib/src/util.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | import 'package:io/ansi.dart'; 3 | 4 | void printSeparator(String title) { 5 | var b = StringBuffer('===' + title.toUpperCase()); 6 | for (int i = b.length; i < stdout.terminalColumns - 3; i++) { 7 | b.write('='); 8 | } 9 | for (int i = 0; i < 3; i++) { 10 | print(magenta.wrap(b.toString())); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /packages/graphql/graphql_generator/example/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:graphql_schema/graphql_schema.dart'; 2 | part 'main.g.dart'; 3 | 4 | @graphQLClass 5 | class TodoItem { 6 | String text; 7 | 8 | @GraphQLDocumentation(description: 'Whether this item is complete.') 9 | bool isComplete; 10 | } 11 | 12 | void main() { 13 | print(todoItemGraphQLType.fields.map((f) => f.name)); 14 | } 15 | -------------------------------------------------------------------------------- /packages/model/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://www.dartlang.org/tools/private-files.html 2 | 3 | # Files and directories created by pub 4 | .packages 5 | .pub/ 6 | build/ 7 | # If you're building an application, you may want to check-in your pubspec.lock 8 | pubspec.lock 9 | 10 | # Directory created by dartdoc 11 | # If you don't generate documentation locally you can remove this line. 12 | doc/api/ 13 | -------------------------------------------------------------------------------- /packages/orm/angel_orm_test/lib/angel_orm_test.dart: -------------------------------------------------------------------------------- 1 | export 'src/belongs_to_test.dart'; 2 | export 'src/custom_expr_test.dart'; 3 | export 'src/edge_case_test.dart'; 4 | export 'src/enum_and_nested_test.dart'; 5 | export 'src/has_many_test.dart'; 6 | export 'src/has_map_test.dart'; 7 | export 'src/has_one_test.dart'; 8 | export 'src/many_to_many_test.dart'; 9 | export 'src/standalone_test.dart'; 10 | -------------------------------------------------------------------------------- /packages/serialize/angel_serialize_generator/test/models/goat.dart: -------------------------------------------------------------------------------- 1 | import 'package:angel_serialize/angel_serialize.dart'; 2 | import 'package:collection/collection.dart'; 3 | part 'goat.g.dart'; 4 | 5 | @serializable 6 | abstract class _Goat { 7 | @SerializableField(defaultValue: 34) 8 | int get integer; 9 | 10 | @SerializableField(defaultValue: [34, 35]) 11 | List get list; 12 | } 13 | -------------------------------------------------------------------------------- /packages/shelf/.idea/runConfigurations/All_Tests__coverage_.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /packages/client/build.yaml: -------------------------------------------------------------------------------- 1 | targets: 2 | $default: 3 | builders: 4 | build_web_compilers|entrypoint: 5 | generate_for: 6 | - web/**.dart 7 | options: 8 | dart2js_args: 9 | - --dump-info 10 | - --fast-startup 11 | - --minify 12 | - --trust-type-annotations 13 | - --trust-primitives 14 | - --no-source-maps -------------------------------------------------------------------------------- /packages/hot/example/main.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | import 'package:angel_hot/angel_hot.dart'; 3 | import 'server.dart'; 4 | 5 | main() async { 6 | var hot = HotReloader(createServer, [ 7 | Directory('src'), 8 | 'server.dart', 9 | // Also allowed: Platform.script, 10 | Uri.parse('package:angel_hot/angel_hot.dart') 11 | ]); 12 | await hot.startServer('127.0.0.1', 3000); 13 | } 14 | -------------------------------------------------------------------------------- /packages/poll/.idea/runConfigurations/tests_in_all_test_dart.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /packages/wings/lib/src/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories("${CMAKE_CURRENT_LIST_DIR}") 2 | add_dart_native_extension(angel_wings 3 | http-parser/http_parser.c 4 | angel_wings.h angel_wings.cc 5 | bind.cc http.cc wings_socket.cc 6 | util.cc) 7 | install(TARGETS angel_wings LIBRARY DESTINATION "${CMAKE_CURRENT_LIST_DIR}") 8 | install(TARGETS angel_wings LIBRARY DESTINATION "${CMAKE_CURRENT_LIST_DIR}/../..") 9 | -------------------------------------------------------------------------------- /packages/wings/web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Angel Wings 8 | 9 | 10 | 11 |

Hello!!!

12 | 13 | -------------------------------------------------------------------------------- /tool/pull_subproject: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Simple tool script that pulls an angel-dart/ project into ./packages/. 4 | 5 | if [ "$#" == "0" ]; then 6 | echo "usage: pull_subproject " 7 | exit 1 8 | fi 9 | 10 | set -ex 11 | 12 | for project in $*; do 13 | git subtree add --prefix="packages/$project" "https://github.com/angel-dart/$project.git" master 14 | done 15 | -------------------------------------------------------------------------------- /packages/cache/.idea/runConfigurations/tests_in_cache_test_dart.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /packages/file_service/example/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:angel_file_service/angel_file_service.dart'; 2 | import 'package:angel_framework/angel_framework.dart'; 3 | import 'package:file/local.dart'; 4 | 5 | configureServer(Angel app) async { 6 | // Just like a normal service 7 | app.use( 8 | '/api/todos', 9 | new JsonFileService(const LocalFileSystem().file('todos_db.json')), 10 | ); 11 | } 12 | -------------------------------------------------------------------------------- /packages/framework/example/status.dart: -------------------------------------------------------------------------------- 1 | import 'package:angel_framework/angel_framework.dart'; 2 | import 'package:angel_framework/http.dart'; 3 | 4 | main() async { 5 | var app = Angel(); 6 | var http = AngelHttp(app); 7 | 8 | app.fallback((req, res) { 9 | res.statusCode = 304; 10 | }); 11 | 12 | await http.startServer('127.0.0.1', 3000); 13 | print('Listening at ${http.uri}'); 14 | } 15 | -------------------------------------------------------------------------------- /packages/graphql/graphql_parser/lib/src/language/syntax_error.dart: -------------------------------------------------------------------------------- 1 | import 'package:source_span/source_span.dart'; 2 | 3 | class SyntaxError implements Exception { 4 | final String message; 5 | final FileSpan span; 6 | 7 | SyntaxError(this.message, this.span); 8 | 9 | @override 10 | String toString() => 11 | 'Syntax error at ${span.start.toolString}: $message\n${span.highlight()}'; 12 | } 13 | -------------------------------------------------------------------------------- /packages/http_exception/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: angel_http_exception 2 | version: 1.1.0 3 | description: Exception class that can be serialized to JSON and serialized to clients. 4 | author: Tobe O 5 | homepage: https://github.com/angel-dart/http_exception 6 | environment: 7 | sdk: ">=1.19.0 <3.0.0" 8 | dependencies: 9 | dart2_constant: ^1.0.0 10 | dev_dependencies: 11 | pedantic: ^1.0.0 -------------------------------------------------------------------------------- /packages/orm/angel_orm_service/example/todo.dart: -------------------------------------------------------------------------------- 1 | import 'package:angel_migration/angel_migration.dart'; 2 | import 'package:angel_serialize/angel_serialize.dart'; 3 | import 'package:angel_orm/angel_orm.dart'; 4 | part 'todo.g.dart'; 5 | 6 | @serializable 7 | @orm 8 | abstract class _Todo extends Model { 9 | @notNull 10 | String get text; 11 | 12 | @DefaultsTo(false) 13 | bool isComplete; 14 | } 15 | -------------------------------------------------------------------------------- /packages/relations/pubspec.yaml: -------------------------------------------------------------------------------- 1 | author: Tobe O 2 | description: Database-agnostic relations between Angel services. 3 | homepage: "https://github.com/angel-dart/relations.git" 4 | name: angel_relations 5 | version: 1.0.1 6 | environment: 7 | sdk: ">=1.19.0" 8 | dependencies: 9 | angel_framework: ^1.0.0-dev 10 | dev_dependencies: 11 | angel_seeder: ^1.0.0 12 | test: ^0.12.0 13 | -------------------------------------------------------------------------------- /packages/sync/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://www.dartlang.org/tools/private-files.html 2 | 3 | # Files and directories created by pub 4 | .packages 5 | .pub/ 6 | build/ 7 | # If you're building an application, you may want to check-in your pubspec.lock 8 | pubspec.lock 9 | 10 | # Directory created by dartdoc 11 | # If you don't generate documentation locally you can remove this line. 12 | doc/api/ 13 | .dart_tool -------------------------------------------------------------------------------- /packages/framework/.idea/runConfigurations/All_Tests__for_coverage_.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /packages/graphql/data_loader/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: data_loader 2 | version: 1.0.0 3 | author: Tobe O 4 | description: Batch and cache database lookups. Works well with GraphQL. Ported from JS. 5 | homepage: https://github.com/angel-dart/graphql 6 | environment: 7 | sdk: ">=2.0.0-dev <3.0.0" 8 | dev_dependencies: 9 | graphql_schema: ^1.0.0 10 | pedantic: ^1.0.0 11 | test: ">=0.12.0 <2.0.0" -------------------------------------------------------------------------------- /packages/orm/angel_migration/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://www.dartlang.org/tools/private-files.html 2 | 3 | # Files and directories created by pub 4 | .packages 5 | .pub/ 6 | build/ 7 | # If you're building an application, you may want to check-in your pubspec.lock 8 | pubspec.lock 9 | 10 | # Directory created by dartdoc 11 | # If you don't generate documentation locally you can remove this line. 12 | doc/api/ 13 | -------------------------------------------------------------------------------- /packages/orm/angel_migration_runner/example/todo.sql: -------------------------------------------------------------------------------- 1 | -- Generated by running `todo.dart` 2 | 3 | CREATE TABLE "users" ( 4 | "id" serial, 5 | "username" varchar(32) UNIQUE, 6 | "password" varchar, 7 | "account_confirmed" serial 8 | ); 9 | CREATE TABLE "todos" ( 10 | "id" serial, 11 | "user_id" int REFERENCES "user"("id") ON DELETE CASCADE, 12 | "text" varchar, 13 | "completed" serial 14 | ); 15 | -------------------------------------------------------------------------------- /packages/orm/angel_orm_service/example/migrate.dart: -------------------------------------------------------------------------------- 1 | import 'package:angel_migration_runner/angel_migration_runner.dart'; 2 | import 'package:angel_migration_runner/postgres.dart'; 3 | import 'connect.dart'; 4 | import 'todo.dart'; 5 | 6 | main(List args) { 7 | var runner = PostgresMigrationRunner(conn, migrations: [ 8 | TodoMigration(), 9 | ]); 10 | return runMigrations(runner, args); 11 | } 12 | -------------------------------------------------------------------------------- /packages/http_exception/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://www.dartlang.org/tools/private-files.html 2 | 3 | # Files and directories created by pub 4 | .packages 5 | .pub/ 6 | build/ 7 | # If you're building an application, you may want to check-in your pubspec.lock 8 | pubspec.lock 9 | 10 | # Directory created by dartdoc 11 | # If you don't generate documentation locally you can remove this line. 12 | doc/api/ 13 | 14 | .idea -------------------------------------------------------------------------------- /packages/jael/jael_web/lib/src/dom_builder.dart: -------------------------------------------------------------------------------- 1 | abstract class DomBuilder { 2 | DomBuilderElement append( 3 | String tagName, void Function(DomBuilderElement) f); 4 | 5 | void text(String value); 6 | } 7 | 8 | abstract class DomBuilderElement extends DomBuilder { 9 | void attr(String name, [String value]); 10 | 11 | void attrs(Map map); 12 | 13 | T close(); 14 | } 15 | -------------------------------------------------------------------------------- /packages/mongo/lib/model.dart: -------------------------------------------------------------------------------- 1 | library angel_mongo.model; 2 | 3 | /// Use the `Model` class defined in `package:angel_framework/common.dart` instead. 4 | @deprecated 5 | class Model { 6 | /// This instance's ID. 7 | String id; 8 | 9 | /// The time at which this instance was created. 10 | DateTime createdAt; 11 | 12 | /// The time at which this instance was last updated. 13 | DateTime updatedAt; 14 | } 15 | -------------------------------------------------------------------------------- /packages/orm/.idea/runConfigurations/tests_in_has_one_test.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /packages/pretty_logging/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: pretty_logging 2 | version: 1.0.0 3 | description: Standalone helper for colorful logging output, using pkg:io AnsiCode. 4 | author: Tobe Osakwe 5 | homepage: https://github.com/angel-dart/pretty_logging 6 | environment: 7 | sdk: ">=2.0.0 <3.0.0" 8 | dependencies: 9 | io: ^0.3.2 10 | logging: ^0.11.0 11 | dev_dependencies: 12 | pedantic: ^1.0.0 13 | -------------------------------------------------------------------------------- /packages/seo/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://www.dartlang.org/guides/libraries/private-files 2 | 3 | # Files and directories created by pub 4 | .dart_tool/ 5 | .packages 6 | .pub/ 7 | build/ 8 | # If you're building an application, you may want to check-in your pubspec.lock 9 | pubspec.lock 10 | 11 | # Directory created by dartdoc 12 | # If you don't generate documentation locally you can remove this line. 13 | doc/api/ 14 | -------------------------------------------------------------------------------- /packages/test/.idea/runConfigurations/Simple_Tests.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /packages/cli/.idea/runConfigurations/Doctor.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /packages/cli/.idea/runConfigurations/Version.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /packages/file_service/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: angel_file_service 2 | version: 2.0.1 3 | description: Angel service that persists data to a file on disk. 4 | author: Tobe O 5 | homepage: https://github.com/angel-dart/file_service 6 | environment: 7 | sdk: ">=2.0.0-dev <3.0.0" 8 | dependencies: 9 | angel_framework: ^2.0.0-alpha 10 | file: ^5.0.0 11 | pool: ^1.0.0 12 | dev_dependencies: 13 | test: ^1.0.0 -------------------------------------------------------------------------------- /packages/cli/.idea/runConfigurations/Show_Help.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /packages/cors/README.md: -------------------------------------------------------------------------------- 1 | # cors 2 | [![Pub](https://img.shields.io/pub/v/angel_cors.svg)](https://pub.dartlang.org/packages/angel_cors) 3 | [![build status](https://travis-ci.org/angel-dart/cors.svg)](https://travis-ci.org/angel-dart/cors) 4 | 5 | Angel CORS middleware. 6 | Port of [the original Express CORS middleware](https://github.com/expressjs/cors). 7 | 8 | For complete example usage, see the [example file](example/example.dart). -------------------------------------------------------------------------------- /packages/graphql/graphql_parser/lib/src/language/ast/deprecated_value.dart: -------------------------------------------------------------------------------- 1 | import 'input_value.dart'; 2 | 3 | /// Use [ConstantContext] instead. This class remains solely for backwards compatibility. 4 | @deprecated 5 | abstract class ValueContext extends InputValueContext { 6 | /// Return a constant value. 7 | T get value; 8 | 9 | @override 10 | T computeValue(Map variables) => value; 11 | } 12 | -------------------------------------------------------------------------------- /packages/pretty_logging/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://www.dartlang.org/guides/libraries/private-files 2 | 3 | # Files and directories created by pub 4 | .dart_tool/ 5 | .packages 6 | .pub/ 7 | build/ 8 | # If you're building an application, you may want to check-in your pubspec.lock 9 | pubspec.lock 10 | 11 | # Directory created by dartdoc 12 | # If you don't generate documentation locally you can remove this line. 13 | doc/api/ 14 | -------------------------------------------------------------------------------- /packages/production/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://www.dartlang.org/guides/libraries/private-files 2 | 3 | # Files and directories created by pub 4 | .dart_tool/ 5 | .packages 6 | .pub/ 7 | build/ 8 | # If you're building an application, you may want to check-in your pubspec.lock 9 | pubspec.lock 10 | 11 | # Directory created by dartdoc 12 | # If you don't generate documentation locally you can remove this line. 13 | doc/api/ 14 | -------------------------------------------------------------------------------- /packages/redis/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://www.dartlang.org/tools/private-files.html 2 | 3 | # Files and directories created by pub 4 | .packages 5 | .pub/ 6 | build/ 7 | # If you're building an application, you may want to check-in your pubspec.lock 8 | pubspec.lock 9 | 10 | # Directory created by dartdoc 11 | # If you don't generate documentation locally you can remove this line. 12 | doc/api/ 13 | .dart_tool 14 | dump.rdb 15 | -------------------------------------------------------------------------------- /packages/sembast/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://www.dartlang.org/guides/libraries/private-files 2 | 3 | # Files and directories created by pub 4 | .dart_tool/ 5 | .packages 6 | .pub/ 7 | build/ 8 | # If you're building an application, you may want to check-in your pubspec.lock 9 | pubspec.lock 10 | 11 | # Directory created by dartdoc 12 | # If you don't generate documentation locally you can remove this line. 13 | doc/api/ 14 | *.db -------------------------------------------------------------------------------- /packages/typed_service/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://www.dartlang.org/guides/libraries/private-files 2 | 3 | # Files and directories created by pub 4 | .dart_tool/ 5 | .packages 6 | .pub/ 7 | build/ 8 | # If you're building an application, you may want to check-in your pubspec.lock 9 | pubspec.lock 10 | 11 | # Directory created by dartdoc 12 | # If you don't generate documentation locally you can remove this line. 13 | doc/api/ 14 | -------------------------------------------------------------------------------- /packages/cli/lib/src/commands/pub.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | final RegExp _leadingSlashes = new RegExp(r'^/+'); 4 | 5 | String resolvePub() { 6 | var exec = new File(Platform.resolvedExecutable); 7 | var pubPath = exec.parent.uri.resolve('pub').path; 8 | if (Platform.isWindows) 9 | pubPath = pubPath.replaceAll(_leadingSlashes, '') + '.bat'; 10 | pubPath = Uri.decodeFull(pubPath); 11 | return pubPath; 12 | } 13 | -------------------------------------------------------------------------------- /packages/graphql/.idea/runConfigurations/tests_in_comment_test_dart.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /packages/graphql/graphql_server/lib/subscriptions_transport_ws.dart: -------------------------------------------------------------------------------- 1 | /// An implementation of Apollo's `subscriptions-transport-ws` in Dart. 2 | /// 3 | /// See: 4 | /// https://github.com/apollographql/subscriptions-transport-ws/blob/master/PROTOCOL.md 5 | library graphql_server.subscriptions_transport_ws; 6 | 7 | export 'src/apollo/remote_client.dart'; 8 | export 'src/apollo/server.dart'; 9 | export 'src/apollo/transport.dart'; 10 | -------------------------------------------------------------------------------- /packages/orm/angel_migration_runner/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://www.dartlang.org/tools/private-files.html 2 | 3 | # Files and directories created by pub 4 | .packages 5 | .pub/ 6 | build/ 7 | # If you're building an application, you may want to check-in your pubspec.lock 8 | pubspec.lock 9 | 10 | # Directory created by dartdoc 11 | # If you don't generate documentation locally you can remove this line. 12 | doc/api/ 13 | .dart_tool 14 | -------------------------------------------------------------------------------- /packages/route/test/root_test.dart: -------------------------------------------------------------------------------- 1 | import 'package:angel_route/angel_route.dart'; 2 | import 'package:test/test.dart'; 3 | 4 | void main() { 5 | test('resolve / on /', () { 6 | var router = Router() 7 | ..group('/', (router) { 8 | router.group('/', (router) { 9 | router.get('/', 'ok'); 10 | }); 11 | }); 12 | 13 | expect(router.resolveAbsolute('/'), isNotNull); 14 | }); 15 | } 16 | -------------------------------------------------------------------------------- /packages/graphql/angel_graphql/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 1.1.0 2 | * Support the GraphQL multipart spec: https://github.com/jaydenseric/graphql-multipart-request-spec 3 | 4 | # 1.0.0 5 | * Apply `package:pedantic`. 6 | 7 | # 1.0.0-rc.0 8 | * Finish `graphQLWS`. 9 | 10 | # 1.0.0-beta.1 11 | * Add `graphQLWS` handler, and support subscriptions. 12 | 13 | # 1.0.0-beta 14 | * Angel RC updates. 15 | 16 | # 1.0.0-alpha 17 | * First official release. -------------------------------------------------------------------------------- /packages/paginate/.idea/runConfigurations/All_Tests.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /packages/proxy/.idea/runConfigurations/All_Tests.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | -------------------------------------------------------------------------------- /packages/auth/.idea/runConfigurations/All_Tests.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | -------------------------------------------------------------------------------- /packages/auth/lib/src/strategy.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | import 'package:angel_framework/angel_framework.dart'; 3 | import 'options.dart'; 4 | 5 | /// A function that handles login and signup for an Angel application. 6 | abstract class AuthStrategy { 7 | /// Authenticates or rejects an incoming user. 8 | FutureOr authenticate(RequestContext req, ResponseContext res, 9 | [AngelAuthOptions options]); 10 | } 11 | -------------------------------------------------------------------------------- /packages/container/angel_container/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://www.dartlang.org/guides/libraries/private-files 2 | 3 | # Files and directories created by pub 4 | .dart_tool/ 5 | .packages 6 | .pub/ 7 | build/ 8 | # If you're building an application, you may want to check-in your pubspec.lock 9 | pubspec.lock 10 | 11 | # Directory created by dartdoc 12 | # If you don't generate documentation locally you can remove this line. 13 | doc/api/ 14 | -------------------------------------------------------------------------------- /packages/container/angel_container/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: angel_container 2 | version: 1.1.0 3 | author: Tobe O 4 | description: A hierarchical DI container, and pluggable backends for reflection. 5 | homepage: https://github.com/angel-dart/container.git 6 | environment: 7 | sdk: ">=1.8.0 <3.0.0" 8 | dependencies: 9 | collection: ^1.0.0 10 | quiver: ^2.0.0 11 | dev_dependencies: 12 | pedantic: ^1.0.0 13 | test: ^1.0.0 -------------------------------------------------------------------------------- /packages/framework/test/hm.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | import 'package:io/ansi.dart'; 3 | import 'all.dart' as hm; 4 | 5 | main() async { 6 | var zone = Zone.current.fork( 7 | specification: ZoneSpecification(print: (self, parent, zone, line) { 8 | if (line == 'null') { 9 | parent.print(zone, cyan.wrap(StackTrace.current.toString())); 10 | } 11 | }), 12 | ); 13 | return await zone.run(hm.main); 14 | } 15 | -------------------------------------------------------------------------------- /packages/security/README.md: -------------------------------------------------------------------------------- 1 | # security 2 | [![Pub](https://img.shields.io/pub/v/angel_security.svg)](https://pub.dartlang.org/packages/angel_security) 3 | [![build status](https://travis-ci.org/angel-dart/security.svg)](https://travis-ci.org/angel-dart/security) 4 | 5 | Angel middleware designed to enhance application security by patching common Web security 6 | holes. 7 | 8 | **This package is currently going through a major overhaul, for version 2.** -------------------------------------------------------------------------------- /packages/framework/.idea/runConfigurations/All_Tests.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | -------------------------------------------------------------------------------- /packages/jael/jael/lib/src/text/parselet/parselet.dart: -------------------------------------------------------------------------------- 1 | library jael.src.text.parselet; 2 | 3 | import '../../ast/ast.dart'; 4 | import '../parser.dart'; 5 | part 'infix.dart'; 6 | part 'prefix.dart'; 7 | 8 | abstract class PrefixParselet { 9 | Expression parse(Parser parser, Token token); 10 | } 11 | 12 | abstract class InfixParselet { 13 | int get precedence; 14 | Expression parse(Parser parser, Expression left, Token token); 15 | } 16 | -------------------------------------------------------------------------------- /packages/mustache/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: angel_mustache 2 | description: Mustache view generator for Angel. 3 | author: thosakwe 4 | homepage: https://github.com/angel-dart/angel_mustache 5 | version: 2.0.0 6 | environment: 7 | sdk: ">=2.0.0-dev <3.0.0" 8 | dependencies: 9 | angel_framework: ^2.0.0-alpha 10 | file: ^5.0.0 11 | mustache4dart: ^3.0.0-dev 12 | path: ^1.0.0 13 | dev_dependencies: 14 | http: 15 | test: 16 | -------------------------------------------------------------------------------- /packages/container/angel_container_generator/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://www.dartlang.org/guides/libraries/private-files 2 | 3 | # Files and directories created by pub 4 | .dart_tool/ 5 | .packages 6 | .pub/ 7 | build/ 8 | # If you're building an application, you may want to check-in your pubspec.lock 9 | pubspec.lock 10 | 11 | # Directory created by dartdoc 12 | # If you don't generate documentation locally you can remove this line. 13 | doc/api/ 14 | -------------------------------------------------------------------------------- /packages/graphql/graphql_schema/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: graphql_schema 2 | version: 1.0.4 3 | description: An implementation of GraphQL's type system in Dart. Basis of graphql_server. 4 | author: Tobe O 5 | homepage: https://github.com/angel-dart/graphql 6 | environment: 7 | sdk: ">=1.8.0 <3.0.0" 8 | dependencies: 9 | collection: ^1.0.0 10 | meta: ^1.0.0 11 | source_span: ^1.0.0 12 | dev_dependencies: 13 | test: ">=0.12.0 <2.0.0" -------------------------------------------------------------------------------- /packages/orm/angel_orm_mysql/test/migrations/weird_join.sql: -------------------------------------------------------------------------------- 1 | CREATE TEMPORARY TABLE "weird_joins" ( 2 | "id" serial, 3 | "join_name" varchar(255) references unorthodoxes(name), 4 | PRIMARY KEY(id) 5 | ); 6 | CREATE TEMPORARY TABLE "foos" ( 7 | "bar" varchar(255), 8 | PRIMARY KEY(bar) 9 | ); 10 | CREATE TEMPORARY TABLE "foo_pivots" ( 11 | "weird_join_id" int references weird_joins(id), 12 | "foo_bar" varchar(255) references foos(bar) 13 | ); -------------------------------------------------------------------------------- /packages/orm/angel_orm_postgres/test/migrations/weird_join.sql: -------------------------------------------------------------------------------- 1 | CREATE TEMPORARY TABLE "weird_joins" ( 2 | "id" serial, 3 | "join_name" varchar(255) references unorthodoxes(name), 4 | PRIMARY KEY(id) 5 | ); 6 | CREATE TEMPORARY TABLE "foos" ( 7 | "bar" varchar(255), 8 | PRIMARY KEY(bar) 9 | ); 10 | CREATE TEMPORARY TABLE "foo_pivots" ( 11 | "weird_join_id" int references weird_joins(id), 12 | "foo_bar" varchar(255) references foos(bar) 13 | ); -------------------------------------------------------------------------------- /packages/paginate/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: angel_paginate 2 | version: 2.0.0 3 | description: Platform-agnostic pagination library, with custom support for the Angel framework. 4 | author: Tobe O 5 | homepage: https://github.com/angel-dart/paginate 6 | environment: 7 | sdk: ">=2.0.0-dev <3.0.0" 8 | dependencies: 9 | angel_framework: ^2.0.0-alpha 10 | dev_dependencies: 11 | angel_test: ^2.0.0 12 | logging: ^0.11.0 13 | test: ^1.0.0 -------------------------------------------------------------------------------- /packages/route/web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Angel Route Samples 7 | 8 | 9 |

Angel Route Samples

10 | 14 | 15 | -------------------------------------------------------------------------------- /packages/cors/pubspec.yaml: -------------------------------------------------------------------------------- 1 | author: Tobe O 2 | description: Angel CORS middleware. Port of expressjs/cors to the Angel framework. 3 | environment: 4 | sdk: ">=2.0.0 <3.0.0" 5 | homepage: https://github.com/angel-dart/cors.git 6 | name: angel_cors 7 | version: 2.0.0 8 | dependencies: 9 | angel_framework: ^2.0.0-alpha 10 | dev_dependencies: 11 | angel_test: ^2.0.0 12 | http: ^0.12.0 13 | pedantic: ^1.0.0 14 | test: ^1.0.0 15 | -------------------------------------------------------------------------------- /packages/graphql/graphql_generator/build.yaml: -------------------------------------------------------------------------------- 1 | builders: 2 | graphql: 3 | import: "package:graphql_generator/graphql_generator.dart" 4 | builder_factories: 5 | - graphQLBuilder 6 | auto_apply: root_package 7 | build_to: cache 8 | build_extensions: 9 | .dart: 10 | - graphql_generator.g.part 11 | required_inputs: 12 | - angel_serialize.g.part 13 | applies_builders: 14 | - source_gen|combining_builder -------------------------------------------------------------------------------- /packages/redis/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: angel_redis 2 | version: 1.0.0 3 | description: An Angel service provider for Redis. Works well for caching volatile data. 4 | author: Tobe O 5 | homepage: https://github.com/angel-dart/redis 6 | environment: 7 | sdk: ">=2.0.0-dev <3.0.0" 8 | dependencies: 9 | angel_framework: ^2.0.0-alpha 10 | angel_http_exception: ^1.0.0 11 | resp_client: ^0.1.6 12 | dev_dependencies: 13 | test: ^1.0.0 14 | -------------------------------------------------------------------------------- /packages/cli/lib/src/random_string.dart: -------------------------------------------------------------------------------- 1 | import 'dart:math'; 2 | 3 | const String _valid = 4 | 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; 5 | final Random _rnd = new Random.secure(); 6 | 7 | String randomAlphaNumeric(int length) { 8 | var b = new StringBuffer(); 9 | 10 | for (int i = 0; i < length; i++) { 11 | b.writeCharCode(_valid.codeUnitAt(_rnd.nextInt(_valid.length))); 12 | } 13 | 14 | return b.toString(); 15 | } 16 | -------------------------------------------------------------------------------- /packages/jael/.idea/runConfigurations/jael__example.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /packages/poll/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: angel_poll 2 | version: 1.0.0 3 | description: package:angel_client support for "realtime" interactions with Angel via long polling. 4 | author: Tobe O 5 | environment: 6 | sdk: ">=1.19.0" 7 | homepage: https://github.com/angel-dart/poll 8 | dependencies: 9 | angel_client: ^1.0.0 10 | async: ">=1.10.0 <3.0.0" 11 | collection: ^1.0.0 12 | dev_dependencies: 13 | angel_test: ^1.1.0 14 | test: ^0.12.0 -------------------------------------------------------------------------------- /packages/security/lib/src/csrf_filter.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | import 'package:angel_framework/angel_framework.dart'; 3 | import 'cookie_signer.dart'; 4 | 5 | class CsrfToken { 6 | final String value; 7 | 8 | CsrfToken(this.value); 9 | } 10 | 11 | class CsrfFilter { 12 | final CookieSigner cookieSigner; 13 | 14 | CsrfFilter(this.cookieSigner); 15 | 16 | Future readCsrfToken(RequestContext req) async { 17 | 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /packages/auth_oauth2/.idea/runConfigurations/Github_Auth_Server.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /packages/cache/.idea/runConfigurations/main_dart.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /packages/orm/angel_migration_runner/lib/src/util.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | import 'dart:isolate'; 3 | import 'dart:mirrors'; 4 | 5 | Future absoluteSourcePath(Type type) async { 6 | var mirror = reflectType(type); 7 | var uri = mirror.location.sourceUri; 8 | 9 | if (uri.scheme == 'package') { 10 | uri = await Isolate.resolvePackageUri(uri); 11 | } 12 | 13 | return uri.toFilePath() + '#' + MirrorSystem.getName(mirror.simpleName); 14 | } 15 | -------------------------------------------------------------------------------- /packages/orm/tool/.travis.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | export POSTGRES_USERNAME="angel_orm" 3 | export POSTGRES_PASSWORD="angel_orm" 4 | set -ex 5 | 6 | function angel_orm_test () { 7 | cd $1; 8 | pub get; 9 | pub run test; 10 | cd .. 11 | } 12 | 13 | cd angel_orm_generator; 14 | pub get; 15 | echo 1 | pub run build_runner build --delete-conflicting-outputs; 16 | cd ..; 17 | angel_orm_test angel_orm_postgres 18 | angel_orm_test angel_orm_service 19 | -------------------------------------------------------------------------------- /packages/body_parser/.idea/runConfigurations/main_dart.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /packages/eventsource/.idea/runConfigurations/main_dart.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /packages/framework/.idea/runConfigurations/json_dart.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /packages/framework/.idea/runConfigurations/main_dart.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /packages/framework/.idea/runConfigurations/view_dart.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /packages/framework/lib/src/core/core.dart: -------------------------------------------------------------------------------- 1 | export 'anonymous_service.dart'; 2 | export 'controller.dart'; 3 | export 'driver.dart'; 4 | export 'env.dart'; 5 | export 'hooked_service.dart'; 6 | export 'hostname_parser.dart'; 7 | export 'hostname_router.dart'; 8 | export 'map_service.dart'; 9 | export 'metadata.dart'; 10 | export 'request_context.dart'; 11 | export 'response_context.dart'; 12 | export 'routable.dart'; 13 | export 'server.dart'; 14 | export 'service.dart'; 15 | -------------------------------------------------------------------------------- /packages/jael/.idea/runConfigurations/tests_in_dsx_test_dart.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /packages/jael/.idea/runConfigurations/tests_in_jael.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | -------------------------------------------------------------------------------- /packages/jael/jael_web/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: jael_web 2 | version: 0.0.0 3 | description: Experimental virtual DOM/SPA engine built on Jael. Supports SSR. 4 | environment: 5 | sdk: ">=2.0.0 <3.0.0" 6 | dependencies: 7 | build: ^1.0.0 8 | build_config: ^0.3.0 9 | code_builder: ^3.0.0 10 | jael: ^2.0.0 11 | jael_preprocessor: ^2.0.0 12 | source_gen: ^0.9.0 13 | dev_dependencies: 14 | build_runner: ^1.0.0 15 | build_web_compilers: ^1.0.0 16 | pedantic: ^1.0.0 -------------------------------------------------------------------------------- /packages/route/.idea/runConfigurations/tests_in_route.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | -------------------------------------------------------------------------------- /packages/shelf/.idea/runConfigurations/tests_in_shelf.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | -------------------------------------------------------------------------------- /packages/eventsource/.idea/runConfigurations/build_dart.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | -------------------------------------------------------------------------------- /packages/eventsource/.idea/runConfigurations/watch_dart.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | -------------------------------------------------------------------------------- /packages/framework/.idea/runConfigurations/tests_in_find_one_test_dart.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /packages/orm/angel_migration_runner/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: angel_migration_runner 2 | version: 2.0.0 3 | description: Command-line based database migration runner for Angel's ORM. 4 | author: Tobe O 5 | homepage: https://github.com/angel-dart/migration 6 | environment: 7 | sdk: ">=2.0.0-dev <3.0.0" 8 | dependencies: 9 | angel_migration: ^2.0.0-alpha 10 | angel_orm: ^2.0.0-dev.2 11 | args: ^1.0.0 12 | charcode: ^1.0.0 13 | postgres: ">=0.9.5 <2.0.0" -------------------------------------------------------------------------------- /packages/orm/angel_orm_postgres/example/main.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | import 'package:angel_orm_postgres/angel_orm_postgres.dart'; 3 | import 'package:postgres/postgres.dart'; 4 | 5 | main() async { 6 | var executor = new PostgreSqlExecutorPool(Platform.numberOfProcessors, () { 7 | return new PostgreSQLConnection('localhost', 5432, 'angel_orm_test'); 8 | }); 9 | 10 | var rows = await executor.query('users', 'SELECT * FROM users', {}); 11 | print(rows); 12 | } 13 | -------------------------------------------------------------------------------- /packages/framework/.idea/runConfigurations/tests_in_framework.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | -------------------------------------------------------------------------------- /packages/graphql/.idea/runConfigurations/tests_in_query_test_dart.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /packages/graphql/.idea/runConfigurations/tests_in_value_test_dart.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /packages/proxy/.idea/runConfigurations/multiple_dart.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /packages/serialize/angel_serialize_generator/test/models/game_pad_button.dart: -------------------------------------------------------------------------------- 1 | import 'package:angel_serialize/angel_serialize.dart'; 2 | part 'game_pad_button.g.dart'; 3 | 4 | @serializable 5 | abstract class _GamepadButton { 6 | String get name; 7 | int get radius; 8 | } 9 | 10 | @serializable 11 | class _Gamepad { 12 | List<_GamepadButton> buttons; 13 | 14 | Map dynamicMap; 15 | 16 | // ignore: unused_field 17 | String _somethingPrivate; 18 | } 19 | -------------------------------------------------------------------------------- /packages/cache/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: angel_cache 2 | version: 2.0.1 3 | homepage: https://github.com/angel-dart/cache 4 | description: Support for server-side caching in Angel. 5 | author: Tobe O 6 | environment: 7 | sdk: ">=2.0.0-dev <3.0.0" 8 | dependencies: 9 | angel_framework: ^2.0.0-alpha 10 | collection: ^1.0.0 11 | meta: ^1.0.0 12 | pool: ^1.0.0 13 | dev_dependencies: 14 | angel_test: ^2.0.0-alpha 15 | glob: ^1.0.0 16 | http: any 17 | test: ^1.0.0 -------------------------------------------------------------------------------- /packages/cli/.idea/runConfigurations/Update.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | -------------------------------------------------------------------------------- /packages/framework/.idea/runConfigurations/performance__hello__DEV_.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /packages/graphql/.idea/runConfigurations/tests_in_mirrors_test_dart.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /packages/jael/jael_preprocessor/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: jael_preprocessor 2 | version: 2.0.1 3 | description: A pre-processor for resolving blocks and includes within Jael templates. 4 | author: Tobe O 5 | homepage: https://github.com/angel-dart/jael/tree/master/jael_preprocessor 6 | environment: 7 | sdk: ">=2.0.0-dev <3.0.0" 8 | dependencies: 9 | file: ^5.0.0 10 | jael: ^2.0.0 11 | symbol_table: ^2.0.0 12 | dev_dependencies: 13 | code_buffer: 14 | test: ^1.0.0 -------------------------------------------------------------------------------- /packages/jinja/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: angel_jinja 2 | description: Angel support for the Jinja2 templating engine, ported from Python to Dart. 3 | version: 1.0.0-rc.0 4 | homepage: https://github.com/angel-dart/jinja 5 | author: Tobe O 6 | environment: 7 | sdk: '>=2.0.0-dev <3.0.0' 8 | dependencies: 9 | angel_framework: ^2.0.0-alpha 10 | jinja: ^0.0.4 11 | dev_dependencies: 12 | angel_test: ^2.0.0 13 | path: ^1.0.0 14 | pedantic: ^1.0.0 15 | test: ^1.0.0 16 | -------------------------------------------------------------------------------- /packages/auth/.idea/runConfigurations/tests_in_protect_cookie_test_dart.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /packages/cli/.idea/runConfigurations/Init.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | -------------------------------------------------------------------------------- /packages/framework/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | # include: package:pedantic/analysis_options.yaml 2 | analyzer: 3 | errors: 4 | always_declare_return_types: ignore 5 | omit_local_variable_types: ignore 6 | prefer_single_quotes: ignore 7 | prefer_spread_collections: ignore 8 | strong-mode: 9 | implicit-casts: false 10 | linter: 11 | rules: 12 | - avoid_slow_async_io 13 | - curly_braces_in_flow_control_structures 14 | - unnecessary_const 15 | - unnecessary_new -------------------------------------------------------------------------------- /packages/jael/angel_jael/example/views/layout.jael: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | {{title}} 7 | 8 | 9 |

10 | {{title}} 11 |

12 | 13 | Content goes here. 14 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /packages/jael/jael/.gitignore: -------------------------------------------------------------------------------- 1 | # Created by .ignore support plugin (hsz.mobi) 2 | ### Dart template 3 | # See https://www.dartlang.org/tools/private-files.html 4 | 5 | # Files and directories created by pub 6 | .packages 7 | .pub/ 8 | build/ 9 | # If you're building an application, you may want to check-in your pubspec.lock 10 | pubspec.lock 11 | 12 | # Directory created by dartdoc 13 | # If you don't generate documentation locally you can remove this line. 14 | doc/api/ 15 | 16 | .dart_tool -------------------------------------------------------------------------------- /packages/markdown/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: angel_markdown 2 | version: 2.0.0 3 | description: Angel Markdown view generator. Write static sites, with no build step. 4 | author: Tobe O 5 | homepage: https://github.com/angel-dart/markdown 6 | environment: 7 | sdk: ">=2.0.0-dev <3.0.0" 8 | dependencies: 9 | angel_framework: ^2.0.0-alpha 10 | file: ^5.0.0 11 | markdown: ^2.0.0 12 | dev_dependencies: 13 | angel_test: ^2.0.0 14 | pedantic: ^1.0.0 15 | test: ^1.0.0 16 | -------------------------------------------------------------------------------- /packages/serialize/.idea/runConfigurations/tests_in_enum_test_dart.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /packages/sync/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: angel_sync 2 | version: 2.0.0 3 | description: Easily synchronize and scale WebSockets using package:pub_sub. 4 | author: Tobe O 5 | homepage: https://github.com/angel-dart/sync 6 | environment: 7 | sdk: ">=2.0.0-dev <3.0.0" 8 | dependencies: 9 | angel_framework: ^2.0.0-alpha 10 | angel_websocket: ^2.0.0-alpha 11 | pub_sub: ^2.0.0 12 | stream_channel: ^1.0.0 13 | dev_dependencies: 14 | angel_test: ^2.0.0-alpha 15 | test: ^1.0.0 -------------------------------------------------------------------------------- /packages/cache/.idea/runConfigurations/cache_service_dart.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /packages/framework/.idea/runConfigurations/handle_error_dart.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /packages/graphql/.idea/runConfigurations/main_dart.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /packages/graphql/.idea/runConfigurations/tests_in_validation_test_dart.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /packages/hot/.idea/runConfigurations/main_dart__No_VM_service_.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /packages/jael/.idea/runConfigurations/main_dart.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /packages/jael/angel_jael/.gitignore: -------------------------------------------------------------------------------- 1 | # Created by .ignore support plugin (hsz.mobi) 2 | ### Dart template 3 | # See https://www.dartlang.org/tools/private-files.html 4 | 5 | # Files and directories created by pub 6 | .packages 7 | .pub/ 8 | build/ 9 | # If you're building an application, you may want to check-in your pubspec.lock 10 | pubspec.lock 11 | 12 | # Directory created by dartdoc 13 | # If you don't generate documentation locally you can remove this line. 14 | doc/api/ 15 | 16 | .dart_tool -------------------------------------------------------------------------------- /packages/jael/jael_preprocessor/.gitignore: -------------------------------------------------------------------------------- 1 | # Created by .ignore support plugin (hsz.mobi) 2 | ### Dart template 3 | # See https://www.dartlang.org/tools/private-files.html 4 | 5 | # Files and directories created by pub 6 | .packages 7 | .pub/ 8 | build/ 9 | # If you're building an application, you may want to check-in your pubspec.lock 10 | pubspec.lock 11 | 12 | # Directory created by dartdoc 13 | # If you don't generate documentation locally you can remove this line. 14 | doc/api/ 15 | .dart_tool -------------------------------------------------------------------------------- /packages/jael/jael_web/.gitignore: -------------------------------------------------------------------------------- 1 | # Created by .ignore support plugin (hsz.mobi) 2 | ### Dart template 3 | # See https://www.dartlang.org/tools/private-files.html 4 | 5 | # Files and directories created by pub 6 | .packages 7 | .pub/ 8 | build/ 9 | # If you're building an application, you may want to check-in your pubspec.lock 10 | pubspec.lock 11 | 12 | # Directory created by dartdoc 13 | # If you don't generate documentation locally you can remove this line. 14 | doc/api/ 15 | 16 | .dart_tool -------------------------------------------------------------------------------- /packages/oauth2/.idea/runConfigurations/tests_in_auth_oauth2_server.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | -------------------------------------------------------------------------------- /packages/sembast/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: angel_sembast 2 | description: package:sembast-powered CRUD services for the Angel framework. 3 | homepage: https://github.com/angel-dart/sembast 4 | version: 1.0.1 5 | author: Tobe O 6 | environment: 7 | sdk: ">=2.1.0-dev <3.0.0" 8 | dependencies: 9 | angel_framework: ^2.0.0-alpha 10 | sembast: ^1.19.0-dev.2 11 | dev_dependencies: 12 | angel_http_exception: ^1.0.0 13 | logging: 14 | pedantic: ^1.0.0 15 | test: ^1.0.0 16 | 17 | -------------------------------------------------------------------------------- /packages/auth_oauth2/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: angel_auth_oauth2 2 | description: angel_auth strategy for OAuth2 login, i.e. Facebook, Github, etc. 3 | version: 2.1.0 4 | author: Tobe O 5 | environment: 6 | sdk: ">=2.0.0-dev <3.0.0" 7 | homepage: https://github.com/angel-dart/auth_oauth2.git 8 | dependencies: 9 | angel_auth: ^2.0.0 10 | angel_framework: ^2.0.0-alpha 11 | http_parser: ^3.0.0 12 | oauth2: ^1.0.0 13 | dev_dependencies: 14 | logging: ^0.11.0 15 | pedantic: ^1.0.0 -------------------------------------------------------------------------------- /packages/cli/README.md: -------------------------------------------------------------------------------- 1 | # angel_cli 2 | 3 | ![Screenshot of Terminal](screenshots/screenshot.png) 4 | 5 | Command-line tools for the Angel framework. 6 | Includes functionality such as: 7 | * Project scaffolding 8 | * Generating service models, plugins, tests and more 9 | * Renaming projects 10 | * Much more... 11 | 12 | To install: 13 | 14 | ```bash 15 | $ pub global activate angel_cli 16 | ``` 17 | 18 | And then, for information on each command: 19 | 20 | ```bash 21 | $ angel help 22 | ``` 23 | -------------------------------------------------------------------------------- /packages/rethink/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: angel_rethink 2 | version: 1.1.0 3 | description: RethinkDB-enabled services for the Angel framework. 4 | author: Tobe O 5 | environment: 6 | sdk: ">=1.19.0 <3.0.0" 7 | homepage: https://github.com/angel-dart/rethink 8 | dependencies: 9 | angel_framework: ^1.1.0 10 | json_god: ^2.0.0-beta 11 | rethinkdb_driver: ^2.3.1 12 | dev_dependencies: 13 | angel_client: ^1.1.0 14 | angel_test: ^1.1.0 15 | logging: ^0.11.3 16 | test: ^0.12.0 -------------------------------------------------------------------------------- /packages/serialize/angel_serialize_generator/test/models/with_enum.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | import 'dart:typed_data'; 3 | import 'package:angel_serialize/angel_serialize.dart'; 4 | import 'package:collection/collection.dart'; 5 | part 'with_enum.g.dart'; 6 | 7 | @serializable 8 | abstract class _WithEnum { 9 | @DefaultsTo(WithEnumType.b) 10 | WithEnumType get type; 11 | 12 | List get finalList; 13 | 14 | Uint8List get imageBytes; 15 | } 16 | 17 | enum WithEnumType { a, b, c } 18 | -------------------------------------------------------------------------------- /packages/container/angel_container_generator/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: angel_container_generator 2 | version: 1.0.1 3 | author: Tobe O 4 | description: Codegen support for using pkg:reflectable with pkg:angel_container. 5 | homepage: https://github.com/angel-dart/container.git 6 | environment: 7 | sdk: ">=2.0.0-dev <3.0.0" 8 | dependencies: 9 | angel_container: ^1.0.0-alpha 10 | reflectable: ^2.0.0 11 | dev_dependencies: 12 | build_runner: ^1.0.0 13 | build_test: 14 | test: ^1.0.0 -------------------------------------------------------------------------------- /packages/framework/.idea/runConfigurations/All_Tests__PRODUCTION_.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 9 | -------------------------------------------------------------------------------- /packages/graphql/.idea/runConfigurations/tests_in_graphql_parser.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | -------------------------------------------------------------------------------- /packages/graphql/.idea/runConfigurations/tests_in_graphql_schema.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | -------------------------------------------------------------------------------- /packages/html/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: angel_html 2 | version: 2.0.0 3 | description: Support for rendering html_builder AST's as responses in Angel. 4 | author: Tobe O 5 | homepage: https://github.com/angel-dart/html_builder 6 | environment: 7 | sdk: ">=2.0.0-dev <3.0.0" 8 | dependencies: 9 | angel_framework: ^2.0.0-alpha 10 | html_builder: ^1.0.0 11 | dev_dependencies: 12 | angel_test: ^2.0.0-alpha 13 | html: ^0.13.2 14 | logging: ^0.11.0 15 | test: ^1.0.0 16 | pedantic: ^1.0.0 -------------------------------------------------------------------------------- /packages/cli/.idea/runConfigurations/Controller.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | -------------------------------------------------------------------------------- /packages/eventsource/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: angel_eventsource 2 | version: 1.0.0 3 | description: Server-sent Events (SSE) plugin for Angel. 4 | homepage: https://github.com/angel-dart/eventsource 5 | author: Tobe O 6 | environment: 7 | sdk: ">=2.0.0-dev <3.0.0" 8 | dependencies: 9 | angel_framework: ^2.0.0-alpha 10 | angel_websocket: ^2.0.0-alpha 11 | eventsource: ^0.2.0 12 | stream_channel: ^1.0.0 13 | dev_dependencies: 14 | console: ^3.0.0 15 | logging: 16 | test: ^1.0.0 17 | -------------------------------------------------------------------------------- /packages/graphql/graphql_parser/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: graphql_parser 2 | version: 1.1.4 3 | description: Parses GraphQL queries and schemas. Also includes classes for the GraphQL AST. 4 | author: Tobe O 5 | homepage: https://github.com/angel-dart/graphql 6 | environment: 7 | sdk: ">=1.8.0 <3.0.0" 8 | dependencies: 9 | charcode: ^1.0.0 10 | source_span: ^1.0.0 11 | string_scanner: ^1.0.0 12 | dev_dependencies: 13 | matcher: any 14 | pedantic: ^1.0.0 15 | test: ">=0.12.0 <2.0.0" 16 | -------------------------------------------------------------------------------- /packages/model/example/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:angel_model/angel_model.dart'; 2 | 3 | void main() { 4 | var todo = Todo(id: '34', isComplete: false); 5 | print(todo.idAsInt == 34); 6 | } 7 | 8 | class Todo extends Model { 9 | String text; 10 | 11 | bool isComplete; 12 | 13 | Todo( 14 | {String id, 15 | this.text, 16 | this.isComplete, 17 | DateTime createdAt, 18 | DateTime updatedAt}) 19 | : super(id: id, createdAt: createdAt, updatedAt: updatedAt); 20 | } 21 | -------------------------------------------------------------------------------- /packages/orm/angel_orm_test/lib/src/models/car.dart: -------------------------------------------------------------------------------- 1 | library angel_orm.generator.models.car; 2 | 3 | import 'package:angel_migration/angel_migration.dart'; 4 | import 'package:angel_model/angel_model.dart'; 5 | import 'package:angel_orm/angel_orm.dart'; 6 | import 'package:angel_serialize/angel_serialize.dart'; 7 | part 'car.g.dart'; 8 | 9 | @serializable 10 | @orm 11 | class _Car extends Model { 12 | String make; 13 | String description; 14 | bool familyFriendly; 15 | DateTime recalledAt; 16 | } 17 | -------------------------------------------------------------------------------- /packages/serialize/angel_serialize/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: angel_serialize 2 | version: 2.2.3+3 3 | description: Static annotations powering Angel model serialization. Combine with angel_serialize_generator for flexible modeling. 4 | author: Tobe O 5 | homepage: https://github.com/angel-dart/serialize 6 | environment: 7 | sdk: '>=2.0.0-dev <3.0.0' 8 | dependencies: 9 | angel_model: ^1.0.0 10 | collection: ^1.0.0 11 | meta: ^1.0.0 12 | pedantic: ^1.0.0 13 | quiver_hashcode: ^2.0.0 14 | -------------------------------------------------------------------------------- /packages/serialize/angel_serialize_generator/test/models/subclass.dart: -------------------------------------------------------------------------------- 1 | import 'package:angel_serialize/angel_serialize.dart'; 2 | part 'subclass.g.dart'; 3 | 4 | @serializable 5 | class _Animal { 6 | @notNull 7 | String genus; 8 | @notNull 9 | String species; 10 | } 11 | 12 | @serializable 13 | class _Bird extends _Animal { 14 | @DefaultsTo(false) 15 | bool isSparrow; 16 | } 17 | 18 | var saxaulSparrow = Bird( 19 | genus: 'Passer', 20 | species: 'ammodendri', 21 | isSparrow: true, 22 | ); 23 | -------------------------------------------------------------------------------- /packages/body_parser/lib/src/file_upload_info.dart: -------------------------------------------------------------------------------- 1 | /// Represents a file uploaded to the server. 2 | class FileUploadInfo { 3 | /// The MIME type of the uploaded file. 4 | String mimeType; 5 | 6 | /// The name of the file field from the request. 7 | String name; 8 | 9 | /// The filename of the file. 10 | String filename; 11 | 12 | /// The bytes that make up this file. 13 | List data; 14 | 15 | FileUploadInfo( 16 | {this.mimeType, this.name, this.filename, this.data: const []}) {} 17 | } 18 | -------------------------------------------------------------------------------- /packages/cli/lib/src/commands/service_generators/service_generators.dart: -------------------------------------------------------------------------------- 1 | import 'custom.dart'; 2 | import 'file_service.dart'; 3 | import 'generator.dart'; 4 | import 'map.dart'; 5 | import 'mongo.dart'; 6 | import 'rethink.dart'; 7 | export 'generator.dart'; 8 | 9 | const List serviceGenerators = const [ 10 | const MapServiceGenerator(), 11 | const FileServiceGenerator(), 12 | const MongoServiceGenerator(), 13 | const RethinkServiceGenerator(), 14 | const CustomServiceGenerator() 15 | ]; 16 | -------------------------------------------------------------------------------- /packages/framework/.idea/runConfigurations/tests_in_server_test_dart__PRODUCTION_.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 9 | -------------------------------------------------------------------------------- /packages/cli/lib/src/commands/service_generators/map.dart: -------------------------------------------------------------------------------- 1 | import 'generator.dart'; 2 | import 'package:code_builder/code_builder.dart'; 3 | 4 | class MapServiceGenerator extends ServiceGenerator { 5 | const MapServiceGenerator() : super('In-Memory'); 6 | 7 | @override 8 | bool get createsModel => false; 9 | 10 | @override 11 | Expression createInstance(LibraryBuilder library, MethodBuilder methodBuilder, 12 | String name, String lower) { 13 | return refer('MapService').newInstance([]); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /packages/graphql/graphql_parser/lib/src/language/token.dart: -------------------------------------------------------------------------------- 1 | import 'package:source_span/source_span.dart'; 2 | import 'token_type.dart'; 3 | 4 | class Token { 5 | final TokenType type; 6 | final String text; 7 | FileSpan span; 8 | 9 | Token(this.type, this.text, [this.span]); 10 | 11 | @override 12 | String toString() { 13 | if (span == null) { 14 | return "'$text' -> $type"; 15 | } else { 16 | return "(${span.start.line}:${span.start.column}) '$text' -> $type"; 17 | } 18 | } 19 | } 20 | --------------------------------------------------------------------------------