aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/core/core.module.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-06-23 14:10:17 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-06-23 16:00:49 +0200
commit67ed6552b831df66713bac9e672738796128d33f (patch)
tree59c97d41e0b49d75a90aa3de987968ab9b1ff447 /client/src/app/core/core.module.ts
parent0c4bacbff53bc732f5a2677d62a6ead7752e2405 (diff)
downloadPeerTube-67ed6552b831df66713bac9e672738796128d33f.tar.gz
PeerTube-67ed6552b831df66713bac9e672738796128d33f.tar.zst
PeerTube-67ed6552b831df66713bac9e672738796128d33f.zip
Reorganize client shared modules
Diffstat (limited to 'client/src/app/core/core.module.ts')
-rw-r--r--client/src/app/core/core.module.ts48
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 @@
1import { HotkeyModule } from 'angular2-hotkeys'
2import { MessageService } from 'primeng/api'
3import { ToastModule } from 'primeng/toast'
1import { CommonModule } from '@angular/common' 4import { CommonModule } from '@angular/common'
2import { NgModule, Optional, SkipSelf } from '@angular/core' 5import { NgModule, Optional, SkipSelf } from '@angular/core'
3import { FormsModule } from '@angular/forms'
4import { BrowserAnimationsModule } from '@angular/platform-browser/animations' 6import { BrowserAnimationsModule } from '@angular/platform-browser/animations'
5import { RouterModule } from '@angular/router' 7import { UserNotificationSocket } from '@app/core/notification/user-notification-socket.service'
8import { HooksService } from '@app/core/plugins/hooks.service'
9import { PluginService } from '@app/core/plugins/plugin.service'
10import { UnloggedGuard } from '@app/core/routing/unlogged-guard.service'
6import { LoadingBarModule } from '@ngx-loading-bar/core' 11import { LoadingBarModule } from '@ngx-loading-bar/core'
7import { LoadingBarHttpClientModule } from '@ngx-loading-bar/http-client' 12import { LoadingBarHttpClientModule } from '@ngx-loading-bar/http-client'
8import { LoadingBarRouterModule } from '@ngx-loading-bar/router' 13import { LoadingBarRouterModule } from '@ngx-loading-bar/router'
9
10import { AuthService } from './auth' 14import { AuthService } from './auth'
11import { ConfirmService } from './confirm' 15import { ConfirmService } from './confirm'
16import { CheatSheetComponent } from './hotkeys'
17import { MenuService } from './menu'
12import { throwIfAlreadyLoaded } from './module-import-guard' 18import { throwIfAlreadyLoaded } from './module-import-guard'
19import { Notifier } from './notification'
20import { HtmlRendererService, LinkifierService, MarkdownService } from './renderer'
21import { RestExtractor, RestService } from './rest'
13import { LoginGuard, RedirectService, UserRightGuard } from './routing' 22import { LoginGuard, RedirectService, UserRightGuard } from './routing'
23import { CanDeactivateGuard } from './routing/can-deactivate-guard.service'
24import { ServerConfigResolver } from './routing/server-config-resolver.service'
14import { ServerService } from './server' 25import { ServerService } from './server'
15import { ThemeService } from './theme' 26import { ThemeService } from './theme'
16import { MenuService } from './menu' 27import { UserService } from './users'
17import { HotkeyModule } from 'angular2-hotkeys' 28import { LocalStorageService, ScreenService, SessionStorageService } from './wrappers'
18import { CheatSheetComponent } from './hotkeys'
19import { ToastModule } from 'primeng/toast'
20import { Notifier } from './notification'
21import { MessageService } from 'primeng/api'
22import { UserNotificationSocket } from '@app/core/notification/user-notification-socket.service'
23import { ServerConfigResolver } from './routing/server-config-resolver.service'
24import { UnloggedGuard } from '@app/core/routing/unlogged-guard.service'
25import { PluginService } from '@app/core/plugins/plugin.service'
26import { 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})
78export class CoreModule { 92export class CoreModule {