Publish route

This commit is contained in:
thomashii 2021-05-15 14:01:47 +08:00
parent 6bd1f07308
commit 9d6b630c42
12 changed files with 35 additions and 51 deletions

View file

@ -1,23 +1,20 @@
# angel_client # angel3_client
[![version](https://img.shields.io/badge/pub-v2.12.4-brightgreen)](https://pub.dartlang.org/packages/angel3_client)
[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety)
[![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion)
[![Pub](https://img.shields.io/pub/v/angel_client.svg)](https://pub.dartlang.org/packages/angel_client) [![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/angel3/packages/client/LICENSE)
[![build status](https://travis-ci.org/angel-dart/client.svg)](https://travis-ci.org/angel-dart/client)
Client library for the Angel framework.
This library provides virtually the same API as an Angel server.
The client can run in the browser, in Flutter, or on the command-line.
In addition, the client supports `angel_auth` authentication.
# Usage # Usage
```dart ```dart
// Choose one or the other, depending on platform // Choose one or the other, depending on platform
import 'package:angel_client/io.dart'; import 'package:angel3_client/io.dart';
import 'package:angel_client/browser.dart'; import 'package:angel3_client/browser.dart';
import 'package:angel_client/flutter.dart'; import 'package:angel3_client/flutter.dart';
main() async { main() async {
Angel app = new Rest("http://localhost:3000"); Angel app = Rest("http://localhost:3000");
} }
``` ```
@ -33,7 +30,7 @@ foo() async {
} }
``` ```
The CLI client also supports reflection via `json_god`. There is no need to work with Maps; The CLI client also supports reflection via `angel3_json_god`. There is no need to work with Maps;
you can use the same class on the client and the server. you can use the same class on the client and the server.
```dart ```dart
@ -96,9 +93,9 @@ Use `ServiceList` for this case:
```dart ```dart
build(BuildContext context) async { build(BuildContext context) async {
var list = new ServiceList(app.service('api/todos')); var list = ServiceList(app.service('api/todos'));
return new StreamBuilder( return StreamBuilder(
stream: list.onChange, stream: list.onChange,
builder: _yourBuildFunction, builder: _yourBuildFunction,
); );

View file

@ -1,5 +1,5 @@
import 'dart:async'; import 'dart:async';
import 'package:angel_client/angel_client.dart'; import 'package:angel3_client/angel3_client.dart';
Future doSomething(Angel app) async { Future doSomething(Angel app) async {
var userService = app var userService = app

View file

@ -1,11 +1,11 @@
/// Client library for the Angel framework. /// Client library for the Angel framework.
library angel_client; library angel3_client;
import 'dart:async'; import 'dart:async';
import 'package:collection/collection.dart'; import 'package:collection/collection.dart';
import 'dart:convert'; import 'dart:convert';
import 'package:http/http.dart' as http; import 'package:http/http.dart' as http;
export 'package:angel_http_exception/angel_http_exception.dart'; export 'package:angel3_http_exception/angel3_http_exception.dart';
/// A function that configures an [Angel] client in some way. /// A function that configures an [Angel] client in some way.
typedef AngelConfigurer = FutureOr<void> Function(Angel app); typedef AngelConfigurer = FutureOr<void> Function(Angel app);

View file

@ -1,44 +1,23 @@
name: angel_client name: angel3_client
version: 4.0.0 version: 4.0.0
description: Support for querying Angel servers in the browser, Flutter, and command-line. description: Support for querying Angel servers in the browser, Flutter, and command-line.
homepage: https://github.com/dukefirehawk/angel homepage: https://github.com/dukefirehawk/angel/tree/angel3/packages/client
publish_to: none
environment: environment:
sdk: '>=2.12.0 <3.0.0' sdk: '>=2.12.0 <3.0.0'
dependencies: dependencies:
angel_http_exception: angel3_http_exception: ^3.0.0
git: angel3_json_god: ^4.0.0
url: https://github.com/dukefirehawk/angel.git
ref: sdk-2.12.x_nnbd
path: packages/http_exception
collection: ^1.15.0 collection: ^1.15.0
http: ^0.13.1 http: ^0.13.1
json_god:
git:
url: https://github.com/dukefirehawk/angel.git
ref: sdk-2.12.x_nnbd
path: packages/json_god
#dart_json_mapper: ^1.7.0 #dart_json_mapper: ^1.7.0
meta: ^1.3.0 meta: ^1.3.0
path: ^1.8.0 path: ^1.8.0
dev_dependencies: dev_dependencies:
angel_framework: angel3_framework: ^4.0.0
git: angel3_model: ^3.0.0
url: https://github.com/dukefirehawk/angel.git angel3_mock_request: ^2.0.0
ref: sdk-2.12.x_nnbd async: ^2.6.1
path: packages/framework
angel_model:
git:
url: https://github.com/dukefirehawk/angel.git
ref: sdk-2.12.x_nnbd
path: packages/model
async: ^2.5.0
build_runner: ^1.12.2 build_runner: ^1.12.2
build_web_compilers: ^2.16.5 build_web_compilers: ^2.16.5
mock_request:
git:
url: https://github.com/dukefirehawk/angel.git
ref: sdk-2.12.x_nnbd
path: packages/mock_request
pedantic: ^1.11.0 pedantic: ^1.11.0
test: ^1.17.3 test: ^1.17.4

View file

@ -1,6 +1,7 @@
# angel3_configuration # angel3_configuration
[![version](https://img.shields.io/badge/pub-v2.12.4-brightgreen)](https://pub.dartlang.org/packages/angel3_configuration) [![version](https://img.shields.io/badge/pub-v2.12.4-brightgreen)](https://pub.dartlang.org/packages/angel3_configuration)
[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety) [![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety)
[![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion)
[![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/angel3/packages/configuration/LICENSE) [![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/angel3/packages/configuration/LICENSE)

View file

@ -1,6 +1,7 @@
# angel3_container # angel3_container
[![version](https://img.shields.io/badge/pub-v2.12.4-brightgreen)](https://pub.dartlang.org/packages/angel3_container) [![version](https://img.shields.io/badge/pub-v2.12.4-brightgreen)](https://pub.dartlang.org/packages/angel3_container)
[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety) [![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety)
[![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion)
[![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/angel3/packages/container/angel_container/LICENSE) [![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/angel3/packages/container/angel_container/LICENSE)

View file

@ -1,6 +1,7 @@
# angel3_json_god # angel3_json_god
[![version](https://img.shields.io/badge/pub-v2.12.4-brightgreen)](https://pub.dartlang.org/packages/angel3_json_god) [![version](https://img.shields.io/badge/pub-v2.12.4-brightgreen)](https://pub.dartlang.org/packages/angel3_json_god)
[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety) [![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety)
[![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion)
[![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/angel3/packages/json_god/LICENSE) [![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/angel3/packages/json_god/LICENSE)
@ -34,7 +35,6 @@ print(json);
You can easily serialize classes, too. JSON God also supports classes as members. You can easily serialize classes, too. JSON God also supports classes as members.
```dart ```dart
import 'package:angel3_json_god/angel3_json_god.dart' as god;
class A { class A {
String foo; String foo;

View file

@ -1,6 +1,7 @@
# angel3_merge_map # angel3_merge_map
[![version](https://img.shields.io/badge/pub-v2.12.4-brightgreen)](https://pub.dartlang.org/packages/angel3_merge_map) [![version](https://img.shields.io/badge/pub-v2.12.4-brightgreen)](https://pub.dartlang.org/packages/angel3_merge_map)
[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety) [![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety)
[![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion)
[![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/angel3/packages/merge_map/LICENSE) [![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/angel3/packages/merge_map/LICENSE)

View file

@ -1,6 +1,7 @@
# angel3_mock_request # angel3_mock_request
[![version](https://img.shields.io/badge/pub-v2.12.4-brightgreen)](https://pub.dartlang.org/packages/angel3_mock_request) [![version](https://img.shields.io/badge/pub-v2.12.4-brightgreen)](https://pub.dartlang.org/packages/angel3_mock_request)
[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety) [![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety)
[![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion)
[![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/angel3/packages/mock_request/LICENSE) [![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/angel3/packages/mock_request/LICENSE)

View file

@ -1,3 +1,6 @@
# 5.0.1
* Updated README
# 5.0.0 # 5.0.0
* Migrated to support Dart SDK 2.12.x NNBD * Migrated to support Dart SDK 2.12.x NNBD

View file

@ -1,6 +1,7 @@
# angel3_route # angel3_route
[![version](https://img.shields.io/badge/pub-v2.12.4-brightgreen)](https://pub.dartlang.org/packages/angel3_route) [![version](https://img.shields.io/badge/pub-v5.0.1-brightgreen)](https://pub.dartlang.org/packages/angel3_route)
[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety) [![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety)
[![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion)
[![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/angel3/packages/route/LICENSE) [![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/angel3/packages/route/LICENSE)

View file

@ -1,5 +1,5 @@
name: angel3_route name: angel3_route
version: 5.0.0 version: 5.0.1
description: A powerful, isomorphic routing library for Dart. It is mainly used in the Angel framework, but can be used in Flutter and on the Web. description: A powerful, isomorphic routing library for Dart. It is mainly used in the Angel framework, but can be used in Flutter and on the Web.
homepage: https://github.com/dukefirehawk/angel/tree/angel3/packages/route homepage: https://github.com/dukefirehawk/angel/tree/angel3/packages/route
environment: environment: