Updated to lints linter
This commit is contained in:
parent
09acfe8a4c
commit
6325185f4e
31 changed files with 36 additions and 133 deletions
2
TODO.md
2
TODO.md
|
@ -5,6 +5,8 @@
|
|||
* Update examples
|
||||
* Update User Guide
|
||||
* Fix bugs
|
||||
* `angel3_oauth2` failed test cases
|
||||
* `angel3_proxy` failed test cases
|
||||
|
||||
## Long Term Goal
|
||||
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/.pub" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" name="Dart SDK" level="project" />
|
||||
<orderEntry type="library" name="Dart Packages" level="project" />
|
||||
</component>
|
||||
</module>
|
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/file_service.iml" filepath="$PROJECT_DIR$/.idea/file_service.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
|
@ -1,5 +1,9 @@
|
|||
# Change Log
|
||||
|
||||
## 3.1.1
|
||||
|
||||
* Updated README
|
||||
|
||||
## 3.1.0
|
||||
|
||||
* Updated linter to `package:lints`
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# Mustache View Template for Angel3
|
||||
|
||||
![Pub Version (including pre-releases)](https://img.shields.io/pub/v/angel3_mustache?include_prereleases)
|
||||
[![version](https://img.shields.io/badge/pub-v3.0.0-brightgreen)](https://pub.dartlang.org/packages/angel3_mustache)
|
||||
[![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/master/packages/mustache/LICENSE)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel3_mustache
|
||||
version: 3.1.0
|
||||
version: 3.1.1
|
||||
description: A service that renders Mustache template into HTML view for Angel3
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/mustache
|
||||
|
|
BIN
packages/oauth2/.DS_Store
vendored
BIN
packages/oauth2/.DS_Store
vendored
Binary file not shown.
|
@ -1,15 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/.dart_tool" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/.pub" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" name="Dart SDK" level="project" />
|
||||
<orderEntry type="library" name="Dart Packages" level="project" />
|
||||
</component>
|
||||
</module>
|
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/auth_oauth2_server.iml" filepath="$PROJECT_DIR$/.idea/auth_oauth2_server.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
|
@ -1,8 +0,0 @@
|
|||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="tests in auth_oauth2_server" type="DartTestRunConfigurationType" factoryName="Dart Test" singleton="true" nameIsGenerated="true">
|
||||
<option name="filePath" value="$PROJECT_DIR$" />
|
||||
<option name="scope" value="FOLDER" />
|
||||
<option name="testRunnerOptions" value="-j 4" />
|
||||
<method />
|
||||
</configuration>
|
||||
</component>
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
|
@ -1,5 +1,9 @@
|
|||
# Change Log
|
||||
|
||||
## 4.1.1
|
||||
|
||||
* Updated README
|
||||
|
||||
## 4.1.0
|
||||
|
||||
* Updated linter to `package:lints`
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# Angel3 OAuth2 Server
|
||||
|
||||
![Pub Version (including pre-releases)](https://img.shields.io/pub/v/angel3_oauth2?include_prereleases)
|
||||
[![version](https://img.shields.io/badge/pub-v4.0.0-brightgreen)](https://pub.dartlang.org/packages/angel3_oauth2)
|
||||
[![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/master/packages/oauth2/LICENSE)
|
||||
|
@ -22,7 +21,7 @@ In your `pubspec.yaml`:
|
|||
```yaml
|
||||
dependencies:
|
||||
angel3_framework: ^4.2.0
|
||||
angel3_oauth2: ^4.0.0
|
||||
angel3_oauth2: ^4.1.0
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel3_oauth2
|
||||
version: 4.1.0
|
||||
version: 4.1.1
|
||||
description: A class containing handlers that can be used within Angel to build a spec-compliant OAuth 2.0 server.
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/oauth2
|
||||
|
|
|
@ -62,7 +62,7 @@ void main() {
|
|||
test('show authorization form', () async {
|
||||
var grant = createGrant();
|
||||
var url = grant.getAuthorizationUrl(redirectUri, state: 'hello');
|
||||
var response = await testClient.client!.get(url);
|
||||
var response = await testClient.client.get(url);
|
||||
print('Body: ${response.body}');
|
||||
expect(
|
||||
response.body,
|
||||
|
@ -73,7 +73,7 @@ void main() {
|
|||
test('preserves state', () async {
|
||||
var grant = createGrant();
|
||||
var url = grant.getAuthorizationUrl(redirectUri, state: 'goodbye');
|
||||
var response = await testClient.client!.get(url);
|
||||
var response = await testClient.client.get(url);
|
||||
print('Body: ${response.body}');
|
||||
expect(json.decode(response.body)['state'], 'goodbye');
|
||||
});
|
||||
|
@ -81,7 +81,7 @@ void main() {
|
|||
test('sends auth code', () async {
|
||||
var grant = createGrant();
|
||||
var url = grant.getAuthorizationUrl(redirectUri);
|
||||
var response = await testClient.client!.get(url);
|
||||
var response = await testClient.client.get(url);
|
||||
print('Body: ${response.body}');
|
||||
expect(
|
||||
json.decode(response.body),
|
||||
|
@ -95,7 +95,7 @@ void main() {
|
|||
test('exchange code for token', () async {
|
||||
var grant = createGrant();
|
||||
var url = grant.getAuthorizationUrl(redirectUri);
|
||||
var response = await testClient.client!.get(url);
|
||||
var response = await testClient.client.get(url);
|
||||
print('Body: ${response.body}');
|
||||
|
||||
var authCode = json.decode(response.body)['code'].toString();
|
||||
|
@ -106,7 +106,7 @@ void main() {
|
|||
test('can send refresh token', () async {
|
||||
var grant = createGrant();
|
||||
var url = grant.getAuthorizationUrl(redirectUri, state: 'can_refresh');
|
||||
var response = await testClient.client!.get(url);
|
||||
var response = await testClient.client.get(url);
|
||||
print('Body: ${response.body}');
|
||||
|
||||
var authCode = json.decode(response.body)['code'].toString();
|
||||
|
@ -152,7 +152,7 @@ class _Server extends AuthorizationServer<PseudoApplication, Map> {
|
|||
}
|
||||
|
||||
var authCode = _uuid.v4();
|
||||
var authCodes = req.container!.make<AuthCodes>()!;
|
||||
var authCodes = req.container!.make<AuthCodes>();
|
||||
authCodes[authCode] = state;
|
||||
|
||||
res.headers['content-type'] = 'application/json';
|
||||
|
@ -168,7 +168,7 @@ class _Server extends AuthorizationServer<PseudoApplication, Map> {
|
|||
String? redirectUri,
|
||||
RequestContext req,
|
||||
ResponseContext res) async {
|
||||
var authCodes = req.container!.make<AuthCodes>()!;
|
||||
var authCodes = req.container!.make<AuthCodes>();
|
||||
var state = authCodes[authCode!];
|
||||
var refreshToken = state == 'can_refresh' ? '${authCode}_refresh' : null;
|
||||
return AuthorizationTokenResponse('${authCode}_access',
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/paginate.iml" filepath="$PROJECT_DIR$/.idea/paginate.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
|
@ -1,18 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/.pub" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/packages" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/test/packages" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" name="Dart SDK" level="project" />
|
||||
<orderEntry type="library" name="Dart Packages" level="project" />
|
||||
</component>
|
||||
</module>
|
|
@ -1,7 +0,0 @@
|
|||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="All Tests" type="DartCommandLineRunConfigurationType" factoryName="Dart Command Line Application" singleton="true">
|
||||
<option name="checkedMode" value="false" />
|
||||
<option name="filePath" value="$PROJECT_DIR$/test/all_test.dart" />
|
||||
<method />
|
||||
</configuration>
|
||||
</component>
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
|
@ -1,7 +1,6 @@
|
|||
# Angel3 Paginate
|
||||
|
||||
![Pub Version (including pre-releases)](https://img.shields.io/pub/v/angel3_paginate?include_prereleases)
|
||||
[![version](https://img.shields.io/badge/pub-v3.0.1-brightgreen)](https://pub.dartlang.org/packages/angel3_paginate)
|
||||
[![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/master/packages/paginate/LICENSE)
|
||||
|
|
|
@ -6,9 +6,9 @@ repository: https://github.com/dukefirehawk/angel/tree/master/packages/paginate
|
|||
environment:
|
||||
sdk: '>=2.12.0 <3.0.0'
|
||||
dependencies:
|
||||
angel3_framework: ^4.0.0
|
||||
angel3_framework: ^4.2.0
|
||||
dev_dependencies:
|
||||
angel3_test: ^4.0.0
|
||||
angel3_test: ^4.1.0
|
||||
logging: ^1.0.1
|
||||
test: ^1.17.8
|
||||
lints: ^1.0.0
|
|
@ -1,7 +1,6 @@
|
|||
# Angel3 Proxy
|
||||
|
||||
![Pub Version (including pre-releases)](https://img.shields.io/pub/v/angel3_proxy?include_prereleases)
|
||||
[![version](https://img.shields.io/badge/pub-v4.0.1-brightgreen)](https://pub.dartlang.org/packages/angel3_proxy)
|
||||
[![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/master/packages/proxy/LICENSE)
|
||||
|
|
|
@ -11,8 +11,8 @@ dependencies:
|
|||
http_parser: ^4.0.0
|
||||
path: ^1.8.0
|
||||
dev_dependencies:
|
||||
angel3_test: ^4.0.0
|
||||
angel3_mock_request: ^2.0.0
|
||||
angel3_test: ^4.1.0
|
||||
angel3_mock_request: ^2.1.0
|
||||
logging: ^1.0.1
|
||||
lints: ^1.0.0
|
||||
test: ^1.17.7
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
# Change Log
|
||||
|
||||
## 3.0.1
|
||||
|
||||
* Updated README
|
||||
|
||||
## 3.0.0
|
||||
|
||||
* Updated linter to `package:lints`
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# A Sembast Persistent Service for Angel3
|
||||
# Sembast Persistent Service for Angel3
|
||||
|
||||
![Pub Version (including pre-releases)](https://img.shields.io/pub/v/angel3_sembast?include_prereleases)
|
||||
[![version](https://img.shields.io/badge/pub-v2.0.1-brightgreen)](https://pub.dartlang.org/packages/angel3_sembast)
|
||||
[![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/master/packages/sembast/LICENSE)
|
||||
|
@ -14,7 +13,7 @@ Add the following to your `pubspec.yaml`:
|
|||
|
||||
```yaml
|
||||
dependencies:
|
||||
angel3_sembast: ^2.1.0
|
||||
angel3_sembast: ^3.0.0
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel3_sembast
|
||||
version: 3.0.0
|
||||
version: 3.0.1
|
||||
description: A plugin service that persist data to Sembast for Angel3 framework.
|
||||
homepage: https://angel3-framework.web.app/
|
||||
repository: https://github.com/dukefirehawk/angel/tree/master/packages/sembast
|
||||
|
@ -9,7 +9,7 @@ dependencies:
|
|||
angel3_framework: ^4.2.0
|
||||
sembast: ^3.1.1
|
||||
dev_dependencies:
|
||||
angel3_http_exception: ^3.0.0
|
||||
angel3_http_exception: ^3.1.0
|
||||
logging: ^1.0.1
|
||||
lints: ^1.0.0
|
||||
test: ^1.17.8
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# Angel3 SEO
|
||||
|
||||
![Pub Version (including pre-releases)](https://img.shields.io/pub/v/angel3_seo?include_prereleases)
|
||||
[![version](https://img.shields.io/badge/pub-v4.0.0-brightgreen)](https://pub.dartlang.org/packages/angel3_seo)
|
||||
[![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/master/packages/seo/LICENSE)
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
## 4.1.0
|
||||
|
||||
* Updated linter to `package:lints`
|
||||
* Updated `build_runner` to major version 2.1.0
|
||||
* Updated `build_web_compilers` to major version 3.2.0
|
||||
|
||||
## 4.0.2
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# Angel3 Request Validator
|
||||
|
||||
![Pub Version (including pre-releases)](https://img.shields.io/pub/v/angel3_validate?include_prereleases)
|
||||
[![version](https://img.shields.io/badge/pub-v4.0.2-brightgreen)](https://pub.dartlang.org/packages/angel3_validate)
|
||||
[![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/master/packages/validate/LICENSE)
|
||||
|
|
|
@ -12,8 +12,8 @@ dependencies:
|
|||
dev_dependencies:
|
||||
#angel3_test:
|
||||
angel3_mock_request: ^2.0.0
|
||||
build_runner: ^1.11.1
|
||||
build_web_compilers: ^2.12.2
|
||||
build_runner: ^2.1.0
|
||||
build_web_compilers: ^3.2.0
|
||||
logging: ^1.0.1
|
||||
lints: ^1.0.0
|
||||
test: ^1.17.4
|
Loading…
Reference in a new issue