From 74a2657e04f1b85b774fbf2c8a51c725202acd2b Mon Sep 17 00:00:00 2001 From: Zhicheng Wang Date: Fri, 25 Nov 2016 23:00:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=8A=E5=B0=8F=E6=8A=84=E7=9A=84=E5=8E=86?= =?UTF-8?q?=E5=8F=B2=E7=89=88=E6=9C=AC=E5=8A=A0=E5=85=A5=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E6=8E=A7=E5=88=B6=E4=B8=AD=EF=BC=8C=E4=BB=A5=E4=BE=BF=E8=AF=86?= =?UTF-8?q?=E5=88=AB=E6=94=B9=E5=8A=A8=20=E6=8A=8A=E5=B0=8F=E6=8A=84?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E5=88=B0=E6=9C=80=E6=96=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- public/docs/dart/latest/guide/cheatsheet.json | 527 ++++++++++++++++ public/docs/js/latest/guide/cheatsheet.json | 573 ++++++++++++++++++ .../docs/ts/latest/guide/cheatsheet-cn.json | 46 +- public/docs/ts/latest/guide/cheatsheet.json | 567 +++++++++++++++++ 5 files changed, 1691 insertions(+), 24 deletions(-) create mode 100644 public/docs/dart/latest/guide/cheatsheet.json create mode 100644 public/docs/js/latest/guide/cheatsheet.json create mode 100644 public/docs/ts/latest/guide/cheatsheet.json diff --git a/.gitignore b/.gitignore index df612cd56e..88bd33c2c8 100644 --- a/.gitignore +++ b/.gitignore @@ -28,7 +28,7 @@ plnkr.html *.eplnkr.html eplnkr.html *plnkr.no-link.html -public/docs/*/latest/guide/cheatsheet.json +#public/docs/*/latest/guide/cheatsheet.json protractor-results.txt link-checker-results.txt *a2docs.css diff --git a/public/docs/dart/latest/guide/cheatsheet.json b/public/docs/dart/latest/guide/cheatsheet.json new file mode 100644 index 0000000000..9042609175 --- /dev/null +++ b/public/docs/dart/latest/guide/cheatsheet.json @@ -0,0 +1,527 @@ +{ + "currentEnvironment": "Dart", + "version": { + "raw": "2.0.0-rc.4", + "major": 2, + "minor": 0, + "patch": 0, + "prerelease": [ + "local" + ], + "build": "sha.47eb31d", + "version": "2.0.0-local", + "codeName": "snapshot", + "isSnapshot": true, + "full": "2.0.0-local+sha.47eb31d", + "branch": "master", + "commitSHA": "47eb31ddb21465e0ba65c0c09a1a39d2a5a304c8" + }, + "sections": [ + { + "name": "Bootstrapping", + "description": "

\n\nimport 'package:angular2/platform/browser.dart';

\n", + "items": [ + { + "syntax": "bootstrap​(MyAppComponent, [MyService, { provide: ... }]);", + "bold": [ + "provide" + ], + "description": "

Bootstraps an application with MyAppComponent as the root component and configures the DI providers.

\n" + } + ], + "index": 0 + }, + { + "name": "Template syntax", + "description": "", + "items": [ + { + "syntax": "", + "bold": [ + "[value]" + ], + "description": "

Binds property value to the result of expression firstName.

\n" + }, + { + "syntax": "
", + "bold": [ + "[attr.role]" + ], + "description": "

Binds attribute role to the result of expression myAriaRole.

\n" + }, + { + "syntax": "
", + "bold": [ + "[class.extra-sparkle]" + ], + "description": "

Binds the presence of the CSS class extra-sparkle on the element to the truthiness of the expression isDelightful.

\n" + }, + { + "syntax": "
", + "bold": [ + "[style.width.px]" + ], + "description": "

Binds style property width to the result of expression mySize in pixels. Units are optional.

\n" + }, + { + "syntax": "