aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/server-commands
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-03-22 16:58:49 +0100
committerChocobozzz <me@florianbigard.com>2022-03-22 17:24:32 +0100
commit92e66e04f7f51d37b465cff442ce47f6d6d7cadd (patch)
tree4475c5c601c0f6673ca56afba5b7f70a4fae4ec3 /shared/server-commands
parent1808a1f8e4b7b102823492a2007a46929aebf189 (diff)
downloadPeerTube-92e66e04f7f51d37b465cff442ce47f6d6d7cadd.tar.gz
PeerTube-92e66e04f7f51d37b465cff442ce47f6d6d7cadd.tar.zst
PeerTube-92e66e04f7f51d37b465cff442ce47f6d6d7cadd.zip
Rename studio to editor
Diffstat (limited to 'shared/server-commands')
-rw-r--r--shared/server-commands/server/config-command.ts8
-rw-r--r--shared/server-commands/server/server.ts6
-rw-r--r--shared/server-commands/videos/index.ts2
-rw-r--r--shared/server-commands/videos/video-studio-command.ts (renamed from shared/server-commands/videos/video-editor-command.ts)10
4 files changed, 13 insertions, 13 deletions
diff --git a/shared/server-commands/server/config-command.ts b/shared/server-commands/server/config-command.ts
index 35a1eec7c..ed4961bc3 100644
--- a/shared/server-commands/server/config-command.ts
+++ b/shared/server-commands/server/config-command.ts
@@ -60,7 +60,7 @@ export class ConfigCommand extends AbstractCommand {
60 transcoding: { 60 transcoding: {
61 enabled: false 61 enabled: false
62 }, 62 },
63 videoEditor: { 63 videoStudio: {
64 enabled: false 64 enabled: false
65 } 65 }
66 } 66 }
@@ -111,10 +111,10 @@ export class ConfigCommand extends AbstractCommand {
111 }) 111 })
112 } 112 }
113 113
114 enableEditor () { 114 enableStudio () {
115 return this.updateExistingSubConfig({ 115 return this.updateExistingSubConfig({
116 newConfig: { 116 newConfig: {
117 videoEditor: { 117 videoStudio: {
118 enabled: true 118 enabled: true
119 } 119 }
120 } 120 }
@@ -339,7 +339,7 @@ export class ConfigCommand extends AbstractCommand {
339 } 339 }
340 } 340 }
341 }, 341 },
342 videoEditor: { 342 videoStudio: {
343 enabled: false 343 enabled: false
344 }, 344 },
345 import: { 345 import: {
diff --git a/shared/server-commands/server/server.ts b/shared/server-commands/server/server.ts
index af4423e8d..2bf31b5a4 100644
--- a/shared/server-commands/server/server.ts
+++ b/shared/server-commands/server/server.ts
@@ -25,7 +25,7 @@ import {
25 PlaylistsCommand, 25 PlaylistsCommand,
26 ServicesCommand, 26 ServicesCommand,
27 StreamingPlaylistsCommand, 27 StreamingPlaylistsCommand,
28 VideoEditorCommand, 28 VideoStudioCommand,
29 VideosCommand 29 VideosCommand
30} from '../videos' 30} from '../videos'
31import { CommentsCommand } from '../videos/comments-command' 31import { CommentsCommand } from '../videos/comments-command'
@@ -125,7 +125,7 @@ export class PeerTubeServer {
125 login?: LoginCommand 125 login?: LoginCommand
126 users?: UsersCommand 126 users?: UsersCommand
127 objectStorage?: ObjectStorageCommand 127 objectStorage?: ObjectStorageCommand
128 videoEditor?: VideoEditorCommand 128 videoStudio?: VideoStudioCommand
129 videos?: VideosCommand 129 videos?: VideosCommand
130 130
131 constructor (options: { serverNumber: number } | { url: string }) { 131 constructor (options: { serverNumber: number } | { url: string }) {
@@ -396,6 +396,6 @@ export class PeerTubeServer {
396 this.users = new UsersCommand(this) 396 this.users = new UsersCommand(this)
397 this.videos = new VideosCommand(this) 397 this.videos = new VideosCommand(this)
398 this.objectStorage = new ObjectStorageCommand(this) 398 this.objectStorage = new ObjectStorageCommand(this)
399 this.videoEditor = new VideoEditorCommand(this) 399 this.videoStudio = new VideoStudioCommand(this)
400 } 400 }
401} 401}
diff --git a/shared/server-commands/videos/index.ts b/shared/server-commands/videos/index.ts
index 154aed9a6..c9ef6134d 100644
--- a/shared/server-commands/videos/index.ts
+++ b/shared/server-commands/videos/index.ts
@@ -12,5 +12,5 @@ export * from './playlists-command'
12export * from './services-command' 12export * from './services-command'
13export * from './streaming-playlists-command' 13export * from './streaming-playlists-command'
14export * from './comments-command' 14export * from './comments-command'
15export * from './video-editor-command' 15export * from './video-studio-command'
16export * from './videos-command' 16export * from './videos-command'
diff --git a/shared/server-commands/videos/video-editor-command.ts b/shared/server-commands/videos/video-studio-command.ts
index 485edce8e..9fe467cc2 100644
--- a/shared/server-commands/videos/video-editor-command.ts
+++ b/shared/server-commands/videos/video-studio-command.ts
@@ -1,9 +1,9 @@
1import { HttpStatusCode, VideoEditorTask } from '@shared/models' 1import { HttpStatusCode, VideoStudioTask } from '@shared/models'
2import { AbstractCommand, OverrideCommandOptions } from '../shared' 2import { AbstractCommand, OverrideCommandOptions } from '../shared'
3 3
4export class VideoEditorCommand extends AbstractCommand { 4export class VideoStudioCommand extends AbstractCommand {
5 5
6 static getComplexTask (): VideoEditorTask[] { 6 static getComplexTask (): VideoStudioTask[] {
7 return [ 7 return [
8 // Total duration: 2 8 // Total duration: 2
9 { 9 {
@@ -41,9 +41,9 @@ export class VideoEditorCommand extends AbstractCommand {
41 41
42 createEditionTasks (options: OverrideCommandOptions & { 42 createEditionTasks (options: OverrideCommandOptions & {
43 videoId: number | string 43 videoId: number | string
44 tasks: VideoEditorTask[] 44 tasks: VideoStudioTask[]
45 }) { 45 }) {
46 const path = '/api/v1/videos/' + options.videoId + '/editor/edit' 46 const path = '/api/v1/videos/' + options.videoId + '/studio/edit'
47 const attaches: { [id: string]: any } = {} 47 const attaches: { [id: string]: any } = {}
48 48
49 for (let i = 0; i < options.tasks.length; i++) { 49 for (let i = 0; i < options.tasks.length; i++) {