-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
alert.routes.ts
65 lines (62 loc) · 2 KB
/
alert.routes.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/* eslint-disable @typescript-eslint/no-var-requires */
import { Routes } from '@angular/router';
import { ComponentWrapper } from '../../shared/component-wrapper/component-wrapper.component';
import { DemoListComponent } from '../../shared/examples-page/demo-list.component';
import { NgbdApiPage } from '../../shared/api-page/api-page.component';
import { NgbdAlertBasic } from './demos/basic/alert-basic';
import { NgbdAlertCloseable } from './demos/closeable/alert-closeable';
import { NgbdAlertSelfclosing } from './demos/selfclosing/alert-selfclosing';
import { NgbdAlertCustom } from './demos/custom/alert-custom';
import { NgbdAlertConfig } from './demos/config/alert-config';
const DEMOS = [
{
fragment: 'basic',
title: 'Basic Alert',
type: NgbdAlertBasic,
code: 'alert/demos/basic/alert-basic.ts',
markup: 'alert/demos/basic/alert-basic.html',
},
{
fragment: 'closeable',
title: 'Closable Alert',
type: NgbdAlertCloseable,
code: 'alert/demos/closeable/alert-closeable.ts',
markup: 'alert/demos/closeable/alert-closeable.html',
},
{
fragment: 'selfclosing',
title: 'Self closing alert',
type: NgbdAlertSelfclosing,
code: 'alert/demos/selfclosing/alert-selfclosing.ts',
markup: 'alert/demos/selfclosing/alert-selfclosing.html',
},
{
fragment: 'custom',
title: 'Custom alert',
type: NgbdAlertCustom,
code: 'alert/demos/custom/alert-custom.ts',
markup: 'alert/demos/custom/alert-custom.html',
},
{
fragment: 'config',
title: 'Global configuration of alerts',
type: NgbdAlertConfig,
code: 'alert/demos/config/alert-config.ts',
markup: 'alert/demos/config/alert-config.html',
},
];
export const ROUTES: Routes = [
{ path: '', pathMatch: 'full', redirectTo: 'examples' },
{
path: '',
component: ComponentWrapper,
data: {
name: 'Alert',
bootstrap: 'https://getbootstrap.com/docs/%version%/components/alerts/',
},
children: [
{ path: 'examples', component: DemoListComponent, data: { demos: DEMOS } },
{ path: 'api', component: NgbdApiPage },
],
},
];