mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
(plugins) adding signup scope and init hook, modifying ensureUserRegistrationAllowed allowedParams
This commit is contained in:
@@ -38,7 +38,10 @@ export const clientFilterHookObject = {
|
||||
'filter:api.search.videos.list.result': true,
|
||||
// Filter params/result of the function that fetch video-channels according to the user search
|
||||
'filter:api.search.video-channels.list.params': true,
|
||||
'filter:api.search.video-channels.list.result': true
|
||||
'filter:api.search.video-channels.list.result': true,
|
||||
|
||||
// Filter form
|
||||
'filter:api.signup.registration.create.params': true
|
||||
}
|
||||
|
||||
export type ClientFilterHookName = keyof typeof clientFilterHookObject
|
||||
@@ -58,7 +61,10 @@ export const clientActionHookObject = {
|
||||
'action:search.init': true,
|
||||
|
||||
// Fired every time Angular URL changes
|
||||
'action:router.navigation-end': true
|
||||
'action:router.navigation-end': true,
|
||||
|
||||
// Fired when the registration page is being initialized
|
||||
'action:signup.register.init': true
|
||||
}
|
||||
|
||||
export type ClientActionHookName = keyof typeof clientActionHookObject
|
||||
|
||||
@@ -1 +1 @@
|
||||
export type PluginClientScope = 'common' | 'video-watch' | 'search'
|
||||
export type PluginClientScope = 'common' | 'video-watch' | 'search' | 'signup'
|
||||
|
||||
@@ -3,7 +3,8 @@ export interface RegisterServerSettingOptions {
|
||||
label: string
|
||||
type: 'input'
|
||||
|
||||
// If the setting is not private, anyone can view its value
|
||||
// If the setting is not private, anyone can view its value (client code included)
|
||||
// If the setting is private, only server-side hooks can access it
|
||||
// Mainly used by the PeerTube client to get admin config
|
||||
private: boolean
|
||||
|
||||
|
||||
Reference in New Issue
Block a user