| OLD | NEW |
| 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import 'dart:convert'; | 5 import 'dart:convert'; |
| 6 | 6 |
| 7 import 'package:crypto/crypto.dart'; | 7 import 'package:crypto/crypto.dart'; |
| 8 import 'package:immi/dart/immi.dart'; | 8 import 'package:immi/dart/immi.dart'; |
| 9 | 9 |
| 10 // Export generated code for nodes in login_presenter.immi | 10 // Export generated code for nodes in login_presenter.immi |
| 11 import 'package:immi/dart/login_presenter.dart'; | 11 import 'package:immi/dart/login_presenter.dart'; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 void _handleResponse(String data) { | 49 void _handleResponse(String data) { |
| 50 // TODO(zarah): implement this and return depending on data. | 50 // TODO(zarah): implement this and return depending on data. |
| 51 state = new LoggedInStateNode(logout: logout, user: user); | 51 state = new LoggedInStateNode(logout: logout, user: user); |
| 52 } | 52 } |
| 53 | 53 |
| 54 void logout() { | 54 void logout() { |
| 55 state = new LoggedOutStateNode(login: login, message: ''); | 55 state = new LoggedOutStateNode(login: login, message: ''); |
| 56 } | 56 } |
| 57 } | 57 } |
| OLD | NEW |