This repository has been archived by the owner on May 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update web templates * add web-angular-quickstart * remove web-polymer * update web-angular * Update CHANGELING and version * make tests pass * tweak web-angular description * Fix copyright year.
- Loading branch information
Showing
32 changed files
with
287 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright (c) 2016, Google Inc. Please see the AUTHORS file for details. | ||
// All rights reserved. Use of this source code is governed by a BSD-style | ||
// license that can be found in the LICENSE file. | ||
|
||
import '../stagehand.dart'; | ||
import '../src/common.dart'; | ||
import 'web_angular_quickstart_data.dart'; | ||
|
||
/** | ||
* The QuickStart example used in AngularDart docs. | ||
*/ | ||
class WebAngularQuickstartGenerator extends DefaultGenerator { | ||
WebAngularQuickstartGenerator() | ||
: super('web-angular-quickstart', 'Angular QuickStart Example', | ||
'A minimalist example app used in docs.', | ||
categories: const ['dart', 'web']) { | ||
for (TemplateFile file in decodeConcatenatedData(data)) { | ||
addTemplateFile(file); | ||
} | ||
|
||
setEntrypoint(getFile('web/index.html')); | ||
} | ||
|
||
String getInstallInstructions() => "${super.getInstallInstructions()}\n" | ||
"to run your app, use 'pub serve'"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
// Copyright (c) 2014, Google Inc. Please see the AUTHORS file for details. | ||
// All rights reserved. Use of this source code is governed by a BSD-style | ||
// license that can be found in the LICENSE file. | ||
|
||
const List<String> data = const [ | ||
".analysis_options", | ||
"text", | ||
"""IyBUaGlzIGZpbGUgYWxsb3dzIHlvdSB0byBjb25maWd1cmUgdGhlIERhcnQgYW5hbHl6ZXIuCiMK | ||
IyBUaGUgY29tbWVudGVkIHBhcnQgYmVsb3cgaXMganVzdCBmb3IgaW5zcGlyYXRpb24uIFJlYWQg | ||
dGhlIGd1aWRlIGhlcmU6CiMgICBodHRwczovL3d3dy5kYXJ0bGFuZy5vcmcvZ3VpZGVzL2xhbmd1 | ||
YWdlL2FuYWx5c2lzLW9wdGlvbnMKCiMgYW5hbHl6ZXI6CiMgICBzdHJvbmctbW9kZTogdHJ1ZQoj | ||
ICAgZXhjbHVkZToKIyAgICAgLSBwYXRoL3RvL2V4Y2x1ZGVkL2ZpbGVzLyoqCiMgbGludGVyOgoj | ||
ICAgcnVsZXM6CiMgICAgICMgc2VlIGNhdGFsb2cgaGVyZTogaHR0cDovL2RhcnQtbGFuZy5naXRo | ||
dWIuaW8vbGludGVyL2xpbnRzLwojICAgICAtIGhhc2hfYW5kX2VxdWFscwo=""", | ||
".gitignore", | ||
"text", | ||
"""IyBGaWxlcyBhbmQgZGlyZWN0b3JpZXMgY3JlYXRlZCBieSBwdWIKLnBhY2thZ2VzCi5wdWIvCmJ1 | ||
aWxkLwpwYWNrYWdlcwojIFJlbW92ZSB0aGUgZm9sbG93aW5nIHBhdHRlcm4gaWYgeW91IHdpc2gg | ||
dG8gY2hlY2sgaW4geW91ciBsb2NrIGZpbGUKcHVic3BlYy5sb2NrCgojIEZpbGVzIGNyZWF0ZWQg | ||
YnkgZGFydDJqcwoqLmRhcnQuanMKKi5wYXJ0LmpzCiouanMuZGVwcwoqLmpzLm1hcAoqLmluZm8u | ||
anNvbgoKIyBEaXJlY3RvcnkgY3JlYXRlZCBieSBkYXJ0ZG9jCmRvYy9hcGkvCgojIEpldEJyYWlu | ||
cyBJREVzCi5pZGVhLwoqLmltbAoqLmlwcgoqLml3cwo=""", | ||
"lib/app_component.dart", | ||
"text", | ||
"""aW1wb3J0ICdwYWNrYWdlOmFuZ3VsYXIyL2NvcmUuZGFydCc7CgpAQ29tcG9uZW50KHNlbGVjdG9y | ||
OiAnbXktYXBwJywgdGVtcGxhdGU6ICc8aDE+SGVsbG8ge3tuYW1lfX08L2gxPicpCmNsYXNzIEFw | ||
cENvbXBvbmVudCB7CiAgdmFyIG5hbWUgPSAnQW5ndWxhcic7Cn0K""", | ||
"pubspec.yaml", | ||
"text", | ||
"""bmFtZTogX19wcm9qZWN0TmFtZV9fCmRlc2NyaXB0aW9uOiBRdWlja1N0YXJ0CnZlcnNpb246IDAu | ||
MC4xCmVudmlyb25tZW50OgogIHNkazogJz49MS4xOS4wIDwyLjAuMCcKZGVwZW5kZW5jaWVzOgog | ||
IGFuZ3VsYXIyOiBeMi4yLjAKZGV2X2RlcGVuZGVuY2llczoKICBicm93c2VyOiBeMC4xMC4wCiAg | ||
ZGFydF90b19qc19zY3JpcHRfcmV3cml0ZXI6IF4xLjAuMQp0cmFuc2Zvcm1lcnM6Ci0gYW5ndWxh | ||
cjI6CiAgICBwbGF0Zm9ybV9kaXJlY3RpdmVzOgogICAgLSAncGFja2FnZTphbmd1bGFyMi9jb21t | ||
b24uZGFydCNDT01NT05fRElSRUNUSVZFUycKICAgIHBsYXRmb3JtX3BpcGVzOgogICAgLSAncGFj | ||
a2FnZTphbmd1bGFyMi9jb21tb24uZGFydCNDT01NT05fUElQRVMnCiAgICBlbnRyeV9wb2ludHM6 | ||
IHdlYi9tYWluLmRhcnQKLSBkYXJ0X3RvX2pzX3NjcmlwdF9yZXdyaXRlcgo=""", | ||
"web/index.html", | ||
"text", | ||
"""PCFET0NUWVBFIGh0bWw+CjxodG1sPgogIDxoZWFkPgogICAgPHRpdGxlPkhlbGxvIEFuZ3VsYXI8 | ||
L3RpdGxlPgogICAgPG1ldGEgY2hhcnNldD0iVVRGLTgiPgogICAgPG1ldGEgbmFtZT0idmlld3Bv | ||
cnQiIGNvbnRlbnQ9IndpZHRoPWRldmljZS13aWR0aCwgaW5pdGlhbC1zY2FsZT0xIj4KICAgIDxs | ||
aW5rIHJlbD0ic3R5bGVzaGVldCIgaHJlZj0ic3R5bGVzLmNzcyI+CgogICAgPHNjcmlwdCBkZWZl | ||
ciBzcmM9Im1haW4uZGFydCIgdHlwZT0iYXBwbGljYXRpb24vZGFydCI+PC9zY3JpcHQ+CiAgICA8 | ||
c2NyaXB0IGRlZmVyIHNyYz0icGFja2FnZXMvYnJvd3Nlci9kYXJ0LmpzIj48L3NjcmlwdD4KICA8 | ||
L2hlYWQ+CiAgPGJvZHk+CiAgICA8bXktYXBwPkxvYWRpbmcgQXBwQ29tcG9uZW50IGNvbnRlbnQg | ||
aGVyZSAuLi48L215LWFwcD4KICA8L2JvZHk+CjwvaHRtbD4K""", | ||
"web/main.dart", | ||
"text", | ||
"""aW1wb3J0ICdwYWNrYWdlOmFuZ3VsYXIyL3BsYXRmb3JtL2Jyb3dzZXIuZGFydCc7CgppbXBvcnQg | ||
J3BhY2thZ2U6X19wcm9qZWN0TmFtZV9fL2FwcF9jb21wb25lbnQuZGFydCc7Cgp2b2lkIG1haW4o | ||
KSB7CiAgYm9vdHN0cmFwKEFwcENvbXBvbmVudCk7Cn0K""", | ||
"web/styles.css", | ||
"text", | ||
"""LyogTWFzdGVyIFN0eWxlcyAqLwpoMSB7CiAgY29sb3I6ICMzNjk7CiAgZm9udC1mYW1pbHk6IEFy | ||
aWFsLCBIZWx2ZXRpY2EsIHNhbnMtc2VyaWY7CiAgZm9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DdEOEI7CiAgbGluZS1oZWlnaHQ6IDFlbTsKICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgbGVm | ||
dDogLTFweDsKICB0b3A6IC00cHg7CiAgaGVpZ2h0OiAxLjhlbTsKICBtYXJnaW4tcmlnaHQ6IC44 | ||
ZW07CiAgYm9yZGVyLXJhZGl1czogNHB4IDAgMCA0cHg7Cn0KLyogZXZlcnl3aGVyZSBlbHNlICov | ||
CiogewogIGZvbnQtZmFtaWx5OiBBcmlhbCwgSGVsdmV0aWNhLCBzYW5zLXNlcmlmOwp9Cg==""" | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import 'package:angular2/core.dart'; | ||
|
||
@Component(selector: 'my-app', template: '<h1>Hello {{name}}</h1>') | ||
class AppComponent { | ||
var name = 'Angular'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: __projectName__ | ||
description: QuickStart | ||
version: 0.0.1 | ||
environment: | ||
sdk: '>=1.19.0 <2.0.0' | ||
dependencies: | ||
angular2: ^2.2.0 | ||
dev_dependencies: | ||
browser: ^0.10.0 | ||
dart_to_js_script_rewriter: ^1.0.1 | ||
transformers: | ||
- angular2: | ||
platform_directives: | ||
- 'package:angular2/common.dart#COMMON_DIRECTIVES' | ||
platform_pipes: | ||
- 'package:angular2/common.dart#COMMON_PIPES' | ||
entry_points: web/main.dart | ||
- dart_to_js_script_rewriter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Hello Angular</title> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="stylesheet" href="styles.css"> | ||
|
||
<script defer src="main.dart" type="application/dart"></script> | ||
<script defer src="packages/browser/dart.js"></script> | ||
</head> | ||
<body> | ||
<my-app>Loading AppComponent content here ...</my-app> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import 'package:angular2/platform/browser.dart'; | ||
|
||
import 'package:__projectName__/app_component.dart'; | ||
|
||
void main() { | ||
bootstrap(AppComponent); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
/* Master Styles */ | ||
h1 { | ||
color: #369; | ||
font-family: Arial, Helvetica, sans-serif; | ||
font-size: 250%; | ||
} | ||
h2, h3 { | ||
color: #444; | ||
font-family: Arial, Helvetica, sans-serif; | ||
font-weight: lighter; | ||
} | ||
body { | ||
margin: 2em; | ||
} | ||
body, input[text], button { | ||
color: #888; | ||
font-family: Cambria, Georgia; | ||
} | ||
a { | ||
cursor: pointer; | ||
cursor: hand; | ||
} | ||
button { | ||
font-family: Arial; | ||
background-color: #eee; | ||
border: none; | ||
padding: 5px 10px; | ||
border-radius: 4px; | ||
cursor: pointer; | ||
cursor: hand; | ||
} | ||
button:hover { | ||
background-color: #cfd8dc; | ||
} | ||
button:disabled { | ||
background-color: #eee; | ||
color: #aaa; | ||
cursor: auto; | ||
} | ||
|
||
/* Navigation link styles */ | ||
nav a { | ||
padding: 5px 10px; | ||
text-decoration: none; | ||
margin-top: 10px; | ||
display: inline-block; | ||
background-color: #eee; | ||
border-radius: 4px; | ||
} | ||
nav a:visited, a:link { | ||
color: #607D8B; | ||
} | ||
nav a:hover { | ||
color: #039be5; | ||
background-color: #CFD8DC; | ||
} | ||
nav a.active { | ||
color: #039be5; | ||
} | ||
|
||
/* items class */ | ||
.items { | ||
margin: 0 0 2em 0; | ||
list-style-type: none; | ||
padding: 0; | ||
width: 24em; | ||
} | ||
.items li { | ||
cursor: pointer; | ||
position: relative; | ||
left: 0; | ||
background-color: #EEE; | ||
margin: .5em; | ||
padding: .3em 0; | ||
height: 1.6em; | ||
border-radius: 4px; | ||
} | ||
.items li:hover { | ||
color: #607D8B; | ||
background-color: #DDD; | ||
left: .1em; | ||
} | ||
.items li.selected { | ||
background-color: #CFD8DC; | ||
color: white; | ||
} | ||
.items li.selected:hover { | ||
background-color: #BBD8DC; | ||
} | ||
.items .text { | ||
position: relative; | ||
top: -3px; | ||
} | ||
.items .badge { | ||
display: inline-block; | ||
font-size: small; | ||
color: white; | ||
padding: 0.8em 0.7em 0 0.7em; | ||
background-color: #607D8B; | ||
line-height: 1em; | ||
position: relative; | ||
left: -1px; | ||
top: -4px; | ||
height: 1.8em; | ||
margin-right: .8em; | ||
border-radius: 4px 0 0 4px; | ||
} | ||
/* everywhere else */ | ||
* { | ||
font-family: Arial, Helvetica, sans-serif; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.