├── .atomignore ├── serve.sh ├── .bazelrc ├── web ├── sw-import.js ├── images │ └── logo.png ├── main.dart └── index.html ├── .gitignore ├── .analysis_options ├── README.md ├── test ├── todo_test.html └── todo_test.dart ├── lib └── index.dart ├── todo_common ├── pubspec.yaml └── lib │ └── model.dart ├── todo_main ├── pubspec.yaml ├── lib │ ├── todo_list.html │ ├── todo_list.dart │ ├── todo_main.html │ └── todo_main.dart └── pubspec.lock ├── todo_renderer ├── pubspec.yaml ├── pubspec.lock └── lib │ ├── todo_renderer.html │ └── todo_renderer.dart ├── pubspec.yaml └── pubspec.lock /.atomignore: -------------------------------------------------------------------------------- 1 | bazel-* 2 | 3 | -------------------------------------------------------------------------------- /serve.sh: -------------------------------------------------------------------------------- 1 | ( cd bazel-bin ; serve ) 2 | -------------------------------------------------------------------------------- /.bazelrc: -------------------------------------------------------------------------------- 1 | build --worker_max_instances=1 --strategy=Polymerize=worker 2 | -------------------------------------------------------------------------------- /web/sw-import.js: -------------------------------------------------------------------------------- 1 | importScripts('bower_components/platinum-sw/service-worker.js'); 2 | -------------------------------------------------------------------------------- /web/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/polymer-dart/todo_ddc/HEAD/web/images/logo.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | packages 2 | .packages 3 | bazel-* 4 | BUILD 5 | WORKSPACE 6 | .polymerize 7 | .pub 8 | build 9 | -------------------------------------------------------------------------------- /web/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:polymer_element/polymer_element.dart'; 2 | import 'package:todo_ddc/index.dart'; 3 | 4 | @entryPoint 5 | void main() => index(); 6 | -------------------------------------------------------------------------------- /.analysis_options: -------------------------------------------------------------------------------- 1 | analyzer: 2 | strong-mode: true 3 | # language: 4 | # enableConditionalDirectives: true 5 | exclude: 6 | - bazel-*/** 7 | - WORKSPACE 8 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Sample mini todo APP for Polymer2-Dart-DDC Project 2 | 3 | This is a very sample dart polymer-2 (polymerized) project to demostrate 4 | how to use `polymerize` to build polymer-2 apps using Dart.. 5 | 6 | ## How to build 7 | 8 | 1. update deps with `pub get` 9 | 2. run `pub build` 10 | 11 | 12 | ## How to run the project 13 | 14 | 1. do a `pub serve` 15 | 2. Open a browser on `http://localhost:8080` 16 | 17 | 18 | -------------------------------------------------------------------------------- /test/todo_test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 |53 | Please confirm if you want to delete this note... 54 |
55 | 59 |