-
Notifications
You must be signed in to change notification settings - Fork 265
/
shared.module.ts
120 lines (113 loc) · 3.82 KB
/
shared.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
113
114
115
116
117
118
119
120
import { NgModule, CUSTOM_ELEMENTS_SCHEMA, ModuleWithProviders } from '@angular/core';
import { DatePipe } from '@angular/common';
import { RouterModule } from '@angular/router';
import {
AccountService,
AuthServerProvider,
CSRFService,
GreatBigExampleApplicationSharedLibsModule,
GreatBigExampleApplicationSharedCommonModule,
HasAnyAuthorityDirective,
JhiLoginModalComponent,
JhiSocialComponent,
JhiTrackerService,
LoginModalService,
LoginService,
Principal,
SocialService,
StateStorageService
} from './';
import { DraggableDirective } from './draggable/draggable.directive';
// import { RioAlertComponent } from './alert/alert.component';
import { ButtonComponent } from './button/button.component';
import { ContainerComponent } from './container/container.component';
// import { RioInputComponent } from './input/input.component';
// import { RioFormComponent } from './form/form.component';
// import { RioFormErrorComponent } from './form-error/form-error.component';
// import { RioFormGroupComponent } from './form-group/form-group.component';
// import { RioLabelComponent } from './label/label.component';
import { AwesomePipe } from './awesome/awesome.pipe';
// import { HighlightDirective } from './highlight/highlight.directive';
// import { TitleCasePipe } from './title-case/title-case.pipe';
import { TwainComponent } from './twain/twain.component';
import { TwainService } from './twain/twain.service';
import { WelcomeComponent } from './welcome/welcome.component';
// import { GameComponent } from '../features/game/game.component';
// import { TimerComponent } from '../features/game/timer/timer.component';
import { LayoutsModule } from '../layouts/layouts.module';
// import { StatusBarComponent } from '../layouts/status-bar/status-bar.component';
import { NavComponent } from '../layouts/nav/nav.component';
import { SkipNavComponent } from '../layouts/skip-nav/skip-nav.component';
import { UiModule } from './ui/ui.module';
import { MealsLayoutComponent } from '../layouts/meals-layout/meals-layout.component';
import { ImageCoverComponent } from './image-cover/image-cover.component';
export const components = [
DraggableDirective,
// RioAlertComponent,
ButtonComponent,
ContainerComponent,
// RioInputComponent,
// RioFormComponent,
// RioFormErrorComponent,
// RioFormGroupComponent,
// RioLabelComponent,
AwesomePipe,
// HighlightDirective,
// TitleCasePipe,
TwainComponent,
WelcomeComponent,
// GameComponent,
// TimerComponent,
NavComponent,
SkipNavComponent,
// MealsLayoutComponent,
ImageCoverComponent
];
@NgModule({
imports: [
GreatBigExampleApplicationSharedLibsModule,
GreatBigExampleApplicationSharedCommonModule,
UiModule,
// LayoutsModule,
RouterModule
],
declarations: [
JhiSocialComponent,
JhiLoginModalComponent,
HasAnyAuthorityDirective,
...components
],
providers: [
LoginService,
LoginModalService,
AccountService,
StateStorageService,
Principal,
CSRFService,
JhiTrackerService,
AuthServerProvider,
SocialService,
DatePipe,
TwainService
],
entryComponents: [JhiLoginModalComponent],
exports: [
// GreatBigExampleApplicationSharedLibsModule,
GreatBigExampleApplicationSharedCommonModule,
UiModule,
JhiSocialComponent,
JhiLoginModalComponent,
HasAnyAuthorityDirective,
DatePipe,
// LayoutsModule,
...components
],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
export class GreatBigExampleApplicationSharedModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: GreatBigExampleApplicationSharedModule
};
}
}