Skip to content

Commit 6deb9c1

Browse files
committed
update demo site
1 parent f328267 commit 6deb9c1

File tree

32 files changed

+626
-327
lines changed

32 files changed

+626
-327
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
## Button Component
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Checkbox Component
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# FormComponent Decorator
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Date Filter
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Alert Module

demo/src/api/index.html

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

demo/src/api/index.ts

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

demo/src/demo/base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export abstract class Base extends Vue {
2828
if (!sources) return;
2929

3030
var html = this.$options.template;
31-
var src = sources[this.$route.path];
31+
var src = sources[this.$route.meta.id];
3232

3333
this['title'] = src.title;
3434
this['html'] = prettyHtml(src.html)

demo/src/demo/layout.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
<div class="demo-area">
22

3-
<div class="ui pink dividing header">
4-
<h2>{{title}}</h2>
5-
</div>
6-
73
<div class="example">
84
<example/>
95
</div>

demo/src/demo/routes.ts

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,31 +22,32 @@ import { Toastr } from './toastr';
2222

2323
// Main routes builder
2424
const m = [
25-
{ text: 'Form Basic', path: 'form/basic', component: FormBasic },
26-
{ text: 'Form Component', path: 'form/form-component', component: FormAdvanced },
27-
{ text: 'Input', path: 'input', component: Input },
28-
{ text: 'Numeric', path: 'numeric', component: Numeric },
29-
{ text: 'Currency', path: 'currency', component: Currency },
30-
{ text: 'Date', path: 'date', component: DateDemo },
31-
{ text: 'Time', path: 'time', component: Time },
32-
{ text: 'DateTime', path: 'datetime', component: DateTime },
33-
{ text: 'Tab', path: 'tab/basic', component: TabBasic },
34-
{ text: 'Tab Interactive', path: 'tab/interactive', component: TabInteractive },
35-
{ text: 'Buttons', path: 'button', component: Button },
36-
{ text: 'Radio', path: 'radio', component: Radio },
37-
{ text: 'Checkbox', path: 'checkbox', component: Checkbox },
38-
{ text: 'Dropdown', path: 'dropdown', component: Dropdown },
39-
{ text: 'Modal', path: 'modal', component: Modal },
40-
{ text: 'Tree', path: 'tree', component: Tree },
41-
{ text: 'Menu', path: 'menu', component: Menu },
42-
{ text: 'Message', path: 'message', component: Message },
43-
{ text: 'Alert', path: 'alert', component: Alert },
44-
{ text: 'Toastr', path: 'toastr', component: Toastr }
25+
{ group: 'component/form', text: 'Form Basic', path: 'form/basic', component: FormBasic },
26+
{ group: 'component/form', text: 'Form Component', path: 'form/form-component', component: FormAdvanced },
27+
{ group: 'component/input', text: 'Input', path: 'input', component: Input },
28+
{ group: 'component/numeric', text: 'Numeric', path: 'numeric', component: Numeric },
29+
{ group: 'component/currency', text: 'Currency', path: 'currency', component: Currency },
30+
{ group: 'component/date', text: 'Date', path: 'date', component: DateDemo },
31+
{ group: 'component/time', text: 'Time', path: 'time', component: Time },
32+
{ group: 'component/datetime', text: 'DateTime', path: 'datetime', component: DateTime },
33+
{ group: 'component/tab', text: 'Tab', path: 'tab/basic', component: TabBasic },
34+
{ group: 'component/tab', text: 'Tab Interactive', path: 'tab/interactive', component: TabInteractive },
35+
{ group: 'component/button', text: 'Buttons', path: 'button', component: Button },
36+
{ group: 'component/radio', text: 'Radio', path: 'radio', component: Radio },
37+
{ group: 'component/checkbox', text: 'Checkbox', path: 'checkbox', component: Checkbox },
38+
{ group: 'component/dropdown', text: 'Dropdown', path: 'dropdown', component: Dropdown },
39+
{ group: 'component/modal', text: 'Modal', path: 'modal', component: Modal },
40+
{ group: 'component/tree', text: 'Tree', path: 'tree', component: Tree },
41+
{ group: 'component/menu', text: 'Menu', path: 'menu', component: Menu },
42+
{ group: 'component/message', text: 'Message', path: 'message', component: Message },
43+
{ group: 'module/alert', text: 'Alert', path: 'alert', component: Alert },
44+
{ group: 'module/toastr', text: 'Toastr', path: 'toastr', component: Toastr }
4545
]
4646

4747
// Build router routes
4848
export const routes = m.map((m) => {
4949
return {
50+
group: m.group,
5051
text: m.text,
5152
path: _path(m.path),
5253
component: m.component

0 commit comments

Comments
 (0)