Skip to content

Commit 59da895

Browse files
committed
docs(demos): fix demos to have same class name and remove files that aren't needed anymore
references ionic-team#5311
1 parent f5a20d3 commit 59da895

30 files changed

Lines changed: 90 additions & 290 deletions

File tree

demos/blur/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,4 @@ import {App} from 'ionic/ionic';
33
@App({
44
templateUrl: 'main.html'
55
})
6-
7-
class DemoApp {
8-
blur() {
9-
}
10-
}
6+
class ApiDemoApp {}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ import {App} from 'ionic/ionic';
33
@App({
44
templateUrl: 'main.html'
55
})
6-
7-
class DemoApp {}
6+
class ApiDemoApp {}

demos/button/main.html

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
2+
<ion-toolbar>
3+
<ion-title>Button</ion-title>
4+
</ion-toolbar>
5+
6+
<ion-content text-center>
7+
8+
<h4>Colors</h4>
9+
10+
<button>Default</button>
11+
12+
<button secondary>Secondary</button>
13+
14+
<button danger>Danger</button>
15+
16+
<button light>Light</button>
17+
18+
<button dark>Dark</button>
19+
20+
<h4>Shapes</h4>
21+
22+
<button full>Full Button</button>
23+
24+
<button block>Block Button</button>
25+
26+
<button round>Round Button</button>
27+
28+
<button fab style="position: relative;">FAB</button>
29+
30+
<h4>Outlines</h4>
31+
32+
<button secondary full outline>Outline + Full</button>
33+
34+
<button secondary block outline>Outline + Block</button>
35+
36+
<button secondary round outline>Outline + Round</button>
37+
38+
<button secondary fab outline style="position: relative;">FAB</button>
39+
40+
<h4>Icons</h4>
41+
42+
<button dark>
43+
<ion-icon name="star"></ion-icon>
44+
Left Icon
45+
</button>
46+
47+
<button dark>
48+
Right Icon
49+
<ion-icon name="star"></ion-icon>
50+
</button>
51+
52+
<button dark>
53+
<ion-icon name="star"></ion-icon>
54+
</button>
55+
56+
<h4>Sizes</h4>
57+
58+
<button light large>Large</button>
59+
60+
<button light>Default</button>
61+
62+
<button light small>Small</button>
63+
64+
</ion-content>

demos/buttons/main.html

Lines changed: 0 additions & 103 deletions
This file was deleted.

demos/checkbox/app.html

Lines changed: 0 additions & 2 deletions
This file was deleted.

demos/checkbox/index.ts

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,6 @@
1-
import {App, Page, IonicApp} from 'ionic/ionic';
1+
import {App} from 'ionic/ionic';
22

33
@App({
4-
templateUrl: 'app.html'
5-
})
6-
class ApiDemoApp {
7-
8-
constructor() {
9-
this.rootPage = InitialPage;
10-
}
11-
}
12-
13-
@Page({
144
templateUrl: 'main.html'
155
})
16-
export class InitialPage {
17-
constructor() {
18-
}
19-
}
20-
6+
class ApiDemoApp {}

demos/config/index.html

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,6 @@
2020
</ion-app>
2121

2222
<script src="bundle.js"></script>
23-
<!-- <script src="../../js/ionic.bundle.js"></script>
24-
25-
<script>
26-
System.config({
27-
"paths": {
28-
"*": "*.js",
29-
"ionic/*": "ionic/*",
30-
"angular2/*": "angular2/*",
31-
"rx": "rx"
32-
}
33-
})
34-
System.import("index");
35-
</script> -->
3623

3724
</body>
3825
</html>

demos/hide-when/app.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

demos/hide-when/index.ts

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,6 @@
1-
import {App, Page, IonicApp} from 'ionic/ionic';
1+
import {App} from 'ionic/ionic';
22

33
@App({
4-
templateUrl: 'app.html'
5-
})
6-
class ApiDemoApp {
7-
8-
constructor() {
9-
this.rootPage = InitialPage;
10-
}
11-
}
12-
13-
@Page({
144
templateUrl: 'main.html'
155
})
16-
export class InitialPage {
17-
constructor() {
18-
}
19-
}
20-
6+
class ApiDemoApp {}

demos/label/app.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)