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/menu | |
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/menu')
-rw-r--r-- | client/src/app/menu/avatar-notification.component.ts | 11 | ||||
-rw-r--r-- | client/src/app/menu/language-chooser.component.ts | 8 | ||||
-rw-r--r-- | client/src/app/menu/menu.component.ts | 10 |
3 files changed, 11 insertions, 18 deletions
diff --git a/client/src/app/menu/avatar-notification.component.ts b/client/src/app/menu/avatar-notification.component.ts index c447f031c..9a64faa6a 100644 --- a/client/src/app/menu/avatar-notification.component.ts +++ b/client/src/app/menu/avatar-notification.component.ts | |||
@@ -1,11 +1,10 @@ | |||
1 | import { Component, Input, OnDestroy, OnInit, ViewChild } from '@angular/core' | ||
2 | import { User } from '../shared/users/user.model' | ||
3 | import { UserNotificationService } from '@app/shared/users/user-notification.service' | ||
4 | import { Subject, Subscription } from 'rxjs' | 1 | import { Subject, Subscription } from 'rxjs' |
5 | import { Notifier, UserNotificationSocket } from '@app/core' | ||
6 | import { NgbPopover } from '@ng-bootstrap/ng-bootstrap' | ||
7 | import { NavigationEnd, Router } from '@angular/router' | ||
8 | import { filter } from 'rxjs/operators' | 2 | import { filter } from 'rxjs/operators' |
3 | import { Component, Input, OnDestroy, OnInit, ViewChild } from '@angular/core' | ||
4 | import { NavigationEnd, Router } from '@angular/router' | ||
5 | import { Notifier, User, UserNotificationSocket } from '@app/core' | ||
6 | import { UserNotificationService } from '@app/shared/shared-main' | ||
7 | import { NgbPopover } from '@ng-bootstrap/ng-bootstrap' | ||
9 | 8 | ||
10 | @Component({ | 9 | @Component({ |
11 | selector: 'my-avatar-notification', | 10 | selector: 'my-avatar-notification', |
diff --git a/client/src/app/menu/language-chooser.component.ts b/client/src/app/menu/language-chooser.component.ts index c9b775921..3e89f72b8 100644 --- a/client/src/app/menu/language-chooser.component.ts +++ b/client/src/app/menu/language-chooser.component.ts | |||
@@ -1,9 +1,7 @@ | |||
1 | import { Component, ElementRef, ViewChild, Inject, LOCALE_ID } from '@angular/core' | 1 | import { Component, ElementRef, Inject, LOCALE_ID, ViewChild } from '@angular/core' |
2 | import { I18N_LOCALES, getShortLocale } from '../../../../shared' | 2 | import { getDevLocale, isOnDevLocale, sortBy } from '@app/helpers' |
3 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' | 3 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' |
4 | import { sortBy } from '@app/shared/misc/utils' | 4 | import { getCompleteLocale, getShortLocale, I18N_LOCALES } from '@shared/models' |
5 | import { getCompleteLocale } from '@shared/models/i18n' | ||
6 | import { isOnDevLocale, getDevLocale } from '@app/shared/i18n/i18n-utils' | ||
7 | 5 | ||
8 | @Component({ | 6 | @Component({ |
9 | selector: 'my-language-chooser', | 7 | selector: 'my-language-chooser', |
diff --git a/client/src/app/menu/menu.component.ts b/client/src/app/menu/menu.component.ts index ba3342541..2dbe695c9 100644 --- a/client/src/app/menu/menu.component.ts +++ b/client/src/app/menu/menu.component.ts | |||
@@ -1,14 +1,10 @@ | |||
1 | import { HotkeysService } from 'angular2-hotkeys' | ||
1 | import { Component, OnInit, ViewChild } from '@angular/core' | 2 | import { Component, OnInit, ViewChild } from '@angular/core' |
2 | import { UserRight } from '../../../../shared/models/users/user-right.enum' | 3 | import { AuthService, AuthStatus, RedirectService, ScreenService, ServerService, User, UserService } from '@app/core' |
3 | import { AuthService, AuthStatus, RedirectService, ServerService } from '../core' | ||
4 | import { User } from '@app/shared/users/user.model' | ||
5 | import { UserService } from '@app/shared/users/user.service' | ||
6 | import { LanguageChooserComponent } from '@app/menu/language-chooser.component' | 4 | import { LanguageChooserComponent } from '@app/menu/language-chooser.component' |
7 | import { HotkeysService } from 'angular2-hotkeys' | ||
8 | import { ServerConfig, VideoConstant } from '@shared/models' | ||
9 | import { QuickSettingsModalComponent } from '@app/modal/quick-settings-modal.component' | 5 | import { QuickSettingsModalComponent } from '@app/modal/quick-settings-modal.component' |
10 | import { I18n } from '@ngx-translate/i18n-polyfill' | 6 | import { I18n } from '@ngx-translate/i18n-polyfill' |
11 | import { ScreenService } from '@app/shared/misc/screen.service' | 7 | import { ServerConfig, UserRight, VideoConstant } from '@shared/models' |
12 | 8 | ||
13 | @Component({ | 9 | @Component({ |
14 | selector: 'my-menu', | 10 | selector: 'my-menu', |