diff options
Diffstat (limited to 'client/src/app/core/core.module.ts')
-rw-r--r-- | client/src/app/core/core.module.ts | 48 |
1 files changed, 31 insertions, 17 deletions
diff --git a/client/src/app/core/core.module.ts b/client/src/app/core/core.module.ts index a1734ad80..22896e2e9 100644 --- a/client/src/app/core/core.module.ts +++ b/client/src/app/core/core.module.ts | |||
@@ -1,35 +1,35 @@ | |||
1 | import { HotkeyModule } from 'angular2-hotkeys' | ||
2 | import { MessageService } from 'primeng/api' | ||
3 | import { ToastModule } from 'primeng/toast' | ||
1 | import { CommonModule } from '@angular/common' | 4 | import { CommonModule } from '@angular/common' |
2 | import { NgModule, Optional, SkipSelf } from '@angular/core' | 5 | import { NgModule, Optional, SkipSelf } from '@angular/core' |
3 | import { FormsModule } from '@angular/forms' | ||
4 | import { BrowserAnimationsModule } from '@angular/platform-browser/animations' | 6 | import { BrowserAnimationsModule } from '@angular/platform-browser/animations' |
5 | import { RouterModule } from '@angular/router' | 7 | import { UserNotificationSocket } from '@app/core/notification/user-notification-socket.service' |
8 | import { HooksService } from '@app/core/plugins/hooks.service' | ||
9 | import { PluginService } from '@app/core/plugins/plugin.service' | ||
10 | import { UnloggedGuard } from '@app/core/routing/unlogged-guard.service' | ||
6 | import { LoadingBarModule } from '@ngx-loading-bar/core' | 11 | import { LoadingBarModule } from '@ngx-loading-bar/core' |
7 | import { LoadingBarHttpClientModule } from '@ngx-loading-bar/http-client' | 12 | import { LoadingBarHttpClientModule } from '@ngx-loading-bar/http-client' |
8 | import { LoadingBarRouterModule } from '@ngx-loading-bar/router' | 13 | import { LoadingBarRouterModule } from '@ngx-loading-bar/router' |
9 | |||
10 | import { AuthService } from './auth' | 14 | import { AuthService } from './auth' |
11 | import { ConfirmService } from './confirm' | 15 | import { ConfirmService } from './confirm' |
16 | import { CheatSheetComponent } from './hotkeys' | ||
17 | import { MenuService } from './menu' | ||
12 | import { throwIfAlreadyLoaded } from './module-import-guard' | 18 | import { throwIfAlreadyLoaded } from './module-import-guard' |
19 | import { Notifier } from './notification' | ||
20 | import { HtmlRendererService, LinkifierService, MarkdownService } from './renderer' | ||
21 | import { RestExtractor, RestService } from './rest' | ||
13 | import { LoginGuard, RedirectService, UserRightGuard } from './routing' | 22 | import { LoginGuard, RedirectService, UserRightGuard } from './routing' |
23 | import { CanDeactivateGuard } from './routing/can-deactivate-guard.service' | ||
24 | import { ServerConfigResolver } from './routing/server-config-resolver.service' | ||
14 | import { ServerService } from './server' | 25 | import { ServerService } from './server' |
15 | import { ThemeService } from './theme' | 26 | import { ThemeService } from './theme' |
16 | import { MenuService } from './menu' | 27 | import { UserService } from './users' |
17 | import { HotkeyModule } from 'angular2-hotkeys' | 28 | import { LocalStorageService, ScreenService, SessionStorageService } from './wrappers' |
18 | import { CheatSheetComponent } from './hotkeys' | ||
19 | import { ToastModule } from 'primeng/toast' | ||
20 | import { Notifier } from './notification' | ||
21 | import { MessageService } from 'primeng/api' | ||
22 | import { UserNotificationSocket } from '@app/core/notification/user-notification-socket.service' | ||
23 | import { ServerConfigResolver } from './routing/server-config-resolver.service' | ||
24 | import { UnloggedGuard } from '@app/core/routing/unlogged-guard.service' | ||
25 | import { PluginService } from '@app/core/plugins/plugin.service' | ||
26 | import { HooksService } from '@app/core/plugins/hooks.service' | ||
27 | 29 | ||
28 | @NgModule({ | 30 | @NgModule({ |
29 | imports: [ | 31 | imports: [ |
30 | CommonModule, | 32 | CommonModule, |
31 | RouterModule, | ||
32 | FormsModule, | ||
33 | BrowserAnimationsModule, | 33 | BrowserAnimationsModule, |
34 | 34 | ||
35 | LoadingBarHttpClientModule, | 35 | LoadingBarHttpClientModule, |
@@ -68,11 +68,25 @@ import { HooksService } from '@app/core/plugins/hooks.service' | |||
68 | PluginService, | 68 | PluginService, |
69 | HooksService, | 69 | HooksService, |
70 | 70 | ||
71 | HtmlRendererService, | ||
72 | LinkifierService, | ||
73 | MarkdownService, | ||
74 | |||
75 | RestExtractor, | ||
76 | RestService, | ||
77 | |||
78 | UserService, | ||
79 | |||
80 | ScreenService, | ||
81 | LocalStorageService, | ||
82 | SessionStorageService, | ||
83 | |||
71 | RedirectService, | 84 | RedirectService, |
72 | Notifier, | 85 | Notifier, |
73 | MessageService, | 86 | MessageService, |
74 | UserNotificationSocket, | 87 | UserNotificationSocket, |
75 | ServerConfigResolver | 88 | ServerConfigResolver, |
89 | CanDeactivateGuard | ||
76 | ] | 90 | ] |
77 | }) | 91 | }) |
78 | export class CoreModule { | 92 | export class CoreModule { |