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/+accounts | |
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/+accounts')
5 files changed, 35 insertions, 45 deletions
diff --git a/client/src/app/+accounts/account-about/account-about.component.ts b/client/src/app/+accounts/account-about/account-about.component.ts index d1616490f..8c01e4007 100644 --- a/client/src/app/+accounts/account-about/account-about.component.ts +++ b/client/src/app/+accounts/account-about/account-about.component.ts | |||
@@ -1,9 +1,8 @@ | |||
1 | import { Subscription } from 'rxjs' | ||
1 | import { Component, OnDestroy, OnInit } from '@angular/core' | 2 | import { Component, OnDestroy, OnInit } from '@angular/core' |
2 | import { Account } from '@app/shared/account/account.model' | 3 | import { MarkdownService } from '@app/core' |
3 | import { AccountService } from '@app/shared/account/account.service' | 4 | import { Account, AccountService } from '@app/shared/shared-main' |
4 | import { I18n } from '@ngx-translate/i18n-polyfill' | 5 | import { I18n } from '@ngx-translate/i18n-polyfill' |
5 | import { Subscription } from 'rxjs' | ||
6 | import { MarkdownService } from '@app/shared/renderer' | ||
7 | 6 | ||
8 | @Component({ | 7 | @Component({ |
9 | selector: 'my-account-about', | 8 | selector: 'my-account-about', |
diff --git a/client/src/app/+accounts/account-video-channels/account-video-channels.component.ts b/client/src/app/+accounts/account-video-channels/account-video-channels.component.ts index eba1acfa1..205245675 100644 --- a/client/src/app/+accounts/account-video-channels/account-video-channels.component.ts +++ b/client/src/app/+accounts/account-video-channels/account-video-channels.component.ts | |||
@@ -1,16 +1,9 @@ | |||
1 | import { from, Subject, Subscription } from 'rxjs' | 1 | import { from, Subject, Subscription } from 'rxjs' |
2 | import { concatMap, map, switchMap, tap } from 'rxjs/operators' | 2 | import { concatMap, map, switchMap, tap } from 'rxjs/operators' |
3 | import { Component, OnDestroy, OnInit } from '@angular/core' | 3 | import { Component, OnDestroy, OnInit } from '@angular/core' |
4 | import { User, UserService } from '@app/shared' | 4 | import { ComponentPagination, hasMoreItems, ScreenService, User, UserService } from '@app/core' |
5 | import { Account } from '@app/shared/account/account.model' | 5 | import { Account, AccountService, Video, VideoChannel, VideoChannelService, VideoService } from '@app/shared/shared-main' |
6 | import { AccountService } from '@app/shared/account/account.service' | 6 | import { VideoSortField } from '@shared/models' |
7 | import { ScreenService } from '@app/shared/misc/screen.service' | ||
8 | import { ComponentPagination, hasMoreItems } from '@app/shared/rest/component-pagination.model' | ||
9 | import { VideoChannel } from '@app/shared/video-channel/video-channel.model' | ||
10 | import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' | ||
11 | import { VideoSortField } from '@app/shared/video/sort-field.type' | ||
12 | import { Video } from '@app/shared/video/video.model' | ||
13 | import { VideoService } from '@app/shared/video/video.service' | ||
14 | 7 | ||
15 | @Component({ | 8 | @Component({ |
16 | selector: 'my-account-video-channels', | 9 | selector: 'my-account-video-channels', |
diff --git a/client/src/app/+accounts/account-videos/account-videos.component.ts b/client/src/app/+accounts/account-videos/account-videos.component.ts index 41b27b541..dd47589c1 100644 --- a/client/src/app/+accounts/account-videos/account-videos.component.ts +++ b/client/src/app/+accounts/account-videos/account-videos.component.ts | |||
@@ -1,25 +1,18 @@ | |||
1 | import { Subscription } from 'rxjs' | ||
2 | import { first, tap } from 'rxjs/operators' | ||
1 | import { Component, OnDestroy, OnInit } from '@angular/core' | 3 | import { Component, OnDestroy, OnInit } from '@angular/core' |
2 | import { ActivatedRoute, Router } from '@angular/router' | 4 | import { ActivatedRoute, Router } from '@angular/router' |
3 | import { immutableAssign } from '@app/shared/misc/utils' | 5 | import { AuthService, ConfirmService, LocalStorageService, Notifier, ScreenService, ServerService, UserService } from '@app/core' |
4 | import { AuthService } from '../../core/auth' | 6 | import { immutableAssign } from '@app/helpers' |
5 | import { ConfirmService } from '../../core/confirm' | 7 | import { Account, AccountService, VideoService } from '@app/shared/shared-main' |
6 | import { AbstractVideoList } from '../../shared/video/abstract-video-list' | 8 | import { AbstractVideoList } from '@app/shared/shared-video-miniature' |
7 | import { VideoService } from '../../shared/video/video.service' | ||
8 | import { Account } from '@app/shared/account/account.model' | ||
9 | import { AccountService } from '@app/shared/account/account.service' | ||
10 | import { first, tap } from 'rxjs/operators' | ||
11 | import { I18n } from '@ngx-translate/i18n-polyfill' | 9 | import { I18n } from '@ngx-translate/i18n-polyfill' |
12 | import { Subscription } from 'rxjs' | ||
13 | import { ScreenService } from '@app/shared/misc/screen.service' | ||
14 | import { Notifier, ServerService } from '@app/core' | ||
15 | import { UserService } from '@app/shared' | ||
16 | import { LocalStorageService } from '@app/shared/misc/storage.service' | ||
17 | 10 | ||
18 | @Component({ | 11 | @Component({ |
19 | selector: 'my-account-videos', | 12 | selector: 'my-account-videos', |
20 | templateUrl: '../../shared/video/abstract-video-list.html', | 13 | templateUrl: '../../shared/shared-video-miniature/abstract-video-list.html', |
21 | styleUrls: [ | 14 | styleUrls: [ |
22 | '../../shared/video/abstract-video-list.scss', | 15 | '../../shared/shared-video-miniature/abstract-video-list.scss', |
23 | './account-videos.component.scss' | 16 | './account-videos.component.scss' |
24 | ] | 17 | ] |
25 | }) | 18 | }) |
diff --git a/client/src/app/+accounts/accounts.component.ts b/client/src/app/+accounts/accounts.component.ts index bf71179f3..01911cac2 100644 --- a/client/src/app/+accounts/accounts.component.ts +++ b/client/src/app/+accounts/accounts.component.ts | |||
@@ -1,17 +1,11 @@ | |||
1 | import { Subscription } from 'rxjs' | ||
2 | import { catchError, distinctUntilChanged, map, switchMap, tap } from 'rxjs/operators' | ||
1 | import { Component, OnDestroy, OnInit } from '@angular/core' | 3 | import { Component, OnDestroy, OnInit } from '@angular/core' |
2 | import { ActivatedRoute } from '@angular/router' | 4 | import { ActivatedRoute } from '@angular/router' |
3 | import { AccountService } from '@app/shared/account/account.service' | 5 | import { AuthService, Notifier, RedirectService, RestExtractor, ScreenService, UserService } from '@app/core' |
4 | import { Account } from '@app/shared/account/account.model' | 6 | import { Account, AccountService, ListOverflowItem, VideoChannel, VideoChannelService } from '@app/shared/shared-main' |
5 | import { RestExtractor, UserService } from '@app/shared' | ||
6 | import { catchError, distinctUntilChanged, map, switchMap, tap } from 'rxjs/operators' | ||
7 | import { Subscription } from 'rxjs' | ||
8 | import { AuthService, Notifier, RedirectService } from '@app/core' | ||
9 | import { User, UserRight } from '../../../../shared' | ||
10 | import { I18n } from '@ngx-translate/i18n-polyfill' | 7 | import { I18n } from '@ngx-translate/i18n-polyfill' |
11 | import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' | 8 | import { User, UserRight } from '@shared/models' |
12 | import { VideoChannel } from '@app/shared/video-channel/video-channel.model' | ||
13 | import { ListOverflowItem } from '@app/shared/misc/list-overflow.component' | ||
14 | import { ScreenService } from '@app/shared/misc/screen.service' | ||
15 | 9 | ||
16 | @Component({ | 10 | @Component({ |
17 | templateUrl: './accounts.component.html', | 11 | templateUrl: './accounts.component.html', |
diff --git a/client/src/app/+accounts/accounts.module.ts b/client/src/app/+accounts/accounts.module.ts index 8e679822a..815360341 100644 --- a/client/src/app/+accounts/accounts.module.ts +++ b/client/src/app/+accounts/accounts.module.ts | |||
@@ -1,15 +1,26 @@ | |||
1 | import { NgModule } from '@angular/core' | 1 | import { NgModule } from '@angular/core' |
2 | import { SharedModule } from '../shared' | 2 | import { SharedFormModule } from '@app/shared/shared-forms' |
3 | import { AccountsRoutingModule } from './accounts-routing.module' | 3 | import { SharedGlobalIconModule } from '@app/shared/shared-icons' |
4 | import { AccountsComponent } from './accounts.component' | 4 | import { SharedMainModule } from '@app/shared/shared-main' |
5 | import { AccountVideosComponent } from './account-videos/account-videos.component' | 5 | import { SharedModerationModule } from '@app/shared/shared-moderation' |
6 | import { SharedUserSubscriptionModule } from '@app/shared/shared-user-subscription' | ||
7 | import { SharedVideoMiniatureModule } from '@app/shared/shared-video-miniature' | ||
6 | import { AccountAboutComponent } from './account-about/account-about.component' | 8 | import { AccountAboutComponent } from './account-about/account-about.component' |
7 | import { AccountVideoChannelsComponent } from './account-video-channels/account-video-channels.component' | 9 | import { AccountVideoChannelsComponent } from './account-video-channels/account-video-channels.component' |
10 | import { AccountVideosComponent } from './account-videos/account-videos.component' | ||
11 | import { AccountsRoutingModule } from './accounts-routing.module' | ||
12 | import { AccountsComponent } from './accounts.component' | ||
8 | 13 | ||
9 | @NgModule({ | 14 | @NgModule({ |
10 | imports: [ | 15 | imports: [ |
11 | AccountsRoutingModule, | 16 | AccountsRoutingModule, |
12 | SharedModule | 17 | |
18 | SharedMainModule, | ||
19 | SharedFormModule, | ||
20 | SharedUserSubscriptionModule, | ||
21 | SharedModerationModule, | ||
22 | SharedVideoMiniatureModule, | ||
23 | SharedGlobalIconModule | ||
13 | ], | 24 | ], |
14 | 25 | ||
15 | declarations: [ | 26 | declarations: [ |