Skip to content

Commit c360acd

Browse files
Merge pull request #1647 from Arnei/chapter-editor
2 parents 6d2670c + a974831 commit c360acd

20 files changed

+1338
-208
lines changed

editor-settings.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,24 @@ spanish = { lang = "es" }
135135
# "type" = "presentation"
136136
# "subtype" = "preview"
137137

138+
###
139+
# Chapters
140+
##
141+
142+
[chapters]
143+
144+
# If the chapter editor appears in the main menu
145+
# Type: boolean
146+
# Default: false
147+
#show = false
148+
149+
# The main flavor of the chapters track in Opencast
150+
# No other track should have the same main flavor as chapters track
151+
# Type: string
152+
# Default: "chapters"
153+
#mainFlavor = "chapters"
154+
155+
138156
####
139157
# Thumbnail Selection
140158
##

package-lock.json

Lines changed: 30 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/config.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ interface iSettings {
6969
icons: { [key: string]: string; } | undefined,
7070
defaultVideoFlavor: Flavor | undefined,
7171
};
72+
chapters: {
73+
show: boolean,
74+
mainFlavor: string,
75+
defaultVideoFlavor: Flavor | undefined,
76+
};
7277
}
7378

7479
/**
@@ -109,6 +114,11 @@ const defaultSettings: iSettings = {
109114
icons: undefined,
110115
defaultVideoFlavor: undefined,
111116
},
117+
chapters: {
118+
show: false,
119+
mainFlavor: "chapters",
120+
defaultVideoFlavor: undefined,
121+
},
112122
};
113123
let configFileSettings: iSettings;
114124
let urlParameterSettings: iSettings;
@@ -418,6 +428,11 @@ const SCHEMA = {
418428
icons: types.map,
419429
defaultVideoFlavor: types.map,
420430
},
431+
chapters: {
432+
show: types.boolean,
433+
mainFlavor: types.string,
434+
defaultVideoFlavor: types.map,
435+
},
421436
thumbnail: {
422437
show: types.boolean,
423438
simpleMode: types.boolean,

src/i18n/locales/en-US.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"finish-button": "Finish",
55
"select-tracks-button": "Tracks",
66
"subtitles-button": "Subtitles",
7+
"chapters-button": "Chapters",
78
"thumbnail-button": "Thumbnail",
89
"metadata-button": "Metadata",
910
"keyboard-controls-button": "Keyboard Controls",
@@ -14,12 +15,20 @@
1415
"cut-button": "Cut",
1516
"cut-tooltip": "Split the segment at the current timeline marker position. Hotkey: {{hotkeyName}}",
1617
"cut-tooltip-aria": "Cut. Split the segment at the current timeline marker position. Hotkey: {{hotkeyName}}.",
18+
"add-button": "Add",
19+
"add-tooltip": "Add a segment at the current timeline marker position. Hotkey: {{hotkeyName}}",
20+
"add-tooltip-aria": "Add. Add a segment at the current timeline marker position. Hotkey: {{hotkeyName}}.",
1721
"delete-button": "Delete",
1822
"delete-restore-tooltip": "Mark or unmark the segment at the current position as to be deleted. Hotkey: {{hotkeyName}}",
1923
"delete-restore-tooltip-aria": "Delete and Restore. Mark or unmark the segment at the current position as to be deleted. Hotkey: {{hotkeyName}}.",
24+
"deleteByMerge-tooltip": "Remove the segment at the current position. Hotkey: {{hotkeyName}}",
25+
"deleteByMerge-tooltip-aria": "Remove the segment at the current position. Hotkey: {{hotkeyName}}.",
2026
"merge-all-button": "Merge All",
2127
"merge-all-tooltip": "Combine all segments into a single segment.",
2228
"merge-all-tooltip-aria": "Merge All. Combine all segments into a single segment.",
29+
"delete-all-button": "Delete All",
30+
"delete-all-tooltip": "Remove all segments.",
31+
"delete-all-tooltip-aria": "Delete All. Remove all segments.",
2332
"restore-button": "Restore",
2433
"mergeLeft-button": "Merge Left",
2534
"mergeLeft-tooltip": "Combine the currently active segment with the segment to its left. Hotkey: {{hotkeyName}}",
@@ -318,6 +327,10 @@
318327
"overviewTimelineTooltip": "Timeline overview"
319328
},
320329

330+
"chapters": {
331+
"editTitle": "Chapter Editor"
332+
},
333+
321334
"keyboardControls": {
322335
"header": "Shortcuts",
323336
"defaultGroupName": "General",

0 commit comments

Comments
 (0)