First commit
This commit is contained in:
		
							
								
								
									
										3
									
								
								peertube-theme-background-red/assets/style1.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								peertube-theme-background-red/assets/style1.css
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,3 @@ | ||||
| body { | ||||
|   --mainBackgroundColor: red !important; | ||||
| } | ||||
							
								
								
									
										7
									
								
								peertube-theme-background-red/assets/style2.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								peertube-theme-background-red/assets/style2.css
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,7 @@ | ||||
| body { | ||||
|   --mainForegroundColor: yello !important; | ||||
| } | ||||
|  | ||||
| .action-button-dislike { | ||||
|   display: none !important; | ||||
| } | ||||
| @ -0,0 +1,10 @@ | ||||
| function register ({ registerHook, peertubeHelpers }) { | ||||
|   registerHook({ | ||||
|     target: 'action:video-watch.loaded', | ||||
|     handler: () => console.log('Background red watch world') | ||||
|   }) | ||||
| } | ||||
|  | ||||
| export { | ||||
|   register | ||||
| } | ||||
							
								
								
									
										23
									
								
								peertube-theme-background-red/main.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								peertube-theme-background-red/main.js
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,23 @@ | ||||
| function register ({ registerHook }) { | ||||
|   registerHook({ | ||||
|     target: 'action:application.listening', | ||||
|     handler: displayHelloWorld | ||||
|   }) | ||||
|  | ||||
|   displayHelloWorld() | ||||
| } | ||||
|  | ||||
| async function unregister () { | ||||
|   return | ||||
| } | ||||
|  | ||||
| module.exports = { | ||||
|   register, | ||||
|   unregister | ||||
| } | ||||
|  | ||||
| // ############################################################################ | ||||
|  | ||||
| function displayHelloWorld () { | ||||
|   console.log('hello world peertube') | ||||
| } | ||||
							
								
								
									
										28
									
								
								peertube-theme-background-red/package.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								peertube-theme-background-red/package.json
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,28 @@ | ||||
| { | ||||
|   "name": "peertube-theme-background-red", | ||||
|   "version": "0.0.1", | ||||
|   "description": "Example PeerTube theme", | ||||
|   "engine": { | ||||
|     "peertube": ">=1.3.1" | ||||
|   }, | ||||
|   "keywords": [ | ||||
|     "peertube", | ||||
|     "theme" | ||||
|   ], | ||||
|   "homepage": "https://github.com/Chocobozzz/PeerTube", | ||||
|   "author": "Chocobozzz", | ||||
|   "bugs": "https://github.com/Chocobozzz/PeerTube/issues", | ||||
|   "staticDirs": { | ||||
|     "images": "public/images" | ||||
|   }, | ||||
|   "css": [ | ||||
|     "assets/style1.css", | ||||
|     "assets/style2.css" | ||||
|   ], | ||||
|   "clientScripts": [ | ||||
|     { | ||||
|       "script": "client/video-watch-client-plugin.js", | ||||
|       "scopes": [ "video-watch" ] | ||||
|     } | ||||
|   ] | ||||
| } | ||||
							
								
								
									
										
											BIN
										
									
								
								peertube-theme-background-red/public/images/chocobo.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								peertube-theme-background-red/public/images/chocobo.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 46 KiB | 
		Reference in New Issue
	
	Block a user