1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Add ability for plugins to register client routes

This commit is contained in:
Chocobozzz 2021-12-10 15:01:12 +01:00
parent 03a65456f4
commit d63e6d4604
No known key found for this signature in database
GPG key ID: 583A612D890159BE
14 changed files with 151 additions and 13 deletions

View file

@ -4,4 +4,5 @@ export * from './plugin-element-placeholder.type'
export * from './plugin-selector-id.type'
export * from './register-client-form-field.model'
export * from './register-client-hook.model'
export * from './register-client-route.model'
export * from './register-client-settings-script.model'

View file

@ -0,0 +1,7 @@
export interface RegisterClientRouteOptions {
route: string
onMount (options: {
rootEl: HTMLElement
}): void
}

View file

@ -1,6 +1,6 @@
import { RegisterServerSettingOptions } from '../server'
export interface RegisterClientSettingsScript {
export interface RegisterClientSettingsScriptOptions {
isSettingHidden (options: {
setting: RegisterServerSettingOptions
formValues: { [name: string]: any }