| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart 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 #library('Index'); | 5 #library('Index'); |
| 6 #import('dart:html'); |
| 6 #import('../../../../client/base/base.dart'); | 7 #import('../../../../client/base/base.dart'); |
| 7 #import('../../../../client/html/html.dart'); | |
| 8 #import('../../bcap/bcap.dart'); | 8 #import('../../bcap/bcap.dart'); |
| 9 #import('../../bcap/bcap_client.dart'); | 9 #import('../../bcap/bcap_client.dart'); |
| 10 | 10 |
| 11 | 11 |
| 12 class Index { | 12 class Index { |
| 13 final BelayClient belay; | 13 final BelayClient belay; |
| 14 | 14 |
| 15 final String GENERATE_CAP_URL = | 15 final String GENERATE_CAP_URL = |
| 16 "http://localhost:9014/belay/generateProfile"; | 16 "http://localhost:9014/belay/generateProfile"; |
| 17 | 17 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 29 genCap.post({ 'title': titleElt.value }, void _(launch) { | 29 genCap.post({ 'title': titleElt.value }, void _(launch) { |
| 30 belay.becomeInstance.put(launch, belay.sk, belay.fk); | 30 belay.becomeInstance.put(launch, belay.sk, belay.fk); |
| 31 }); | 31 }); |
| 32 } | 32 } |
| 33 } | 33 } |
| 34 | 34 |
| 35 void main() { | 35 void main() { |
| 36 BelayClient.main(_(belay) { new Index(belay); }); | 36 BelayClient.main(_(belay) { new Index(belay); }); |
| 37 } | 37 } |
| 38 | 38 |
| OLD | NEW |