diff options
Diffstat (limited to 'client/src/app/+my-library')
13 files changed, 17 insertions, 20 deletions
diff --git a/client/src/app/+my-library/my-follows/my-followers.component.ts b/client/src/app/+my-library/my-follows/my-followers.component.ts index 0dd9bf6f5..4e3e5bcc4 100644 --- a/client/src/app/+my-library/my-follows/my-followers.component.ts +++ b/client/src/app/+my-library/my-follows/my-followers.component.ts | |||
@@ -4,7 +4,7 @@ import { ActivatedRoute } from '@angular/router' | |||
4 | import { AuthService, ComponentPagination, Notifier } from '@app/core' | 4 | import { AuthService, ComponentPagination, Notifier } from '@app/core' |
5 | import { AdvancedInputFilter } from '@app/shared/shared-forms' | 5 | import { AdvancedInputFilter } from '@app/shared/shared-forms' |
6 | import { UserSubscriptionService } from '@app/shared/shared-user-subscription' | 6 | import { UserSubscriptionService } from '@app/shared/shared-user-subscription' |
7 | import { ActorFollow } from '@shared/models' | 7 | import { ActorFollow } from '@peertube/peertube-models' |
8 | 8 | ||
9 | @Component({ | 9 | @Component({ |
10 | templateUrl: './my-followers.component.html', | 10 | templateUrl: './my-followers.component.html', |
diff --git a/client/src/app/+my-library/my-library.component.ts b/client/src/app/+my-library/my-library.component.ts index ff901952f..35eb617ab 100644 --- a/client/src/app/+my-library/my-library.component.ts +++ b/client/src/app/+my-library/my-library.component.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | import { Component, OnInit } from '@angular/core' | 1 | import { Component, OnInit } from '@angular/core' |
2 | import { AuthService, AuthUser, ScreenService, ServerService } from '@app/core' | 2 | import { AuthService, AuthUser, ScreenService, ServerService } from '@app/core' |
3 | import { HTMLServerConfig } from '@shared/models' | 3 | import { HTMLServerConfig } from '@peertube/peertube-models' |
4 | import { TopMenuDropdownParam } from '../shared/shared-main/misc/top-menu-dropdown.component' | 4 | import { TopMenuDropdownParam } from '../shared/shared-main/misc/top-menu-dropdown.component' |
5 | 5 | ||
6 | @Component({ | 6 | @Component({ |
diff --git a/client/src/app/+my-library/my-ownership/my-accept-ownership/my-accept-ownership.component.ts b/client/src/app/+my-library/my-ownership/my-accept-ownership/my-accept-ownership.component.ts index ca7eb680b..87e389411 100644 --- a/client/src/app/+my-library/my-ownership/my-accept-ownership/my-accept-ownership.component.ts +++ b/client/src/app/+my-library/my-ownership/my-accept-ownership/my-accept-ownership.component.ts | |||
@@ -6,7 +6,7 @@ import { OWNERSHIP_CHANGE_CHANNEL_VALIDATOR } from '@app/shared/form-validators/ | |||
6 | import { FormReactive, FormReactiveService } from '@app/shared/shared-forms' | 6 | import { FormReactive, FormReactiveService } from '@app/shared/shared-forms' |
7 | import { VideoOwnershipService } from '@app/shared/shared-main' | 7 | import { VideoOwnershipService } from '@app/shared/shared-main' |
8 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' | 8 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' |
9 | import { VideoChangeOwnership } from '@shared/models' | 9 | import { VideoChangeOwnership } from '@peertube/peertube-models' |
10 | 10 | ||
11 | @Component({ | 11 | @Component({ |
12 | selector: 'my-accept-ownership', | 12 | selector: 'my-accept-ownership', |
diff --git a/client/src/app/+my-library/my-ownership/my-ownership.component.ts b/client/src/app/+my-library/my-ownership/my-ownership.component.ts index 8d6a42dfb..4838eca27 100644 --- a/client/src/app/+my-library/my-ownership/my-ownership.component.ts +++ b/client/src/app/+my-library/my-ownership/my-ownership.component.ts | |||
@@ -2,7 +2,7 @@ import { SortMeta } from 'primeng/api' | |||
2 | import { Component, OnInit, ViewChild } from '@angular/core' | 2 | import { Component, OnInit, ViewChild } from '@angular/core' |
3 | import { Notifier, RestPagination, RestTable } from '@app/core' | 3 | import { Notifier, RestPagination, RestTable } from '@app/core' |
4 | import { Account, VideoOwnershipService } from '@app/shared/shared-main' | 4 | import { Account, VideoOwnershipService } from '@app/shared/shared-main' |
5 | import { VideoChangeOwnership, VideoChangeOwnershipStatus } from '@shared/models' | 5 | import { VideoChangeOwnership, VideoChangeOwnershipStatus, VideoChangeOwnershipStatusType } from '@peertube/peertube-models' |
6 | import { MyAcceptOwnershipComponent } from './my-accept-ownership/my-accept-ownership.component' | 6 | import { MyAcceptOwnershipComponent } from './my-accept-ownership/my-accept-ownership.component' |
7 | 7 | ||
8 | @Component({ | 8 | @Component({ |
@@ -32,7 +32,7 @@ export class MyOwnershipComponent extends RestTable implements OnInit { | |||
32 | return 'MyOwnershipComponent' | 32 | return 'MyOwnershipComponent' |
33 | } | 33 | } |
34 | 34 | ||
35 | getStatusClass (status: VideoChangeOwnershipStatus) { | 35 | getStatusClass (status: VideoChangeOwnershipStatusType) { |
36 | switch (status) { | 36 | switch (status) { |
37 | case VideoChangeOwnershipStatus.ACCEPTED: | 37 | case VideoChangeOwnershipStatus.ACCEPTED: |
38 | return 'badge-green' | 38 | return 'badge-green' |
diff --git a/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.ts b/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.ts index 1f7287f44..44e5c45b9 100644 --- a/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.ts +++ b/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.ts | |||
@@ -3,8 +3,7 @@ import { mergeMap } from 'rxjs' | |||
3 | import { Component, OnInit } from '@angular/core' | 3 | import { Component, OnInit } from '@angular/core' |
4 | import { AuthService, Notifier, RestPagination, RestTable, ServerService } from '@app/core' | 4 | import { AuthService, Notifier, RestPagination, RestTable, ServerService } from '@app/core' |
5 | import { DropdownAction, VideoChannelService, VideoChannelSyncService } from '@app/shared/shared-main' | 5 | import { DropdownAction, VideoChannelService, VideoChannelSyncService } from '@app/shared/shared-main' |
6 | import { HTMLServerConfig } from '@shared/models/server' | 6 | import { HTMLServerConfig, VideoChannelSync, VideoChannelSyncState, VideoChannelSyncStateType } from '@peertube/peertube-models' |
7 | import { VideoChannelSync, VideoChannelSyncState } from '@shared/models/videos' | ||
8 | 7 | ||
9 | @Component({ | 8 | @Component({ |
10 | templateUrl: './my-video-channel-syncs.component.html', | 9 | templateUrl: './my-video-channel-syncs.component.html', |
@@ -124,7 +123,7 @@ export class MyVideoChannelSyncsComponent extends RestTable implements OnInit { | |||
124 | return '/my-library/video-channel-syncs/create' | 123 | return '/my-library/video-channel-syncs/create' |
125 | } | 124 | } |
126 | 125 | ||
127 | getSyncStateClass (stateId: VideoChannelSyncState) { | 126 | getSyncStateClass (stateId: VideoChannelSyncStateType) { |
128 | return [ 'pt-badge', MyVideoChannelSyncsComponent.STATE_CLASS_BY_ID[stateId] ] | 127 | return [ 'pt-badge', MyVideoChannelSyncsComponent.STATE_CLASS_BY_ID[stateId] ] |
129 | } | 128 | } |
130 | 129 | ||
diff --git a/client/src/app/+my-library/my-video-channel-syncs/video-channel-sync-edit/video-channel-sync-edit.component.ts b/client/src/app/+my-library/my-video-channel-syncs/video-channel-sync-edit/video-channel-sync-edit.component.ts index a14ab5b92..a40a68764 100644 --- a/client/src/app/+my-library/my-video-channel-syncs/video-channel-sync-edit/video-channel-sync-edit.component.ts +++ b/client/src/app/+my-library/my-video-channel-syncs/video-channel-sync-edit/video-channel-sync-edit.component.ts | |||
@@ -7,7 +7,7 @@ import { listUserChannelsForSelect } from '@app/helpers' | |||
7 | import { VIDEO_CHANNEL_EXTERNAL_URL_VALIDATOR } from '@app/shared/form-validators/video-channel-validators' | 7 | import { VIDEO_CHANNEL_EXTERNAL_URL_VALIDATOR } from '@app/shared/form-validators/video-channel-validators' |
8 | import { FormReactive, FormReactiveService } from '@app/shared/shared-forms' | 8 | import { FormReactive, FormReactiveService } from '@app/shared/shared-forms' |
9 | import { VideoChannelService, VideoChannelSyncService } from '@app/shared/shared-main' | 9 | import { VideoChannelService, VideoChannelSyncService } from '@app/shared/shared-main' |
10 | import { VideoChannelSyncCreate } from '@shared/models/videos' | 10 | import { VideoChannelSyncCreate } from '@peertube/peertube-models' |
11 | 11 | ||
12 | @Component({ | 12 | @Component({ |
13 | selector: 'my-video-channel-sync-edit', | 13 | selector: 'my-video-channel-sync-edit', |
diff --git a/client/src/app/+my-library/my-video-imports/my-video-imports.component.ts b/client/src/app/+my-library/my-video-imports/my-video-imports.component.ts index 7d82f62b9..76cefa7bd 100644 --- a/client/src/app/+my-library/my-video-imports/my-video-imports.component.ts +++ b/client/src/app/+my-library/my-video-imports/my-video-imports.component.ts | |||
@@ -2,7 +2,7 @@ import { SortMeta } from 'primeng/api' | |||
2 | import { Component, OnInit } from '@angular/core' | 2 | import { Component, OnInit } from '@angular/core' |
3 | import { Notifier, RestPagination, RestTable } from '@app/core' | 3 | import { Notifier, RestPagination, RestTable } from '@app/core' |
4 | import { Video, VideoImportService } from '@app/shared/shared-main' | 4 | import { Video, VideoImportService } from '@app/shared/shared-main' |
5 | import { VideoImport, VideoImportState } from '@shared/models' | 5 | import { VideoImport, VideoImportState, VideoImportStateType } from '@peertube/peertube-models' |
6 | 6 | ||
7 | @Component({ | 7 | @Component({ |
8 | templateUrl: './my-video-imports.component.html', | 8 | templateUrl: './my-video-imports.component.html', |
@@ -29,7 +29,7 @@ export class MyVideoImportsComponent extends RestTable implements OnInit { | |||
29 | return 'MyVideoImportsComponent' | 29 | return 'MyVideoImportsComponent' |
30 | } | 30 | } |
31 | 31 | ||
32 | getVideoImportStateClass (state: VideoImportState) { | 32 | getVideoImportStateClass (state: VideoImportStateType) { |
33 | switch (state) { | 33 | switch (state) { |
34 | case VideoImportState.FAILED: | 34 | case VideoImportState.FAILED: |
35 | return 'badge-red' | 35 | return 'badge-red' |
diff --git a/client/src/app/+my-library/my-video-playlists/my-video-playlist-create.component.ts b/client/src/app/+my-library/my-video-playlists/my-video-playlist-create.component.ts index 63f72df3f..a54b3ca86 100644 --- a/client/src/app/+my-library/my-video-playlists/my-video-playlist-create.component.ts +++ b/client/src/app/+my-library/my-video-playlists/my-video-playlist-create.component.ts | |||
@@ -11,8 +11,7 @@ import { | |||
11 | } from '@app/shared/form-validators/video-playlist-validators' | 11 | } from '@app/shared/form-validators/video-playlist-validators' |
12 | import { FormReactiveService } from '@app/shared/shared-forms' | 12 | import { FormReactiveService } from '@app/shared/shared-forms' |
13 | import { VideoPlaylistService } from '@app/shared/shared-video-playlist' | 13 | import { VideoPlaylistService } from '@app/shared/shared-video-playlist' |
14 | import { VideoPlaylistCreate } from '@shared/models/videos/playlist/video-playlist-create.model' | 14 | import { VideoPlaylistCreate, VideoPlaylistPrivacy } from '@peertube/peertube-models' |
15 | import { VideoPlaylistPrivacy } from '@shared/models/videos/playlist/video-playlist-privacy.model' | ||
16 | import { MyVideoPlaylistEdit } from './my-video-playlist-edit' | 15 | import { MyVideoPlaylistEdit } from './my-video-playlist-edit' |
17 | 16 | ||
18 | @Component({ | 17 | @Component({ |
diff --git a/client/src/app/+my-library/my-video-playlists/my-video-playlist-edit.ts b/client/src/app/+my-library/my-video-playlists/my-video-playlist-edit.ts index 71db0592a..127960a58 100644 --- a/client/src/app/+my-library/my-video-playlists/my-video-playlist-edit.ts +++ b/client/src/app/+my-library/my-video-playlists/my-video-playlist-edit.ts | |||
@@ -1,13 +1,12 @@ | |||
1 | import { FormReactive } from '@app/shared/shared-forms' | 1 | import { FormReactive } from '@app/shared/shared-forms' |
2 | import { VideoConstant, VideoPlaylistPrivacy } from '@shared/models' | 2 | import { VideoConstant, VideoPlaylist, VideoPlaylistPrivacyType } from '@peertube/peertube-models' |
3 | import { VideoPlaylist } from '@shared/models/videos/playlist/video-playlist.model' | ||
4 | import { SelectChannelItem } from '../../../types/select-options-item.model' | 3 | import { SelectChannelItem } from '../../../types/select-options-item.model' |
5 | 4 | ||
6 | export abstract class MyVideoPlaylistEdit extends FormReactive { | 5 | export abstract class MyVideoPlaylistEdit extends FormReactive { |
7 | // Declare it here to avoid errors in create template | 6 | // Declare it here to avoid errors in create template |
8 | videoPlaylistToUpdate: VideoPlaylist | 7 | videoPlaylistToUpdate: VideoPlaylist |
9 | userVideoChannels: SelectChannelItem[] = [] | 8 | userVideoChannels: SelectChannelItem[] = [] |
10 | videoPlaylistPrivacies: VideoConstant<VideoPlaylistPrivacy>[] = [] | 9 | videoPlaylistPrivacies: VideoConstant<VideoPlaylistPrivacyType>[] = [] |
11 | 10 | ||
12 | abstract isCreation (): boolean | 11 | abstract isCreation (): boolean |
13 | abstract getFormButtonTitle (): string | 12 | abstract getFormButtonTitle (): string |
diff --git a/client/src/app/+my-library/my-video-playlists/my-video-playlist-elements.component.ts b/client/src/app/+my-library/my-video-playlists/my-video-playlist-elements.component.ts index c9739b6cc..7a9588743 100644 --- a/client/src/app/+my-library/my-video-playlists/my-video-playlist-elements.component.ts +++ b/client/src/app/+my-library/my-video-playlists/my-video-playlist-elements.component.ts | |||
@@ -6,7 +6,7 @@ import { ComponentPagination, ConfirmService, HooksService, Notifier, ScreenServ | |||
6 | import { DropdownAction } from '@app/shared/shared-main' | 6 | import { DropdownAction } from '@app/shared/shared-main' |
7 | import { VideoShareComponent } from '@app/shared/shared-share-modal' | 7 | import { VideoShareComponent } from '@app/shared/shared-share-modal' |
8 | import { VideoPlaylist, VideoPlaylistElement, VideoPlaylistService } from '@app/shared/shared-video-playlist' | 8 | import { VideoPlaylist, VideoPlaylistElement, VideoPlaylistService } from '@app/shared/shared-video-playlist' |
9 | import { VideoPlaylistType } from '@shared/models' | 9 | import { VideoPlaylistType } from '@peertube/peertube-models' |
10 | 10 | ||
11 | @Component({ | 11 | @Component({ |
12 | templateUrl: './my-video-playlist-elements.component.html', | 12 | templateUrl: './my-video-playlist-elements.component.html', |
diff --git a/client/src/app/+my-library/my-video-playlists/my-video-playlist-update.component.ts b/client/src/app/+my-library/my-video-playlists/my-video-playlist-update.component.ts index bbe8a5f80..f29a0cc45 100644 --- a/client/src/app/+my-library/my-video-playlists/my-video-playlist-update.component.ts +++ b/client/src/app/+my-library/my-video-playlists/my-video-playlist-update.component.ts | |||
@@ -13,7 +13,7 @@ import { | |||
13 | } from '@app/shared/form-validators/video-playlist-validators' | 13 | } from '@app/shared/form-validators/video-playlist-validators' |
14 | import { FormReactiveService } from '@app/shared/shared-forms' | 14 | import { FormReactiveService } from '@app/shared/shared-forms' |
15 | import { VideoPlaylist, VideoPlaylistService } from '@app/shared/shared-video-playlist' | 15 | import { VideoPlaylist, VideoPlaylistService } from '@app/shared/shared-video-playlist' |
16 | import { VideoPlaylistUpdate } from '@shared/models' | 16 | import { VideoPlaylistUpdate } from '@peertube/peertube-models' |
17 | import { MyVideoPlaylistEdit } from './my-video-playlist-edit' | 17 | import { MyVideoPlaylistEdit } from './my-video-playlist-edit' |
18 | 18 | ||
19 | @Component({ | 19 | @Component({ |
diff --git a/client/src/app/+my-library/my-video-playlists/my-video-playlists.component.ts b/client/src/app/+my-library/my-video-playlists/my-video-playlists.component.ts index 634176744..08bd94fae 100644 --- a/client/src/app/+my-library/my-video-playlists/my-video-playlists.component.ts +++ b/client/src/app/+my-library/my-video-playlists/my-video-playlists.component.ts | |||
@@ -3,7 +3,7 @@ import { mergeMap } from 'rxjs/operators' | |||
3 | import { Component } from '@angular/core' | 3 | import { Component } from '@angular/core' |
4 | import { AuthService, ComponentPagination, ConfirmService, Notifier } from '@app/core' | 4 | import { AuthService, ComponentPagination, ConfirmService, Notifier } from '@app/core' |
5 | import { VideoPlaylist, VideoPlaylistService } from '@app/shared/shared-video-playlist' | 5 | import { VideoPlaylist, VideoPlaylistService } from '@app/shared/shared-video-playlist' |
6 | import { VideoPlaylistType } from '@shared/models' | 6 | import { VideoPlaylistType } from '@peertube/peertube-models' |
7 | 7 | ||
8 | @Component({ | 8 | @Component({ |
9 | templateUrl: './my-video-playlists.component.html', | 9 | templateUrl: './my-video-playlists.component.html', |
diff --git a/client/src/app/+my-library/my-videos/my-videos.component.ts b/client/src/app/+my-library/my-videos/my-videos.component.ts index 1827d6a0b..4a7604878 100644 --- a/client/src/app/+my-library/my-videos/my-videos.component.ts +++ b/client/src/app/+my-library/my-videos/my-videos.component.ts | |||
@@ -16,7 +16,7 @@ import { | |||
16 | VideosSelectionComponent | 16 | VideosSelectionComponent |
17 | } from '@app/shared/shared-video-miniature' | 17 | } from '@app/shared/shared-video-miniature' |
18 | import { VideoPlaylistService } from '@app/shared/shared-video-playlist' | 18 | import { VideoPlaylistService } from '@app/shared/shared-video-playlist' |
19 | import { VideoChannel, VideoExistInPlaylist, VideosExistInPlaylists, VideoSortField } from '@shared/models' | 19 | import { VideoChannel, VideoExistInPlaylist, VideosExistInPlaylists, VideoSortField } from '@peertube/peertube-models' |
20 | import { VideoChangeOwnershipComponent } from './modals/video-change-ownership.component' | 20 | import { VideoChangeOwnershipComponent } from './modals/video-change-ownership.component' |
21 | 21 | ||
22 | @Component({ | 22 | @Component({ |