Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {sandboxOf} from 'angular-playground';
import {PersonBioComponent} from './person-bio.component';
export default sandboxOf(PersonBioComponent, {label:'feature1.'})
export default sandboxOf(PersonBioComponent, {label:'feature1'})
.add('a special case', {template:`<h1>Special Bio</h1><ex-person-bio></ex-person-bio>`});
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {sandboxOf} from 'angular-playground';
import {PersonBioComponent} from './person-bio.component';
export default sandboxOf(PersonBioComponent, {label:'feature1.'})
export default sandboxOf(PersonBioComponent, {label:'feature1'})
.add('default', {template:`<ex-person-bio></ex-person-bio>`});
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { PersonDetailsComponent } from './person-details.component';
import { PersonBioComponent } from './person-bio.component';

export default sandboxOf(PersonDetailsComponent, {
label:'feature1.',
label:'feature1',
declarations: [PersonBioComponent]
})
.add('person with name and twitter', {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { PersonBioComponent } from './person-bio.component';
import { sandboxOf } from 'angular-playground';

export default sandboxOf(PersonBioComponent, {label:'shared.'})
export default sandboxOf(PersonBioComponent, {label:'shared'})
.add('no message', {
template:`<global-person-bio></global-person-bio>`
})
Expand Down
50 changes: 49 additions & 1 deletion examples/example-app-angular-cli/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,54 @@
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<ng-app>Loading...</ng-app>
<ng-app>
<style>
html {
background: #fff;
font-family: Arial, Helvetica, sans-serif;
}
ng-app {
display: flex;
flex-direction: column;
height: 100vh;
justify-content: center;
}
h1 {
color: #666;
font-size: 2.827em;
font-weight: normal;
padding: 1em 1em 3em;
text-align: center;
}
.loader,
.loader:after {
border-radius: 50%;
width: 10em;
height: 10em;
}
.loader {
display: block;
margin: 3.75rem auto;
font-size: 0.625rem;
position: relative;
border: 1.1em solid rgba(0, 0, 0, 0.05);
border-left: 1.1em solid #ccc;
transform: translateZ(0);
animation: loader 1.1s infinite linear;
}
@keyframes loader {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
</style>
<h1>
<span class="loader"></span>
Loading...
</h1>
</ng-app>
</body>
</html>
50 changes: 49 additions & 1 deletion examples/example-app-embed-mode/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,54 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<my-app>Loading...</my-app>
<my-app>
<style>
html {
background: #fff;
font-family: Arial, Helvetica, sans-serif;
}
my-app {
display: flex;
flex-direction: column;
height: 100vh;
justify-content: center;
}
h1 {
color: #666;
font-size: 2.827em;
font-weight: normal;
padding: 1em 1em 3em;
text-align: center;
}
.loader,
.loader:after {
border-radius: 50%;
width: 10em;
height: 10em;
}
.loader {
display: block;
margin: 3.75rem auto;
font-size: 0.625rem;
position: relative;
border: 1.1em solid rgba(0, 0, 0, 0.05);
border-left: 1.1em solid #ccc;
transform: translateZ(0);
animation: loader 1.1s infinite linear;
}
@keyframes loader {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
</style>
<h1>
<span class="loader"></span>
Loading...
</h1>
</my-app>
</body>
</html>
50 changes: 49 additions & 1 deletion examples/example-app-webpack/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,54 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<my-app>Loading...</my-app>
<my-app>
<style>
html {
background: #fff;
font-family: Arial, Helvetica, sans-serif;
}
my-app {
display: flex;
flex-direction: column;
height: 100vh;
justify-content: center;
}
h1 {
color: #666;
font-size: 2.827em;
font-weight: normal;
padding: 1em 1em 3em;
text-align: center;
}
.loader,
.loader:after {
border-radius: 50%;
width: 10em;
height: 10em;
}
.loader {
display: block;
margin: 3.75rem auto;
font-size: 0.625rem;
position: relative;
border: 1.1em solid rgba(0, 0, 0, 0.05);
border-left: 1.1em solid #ccc;
transform: translateZ(0);
animation: loader 1.1s infinite linear;
}
@keyframes loader {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
</style>
<h1>
<span class="loader"></span>
Loading...
</h1>
</my-app>
</body>
</html>
Loading