Permalink
Browse files

update to recent angular2, fix lifecycle, check in pubspec.lock which…

… was long overdue
  • Loading branch information...
burakemir committed Mar 5, 2016
1 parent bfadc41 commit f5e71818e2015eb4ba274d501a4f4691f6a3efea
Showing with 326 additions and 19 deletions.
  1. +4 −1 .gitignore
  2. +0 −1 lib/arrow_logo_app.dart
  3. +10 −7 lib/editor_panel.dart
  4. +8 −4 lib/graphics_panel.dart
  5. +304 −0 pubspec.lock
  6. +0 −6 web/arrowlogo.dart
View
@@ -1,6 +1,9 @@
packages
pubspec.lock
build
.packages
.pub
.project
.idea
arrow-logo.iml
*.swp
*.swo
View
@@ -15,7 +15,6 @@
library arrow_logo_app;
import 'package:angular2/angular2.dart';
import 'package:angular2/di.dart';
import 'console.dart';
import 'console_impl.dart';
View
@@ -53,7 +53,7 @@ div#editor, div#editorBackground {
}
input#load {
position: absolute;
display: none; /* TODO */
right: 5em;
bottom: 1em;
}
@@ -76,16 +76,19 @@ input#commit {
<div class="editor">
<div id="editorBackground" class="invisible"></div>
<div id="editor" class="invisible"></div>
<input id="load" type="file" value="" class="invisible"></input>
<input id="download" type="button" value="save" class="invisible"></input>
<input id="commit" type="button" value="ok" class="invisible"></input>
</div>
<input id="load" type="file" value="" class="invisible">
<input id="download" type="button" value="save" class="invisible">
<input id="commit" type="button" value="ok" class="invisible">
</div>
</div>
''')
class EditorPanel {
class EditorPanel implements OnInit {
ElementRef elementRef;
Console console;
EditorPanel(this.console, ElementRef elementRef) {
EditorPanel(this.console, this.elementRef);
@override
ngOnInit() {
console.init(elementRef.nativeElement);
}
}
View
@@ -18,8 +18,8 @@ import 'package:angular2/angular2.dart';
import "turtle.dart";
@Component(selector: 'graphics-panel')
@View(
@Component(
selector: 'graphics-panel',
template: '''
<style>
div.graphics_panel {
@@ -49,10 +49,14 @@ canvas#turtle {
<canvas id="turtle" width="600" height="540"></canvas>
</div>
''')
class GraphicsPanel {
class GraphicsPanel implements OnInit {
ElementRef elementRef;
TurtleWorker turtleWorker;
GraphicsPanel(this.turtleWorker, ElementRef elementRef) {
GraphicsPanel(this.turtleWorker, this.elementRef);
@override
ngOnInit() {
final userCanvas = elementRef.nativeElement.querySelector("#user");
final turtleCanvas = elementRef.nativeElement.querySelector("#turtle");
View
@@ -0,0 +1,304 @@
# Generated by pub
# See http://pub.dartlang.org/doc/glossary.html#lockfile
packages:
ace:
description:
name: ace
url: "https://pub.dartlang.org"
source: hosted
version: "0.7.0+3.4.15"
analyzer:
description:
name: analyzer
url: "https://pub.dartlang.org"
source: hosted
version: "0.27.2"
angular2:
description:
name: angular2
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0-beta.8"
args:
description:
name: args
url: "https://pub.dartlang.org"
source: hosted
version: "0.13.3+6"
async:
description:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0"
barback:
description:
name: barback
url: "https://pub.dartlang.org"
source: hosted
version: "0.15.2+7"
boolean_selector:
description:
name: boolean_selector
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
browser:
description:
name: browser
url: "https://pub.dartlang.org"
source: hosted
version: "0.10.0+2"
charcode:
description:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
cli_util:
description:
name: cli_util
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.1+2"
code_transformers:
description:
name: code_transformers
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.1"
collection:
description:
name: collection
url: "https://pub.dartlang.org"
source: hosted
version: "1.4.0"
crypto:
description:
name: crypto
url: "https://pub.dartlang.org"
source: hosted
version: "0.9.1"
csslib:
description:
name: csslib
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.2"
dart_style:
description:
name: dart_style
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.4"
fixnum:
description:
name: fixnum
url: "https://pub.dartlang.org"
source: hosted
version: "0.10.2"
func:
description:
name: func
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.0"
glob:
description:
name: glob
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
html:
description:
name: html
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.2+1"
http_multi_server:
description:
name: http_multi_server
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
http_parser:
description:
name: http_parser
url: "https://pub.dartlang.org"
source: hosted
version: "2.2.0"
intl:
description:
name: intl
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.7"
logging:
description:
name: logging
url: "https://pub.dartlang.org"
source: hosted
version: "0.11.2"
matcher:
description:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.0+1"
mime:
description:
name: mime
url: "https://pub.dartlang.org"
source: hosted
version: "0.9.3"
observe:
description:
name: observe
url: "https://pub.dartlang.org"
source: hosted
version: "0.13.4"
package_config:
description:
name: package_config
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.3"
path:
description:
name: path
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.9"
petitparser:
description:
name: petitparser
url: "https://pub.dartlang.org"
source: hosted
version: "1.5.1"
plugin:
description:
name: plugin
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.0"
pool:
description:
name: pool
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.1"
protobuf:
description:
name: protobuf
url: "https://pub.dartlang.org"
source: hosted
version: "0.5.0+1"
pub_semver:
description:
name: pub_semver
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.3"
shelf:
description:
name: shelf
url: "https://pub.dartlang.org"
source: hosted
version: "0.6.5"
shelf_static:
description:
name: shelf_static
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.3+3"
shelf_web_socket:
description:
name: shelf_web_socket
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.0"
smoke:
description:
name: smoke
url: "https://pub.dartlang.org"
source: hosted
version: "0.3.6"
source_map_stack_trace:
description:
name: source_map_stack_trace
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.4"
source_maps:
description:
name: source_maps
url: "https://pub.dartlang.org"
source: hosted
version: "0.10.1"
source_span:
description:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.2"
stack_trace:
description:
name: stack_trace
url: "https://pub.dartlang.org"
source: hosted
version: "1.6.1"
stream_channel:
description:
name: stream_channel
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.1"
string_scanner:
description:
name: string_scanner
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.4+1"
test:
description:
name: test
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.11+2"
utf:
description:
name: utf
url: "https://pub.dartlang.org"
source: hosted
version: "0.9.0+3"
watcher:
description:
name: watcher
url: "https://pub.dartlang.org"
source: hosted
version: "0.9.7"
web_socket_channel:
description:
name: web_socket_channel
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
when:
description:
name: when
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.0"
which:
description:
name: which
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.3"
yaml:
description:
name: yaml
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.8"
sdk: ">=1.14.0 <1.16.0"
Oops, something went wrong.

0 comments on commit f5e7181

Please sign in to comment.