-
-
Notifications
You must be signed in to change notification settings - Fork 130
/
experiments.module.ts
112 lines (108 loc) · 4.02 KB
/
experiments.module.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { FilePondModule, registerPlugin } from 'ngx-filepond';
import { ScrollingModule } from '@angular/cdk/scrolling';
import { KnobModule } from '@xmlking/ngx-knob';
import { ClapModule } from '@ngx-starter-kit/clap';
import { LedModule } from '@ngx-starter-kit/led';
import { ImageComparisonModule } from '@ngx-starter-kit/image-comparison';
import { SharedModule } from '@ngx-starter-kit/shared';
import { ContextMenuModule } from '@ngx-starter-kit/context-menu';
import { AnimationsComponent } from './containers/animations/animations.component';
import { FileUploadComponent } from './containers/file-upload/file-upload.component';
import { HammertimeDirective } from './components/hammertime/hammertime.directive';
import { ContextMenuComponent } from './containers/context-menu/context-menu.component';
import { ClapButtonComponent } from './containers/clap-button/clap-button.component';
import { KnobDemoComponent } from './containers/knob-demo/knob-demo.component';
import { VirtualScrollComponent } from './containers/virtual-scroll/virtual-scroll.component';
import { StickyTableComponent } from './containers/sticky-table/sticky-table.component';
import { LedDemoComponent } from './containers/led-demo/led-demo.component';
import { ImageCompComponent } from './containers/image-comp/image-comp.component';
// Registering plugins
import * as FilePondPluginFileValidateType from 'filepond-plugin-file-validate-type';
import * as FilepondPluginFileValidateSize from 'filepond-plugin-file-validate-size';
import * as FilepondPluginImagePreview from 'filepond-plugin-image-preview';
import { LayoutComponent } from './containers/layout/layout.component';
import { CardComponent } from './components/card/card.component';
registerPlugin(FilePondPluginFileValidateType, FilepondPluginFileValidateSize, FilepondPluginImagePreview);
@NgModule({
imports: [
SharedModule,
FilePondModule,
ContextMenuModule,
ScrollingModule,
ClapModule,
LedModule,
KnobModule,
ImageComparisonModule,
RouterModule.forChild([
/* {path: '', pathMatch: 'full', component: InsertYourComponentHere} */
{ path: '', redirectTo: 'animations', pathMatch: 'full', data: { animation: 'experiments' } },
{
path: 'animations',
component: AnimationsComponent,
data: { title: 'Animations', animations: 'animations' },
},
{
path: 'file-upload',
component: FileUploadComponent,
data: { title: 'File Upload', animation: 'file-upload' },
},
{
path: 'context-menu',
component: ContextMenuComponent,
data: { title: 'Context Menu', animation: 'context-menu' },
},
{
path: 'virtual-scroll',
component: VirtualScrollComponent,
data: { title: 'Virtual Scroll', animation: 'virtual-scroll' },
},
{
path: 'table',
component: StickyTableComponent,
data: { title: 'Sticky Table', animation: 'sticky-table' },
},
{
path: 'clap',
component: ClapButtonComponent,
data: { title: 'Clap', animation: 'clap' },
},
{
path: 'led',
component: LedDemoComponent,
data: { title: 'Led', animation: 'led' },
},
{
path: 'knob',
component: KnobDemoComponent,
data: { title: 'Knob', animation: 'Knob' },
},
{
path: 'image-comp',
component: ImageCompComponent,
data: { title: 'ImageComp', animation: 'imagecomp' },
},
{
path: 'layout',
component: LayoutComponent,
data: { title: 'Layout', animation: 'layout' },
},
]),
],
declarations: [
AnimationsComponent,
FileUploadComponent,
HammertimeDirective,
ContextMenuComponent,
VirtualScrollComponent,
StickyTableComponent,
ClapButtonComponent,
KnobDemoComponent,
LedDemoComponent,
ImageCompComponent,
LayoutComponent,
CardComponent,
],
})
export class ExperimentsModule {}