diff options
author | Chocobozzz <me@florianbigard.com> | 2020-06-23 14:10:17 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-06-23 16:00:49 +0200 |
commit | 67ed6552b831df66713bac9e672738796128d33f (patch) | |
tree | 59c97d41e0b49d75a90aa3de987968ab9b1ff447 /client/src/app/app.component.ts | |
parent | 0c4bacbff53bc732f5a2677d62a6ead7752e2405 (diff) | |
download | PeerTube-67ed6552b831df66713bac9e672738796128d33f.tar.gz PeerTube-67ed6552b831df66713bac9e672738796128d33f.tar.zst PeerTube-67ed6552b831df66713bac9e672738796128d33f.zip |
Reorganize client shared modules
Diffstat (limited to 'client/src/app/app.component.ts')
-rw-r--r-- | client/src/app/app.component.ts | 34 |
1 files changed, 14 insertions, 20 deletions
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts index c77dc97de..a62aa4870 100644 --- a/client/src/app/app.component.ts +++ b/client/src/app/app.component.ts | |||
@@ -1,28 +1,22 @@ | |||
1 | import { Component, OnInit, ViewChild, AfterViewInit, Inject, LOCALE_ID } from '@angular/core' | 1 | import { Hotkey, HotkeysService } from 'angular2-hotkeys' |
2 | import { concat } from 'rxjs' | ||
3 | import { filter, first, map, pairwise } from 'rxjs/operators' | ||
4 | import { DOCUMENT, PlatformLocation, ViewportScroller } from '@angular/common' | ||
5 | import { AfterViewInit, Component, Inject, LOCALE_ID, OnInit, ViewChild } from '@angular/core' | ||
2 | import { DomSanitizer, SafeHtml } from '@angular/platform-browser' | 6 | import { DomSanitizer, SafeHtml } from '@angular/platform-browser' |
3 | import { Event, GuardsCheckStart, NavigationEnd, Router, Scroll } from '@angular/router' | 7 | import { Event, GuardsCheckStart, NavigationEnd, Router, Scroll } from '@angular/router' |
4 | import { AuthService, RedirectService, ServerService, ThemeService } from '@app/core' | 8 | import { AuthService, MarkdownService, RedirectService, ScreenService, ServerService, ThemeService, User } from '@app/core' |
5 | import { is18nPath, getShortLocale } from '../../../shared/models/i18n' | ||
6 | import { ScreenService } from '@app/shared/misc/screen.service' | ||
7 | import { filter, map, pairwise, first } from 'rxjs/operators' | ||
8 | import { Hotkey, HotkeysService } from 'angular2-hotkeys' | ||
9 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
10 | import { PlatformLocation, ViewportScroller, DOCUMENT } from '@angular/common' | ||
11 | import { PluginService } from '@app/core/plugins/plugin.service' | ||
12 | import { HooksService } from '@app/core/plugins/hooks.service' | 9 | import { HooksService } from '@app/core/plugins/hooks.service' |
13 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' | 10 | import { PluginService } from '@app/core/plugins/plugin.service' |
14 | import { POP_STATE_MODAL_DISMISS } from '@app/shared/misc/constants' | ||
15 | import { WelcomeModalComponent } from '@app/modal/welcome-modal.component' | ||
16 | import { InstanceConfigWarningModalComponent } from '@app/modal/instance-config-warning-modal.component' | ||
17 | import { CustomModalComponent } from '@app/modal/custom-modal.component' | 11 | import { CustomModalComponent } from '@app/modal/custom-modal.component' |
18 | import { ServerConfig, UserRole } from '@shared/models' | 12 | import { InstanceConfigWarningModalComponent } from '@app/modal/instance-config-warning-modal.component' |
19 | import { User } from '@app/shared' | 13 | import { WelcomeModalComponent } from '@app/modal/welcome-modal.component' |
20 | import { InstanceService } from '@app/shared/instance/instance.service' | 14 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' |
15 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
16 | import { BroadcastMessageLevel, getShortLocale, is18nPath, ServerConfig, UserRole } from '@shared/models' | ||
21 | import { MenuService } from './core/menu/menu.service' | 17 | import { MenuService } from './core/menu/menu.service' |
22 | import { BroadcastMessageLevel } from '@shared/models/server' | 18 | import { peertubeLocalStorage, POP_STATE_MODAL_DISMISS } from './helpers' |
23 | import { MarkdownService } from './shared/renderer' | 19 | import { InstanceService } from './shared/shared-instance' |
24 | import { concat } from 'rxjs' | ||
25 | import { peertubeLocalStorage } from './shared/misc/peertube-web-storage' | ||
26 | 20 | ||
27 | @Component({ | 21 | @Component({ |
28 | selector: 'my-app', | 22 | selector: 'my-app', |