-
Notifications
You must be signed in to change notification settings - Fork 3.8k
/
app.module.ts
84 lines (81 loc) · 3.14 KB
/
app.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
import { BidiModule } from '@angular/cdk/bidi';
import { HttpClientJsonpModule, HttpClientModule } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { BrowserModule, Title } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { ServiceWorkerModule } from '@angular/service-worker';
import { IconDefinition } from '@ant-design/icons-angular';
import { EditOutline, LeftOutline, RightOutline } from '@ant-design/icons-angular/icons';
import { NzAffixModule } from 'ng-zorro-antd/affix';
import { NzBadgeModule } from 'ng-zorro-antd/badge';
import { NzButtonModule } from 'ng-zorro-antd/button';
import { NZ_CONFIG } from 'ng-zorro-antd/core/config';
import { NzGridModule } from 'ng-zorro-antd/grid';
import { NzI18nModule } from 'ng-zorro-antd/i18n';
import { NzIconModule } from 'ng-zorro-antd/icon';
import { NzInputModule } from 'ng-zorro-antd/input';
import { NzMenuModule } from 'ng-zorro-antd/menu';
import { NzMessageModule } from 'ng-zorro-antd/message';
import { NzPopoverModule } from 'ng-zorro-antd/popover';
import { NzSelectModule } from 'ng-zorro-antd/select';
import { ColorSketchModule } from 'ngx-color/sketch';
import { HoverPreloadModule } from 'ngx-hover-preload';
import { environment } from '../environments/environment';
import { DEMOComponent } from './_demo/demo.component';
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app.routing.module';
import { FooterModule } from './footer/footer.module';
import { HeaderModule } from './header/header.module';
import { NzContributorsListModule } from './share/contributors-list/contributors-list.module';
import { FixedWidgetsModule } from './share/fixed-widgets/fixed-widgets.module';
import { NzNavBottomModule } from './share/nav-bottom/nav-bottom.module';
import { SideComponent } from './side/side.component';
const icons: IconDefinition[] = [LeftOutline, RightOutline, EditOutline];
@NgModule({
declarations: [AppComponent, DEMOComponent, SideComponent],
imports: [
BidiModule,
BrowserModule.withServerTransition({ appId: 'docs' }),
BrowserAnimationsModule,
FormsModule,
HttpClientModule,
NzNavBottomModule,
ColorSketchModule,
NzIconModule.forRoot(icons),
NzGridModule,
NzAffixModule,
NzMenuModule,
NzI18nModule,
NzSelectModule,
NzMessageModule,
NzPopoverModule,
NzButtonModule,
NzInputModule,
NzBadgeModule,
HttpClientJsonpModule,
HeaderModule,
FooterModule,
NzContributorsListModule,
FixedWidgetsModule,
AppRoutingModule,
// skip ngx-hover-preload errors
environment.production ? HoverPreloadModule : [],
ServiceWorkerModule.register('ngsw-worker.js', { enabled: environment.production && !environment.preProduction })
],
providers: [
Title,
{
provide: NZ_CONFIG,
useValue: {
codeEditor: {
monacoEnvironment: { globalAPI: true }
},
icon: { nzTwotoneColor: '#1890ff' },
global: { nzDirection: 'ltr' }
}
}
],
bootstrap: [AppComponent]
})
export class AppModule {}