Support more filters
This commit is contained in:
		| @ -7,6 +7,19 @@ function register ({ registerHook, peertubeHelpers }) { | ||||
|       document.querySelector('.looking-for-account > div').innerHTML = 'Hello' | ||||
|     } | ||||
|   }) | ||||
|  | ||||
|   registerHook({ | ||||
|     target: 'filter:login.instance-about-plugin-panels.create.result', | ||||
|     handler: result => { | ||||
|       return result.concat([ | ||||
|         { | ||||
|           id: 'riri', | ||||
|           title: 'Riri', | ||||
|           html: 'Riri <strong>Duck</strong>' | ||||
|         } | ||||
|       ]) | ||||
|     } | ||||
|   }) | ||||
| } | ||||
|  | ||||
| export { | ||||
|  | ||||
							
								
								
									
										18
									
								
								peertube-plugin-hello-world/client/signup-client-plugin.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								peertube-plugin-hello-world/client/signup-client-plugin.js
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,18 @@ | ||||
| function register ({ registerHook, peertubeHelpers }) { | ||||
|   registerHook({ | ||||
|     target: 'filter:signup.instance-about-plugin-panels.create.result', | ||||
|     handler: result => { | ||||
|       return result.concat([ | ||||
|         { | ||||
|           id: 'loulou', | ||||
|           title: 'Loulou', | ||||
|           html: 'Loulou <strong>Duck</strong>' | ||||
|         } | ||||
|       ]) | ||||
|     } | ||||
|   }) | ||||
| } | ||||
|  | ||||
| export { | ||||
|   register | ||||
| } | ||||
		Reference in New Issue
	
	Block a user