]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Reorganize watch components
authorChocobozzz <me@florianbigard.com>
Tue, 29 Jun 2021 15:18:30 +0000 (17:18 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 29 Jun 2021 15:18:39 +0000 (17:18 +0200)
37 files changed:
client/src/app/+videos/+video-watch/shared/comment/index.ts [new file with mode: 0644]
client/src/app/+videos/+video-watch/shared/comment/video-comment-add.component.html [moved from client/src/app/+videos/+video-watch/comment/video-comment-add.component.html with 100% similarity]
client/src/app/+videos/+video-watch/shared/comment/video-comment-add.component.scss [moved from client/src/app/+videos/+video-watch/comment/video-comment-add.component.scss with 100% similarity]
client/src/app/+videos/+video-watch/shared/comment/video-comment-add.component.ts [moved from client/src/app/+videos/+video-watch/comment/video-comment-add.component.ts with 100% similarity]
client/src/app/+videos/+video-watch/shared/comment/video-comment.component.html [moved from client/src/app/+videos/+video-watch/comment/video-comment.component.html with 100% similarity]
client/src/app/+videos/+video-watch/shared/comment/video-comment.component.scss [moved from client/src/app/+videos/+video-watch/comment/video-comment.component.scss with 100% similarity]
client/src/app/+videos/+video-watch/shared/comment/video-comment.component.ts [moved from client/src/app/+videos/+video-watch/comment/video-comment.component.ts with 100% similarity]
client/src/app/+videos/+video-watch/shared/comment/video-comments.component.html [moved from client/src/app/+videos/+video-watch/comment/video-comments.component.html with 100% similarity]
client/src/app/+videos/+video-watch/shared/comment/video-comments.component.scss [moved from client/src/app/+videos/+video-watch/comment/video-comments.component.scss with 100% similarity]
client/src/app/+videos/+video-watch/shared/comment/video-comments.component.ts [moved from client/src/app/+videos/+video-watch/comment/video-comments.component.ts with 100% similarity]
client/src/app/+videos/+video-watch/shared/index.ts [new file with mode: 0644]
client/src/app/+videos/+video-watch/shared/metadata/index.ts [new file with mode: 0644]
client/src/app/+videos/+video-watch/shared/metadata/video-avatar-channel.component.html [moved from client/src/app/+videos/+video-watch/video-avatar-channel.component.html with 100% similarity]
client/src/app/+videos/+video-watch/shared/metadata/video-avatar-channel.component.scss [moved from client/src/app/+videos/+video-watch/video-avatar-channel.component.scss with 100% similarity]
client/src/app/+videos/+video-watch/shared/metadata/video-avatar-channel.component.ts [moved from client/src/app/+videos/+video-watch/video-avatar-channel.component.ts with 100% similarity]
client/src/app/+videos/+video-watch/shared/metadata/video-description.component.html [moved from client/src/app/+videos/+video-watch/video-description.component.html with 100% similarity]
client/src/app/+videos/+video-watch/shared/metadata/video-description.component.scss [moved from client/src/app/+videos/+video-watch/video-description.component.scss with 100% similarity]
client/src/app/+videos/+video-watch/shared/metadata/video-description.component.ts [moved from client/src/app/+videos/+video-watch/video-description.component.ts with 100% similarity]
client/src/app/+videos/+video-watch/shared/metadata/video-rate.component.html [moved from client/src/app/+videos/+video-watch/video-rate.component.html with 100% similarity]
client/src/app/+videos/+video-watch/shared/metadata/video-rate.component.scss [moved from client/src/app/+videos/+video-watch/video-rate.component.scss with 100% similarity]
client/src/app/+videos/+video-watch/shared/metadata/video-rate.component.ts [moved from client/src/app/+videos/+video-watch/video-rate.component.ts with 100% similarity]
client/src/app/+videos/+video-watch/shared/playlist/index.ts [new file with mode: 0644]
client/src/app/+videos/+video-watch/shared/playlist/video-watch-playlist.component.html [moved from client/src/app/+videos/+video-watch/video-watch-playlist.component.html with 100% similarity]
client/src/app/+videos/+video-watch/shared/playlist/video-watch-playlist.component.scss [moved from client/src/app/+videos/+video-watch/video-watch-playlist.component.scss with 100% similarity]
client/src/app/+videos/+video-watch/shared/playlist/video-watch-playlist.component.ts [moved from client/src/app/+videos/+video-watch/video-watch-playlist.component.ts with 100% similarity]
client/src/app/+videos/+video-watch/shared/recommendations/index.ts [new file with mode: 0644]
client/src/app/+videos/+video-watch/shared/recommendations/recent-videos-recommendation.service.ts [moved from client/src/app/+videos/+video-watch/recommendations/recent-videos-recommendation.service.ts with 100% similarity]
client/src/app/+videos/+video-watch/shared/recommendations/recommendation-info.model.ts [moved from client/src/app/+videos/+video-watch/recommendations/recommendation-info.model.ts with 100% similarity]
client/src/app/+videos/+video-watch/shared/recommendations/recommendations.module.ts [moved from client/src/app/+videos/+video-watch/recommendations/recommendations.module.ts with 100% similarity]
client/src/app/+videos/+video-watch/shared/recommendations/recommendations.service.ts [moved from client/src/app/+videos/+video-watch/recommendations/recommendations.service.ts with 100% similarity]
client/src/app/+videos/+video-watch/shared/recommendations/recommended-videos.component.html [moved from client/src/app/+videos/+video-watch/recommendations/recommended-videos.component.html with 100% similarity]
client/src/app/+videos/+video-watch/shared/recommendations/recommended-videos.component.scss [moved from client/src/app/+videos/+video-watch/recommendations/recommended-videos.component.scss with 100% similarity]
client/src/app/+videos/+video-watch/shared/recommendations/recommended-videos.component.ts [moved from client/src/app/+videos/+video-watch/recommendations/recommended-videos.component.ts with 100% similarity]
client/src/app/+videos/+video-watch/shared/recommendations/recommended-videos.store.ts [moved from client/src/app/+videos/+video-watch/recommendations/recommended-videos.store.ts with 100% similarity]
client/src/app/+videos/+video-watch/shared/timestamp-route-transformer.directive.ts [moved from client/src/app/+videos/+video-watch/timestamp-route-transformer.directive.ts with 100% similarity]
client/src/app/+videos/+video-watch/video-watch.component.ts
client/src/app/+videos/+video-watch/video-watch.module.ts

diff --git a/client/src/app/+videos/+video-watch/shared/comment/index.ts b/client/src/app/+videos/+video-watch/shared/comment/index.ts
new file mode 100644 (file)
index 0000000..2f2c698
--- /dev/null
@@ -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/shared/index.ts b/client/src/app/+videos/+video-watch/shared/index.ts
new file mode 100644 (file)
index 0000000..a6c2d75
--- /dev/null
@@ -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.ts
new file mode 100644 (file)
index 0000000..ba97f70
--- /dev/null
@@ -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/shared/playlist/index.ts b/client/src/app/+videos/+video-watch/shared/playlist/index.ts
new file mode 100644 (file)
index 0000000..5397055
--- /dev/null
@@ -0,0 +1 @@
+export * from './video-watch-playlist.component'
diff --git a/client/src/app/+videos/+video-watch/shared/recommendations/index.ts b/client/src/app/+videos/+video-watch/shared/recommendations/index.ts
new file mode 100644 (file)
index 0000000..ffcf845
--- /dev/null
@@ -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'
index e6b35322082d87748159097c7baa9456568124c8..9bc82d667e0ac6fcec29892e62e01a7d3aaa0936 100644 (file)
@@ -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 }
 
index 93b143542ff995878dba19a537c25fce6eb509fc..f4484f1feb09311a4152183a2e8ec1dfb1f67da4 100644 (file)
@@ -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'