Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion public/editor-settings.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ callbackSystem = "OPENCAST"

[opencast]
# Connect to develop.opencast.org and use the default demo user
url = 'https://develop.opencast.org'
# url = 'https://develop.opencast.org'
# When using the vite proxy, leave url empty so requests go through the dev server
url = ''
Comment thread
Bennit99 marked this conversation as resolved.
Outdated
name = "admin"
password = "opencast"

Expand Down Expand Up @@ -48,3 +50,6 @@ spanish = { lang = "es" }

[thumbnail]
show = true

[comments]
show = true
Comment thread
Bennit99 marked this conversation as resolved.
Outdated
9 changes: 9 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ interface iSettings {
mainFlavor: string,
defaultVideoFlavor: Flavor | undefined,
};
comments?: {
show: boolean,
},
}

/**
Expand Down Expand Up @@ -124,6 +127,9 @@ const defaultSettings: iSettings = {
mainFlavor: "chapters",
defaultVideoFlavor: undefined,
},
comments: {
show: false,
},
};
let configFileSettings: iSettings;
let urlParameterSettings: iSettings;
Expand Down Expand Up @@ -430,6 +436,9 @@ const SCHEMA = {
show: types.boolean,
simpleMode: types.boolean,
},
comments: {
show: types.boolean,
},
};

const merge = (a: iSettings, b: iSettings) => {
Expand Down
4 changes: 2 additions & 2 deletions src/cssStyles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const basicButtonStyle = (theme: Theme) => css({
* CSS for deactivated buttons
*/
export const deactivatedButtonStyle = css({
borderRadius: "10px",
borderRadius: "5px",
cursor: "pointer",
opacity: "0.6",
// Flex position child elements
Expand All @@ -83,7 +83,7 @@ export const deactivatedButtonStyle = css({
});

/**
* CSS for nagivation styled buttons
* CSS for navigation styled buttons
*/
export const navigationButtonStyle = (theme: Theme) => css({
width: "200px",
Expand Down
44 changes: 43 additions & 1 deletion src/i18n/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"chapters-button": "Chapters",
"thumbnail-button": "Thumbnail",
"metadata-button": "Metadata",
"comments-button": "Comments",
"keyboard-controls-button": "Keyboard Controls",
"tooltip-aria": "Main Navigation"
},
Expand Down Expand Up @@ -246,7 +247,8 @@
"error-text": "An error has occurred. Please wait a bit and try again.",
"goBack-button": "No, take me back",
"callback-button-system": "Back to {{system}}",
"callback-button-generic": "Back to previous system"
"callback-button-generic": "Back to previous system",
"loading": "Loading..."
},

"trackSelection": {
Expand Down Expand Up @@ -331,6 +333,46 @@
"editTitle": "Chapter Editor"
},

"comments": {
"no-comments": "No comments yet. Be the first to comment!",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would make sense for a social media post or similar, but there is no reason to incentivize posting comments in Opencast. I think "No comments yet." is enough.

"resolved": "Resolved",
"open": "Open",
"reply": "Reply",
"delete": "Delete",
"add-comment": "Add Comment",
"placeholder": "Write your comment...",
"select-reason": "Select a reason...",
"submit": "Submit",
"saving": "Saving...",
"reply-to": "Reply to",
"reply-placeholder": "Write your reply to",
"mark-resolved": "Mark as resolved",
"cancel": "Cancel",
"pending": "Pending",
"pending-tooltip": "Pending changes need to be saved in the Finish tab.",
"reasons": {
"cutting": "Cutting required",
"review": "Review required",
"async": "A/V tracks asynchronous",
"audio_issue": "Missing or defective audio track",
"cancelled": "Canceled event",
"conflicting_metadata": "Conflicting metadata",
"improper_point": "Improper in or out point",
"missing_agreement": "Missing agreement",
"other": "Other",
"privacy": "Privacy concern",
"segmentation": "Inaccurate segmentation",
"unknown_creator": "Creator unknown",
"video_issue": "Video distorted or cropped",
"wrong_input_format": "Input file format not supported",
"wrong_metadata": "Metadata needs correction",
"wrong_series_publication": "Wrong series or publication channel",
"wrong_workflow": "Wrong workflow",
"processing_failure": "Processing failure",
"admin_ui_notes": "Notes in Admin UI"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be adminui_notes?

}
},

"keyboardControls": {
"header": "Shortcuts",
"defaultGroupName": "General",
Expand Down
Loading
Loading