From eef55d0cdfd92168cb309d70223414dd6208704b Mon Sep 17 00:00:00 2001 From: thosakwe Date: Wed, 21 Dec 2016 17:05:11 -0500 Subject: [PATCH] Changed imports --- lib/angel.dart | 2 +- lib/src/config/config.dart | 4 +--- lib/src/config/plugins/plugins.dart | 2 +- lib/src/routes/controllers/auth.dart | 3 +-- lib/src/routes/controllers/controllers.dart | 2 +- lib/src/routes/routes.dart | 7 +------ lib/src/services/services.dart | 2 +- lib/src/services/user.dart | 3 +-- 8 files changed, 8 insertions(+), 17 deletions(-) diff --git a/lib/angel.dart b/lib/angel.dart index d8a008e..747a01a 100644 --- a/lib/angel.dart +++ b/lib/angel.dart @@ -2,7 +2,7 @@ library angel; import 'dart:async'; -import 'package:angel_framework/angel_framework.dart'; +import 'package:angel_common/angel_common.dart'; import 'src/config/config.dart' as configuration; import 'src/routes/routes.dart' as routes; import 'src/services/services.dart' as services; diff --git a/lib/src/config/config.dart b/lib/src/config/config.dart index 32df5a6..3e2454a 100644 --- a/lib/src/config/config.dart +++ b/lib/src/config/config.dart @@ -2,9 +2,7 @@ library angel.config; import 'dart:io'; -import 'package:angel_configuration/angel_configuration.dart'; -import 'package:angel_framework/angel_framework.dart'; -import 'package:angel_mustache/angel_mustache.dart'; +import 'package:angel_common/angel_common.dart'; import 'plugins/plugins.dart' as plugins; /// This is a perfect place to include configuration and load plug-ins. diff --git a/lib/src/config/plugins/plugins.dart b/lib/src/config/plugins/plugins.dart index e7b4162..30bd9ca 100644 --- a/lib/src/config/plugins/plugins.dart +++ b/lib/src/config/plugins/plugins.dart @@ -2,7 +2,7 @@ library angel.config.plugins; import 'dart:async'; -import 'package:angel_framework/angel_framework.dart'; +import 'package:angel_common/angel_common.dart'; Future configureServer(Angel app) async { // Include any plugins you have made here. diff --git a/lib/src/routes/controllers/auth.dart b/lib/src/routes/controllers/auth.dart index b5c37d4..6983024 100644 --- a/lib/src/routes/controllers/auth.dart +++ b/lib/src/routes/controllers/auth.dart @@ -1,7 +1,6 @@ library angel.routes.controllers.auth; -import 'package:angel_auth/angel_auth.dart'; -import 'package:angel_framework/angel_framework.dart'; +import 'package:angel_common/angel_common.dart'; import '../../services/user.dart'; @Expose('/api/auth') diff --git a/lib/src/routes/controllers/controllers.dart b/lib/src/routes/controllers/controllers.dart index 2db2604..bf03d6b 100644 --- a/lib/src/routes/controllers/controllers.dart +++ b/lib/src/routes/controllers/controllers.dart @@ -1,6 +1,6 @@ library angel.routes.controllers; -import 'package:angel_framework/angel_framework.dart'; +import 'package:angel_common/angel_common.dart'; import 'auth.dart'; configureServer(Angel app) async { diff --git a/lib/src/routes/routes.dart b/lib/src/routes/routes.dart index 0b69d6f..876c027 100644 --- a/lib/src/routes/routes.dart +++ b/lib/src/routes/routes.dart @@ -1,12 +1,7 @@ /// This app's route configuration. library angel.routes; -import 'package:angel_compress/angel_compress.dart'; -import 'package:angel_cors/angel_cors.dart'; -import 'package:angel_errors/angel_errors.dart'; -import 'package:angel_framework/angel_framework.dart'; -import 'package:angel_proxy/angel_proxy.dart'; -import 'package:angel_static/angel_static.dart'; +import 'package:angel_common/angel_common.dart'; import 'controllers/controllers.dart' as Controllers; configureBefore(Angel app) async { diff --git a/lib/src/services/services.dart b/lib/src/services/services.dart index 025a919..3deae45 100644 --- a/lib/src/services/services.dart +++ b/lib/src/services/services.dart @@ -1,7 +1,7 @@ /// Declare services here! library angel.services; -import 'package:angel_framework/angel_framework.dart'; +import 'package:angel_common/angel_common.dart'; import 'package:mongo_dart/mongo_dart.dart'; import 'user.dart' as User; diff --git a/lib/src/services/user.dart b/lib/src/services/user.dart index 2585836..8f44977 100644 --- a/lib/src/services/user.dart +++ b/lib/src/services/user.dart @@ -1,5 +1,4 @@ -import 'package:angel_framework/angel_framework.dart'; -import 'package:angel_mongo/angel_mongo.dart'; +import 'package:angel_common/angel_common.dart'; import 'package:crypto/crypto.dart' show sha256; import 'package:mongo_dart/mongo_dart.dart'; import 'package:validate/validate.dart';