peertube-theme-nctv-dark/peertube-plugin-hello-world/client/video-edit-client-plugin.js

21 lines
380 B
JavaScript
Raw Normal View History

2020-08-21 12:45:18 +00:00
function register ({ registerVideoField }) {
console.log('loading video edit stuff')
{
const commonOptions = {
name: 'hello-world-field',
label: 'Super field',
type: 'input',
default: 'hello'
}
for (const type of [ 'upload', 'import-url', 'update' ]) {
registerVideoField(commonOptions, { type })
}
}
}
export {
register
}