OLD | NEW |
| (Empty) |
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 | |
3 // BSD-style license that can be found in the LICENSE.md file. | |
4 | |
5 import 'package:immi/dart/immi_service_impl.dart'; | |
6 | |
7 import 'package:github_sample/src/commit_list_presenter.dart'; | |
8 import 'package:github_sample/src/commit_presenter.dart'; | |
9 import 'package:github_sample/src/github_services.dart'; | |
10 | |
11 import 'package:immi_samples/drawer.dart'; | |
12 import 'package:immi_samples/menu.dart'; | |
13 | |
14 main() { | |
15 var server = new Server('127.0.0.1', 8321); | |
16 var user = server.getUser('dartino'); | |
17 var repo = user.getRepository('sdk'); | |
18 | |
19 var menu = new Menu('Menu'); | |
20 var commits = new CommitListPresenter(repo); | |
21 var drawer = new Drawer(commits, left: menu); | |
22 | |
23 menu.add(new MenuItem('Dartino', () { drawer.center = commits; })); | |
24 | |
25 var impl = new ImmiServiceImpl(); | |
26 impl.add('DrawerPresenter', drawer); | |
27 | |
28 impl.run(); | |
29 server.close(); | |
30 } | |
OLD | NEW |