diff --git a/lib/src/models/todo.g.dart b/lib/src/models/todo.g.dart index 274580a..42afe52 100644 --- a/lib/src/models/todo.g.dart +++ b/lib/src/models/todo.g.dart @@ -31,7 +31,7 @@ class Todo extends _Todo { bool isComplete, DateTime createdAt, DateTime updatedAt}) { - return new Todo( + return Todo( id: id ?? this.id, text: text ?? this.text, isComplete: isComplete ?? this.isComplete, @@ -67,7 +67,7 @@ class Todo extends _Todo { // SerializerGenerator // ************************************************************************** -const TodoSerializer todoSerializer = const TodoSerializer(); +const TodoSerializer todoSerializer = TodoSerializer(); class TodoEncoder extends Converter { const TodoEncoder(); @@ -91,7 +91,7 @@ class TodoSerializer extends Codec { @override get decoder => const TodoDecoder(); static Todo fromMap(Map map) { - return new Todo( + return Todo( id: map['id'] as String, text: map['text'] as String, isComplete: map['is_complete'] as bool, diff --git a/lib/src/routes/graphql/schema.dart b/lib/src/routes/graphql/schema.dart index b0b2742..82140d3 100644 --- a/lib/src/routes/graphql/schema.dart +++ b/lib/src/routes/graphql/schema.dart @@ -12,7 +12,7 @@ GraphQLSchema createSchema(Angel app) { var mutationType = objectType( 'TodoMutation', - fields: todoQueryFields(app), + fields: todoMutationFields(app), ); return graphQLSchema( diff --git a/views/hello.jael b/views/hello.jael index 7ca6b8a..a81fea3 100644 --- a/views/hello.jael +++ b/views/hello.jael @@ -1,5 +1,8 @@
Angel
+

+ Click here to access GraphiQL. +

\ No newline at end of file diff --git a/web/css/site.css b/web/css/site.css index 9e40b8d..3658009 100644 --- a/web/css/site.css +++ b/web/css/site.css @@ -11,6 +11,16 @@ body { font-family: 'Lato', sans-serif; } +a { + color: rgb(8, 114, 175) !important; + font-weight: 900; + text-decoration: none; +} + +p { + font-size: 1.3em; +} + .container { text-align: center; display: table-cell;