ActivityPub-federated video streaming platform using P2P directly in your web browser
Reorganize watch components
Chocobozzz911186dae411
diff --git a/client/src/app/+videos/+video-watch/shared/comment/index.ts b/client/src/app/+videos/+video-watch/shared/comment/index.tsnew file mode 100644index 0000000000..2f2c698939--- /dev/null+++ b/client/src/app/+videos/+video-watch/shared/comment/index.ts@@ -0,0 +1,3 @@+export * from './video-comment-add.component'+export * from './video-comment.component'+export * from './video-comments.component'diff --git a/client/src/app/+videos/+video-watch/comment/video-comment-add.component.html b/client/src/app/+videos/+video-watch/shared/comment/video-comment-add.component.htmlsimilarity index 100%rename from client/src/app/+videos/+video-watch/comment/video-comment-add.component.htmlrename to client/src/app/+videos/+video-watch/shared/comment/video-comment-add.component.htmldiff --git a/client/src/app/+videos/+video-watch/comment/video-comment-add.component.scss b/client/src/app/+videos/+video-watch/shared/comment/video-comment-add.component.scsssimilarity index 100%rename from client/src/app/+videos/+video-watch/comment/video-comment-add.component.scssrename to client/src/app/+videos/+video-watch/shared/comment/video-comment-add.component.scssdiff --git a/client/src/app/+videos/+video-watch/comment/video-comment-add.component.ts b/client/src/app/+videos/+video-watch/shared/comment/video-comment-add.component.tssimilarity index 100%rename from client/src/app/+videos/+video-watch/comment/video-comment-add.component.tsrename to client/src/app/+videos/+video-watch/shared/comment/video-comment-add.component.tsdiff --git a/client/src/app/+videos/+video-watch/comment/video-comment.component.html b/client/src/app/+videos/+video-watch/shared/comment/video-comment.component.htmlsimilarity index 100%rename from client/src/app/+videos/+video-watch/comment/video-comment.component.htmlrename to client/src/app/+videos/+video-watch/shared/comment/video-comment.component.htmldiff --git a/client/src/app/+videos/+video-watch/comment/video-comment.component.scss b/client/src/app/+videos/+video-watch/shared/comment/video-comment.component.scsssimilarity index 100%rename from client/src/app/+videos/+video-watch/comment/video-comment.component.scssrename to client/src/app/+videos/+video-watch/shared/comment/video-comment.component.scssdiff --git a/client/src/app/+videos/+video-watch/comment/video-comment.component.ts b/client/src/app/+videos/+video-watch/shared/comment/video-comment.component.tssimilarity index 100%rename from client/src/app/+videos/+video-watch/comment/video-comment.component.tsrename to client/src/app/+videos/+video-watch/shared/comment/video-comment.component.tsdiff --git a/client/src/app/+videos/+video-watch/comment/video-comments.component.html b/client/src/app/+videos/+video-watch/shared/comment/video-comments.component.htmlsimilarity index 100%rename from client/src/app/+videos/+video-watch/comment/video-comments.component.htmlrename to client/src/app/+videos/+video-watch/shared/comment/video-comments.component.htmldiff --git a/client/src/app/+videos/+video-watch/comment/video-comments.component.scss b/client/src/app/+videos/+video-watch/shared/comment/video-comments.component.scsssimilarity index 100%rename from client/src/app/+videos/+video-watch/comment/video-comments.component.scssrename to client/src/app/+videos/+video-watch/shared/comment/video-comments.component.scssdiff --git a/client/src/app/+videos/+video-watch/comment/video-comments.component.ts b/client/src/app/+videos/+video-watch/shared/comment/video-comments.component.tssimilarity index 100%rename from client/src/app/+videos/+video-watch/comment/video-comments.component.tsrename to client/src/app/+videos/+video-watch/shared/comment/video-comments.component.tsdiff --git a/client/src/app/+videos/+video-watch/shared/index.ts b/client/src/app/+videos/+video-watch/shared/index.tsnew file mode 100644index 0000000000..a6c2d75ad3--- /dev/null+++ b/client/src/app/+videos/+video-watch/shared/index.ts@@ -0,0 +1,5 @@+export * from './comment'+export * from './metadata'+export * from './playlist'+export * from './recommendations'+export * from './timestamp-route-transformer.directive'diff --git a/client/src/app/+videos/+video-watch/shared/metadata/index.ts b/client/src/app/+videos/+video-watch/shared/metadata/index.tsnew file mode 100644index 0000000000..ba97f70112--- /dev/null+++ b/client/src/app/+videos/+video-watch/shared/metadata/index.ts@@ -0,0 +1,3 @@+export * from './video-avatar-channel.component'+export * from './video-description.component'+export * from './video-rate.component'diff --git a/client/src/app/+videos/+video-watch/video-avatar-channel.component.html b/client/src/app/+videos/+video-watch/shared/metadata/video-avatar-channel.component.htmlsimilarity index 100%rename from client/src/app/+videos/+video-watch/video-avatar-channel.component.htmlrename to client/src/app/+videos/+video-watch/shared/metadata/video-avatar-channel.component.htmldiff --git a/client/src/app/+videos/+video-watch/video-avatar-channel.component.scss b/client/src/app/+videos/+video-watch/shared/metadata/video-avatar-channel.component.scsssimilarity index 100%rename from client/src/app/+videos/+video-watch/video-avatar-channel.component.scssrename to client/src/app/+videos/+video-watch/shared/metadata/video-avatar-channel.component.scssdiff --git a/client/src/app/+videos/+video-watch/video-avatar-channel.component.ts b/client/src/app/+videos/+video-watch/shared/metadata/video-avatar-channel.component.tssimilarity index 100%rename from client/src/app/+videos/+video-watch/video-avatar-channel.component.tsrename to client/src/app/+videos/+video-watch/shared/metadata/video-avatar-channel.component.tsdiff --git a/client/src/app/+videos/+video-watch/video-description.component.html b/client/src/app/+videos/+video-watch/shared/metadata/video-description.component.htmlsimilarity index 100%rename from client/src/app/+videos/+video-watch/video-description.component.htmlrename to client/src/app/+videos/+video-watch/shared/metadata/video-description.component.htmldiff --git a/client/src/app/+videos/+video-watch/video-description.component.scss b/client/src/app/+videos/+video-watch/shared/metadata/video-description.component.scsssimilarity index 100%rename from client/src/app/+videos/+video-watch/video-description.component.scssrename to client/src/app/+videos/+video-watch/shared/metadata/video-description.component.scssdiff --git a/client/src/app/+videos/+video-watch/video-description.component.ts b/client/src/app/+videos/+video-watch/shared/metadata/video-description.component.tssimilarity index 100%rename from client/src/app/+videos/+video-watch/video-description.component.tsrename to client/src/app/+videos/+video-watch/shared/metadata/video-description.component.tsdiff --git a/client/src/app/+videos/+video-watch/video-rate.component.html b/client/src/app/+videos/+video-watch/shared/metadata/video-rate.component.htmlsimilarity index 100%rename from client/src/app/+videos/+video-watch/video-rate.component.htmlrename to client/src/app/+videos/+video-watch/shared/metadata/video-rate.component.htmldiff --git a/client/src/app/+videos/+video-watch/video-rate.component.scss b/client/src/app/+videos/+video-watch/shared/metadata/video-rate.component.scsssimilarity index 100%rename from client/src/app/+videos/+video-watch/video-rate.component.scssrename to client/src/app/+videos/+video-watch/shared/metadata/video-rate.component.scssdiff --git a/client/src/app/+videos/+video-watch/video-rate.component.ts b/client/src/app/+videos/+video-watch/shared/metadata/video-rate.component.tssimilarity index 100%rename from client/src/app/+videos/+video-watch/video-rate.component.tsrename to client/src/app/+videos/+video-watch/shared/metadata/video-rate.component.tsdiff --git a/client/src/app/+videos/+video-watch/shared/playlist/index.ts b/client/src/app/+videos/+video-watch/shared/playlist/index.tsnew file mode 100644index 0000000000..539705508f--- /dev/null+++ b/client/src/app/+videos/+video-watch/shared/playlist/index.ts@@ -0,0 +1 @@+export * from './video-watch-playlist.component'diff --git a/client/src/app/+videos/+video-watch/video-watch-playlist.component.html b/client/src/app/+videos/+video-watch/shared/playlist/video-watch-playlist.component.htmlsimilarity index 100%rename from client/src/app/+videos/+video-watch/video-watch-playlist.component.htmlrename to client/src/app/+videos/+video-watch/shared/playlist/video-watch-playlist.component.htmldiff --git a/client/src/app/+videos/+video-watch/video-watch-playlist.component.scss b/client/src/app/+videos/+video-watch/shared/playlist/video-watch-playlist.component.scsssimilarity index 100%rename from client/src/app/+videos/+video-watch/video-watch-playlist.component.scssrename to client/src/app/+videos/+video-watch/shared/playlist/video-watch-playlist.component.scssdiff --git a/client/src/app/+videos/+video-watch/video-watch-playlist.component.ts b/client/src/app/+videos/+video-watch/shared/playlist/video-watch-playlist.component.tssimilarity index 100%rename from client/src/app/+videos/+video-watch/video-watch-playlist.component.tsrename to client/src/app/+videos/+video-watch/shared/playlist/video-watch-playlist.component.tsdiff --git a/client/src/app/+videos/+video-watch/shared/recommendations/index.ts b/client/src/app/+videos/+video-watch/shared/recommendations/index.tsnew file mode 100644index 0000000000..ffcf84585d--- /dev/null+++ b/client/src/app/+videos/+video-watch/shared/recommendations/index.ts@@ -0,0 +1,5 @@+export * from './recent-videos-recommendation.service'+export * from './recommendation-info.model'+export * from './recommendations.module'+export * from './recommended-videos.component'+export * from './recommended-videos.store'diff --git a/client/src/app/+videos/+video-watch/recommendations/recent-videos-recommendation.service.ts b/client/src/app/+videos/+video-watch/shared/recommendations/recent-videos-recommendation.service.tssimilarity index 100%rename from client/src/app/+videos/+video-watch/recommendations/recent-videos-recommendation.service.tsrename to client/src/app/+videos/+video-watch/shared/recommendations/recent-videos-recommendation.service.tsdiff --git a/client/src/app/+videos/+video-watch/recommendations/recommendation-info.model.ts b/client/src/app/+videos/+video-watch/shared/recommendations/recommendation-info.model.tssimilarity index 100%rename from client/src/app/+videos/+video-watch/recommendations/recommendation-info.model.tsrename to client/src/app/+videos/+video-watch/shared/recommendations/recommendation-info.model.tsdiff --git a/client/src/app/+videos/+video-watch/recommendations/recommendations.module.ts b/client/src/app/+videos/+video-watch/shared/recommendations/recommendations.module.tssimilarity index 100%rename from client/src/app/+videos/+video-watch/recommendations/recommendations.module.tsrename to client/src/app/+videos/+video-watch/shared/recommendations/recommendations.module.tsdiff --git a/client/src/app/+videos/+video-watch/recommendations/recommendations.service.ts b/client/src/app/+videos/+video-watch/shared/recommendations/recommendations.service.tssimilarity index 100%rename from client/src/app/+videos/+video-watch/recommendations/recommendations.service.tsrename to client/src/app/+videos/+video-watch/shared/recommendations/recommendations.service.tsdiff --git a/client/src/app/+videos/+video-watch/recommendations/recommended-videos.component.html b/client/src/app/+videos/+video-watch/shared/recommendations/recommended-videos.component.htmlsimilarity index 100%rename from client/src/app/+videos/+video-watch/recommendations/recommended-videos.component.htmlrename to client/src/app/+videos/+video-watch/shared/recommendations/recommended-videos.component.htmldiff --git a/client/src/app/+videos/+video-watch/recommendations/recommended-videos.component.scss b/client/src/app/+videos/+video-watch/shared/recommendations/recommended-videos.component.scsssimilarity index 100%rename from client/src/app/+videos/+video-watch/recommendations/recommended-videos.component.scssrename to client/src/app/+videos/+video-watch/shared/recommendations/recommended-videos.component.scssdiff --git a/client/src/app/+videos/+video-watch/recommendations/recommended-videos.component.ts b/client/src/app/+videos/+video-watch/shared/recommendations/recommended-videos.component.tssimilarity index 100%rename from client/src/app/+videos/+video-watch/recommendations/recommended-videos.component.tsrename to client/src/app/+videos/+video-watch/shared/recommendations/recommended-videos.component.tsdiff --git a/client/src/app/+videos/+video-watch/recommendations/recommended-videos.store.ts b/client/src/app/+videos/+video-watch/shared/recommendations/recommended-videos.store.tssimilarity index 100%rename from client/src/app/+videos/+video-watch/recommendations/recommended-videos.store.tsrename to client/src/app/+videos/+video-watch/shared/recommendations/recommended-videos.store.tsdiff --git a/client/src/app/+videos/+video-watch/timestamp-route-transformer.directive.ts b/client/src/app/+videos/+video-watch/shared/timestamp-route-transformer.directive.tssimilarity index 100%rename from client/src/app/+videos/+video-watch/timestamp-route-transformer.directive.tsrename to client/src/app/+videos/+video-watch/shared/timestamp-route-transformer.directive.tsdiff --git a/client/src/app/+videos/+video-watch/video-watch.component.ts b/client/src/app/+videos/+video-watch/video-watch.component.tsindex e6b3532208..9bc82d667e 100644--- a/client/src/app/+videos/+video-watch/video-watch.component.ts+++ b/client/src/app/+videos/+video-watch/video-watch.component.ts@@ -53,7 +53,7 @@ import {} from '../../../assets/player/peertube-player-manager'import { isWebRTCDisabled, timeToInt } from '../../../assets/player/utils'import { environment } from '../../../environments/environment'-import { VideoWatchPlaylistComponent } from './video-watch-playlist.component'+import { VideoWatchPlaylistComponent } from './shared'type URLOptions = CustomizationOptions & { playerMode: PlayerMode }diff --git a/client/src/app/+videos/+video-watch/video-watch.module.ts b/client/src/app/+videos/+video-watch/video-watch.module.tsindex 93b143542f..f4484f1feb 100644--- a/client/src/app/+videos/+video-watch/video-watch.module.ts+++ b/client/src/app/+videos/+video-watch/video-watch.module.ts@@ -12,16 +12,18 @@ import { SharedVideoMiniatureModule } from '@app/shared/shared-video-miniature'import { SharedVideoPlaylistModule } from '@app/shared/shared-video-playlist'import { SharedActorImageModule } from '../../shared/shared-actor-image/shared-actor-image.module'import { VideoCommentService } from '../../shared/shared-video-comment/video-comment.service'-import { VideoCommentAddComponent } from './comment/video-comment-add.component'-import { VideoCommentComponent } from './comment/video-comment.component'-import { VideoCommentsComponent } from './comment/video-comments.component'import { PlayerStylesComponent } from './player-styles.component'-import { RecommendationsModule } from './recommendations/recommendations.module'-import { TimestampRouteTransformerDirective } from './timestamp-route-transformer.directive'-import { VideoAvatarChannelComponent } from './video-avatar-channel.component'-import { VideoDescriptionComponent } from './video-description.component'-import { VideoRateComponent } from './video-rate.component'-import { VideoWatchPlaylistComponent } from './video-watch-playlist.component'+import {+ RecommendationsModule,+ VideoAvatarChannelComponent,+ VideoDescriptionComponent,+ VideoRateComponent,+ VideoWatchPlaylistComponent+} from './shared'+import { VideoCommentAddComponent } from './shared/comment/video-comment-add.component'+import { VideoCommentComponent } from './shared/comment/video-comment.component'+import { VideoCommentsComponent } from './shared/comment/video-comments.component'+import { TimestampRouteTransformerDirective } from './shared/timestamp-route-transformer.directive'import { VideoWatchRoutingModule } from './video-watch-routing.module'import { VideoWatchComponent } from './video-watch.component'