Refactor: changing namespace, imports, re-branding
This commit is contained in:
parent
7983c9c6a9
commit
f4abaf2474
505 changed files with 1497 additions and 1473 deletions
|
@ -1,4 +1,4 @@
|
|||
name: angel3_platform
|
||||
name: protevus_platform
|
||||
repository: https://github.com/protevus/platform
|
||||
packages:
|
||||
- core/**
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Protevus Anthentication
|
||||
|
||||
![Pub Version (including pre-releases)](https://img.shields.io/pub/v/angel3_auth?include_prereleases)
|
||||
![Pub Version (including pre-releases)](https://img.shields.io/pub/v/protevus_auth?include_prereleases)
|
||||
[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety)
|
||||
[![Discord](https://img.shields.io/discord/1060322353214660698)](https://discord.gg/3X6bxTUdCM)
|
||||
[![License](https://img.shields.io/github/license/dart-backend/protevus)](https://github.com/dart-backend/protevus/tree/master/packages/auth/LICENSE)
|
||||
|
@ -52,7 +52,7 @@ configureServer(Protevus app) async {
|
|||
|
||||
## Default Authentication Callback
|
||||
|
||||
A frequent use case within SPA's is opening OAuth login endpoints in a separate window. [`angel3_client`](https://pub.dev/packages/angel3_client) provides a facility for this, which works perfectly with the default callback provided in this package.
|
||||
A frequent use case within SPA's is opening OAuth login endpoints in a separate window. [`protevus_client`](https://pub.dev/packages/protevus_client) provides a facility for this, which works perfectly with the default callback provided in this package.
|
||||
|
||||
```dart
|
||||
configureServer(Protevus app) async {
|
||||
|
@ -75,7 +75,7 @@ configureServer(Protevus app) async {
|
|||
}
|
||||
```
|
||||
|
||||
This renders a simple HTML page that fires the user's JWT as a `token` event in `window.opener`. `angel3_client` [exposes this as a Stream](https://pub.dev/documentation/angel3_client/latest/):
|
||||
This renders a simple HTML page that fires the user's JWT as a `token` event in `window.opener`. `protevus_client` [exposes this as a Stream](https://pub.dev/documentation/protevus_client/latest/):
|
||||
|
||||
```dart
|
||||
app.authenticateViaPopup('/auth/google').listen((jwt) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import 'dart:async';
|
||||
import 'package:angel3_auth/angel3_auth.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:angel3_framework/http.dart';
|
||||
import 'package:protevus_auth/protevus_auth.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import 'package:protevus_framework/http.dart';
|
||||
|
||||
void main() async {
|
||||
var app = Protevus();
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import 'package:angel3_auth/angel3_auth.dart';
|
||||
import 'package:angel3_container/mirrors.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:angel3_framework/http.dart';
|
||||
import 'package:protevus_auth/protevus_auth.dart';
|
||||
import 'package:protevus_container/mirrors.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import 'package:protevus_framework/http.dart';
|
||||
import 'package:collection/collection.dart' show IterableExtension;
|
||||
import 'package:io/ansi.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
|
@ -46,7 +46,7 @@ void main() async {
|
|||
return oldErrorHandler(e, req, res);
|
||||
};
|
||||
|
||||
app.logger = Logger('angel3_auth')
|
||||
app.logger = Logger('protevus_auth')
|
||||
..level = Level.FINEST
|
||||
..onRecord.listen((rec) {
|
||||
print(rec);
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import 'dart:async';
|
||||
import 'package:angel3_auth/angel3_auth.dart';
|
||||
import 'package:angel3_container/mirrors.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:angel3_framework/http.dart';
|
||||
import 'package:protevus_auth/protevus_auth.dart';
|
||||
import 'package:protevus_container/mirrors.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import 'package:protevus_framework/http.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
|
||||
final Map<String, String> sampleUser = {'hello': 'world'};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/// Stand-alone JWT library.
|
||||
library angel3_auth.auth_token;
|
||||
library protevus_auth.auth_token;
|
||||
|
||||
export 'src/auth_token.dart';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
library angel3_auth;
|
||||
library protevus_auth;
|
||||
|
||||
export 'src/middleware/require_auth.dart';
|
||||
export 'src/strategies/strategies.dart';
|
|
@ -1,5 +1,5 @@
|
|||
import 'dart:collection';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import 'dart:convert';
|
||||
import 'package:crypto/crypto.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import 'dart:async';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
|
||||
/// Forces Basic authentication over the requested resource, with the given [realm] name, if no JWT is present.
|
||||
///
|
||||
/// [realm] defaults to `'angel3_auth'`.
|
||||
/// [realm] defaults to `'protevus_auth'`.
|
||||
RequestHandler forceBasicAuth<User>({String? realm}) {
|
||||
return (RequestContext req, ResponseContext res) async {
|
||||
if (req.container != null) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import 'dart:async';
|
||||
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import 'auth_token.dart';
|
||||
|
||||
typedef AngelAuthCallback = FutureOr Function(
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import 'dart:async';
|
||||
import 'dart:io';
|
||||
import 'dart:math';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import 'package:crypto/crypto.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'dart:convert';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import 'package:http_parser/http_parser.dart';
|
||||
import 'options.dart';
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import 'dart:async';
|
||||
import 'dart:convert';
|
||||
import 'package:logging/logging.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import '../options.dart';
|
||||
import '../strategy.dart';
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'dart:async';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import 'options.dart';
|
||||
|
||||
/// A function that handles login and signup for an Protevus application.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
name: angel3_auth
|
||||
name: protevus_auth
|
||||
description: A complete authentication plugin for Protevus. Includes support for stateless JWT tokens, Basic Auth, and more.
|
||||
version: 8.2.0
|
||||
homepage: https://protevus-framework.web.app/
|
||||
|
@ -6,7 +6,7 @@ repository: https://github.com/dart-backend/protevus/tree/master/packages/auth
|
|||
environment:
|
||||
sdk: '>=3.3.0 <4.0.0'
|
||||
dependencies:
|
||||
angel3_framework: ^8.0.0
|
||||
protevus_framework: ^8.0.0
|
||||
charcode: ^1.3.0
|
||||
collection: ^1.17.0
|
||||
crypto: ^3.0.0
|
||||
|
@ -15,21 +15,21 @@ dependencies:
|
|||
quiver: ^3.2.0
|
||||
logging: ^1.2.0
|
||||
dev_dependencies:
|
||||
angel3_container: ^8.0.0
|
||||
protevus_container: ^8.0.0
|
||||
http: ^1.0.0
|
||||
io: ^1.0.0
|
||||
test: ^1.24.0
|
||||
lints: ^4.0.0
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# protevus_container:
|
||||
# path: ../container/angel_container
|
||||
# angel3_framework:
|
||||
# protevus_framework:
|
||||
# path: ../framework
|
||||
# angel3_http_exception:
|
||||
# protevus_http_exception:
|
||||
# path: ../http_exception
|
||||
# angel3_model:
|
||||
# protevus_model:
|
||||
# path: ../model
|
||||
# angel3_route:
|
||||
# protevus_route:
|
||||
# path: ../route
|
||||
# angel3_mock_request:
|
||||
# protevus_mock_request:
|
||||
# path: ../mock_request
|
|
@ -1,4 +1,4 @@
|
|||
import 'package:angel3_auth/src/auth_token.dart';
|
||||
import 'package:protevus_auth/src/auth_token.dart';
|
||||
import 'package:crypto/crypto.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import 'dart:io';
|
||||
import 'package:angel3_auth/angel3_auth.dart';
|
||||
import 'package:angel3_container/mirrors.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:angel3_framework/http.dart';
|
||||
import 'package:protevus_auth/protevus_auth.dart';
|
||||
import 'package:protevus_container/mirrors.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import 'package:protevus_framework/http.dart';
|
||||
import 'dart:convert';
|
||||
import 'package:collection/collection.dart' show IterableExtension;
|
||||
import 'package:http/http.dart' as http;
|
||||
|
@ -55,7 +55,7 @@ void main() {
|
|||
return oldErrorHandler(e, req, res);
|
||||
};
|
||||
|
||||
app.logger = Logger('angel3_auth')
|
||||
app.logger = Logger('protevus_auth')
|
||||
..level = Level.FINEST
|
||||
..onRecord.listen((rec) {
|
||||
print(rec);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import 'package:angel3_auth/angel3_auth.dart';
|
||||
import 'package:protevus_auth/protevus_auth.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
void main() {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import 'dart:async';
|
||||
import 'package:angel3_auth/angel3_auth.dart';
|
||||
import 'package:angel3_container/mirrors.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:angel3_framework/http.dart';
|
||||
import 'package:protevus_auth/protevus_auth.dart';
|
||||
import 'package:protevus_container/mirrors.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import 'package:protevus_framework/http.dart';
|
||||
import 'dart:convert';
|
||||
import 'package:http/http.dart' as http;
|
||||
import 'package:logging/logging.dart';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import 'dart:io';
|
||||
|
||||
import 'package:angel3_auth/angel3_auth.dart';
|
||||
import 'package:protevus_auth/protevus_auth.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
const Duration threeDays = Duration(days: 3);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Protevus OAuth2 Handler
|
||||
|
||||
![Pub Version (including pre-releases)](https://img.shields.io/pub/v/angel3_auth_oauth2?include_prereleases)
|
||||
![Pub Version (including pre-releases)](https://img.shields.io/pub/v/protevus_auth_oauth2?include_prereleases)
|
||||
![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)(<https://dart.dev/null-safety>)
|
||||
[![Discord](https://img.shields.io/discord/1060322353214660698)](https://discord.gg/3X6bxTUdCM)
|
||||
[![License](https://img.shields.io/github/license/dart-backend/protevus)](https://github.com/dart-backend/protevus/tree/master/packages/auth_oauth2/LICENSE)
|
||||
|
@ -76,7 +76,7 @@ Lastly, connect it to an `AngelAuth` instance, and wire it up to an `Protevus` s
|
|||
1. Redirect users to the external provider
|
||||
2. Acts as a callback and handles an access code
|
||||
|
||||
In the case of the callback route, you may want to display an HTML page that closes a popup window. In this case, use `confirmPopupAuthentication`, which is bundled with `package:angel3_auth`, as a `callback` function:
|
||||
In the case of the callback route, you may want to display an HTML page that closes a popup window. In this case, use `confirmPopupAuthentication`, which is bundled with `package:protevus_auth`, as a `callback` function:
|
||||
|
||||
```dart
|
||||
configureServer(Protevus app) async {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import 'dart:convert';
|
||||
import 'package:angel3_auth/angel3_auth.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:angel3_framework/http.dart';
|
||||
import 'package:angel3_auth_oauth2/angel3_auth_oauth2.dart';
|
||||
import 'package:protevus_auth/protevus_auth.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import 'package:protevus_framework/http.dart';
|
||||
import 'package:protevus_auth_oauth2/protevus_auth_oauth2.dart';
|
||||
import 'package:http_parser/http_parser.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
library angel3_auth_oauth2;
|
||||
library protevus_auth_oauth2;
|
||||
|
||||
import 'dart:async';
|
||||
import 'package:angel3_auth/angel3_auth.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:protevus_auth/protevus_auth.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import 'package:http_parser/http_parser.dart';
|
||||
import 'package:oauth2/oauth2.dart' as oauth2;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
name: angel3_auth_oauth2
|
||||
name: protevus_auth_oauth2
|
||||
version: 8.2.0
|
||||
description: Protevus library for authenticating users with external identity providers via OAuth2.
|
||||
homepage: https://protevus-framework.web.app/
|
||||
|
@ -6,25 +6,25 @@ repository: https://github.com/dart-backend/protevus/tree/master/packages/auth_o
|
|||
environment:
|
||||
sdk: '>=3.3.0 <4.0.0'
|
||||
dependencies:
|
||||
angel3_auth: ^8.0.0
|
||||
angel3_framework: ^8.0.0
|
||||
protevus_auth: ^8.0.0
|
||||
protevus_framework: ^8.0.0
|
||||
http_parser: ^4.0.0
|
||||
oauth2: ^2.0.0
|
||||
dev_dependencies:
|
||||
logging: ^1.2.0
|
||||
lints: ^4.0.0
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# protevus_container:
|
||||
# path: ../container/angel_container
|
||||
# angel3_framework:
|
||||
# protevus_framework:
|
||||
# path: ../framework
|
||||
# angel3_http_exception:
|
||||
# protevus_http_exception:
|
||||
# path: ../http_exception
|
||||
# angel3_model:
|
||||
# protevus_model:
|
||||
# path: ../model
|
||||
# angel3_route:
|
||||
# protevus_route:
|
||||
# path: ../route
|
||||
# angel3_mock_request:
|
||||
# protevus_mock_request:
|
||||
# path: ../mock_request
|
||||
# angel3_auth:
|
||||
# protevus_auth:
|
||||
# path: ../auth
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Protevus Twitter OAuth1
|
||||
|
||||
![Pub Version (including pre-releases)](https://img.shields.io/pub/v/angel3_auth_twitter?include_prereleases)
|
||||
![Pub Version (including pre-releases)](https://img.shields.io/pub/v/protevus_auth_twitter?include_prereleases)
|
||||
![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](<https://dart.dev/null-safety>)
|
||||
[![Discord](https://img.shields.io/discord/1060322353214660698)](https://discord.gg/3X6bxTUdCM)
|
||||
[![License](https://img.shields.io/github/license/dart-backend/protevus)](https://github.com/dart-backend/protevus/tree/master/packages/auth_twitter/LICENSE)
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import 'dart:convert';
|
||||
import 'dart:io';
|
||||
import 'package:angel3_auth/angel3_auth.dart';
|
||||
import 'package:angel3_auth_twitter/angel3_auth_twitter.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:angel3_framework/http.dart';
|
||||
import 'package:protevus_auth/protevus_auth.dart';
|
||||
import 'package:protevus_auth_twitter/protevus_auth_twitter.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import 'package:protevus_framework/http.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
|
||||
class _User {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import 'dart:async';
|
||||
import 'dart:convert';
|
||||
import 'dart:io';
|
||||
import 'package:angel3_auth/angel3_auth.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:protevus_auth/protevus_auth.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import 'package:http/http.dart' as http;
|
||||
import 'package:path/path.dart' as p;
|
||||
//import 'package:oauth1/oauth1.dart' as oauth;
|
|
@ -1,4 +1,4 @@
|
|||
name: "angel3_auth_twitter"
|
||||
name: "protevus_auth_twitter"
|
||||
description: Protevus authentication strategy for Twitter login. Auto-signs requests.
|
||||
version: 8.0.0
|
||||
homepage: https://protevus-framework.web.app/
|
||||
|
@ -7,8 +7,8 @@ publish_to: none
|
|||
environment:
|
||||
sdk: ">=3.3.0 <4.0.0"
|
||||
dependencies:
|
||||
angel3_auth: ^8.0.0
|
||||
angel3_framework: ^8.0.0
|
||||
protevus_auth: ^8.0.0
|
||||
protevus_framework: ^8.0.0
|
||||
http: ^1.0.0
|
||||
path: ^1.9.0
|
||||
belatuk_oauth1: ^3.0.0
|
||||
|
@ -18,17 +18,17 @@ dev_dependencies:
|
|||
lints: ^4.0.0
|
||||
dependency_overrides:
|
||||
http: ^1.0.0
|
||||
# angel3_container:
|
||||
# protevus_container:
|
||||
# path: ../container/angel_container
|
||||
# angel3_framework:
|
||||
# protevus_framework:
|
||||
# path: ../framework
|
||||
# angel3_http_exception:
|
||||
# protevus_http_exception:
|
||||
# path: ../http_exception
|
||||
# angel3_model:
|
||||
# protevus_model:
|
||||
# path: ../model
|
||||
# angel3_route:
|
||||
# protevus_route:
|
||||
# path: ../route
|
||||
# angel3_mock_request:
|
||||
# protevus_mock_request:
|
||||
# path: ../mock_request
|
||||
# angel3_auth:
|
||||
# protevus_auth:
|
||||
# path: ../auth
|
2
packages/cache/README.md
vendored
2
packages/cache/README.md
vendored
|
@ -1,6 +1,6 @@
|
|||
# Protevus HTTP Cache
|
||||
|
||||
![Pub Version (including pre-releases)](https://img.shields.io/pub/v/angel3_cache?include_prereleases)
|
||||
![Pub Version (including pre-releases)](https://img.shields.io/pub/v/protevus_cache?include_prereleases)
|
||||
[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety)
|
||||
[![Discord](https://img.shields.io/discord/1060322353214660698)](https://discord.gg/3X6bxTUdCM)
|
||||
[![License](https://img.shields.io/github/license/dart-backend/protevus)](https://github.com/dart-backend/protevus/tree/master/packages/cache/LICENSE)
|
||||
|
|
6
packages/cache/example/cache_service.dart
vendored
6
packages/cache/example/cache_service.dart
vendored
|
@ -1,6 +1,6 @@
|
|||
import 'package:angel3_cache/angel3_cache.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:angel3_framework/http.dart';
|
||||
import 'package:protevus_cache/protevus_cache.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import 'package:protevus_framework/http.dart';
|
||||
|
||||
void main() async {
|
||||
var app = Protevus();
|
||||
|
|
6
packages/cache/example/main.dart
vendored
6
packages/cache/example/main.dart
vendored
|
@ -1,6 +1,6 @@
|
|||
import 'package:angel3_cache/angel3_cache.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:angel3_framework/http.dart';
|
||||
import 'package:protevus_cache/protevus_cache.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import 'package:protevus_framework/http.dart';
|
||||
|
||||
void main() async {
|
||||
var app = Protevus();
|
||||
|
|
2
packages/cache/lib/src/cache.dart
vendored
2
packages/cache/lib/src/cache.dart
vendored
|
@ -1,6 +1,6 @@
|
|||
import 'dart:async';
|
||||
import 'dart:io' show HttpDate;
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import 'package:pool/pool.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
|
||||
|
|
2
packages/cache/lib/src/cache_service.dart
vendored
2
packages/cache/lib/src/cache_service.dart
vendored
|
@ -1,6 +1,6 @@
|
|||
import 'dart:async';
|
||||
import 'package:collection/collection.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
|
||||
/// An Protevus [Service] that caches data from another service.
|
||||
///
|
||||
|
|
2
packages/cache/lib/src/serializer.dart
vendored
2
packages/cache/lib/src/serializer.dart
vendored
|
@ -1,5 +1,5 @@
|
|||
import 'dart:async';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
|
||||
/// A middleware that enables the caching of response serialization.
|
||||
///
|
||||
|
|
28
packages/cache/pubspec.yaml
vendored
28
packages/cache/pubspec.yaml
vendored
|
@ -1,4 +1,4 @@
|
|||
name: angel3_cache
|
||||
name: protevus_cache
|
||||
version: 8.2.0
|
||||
description: A service that provides HTTP caching to the response data for Protevus
|
||||
homepage: https://protevus-framework.web.app/
|
||||
|
@ -6,37 +6,37 @@ repository: https://github.com/dart-backend/protevus/tree/master/packages/cache
|
|||
environment:
|
||||
sdk: '>=3.4.0 <4.0.0'
|
||||
dependencies:
|
||||
angel3_framework: ^8.0.0
|
||||
protevus_framework: ^8.0.0
|
||||
collection: ^1.17.0
|
||||
meta: ^1.9.0
|
||||
pool: ^1.5.0
|
||||
logging: ^1.2.0
|
||||
dev_dependencies:
|
||||
angel3_test: ^8.0.0
|
||||
protevus_test: ^8.0.0
|
||||
glob: ^2.0.1
|
||||
http: ^1.0.0
|
||||
test: ^1.24.0
|
||||
lints: ^4.0.0
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# protevus_container:
|
||||
# path: ../container/angel_container
|
||||
# angel3_framework:
|
||||
# protevus_framework:
|
||||
# path: ../framework
|
||||
# angel3_http_exception:
|
||||
# protevus_http_exception:
|
||||
# path: ../http_exception
|
||||
# angel3_model:
|
||||
# protevus_model:
|
||||
# path: ../model
|
||||
# angel3_route:
|
||||
# protevus_route:
|
||||
# path: ../route
|
||||
# angel3_mock_request:
|
||||
# protevus_mock_request:
|
||||
# path: ../mock_request
|
||||
# angel3_test:
|
||||
# protevus_test:
|
||||
# path: ../test
|
||||
# angel3_websocket:
|
||||
# protevus_websocket:
|
||||
# path: ../websocket
|
||||
# angel3_client:
|
||||
# protevus_client:
|
||||
# path: ../client
|
||||
# angel3_auth:
|
||||
# protevus_auth:
|
||||
# path: ../auth
|
||||
# angel3_validate:
|
||||
# protevus_validate:
|
||||
# path: ../validate
|
6
packages/cache/test/cache_test.dart
vendored
6
packages/cache/test/cache_test.dart
vendored
|
@ -1,8 +1,8 @@
|
|||
import 'dart:async';
|
||||
import 'dart:io';
|
||||
import 'package:angel3_cache/angel3_cache.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:angel3_test/angel3_test.dart';
|
||||
import 'package:protevus_cache/protevus_cache.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import 'package:protevus_test/protevus_test.dart';
|
||||
import 'package:http/http.dart' as http;
|
||||
//import 'package:glob/glob.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Protevus Client
|
||||
|
||||
![Pub Version (including pre-releases)](https://img.shields.io/pub/v/angel3_client?include_prereleases)
|
||||
![Pub Version (including pre-releases)](https://img.shields.io/pub/v/protevus_client?include_prereleases)
|
||||
[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety)
|
||||
[![Discord](https://img.shields.io/discord/1060322353214660698)](https://discord.gg/3X6bxTUdCM)
|
||||
[![License](https://img.shields.io/github/license/dart-backend/protevus)](https://github.com/dart-backend/protevus/tree/master/packages/client/LICENSE)
|
||||
|
@ -11,9 +11,9 @@ A browser, mobile and command line based client that supports querying Protevus
|
|||
|
||||
```dart
|
||||
// Choose one or the other, depending on platform
|
||||
import 'package:angel3_client/io.dart';
|
||||
import 'package:angel3_client/browser.dart';
|
||||
import 'package:angel3_client/flutter.dart';
|
||||
import 'package:protevus_client/io.dart';
|
||||
import 'package:protevus_client/browser.dart';
|
||||
import 'package:protevus_client/flutter.dart';
|
||||
|
||||
main() async {
|
||||
Protevus app = Rest("http://localhost:3000");
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import 'package:angel3_client/io.dart' as c;
|
||||
import 'package:protevus_client/io.dart' as c;
|
||||
|
||||
void main() async {
|
||||
c.Protevus client = c.Rest('http://localhost:3000');
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import 'package:angel3_auth/angel3_auth.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:angel3_framework/http.dart';
|
||||
import 'package:protevus_auth/protevus_auth.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import 'package:protevus_framework/http.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
|
||||
void main() async {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'dart:async';
|
||||
import 'package:angel3_client/angel3_client.dart';
|
||||
import 'package:protevus_client/protevus_client.dart';
|
||||
|
||||
Future doSomething(Protevus app) async {
|
||||
var userService = app
|
||||
|
|
|
@ -3,7 +3,7 @@ import 'dart:convert';
|
|||
import 'package:http/http.dart';
|
||||
import 'package:path/path.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
import 'angel3_client.dart';
|
||||
import 'protevus_client.dart';
|
||||
|
||||
const Map<String, String> _readHeaders = {'Accept': 'application/json'};
|
||||
const Map<String, String> _writeHeaders = {
|
|
@ -6,10 +6,10 @@ import 'dart:async'
|
|||
import 'dart:html' show CustomEvent, Event, window;
|
||||
import 'dart:convert';
|
||||
import 'package:http/browser_client.dart' as http;
|
||||
import 'angel3_client.dart';
|
||||
import 'protevus_client.dart';
|
||||
// import 'auth_types.dart' as auth_types;
|
||||
import 'base_angel_client.dart';
|
||||
export 'angel3_client.dart';
|
||||
import 'base_protevus_client.dart';
|
||||
export 'protevus_client.dart';
|
||||
|
||||
/// Queries an Protevus server via REST.
|
||||
class Rest extends BaseProtevusClient {
|
||||
|
|
|
@ -3,8 +3,8 @@ library angel_client.flutter;
|
|||
|
||||
import 'dart:async';
|
||||
import 'package:http/http.dart' as http;
|
||||
import 'base_angel_client.dart';
|
||||
export 'angel3_client.dart';
|
||||
import 'base_protevus_client.dart';
|
||||
export 'protevus_client.dart';
|
||||
|
||||
/// Queries an Protevus server via REST.
|
||||
class Rest extends BaseProtevusClient {
|
||||
|
|
|
@ -6,9 +6,9 @@ import 'package:http/http.dart' as http;
|
|||
import 'package:belatuk_json_serializer/belatuk_json_serializer.dart' as god;
|
||||
import 'package:path/path.dart' as p;
|
||||
import 'package:logging/logging.dart';
|
||||
import 'angel3_client.dart';
|
||||
import 'base_angel_client.dart';
|
||||
export 'angel3_client.dart';
|
||||
import 'protevus_client.dart';
|
||||
import 'base_protevus_client.dart';
|
||||
export 'protevus_client.dart';
|
||||
|
||||
/// Queries an Protevus server via REST.
|
||||
class Rest extends BaseProtevusClient {
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
/// Client library for the Protevus framework.
|
||||
library angel3_client;
|
||||
library protevus_client;
|
||||
|
||||
import 'dart:async';
|
||||
import 'package:collection/collection.dart';
|
||||
import 'dart:convert';
|
||||
import 'package:http/http.dart' as http;
|
||||
//import 'package:logging/logging.dart';
|
||||
export 'package:angel3_http_exception/angel3_http_exception.dart';
|
||||
export 'package:protevus_http_exception/protevus_http_exception.dart';
|
||||
|
||||
/// A function that configures an [Protevus] client in some way.
|
||||
typedef ProtevusConfigurer = FutureOr<void> Function(Protevus app);
|
|
@ -1,4 +1,4 @@
|
|||
name: angel3_client
|
||||
name: protevus_client
|
||||
version: 8.2.0
|
||||
description: A browser, mobile and command line based client that supports querying Protevus servers
|
||||
homepage: https://protevus-framework.web.app/
|
||||
|
@ -6,7 +6,7 @@ repository: https://github.com/dart-backend/protevus/tree/master/packages/client
|
|||
environment:
|
||||
sdk: '>=3.3.0 <4.0.0'
|
||||
dependencies:
|
||||
angel3_http_exception: ^8.0.0
|
||||
protevus_http_exception: ^8.0.0
|
||||
belatuk_json_serializer: ^7.0.0
|
||||
collection: ^1.17.0
|
||||
http: ^1.0.0
|
||||
|
@ -14,11 +14,11 @@ dependencies:
|
|||
path: ^1.8.0
|
||||
logging: ^1.1.0
|
||||
dev_dependencies:
|
||||
angel3_framework: ^8.0.0
|
||||
angel3_model: ^8.0.0
|
||||
angel3_mock_request: ^8.0.0
|
||||
angel3_container: ^8.0.0
|
||||
angel3_auth: ^8.0.0
|
||||
protevus_framework: ^8.0.0
|
||||
protevus_model: ^8.0.0
|
||||
protevus_mock_request: ^8.0.0
|
||||
protevus_container: ^8.0.0
|
||||
protevus_auth: ^8.0.0
|
||||
async: ^2.11.0
|
||||
quiver: ^3.2.0
|
||||
build_runner: ^2.4.0
|
||||
|
@ -26,17 +26,17 @@ dev_dependencies:
|
|||
test: ^1.24.0
|
||||
lints: ^4.0.0
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# protevus_container:
|
||||
# path: ../container/angel_container
|
||||
# angel3_framework:
|
||||
# protevus_framework:
|
||||
# path: ../framework
|
||||
# angel3_http_exception:
|
||||
# protevus_http_exception:
|
||||
# path: ../http_exception
|
||||
# angel3_model:
|
||||
# protevus_model:
|
||||
# path: ../model
|
||||
# angel3_route:
|
||||
# protevus_route:
|
||||
# path: ../route
|
||||
# angel3_mock_request:
|
||||
# protevus_mock_request:
|
||||
# path: ../mock_request
|
||||
# angel3_auth:
|
||||
# protevus_auth:
|
||||
# path: ../auth
|
|
@ -1,7 +1,7 @@
|
|||
import 'package:angel3_auth/angel3_auth.dart';
|
||||
import 'package:angel3_client/io.dart' as c;
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:angel3_framework/http.dart';
|
||||
import 'package:protevus_auth/protevus_auth.dart';
|
||||
import 'package:protevus_client/io.dart' as c;
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import 'package:protevus_framework/http.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'dart:async';
|
||||
import 'package:angel3_client/base_angel_client.dart';
|
||||
import 'package:protevus_client/base_protevus_client.dart';
|
||||
import 'dart:convert';
|
||||
import 'package:http/src/base_client.dart' as http;
|
||||
import 'package:http/src/base_request.dart' as http;
|
||||
|
|
|
@ -2,10 +2,10 @@ import 'dart:async';
|
|||
|
||||
import 'package:async/async.dart';
|
||||
import 'dart:io';
|
||||
import 'package:angel3_client/io.dart' as c;
|
||||
import 'package:angel3_framework/angel3_framework.dart' as s;
|
||||
import 'package:angel3_framework/http.dart' as s;
|
||||
import 'package:angel3_container/mirrors.dart';
|
||||
import 'package:protevus_client/io.dart' as c;
|
||||
import 'package:protevus_framework/protevus_framework.dart' as s;
|
||||
import 'package:protevus_framework/http.dart' as s;
|
||||
import 'package:protevus_container/mirrors.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
void main() {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import 'package:angel3_model/angel3_model.dart';
|
||||
import 'package:protevus_model/protevus_model.dart';
|
||||
import 'package:quiver/core.dart';
|
||||
|
||||
class Postcard extends Model {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'dart:html';
|
||||
import 'package:angel3_client/browser.dart';
|
||||
import 'package:protevus_client/browser.dart';
|
||||
|
||||
/// Dummy app to ensure client works with DDC.
|
||||
void main() {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Protevus Configuration Loader
|
||||
|
||||
![Pub Version (including pre-releases)](https://img.shields.io/pub/v/angel3_configuration?include_prereleases)
|
||||
![Pub Version (including pre-releases)](https://img.shields.io/pub/v/protevus_configuration?include_prereleases)
|
||||
[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety)
|
||||
[![Discord](https://img.shields.io/discord/1060322353214660698)](https://discord.gg/3X6bxTUdCM)
|
||||
[![License](https://img.shields.io/github/license/dart-backend/protevus)](https://github.com/dart-backend/protevus/tree/master/packages/configuration/LICENSE)
|
||||
|
@ -21,7 +21,7 @@ In `pubspec.yaml`:
|
|||
|
||||
```yaml
|
||||
dependencies:
|
||||
angel3_configuration: ^6.0.0
|
||||
protevus_configuration: ^6.0.0
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
@ -63,7 +63,7 @@ Call `configuration()`. The loaded configuration will be available in your appli
|
|||
The former will allow you to search in a directory other than `config`, and the latter lets you
|
||||
override `$ANGEL_ENV` by specifying a specific configuration name to look for (i.e. `production`).
|
||||
|
||||
This package uses [`package:angel3_merge_map`](https://pub.dev/packages/angel3_merge_map)
|
||||
This package uses [`package:protevus_merge_map`](https://pub.dev/packages/protevus_merge_map)
|
||||
internally, so existing configurations can be deeply merged.
|
||||
|
||||
Example:
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import 'dart:async';
|
||||
|
||||
import 'package:angel3_configuration/angel3_configuration.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:protevus_configuration/protevus_configuration.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import 'package:file/local.dart';
|
||||
|
||||
Future<void> main() async {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
library angel3_configuration;
|
||||
library protevus_configuration;
|
||||
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import 'package:dotenv/dotenv.dart';
|
||||
import 'package:file/file.dart';
|
||||
import 'package:belatuk_merge_map/belatuk_merge_map.dart';
|
|
@ -1,4 +1,4 @@
|
|||
name: angel3_configuration
|
||||
name: protevus_configuration
|
||||
version: 8.2.0
|
||||
description: Automatic YAML application configuration loader for Protevus 3, with .env support.
|
||||
homepage: https://protevus-framework.web.app/
|
||||
|
@ -6,7 +6,7 @@ repository: https://github.com/dart-backend/protevus/tree/master/packages/config
|
|||
environment:
|
||||
sdk: '>=3.3.0 <4.0.0'
|
||||
dependencies:
|
||||
angel3_framework: ^8.0.0
|
||||
protevus_framework: ^8.0.0
|
||||
belatuk_merge_map: ^5.0.0
|
||||
dotenv: ^4.1.0
|
||||
file: ^7.0.0
|
||||
|
@ -18,15 +18,15 @@ dev_dependencies:
|
|||
belatuk_pretty_logging: ^6.0.0
|
||||
test: ^1.24.0
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# protevus_container:
|
||||
# path: ../container/angel_container
|
||||
# angel3_framework:
|
||||
# protevus_framework:
|
||||
# path: ../framework
|
||||
# angel3_http_exception:
|
||||
# protevus_http_exception:
|
||||
# path: ../http_exception
|
||||
# angel3_model:
|
||||
# protevus_model:
|
||||
# path: ../model
|
||||
# angel3_route:
|
||||
# protevus_route:
|
||||
# path: ../route
|
||||
# angel3_mock_request:
|
||||
# protevus_mock_request:
|
||||
# path: ../mock_request
|
|
@ -1,7 +1,7 @@
|
|||
import 'dart:async';
|
||||
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:angel3_configuration/angel3_configuration.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import 'package:protevus_configuration/protevus_configuration.dart';
|
||||
import 'package:belatuk_pretty_logging/belatuk_pretty_logging.dart';
|
||||
import 'package:file/local.dart';
|
||||
import 'package:io/ansi.dart';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Protevus Container
|
||||
|
||||
![Pub Version (including pre-releases)](https://img.shields.io/pub/v/angel3_container?include_prereleases)
|
||||
![Pub Version (including pre-releases)](https://img.shields.io/pub/v/protevus_container?include_prereleases)
|
||||
[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety)
|
||||
[![Discord](https://img.shields.io/discord/1060322353214660698)](https://discord.gg/3X6bxTUdCM)
|
||||
[![License](https://img.shields.io/github/license/dart-backend/protevus)](https://github.com/dart-backend/protevus/tree/master/packages/container/angel_container/LICENSE)
|
||||
|
@ -8,9 +8,9 @@
|
|||
A better IoC container for Protevus, ultimately allowing Protevus to be used with or without `dart:mirrors` package.
|
||||
|
||||
```dart
|
||||
import 'package:angel3_container/mirrors.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:angel3_framework/http.dart';
|
||||
import 'package:protevus_container/mirrors.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import 'package:protevus_framework/http.dart';
|
||||
|
||||
@Expose('/sales', middleware: [process1])
|
||||
class SalesController extends Controller {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import 'dart:async';
|
||||
|
||||
import 'package:angel3_container/angel3_container.dart';
|
||||
import 'package:angel3_container/mirrors.dart';
|
||||
import 'package:protevus_container/protevus_container.dart';
|
||||
import 'package:protevus_container/mirrors.dart';
|
||||
|
||||
Future<void> main() async {
|
||||
// Create a container instance.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import 'package:angel3_container/angel3_container.dart';
|
||||
import 'package:protevus_container/protevus_container.dart';
|
||||
|
||||
void main() {
|
||||
var reflector = const ThrowingReflector();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
library angel3_container;
|
||||
library protevus_container;
|
||||
|
||||
export 'src/container.dart';
|
||||
export 'src/empty/empty.dart';
|
|
@ -1,4 +1,4 @@
|
|||
import '../../angel3_container.dart';
|
||||
import '../../protevus_container.dart';
|
||||
|
||||
final Map<Symbol, String?> _symbolNames = <Symbol, String?>{};
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import 'package:angel3_container/src/container_const.dart';
|
||||
import 'package:protevus_container/src/container_const.dart';
|
||||
|
||||
import 'empty/empty.dart';
|
||||
import 'reflector.dart';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
name: angel3_container
|
||||
name: protevus_container
|
||||
version: 8.2.0
|
||||
description: Protevus hierarchical DI container, and pluggable backends for reflection.
|
||||
homepage: https://protevus-framework.web.app/
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import 'dart:async';
|
||||
|
||||
import 'package:angel3_container/angel3_container.dart';
|
||||
import 'package:protevus_container/protevus_container.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
void returnVoidFromAFunction(int x) {}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import 'package:angel3_container/angel3_container.dart';
|
||||
import 'package:protevus_container/protevus_container.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
void main() {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import 'package:angel3_container/angel3_container.dart';
|
||||
import 'package:protevus_container/protevus_container.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
void main() {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import 'package:angel3_container/angel3_container.dart';
|
||||
import 'package:protevus_container/protevus_container.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
void main() {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import 'dart:async';
|
||||
import 'package:angel3_container/angel3_container.dart';
|
||||
import 'package:angel3_container/mirrors.dart';
|
||||
import 'package:protevus_container/protevus_container.dart';
|
||||
import 'package:protevus_container/mirrors.dart';
|
||||
import 'package:test/test.dart';
|
||||
import 'common.dart';
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import 'package:angel3_container/angel3_container.dart';
|
||||
import 'package:protevus_container/protevus_container.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
void main() {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import 'package:angel3_container/angel3_container.dart';
|
||||
import 'package:protevus_container/protevus_container.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
void main() {
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
|
||||
## 3.0.1
|
||||
|
||||
* Updated `package:angel3_container`
|
||||
* Updated `package:protevus_container`
|
||||
|
||||
## 3.0.0
|
||||
|
||||
|
@ -52,7 +52,7 @@
|
|||
|
||||
* Migrated to support Dart >= 2.12 NNBD
|
||||
* Updated linter to `package:lints`
|
||||
* Updated to use `angel3_` packages
|
||||
* Updated to use `protevus_` packages
|
||||
|
||||
## 2.0.0
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
# Protevus Container Generator
|
||||
|
||||
![Pub Version (including pre-releases)](https://img.shields.io/pub/v/angel3_container_generator?include_prereleases)
|
||||
![Pub Version (including pre-releases)](https://img.shields.io/pub/v/protevus_container_generator?include_prereleases)
|
||||
[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety)
|
||||
[![Discord](https://img.shields.io/discord/1060322353214660698)](https://discord.gg/3X6bxTUdCM)
|
||||
[![License](https://img.shields.io/github/license/dart-backend/protevus)](https://github.com/dart-backend/protevus/tree/master/packages/container/angel3_container_generator/LICENSE)
|
||||
[![License](https://img.shields.io/github/license/dart-backend/protevus)](https://github.com/dart-backend/protevus/tree/master/packages/container/protevus_container_generator/LICENSE)
|
||||
|
||||
An alternative container for Protevus that uses `reflectable` package instead of `dart:mirrors` for reflection. However, `reflectable` has more limited relfection capabilities when compared to `dart:mirrors`.
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import 'dart:async';
|
||||
|
||||
import 'package:angel3_container/angel3_container.dart';
|
||||
import 'package:angel3_container_generator/angel3_container_generator.dart';
|
||||
import 'package:protevus_container/protevus_container.dart';
|
||||
import 'package:protevus_container_generator/protevus_container_generator.dart';
|
||||
|
||||
Future<void> main() async {
|
||||
// Create a container instance.
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
import 'dart:core';
|
||||
import 'dart:math' as prefix6;
|
||||
import 'package:angel3_container_generator/angel3_container_generator.dart'
|
||||
import 'package:protevus_container_generator/protevus_container_generator.dart'
|
||||
as prefix0;
|
||||
import 'package:reflectable/capability.dart' as prefix5;
|
||||
import 'package:reflectable/mirrors.dart' as prefix4;
|
||||
|
@ -6365,7 +6365,7 @@ final _data = <r.Reflectable, r.ReflectorData>{
|
|||
r.LibraryMirrorImpl(
|
||||
r'',
|
||||
Uri.parse(
|
||||
'package:angel3_container_generator/angel3_container_generator.dart'),
|
||||
'package:protevus_container_generator/protevus_container_generator.dart'),
|
||||
const prefix0.ContainedReflectable(),
|
||||
const <int>[0],
|
||||
{r'contained': () => prefix0.contained},
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import 'package:angel3_container/angel3_container.dart';
|
||||
import 'package:protevus_container/protevus_container.dart';
|
||||
import 'package:reflectable/reflectable.dart';
|
||||
|
||||
/// A [Reflectable] instance that can be used as an annotation on types to generate metadata for them.
|
|
@ -1,12 +1,12 @@
|
|||
name: angel3_container_generator
|
||||
name: protevus_container_generator
|
||||
version: 8.2.0
|
||||
description: Codegen support for using pkg:reflectable with pkg:angel3_container.
|
||||
description: Codegen support for using pkg:reflectable with pkg:protevus_container.
|
||||
homepage: https://protevus-framework.web.app/
|
||||
repository: https://github.com/dart-backend/protevus/tree/master/packages/container/angel_container_generator
|
||||
environment:
|
||||
sdk: '>=3.3.0 <4.0.0'
|
||||
dependencies:
|
||||
angel3_container: ^8.0.0
|
||||
protevus_container: ^8.0.0
|
||||
reflectable: ^4.0.0
|
||||
dev_dependencies:
|
||||
build_runner: ^2.4.0
|
||||
|
@ -14,5 +14,5 @@ dev_dependencies:
|
|||
test: ^1.24.0
|
||||
lints: ^4.0.0
|
||||
# dependency_overrides:
|
||||
# angel3_container:
|
||||
# protevus_container:
|
||||
# path: ../angel_container
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:angel3_container/angel3_container.dart';
|
||||
import 'package:angel3_container_generator/angel3_container_generator.dart';
|
||||
import 'package:protevus_container/protevus_container.dart';
|
||||
import 'package:protevus_container_generator/protevus_container_generator.dart';
|
||||
|
||||
import 'package:test/test.dart';
|
||||
import 'reflector_test.reflectable.dart';
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
|
||||
import 'dart:core';
|
||||
import 'dart:math' as prefix8;
|
||||
import 'package:angel3_container/src/reflector.dart' as prefix7;
|
||||
import 'package:angel3_container_generator/angel3_container_generator.dart'
|
||||
import 'package:protevus_container/src/reflector.dart' as prefix7;
|
||||
import 'package:protevus_container_generator/protevus_container_generator.dart'
|
||||
as prefix0;
|
||||
import 'package:reflectable/capability.dart' as prefix6;
|
||||
import 'package:reflectable/mirrors.dart' as prefix5;
|
||||
|
@ -7248,7 +7248,7 @@ final _data = <r.Reflectable, r.ReflectorData>{
|
|||
r.LibraryMirrorImpl(
|
||||
r'',
|
||||
Uri.parse(
|
||||
'asset:angel3_container_generator/test/reflector_test.dart'),
|
||||
'asset:protevus_container_generator/test/reflector_test.dart'),
|
||||
const prefix0.ContainedReflectable(),
|
||||
const <int>[43, 44, 45],
|
||||
{
|
||||
|
@ -7262,7 +7262,7 @@ final _data = <r.Reflectable, r.ReflectorData>{
|
|||
r.LibraryMirrorImpl(
|
||||
r'',
|
||||
Uri.parse(
|
||||
'package:angel3_container_generator/angel3_container_generator.dart'),
|
||||
'package:protevus_container_generator/protevus_container_generator.dart'),
|
||||
const prefix0.ContainedReflectable(),
|
||||
const <int>[0],
|
||||
{r'contained': () => prefix0.contained},
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
name: angel3_contracts
|
||||
name: protevus_contracts
|
||||
description: This package defines contracts for Protevus Platform
|
||||
version: 0.0.1
|
||||
homepage: https://protevus.com
|
||||
|
@ -10,7 +10,7 @@ environment:
|
|||
|
||||
# Add regular dependencies here.
|
||||
dependencies:
|
||||
# path: ^1.8.0
|
||||
path: ^1.8.0
|
||||
|
||||
dev_dependencies:
|
||||
lints: ^3.0.0
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Protevus Http Exception
|
||||
|
||||
![Pub Version (including pre-releases)](https://img.shields.io/pub/v/angel3_http_exception?include_prereleases)
|
||||
![Pub Version (including pre-releases)](https://img.shields.io/pub/v/protevus_http_exception?include_prereleases)
|
||||
[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety)
|
||||
[![Discord](https://img.shields.io/discord/1060322353214660698)](https://discord.gg/3X6bxTUdCM)
|
||||
[![License](https://img.shields.io/github/license/dart-backend/protevus)](https://github.com/dart-backend/protevus/tree/master/packages/http_exception/LICENSE)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import 'package:angel3_http_exception/angel3_http_exception.dart';
|
||||
import 'package:protevus_http_exception/protevus_http_exception.dart';
|
||||
|
||||
void main() =>
|
||||
throw ProtevusHttpException.notFound(message: "Can't find that page!");
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
library angel3_http_exception;
|
||||
library protevus_http_exception;
|
||||
|
||||
//import 'package:dart2_constant/convert.dart';
|
||||
import 'dart:convert';
|
|
@ -1,4 +1,4 @@
|
|||
name: angel3_http_exception
|
||||
name: protevus_http_exception
|
||||
version: 8.2.0
|
||||
description: Exception class that can be serialized to JSON and serialized to clients.
|
||||
homepage: https://protevus-framework.web.app/
|
||||
|
|
|
@ -84,7 +84,7 @@
|
|||
|
||||
## 4.2.1
|
||||
|
||||
* Updated `package:angel3_container`
|
||||
* Updated `package:protevus_container`
|
||||
|
||||
## 4.2.0
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
# Protevus Framework
|
||||
|
||||
[![Protevus Framework](../../angel3_logo.png)](https://github.com/dart-backend/protevus)
|
||||
[![Protevus Framework](../../protevus_logo.png)](https://github.com/dart-backend/protevus)
|
||||
|
||||
![Pub Version (including pre-releases)](https://img.shields.io/pub/v/angel3_framework?include_prereleases)
|
||||
![Pub Version (including pre-releases)](https://img.shields.io/pub/v/protevus_framework?include_prereleases)
|
||||
[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety)
|
||||
[![Discord](https://img.shields.io/discord/1060322353214660698)](https://discord.gg/3X6bxTUdCM)
|
||||
[![License](https://img.shields.io/github/license/dart-backend/protevus)](https://github.com/dart-backend/protevus/tree/master/packages/framework/LICENSE)
|
||||
|
@ -42,10 +42,10 @@ This package is the core package of [Protevus](https://github.com/dart-backend/p
|
|||
|
||||
1. Download and install [Dart](https://dart.dev/get-dart)
|
||||
|
||||
2. Install the [Protevus CLI](https://pub.dev/packages/angel3_cli):
|
||||
2. Install the [Protevus CLI](https://pub.dev/packages/protevus_cli):
|
||||
|
||||
```bash
|
||||
dart pub global activate angel3_cli
|
||||
dart pub global activate protevus_cli
|
||||
```
|
||||
|
||||
3. On terminal, create a new project:
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import 'package:angel3_container/mirrors.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:angel3_framework/http.dart';
|
||||
import 'package:protevus_container/mirrors.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import 'package:protevus_framework/http.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
|
||||
void main() async {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import 'dart:async';
|
||||
import 'dart:io';
|
||||
import 'package:angel3_container/mirrors.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:angel3_framework/http.dart';
|
||||
import 'package:protevus_container/mirrors.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import 'package:protevus_framework/http.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
|
||||
void main() async {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import 'dart:async';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:angel3_framework/http.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import 'package:protevus_framework/http.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
|
||||
Future<void> apiConfigurer(Protevus app) async {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import 'dart:io';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:angel3_framework/http.dart';
|
||||
import 'package:angel3_framework/http2.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import 'package:protevus_framework/http.dart';
|
||||
import 'package:protevus_framework/http2.dart';
|
||||
import 'package:file/local.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import 'dart:io';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:angel3_framework/http.dart';
|
||||
import 'package:angel3_framework/http2.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import 'package:protevus_framework/http.dart';
|
||||
import 'package:protevus_framework/http2.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
import 'common.dart';
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import 'dart:io';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:angel3_framework/http.dart';
|
||||
import 'package:angel3_framework/http2.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import 'package:protevus_framework/http.dart';
|
||||
import 'package:protevus_framework/http2.dart';
|
||||
import 'package:file/local.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import 'dart:async';
|
||||
import 'dart:io';
|
||||
import 'dart:isolate';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:angel3_framework/http.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import 'package:protevus_framework/http.dart';
|
||||
|
||||
void main() async {
|
||||
var x = 0;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import 'package:angel3_container/mirrors.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:angel3_framework/http.dart';
|
||||
import 'package:protevus_container/mirrors.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import 'package:protevus_framework/http.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
|
||||
void main() async {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import 'package:angel3_container/mirrors.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:angel3_framework/http.dart';
|
||||
import 'package:protevus_container/mirrors.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import 'package:protevus_framework/http.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
|
||||
void main() async {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:angel3_framework/http.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import 'package:protevus_framework/http.dart';
|
||||
|
||||
void main() async {
|
||||
var app = Protevus();
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import 'package:angel3_container/mirrors.dart';
|
||||
import 'package:angel3_framework/angel3_framework.dart';
|
||||
import 'package:angel3_framework/http.dart';
|
||||
import 'package:protevus_container/mirrors.dart';
|
||||
import 'package:protevus_framework/protevus_framework.dart';
|
||||
import 'package:protevus_framework/http.dart';
|
||||
|
||||
void main() async {
|
||||
var app = Protevus(reflector: MirrorsReflector());
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
/// An easily-extensible web server framework in Dart.
|
||||
library angel3_framework;
|
||||
|
||||
export 'package:angel3_http_exception/angel3_http_exception.dart';
|
||||
export 'package:angel3_model/angel3_model.dart';
|
||||
export 'package:angel3_route/angel3_route.dart';
|
||||
export 'src/core/core.dart';
|
7
packages/core/framework/lib/protevus_framework.dart
Normal file
7
packages/core/framework/lib/protevus_framework.dart
Normal file
|
@ -0,0 +1,7 @@
|
|||
/// An easily-extensible web server framework in Dart.
|
||||
library protevus_framework;
|
||||
|
||||
export 'package:protevus_http_exception/protevus_http_exception.dart';
|
||||
export 'package:protevus_model/protevus_model.dart';
|
||||
export 'package:protevus_route/protevus_route.dart';
|
||||
export 'src/core/core.dart';
|
|
@ -1,8 +1,8 @@
|
|||
library angel_framework.http.controller;
|
||||
|
||||
import 'dart:async';
|
||||
import 'package:angel3_container/angel3_container.dart';
|
||||
import 'package:angel3_route/angel3_route.dart';
|
||||
import 'package:protevus_container/protevus_container.dart';
|
||||
import 'package:protevus_route/protevus_route.dart';
|
||||
import 'package:meta/meta.dart';
|
||||
import 'package:recase/recase.dart';
|
||||
import '../core/core.dart';
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue