Use chocobo.png
This commit is contained in:
		| @ -1,10 +1,21 @@ | |||||||
| function register ({ registerHook, peertubeHelpers }) { | function register ({ registerHook, peertubeHelpers }) { | ||||||
|   registerHook({ |   registerHook({ | ||||||
|     target: 'action:application.loaded', |     target: 'action:application.loaded', | ||||||
|     handler: () => console.log('Hello application world') |     handler: () => onApplicationLoaded(peertubeHelpers) | ||||||
|   }) |   }) | ||||||
| } | } | ||||||
|  |  | ||||||
| export { | export { | ||||||
|   register |   register | ||||||
| } | } | ||||||
|  |  | ||||||
|  | function onApplicationLoaded (peertubeHelpers) { | ||||||
|  |   console.log('Hello application world') | ||||||
|  |  | ||||||
|  |   const baseStaticUrl = peertubeHelpers.getBaseStaticRoute() | ||||||
|  |   const imageUrl = baseStaticUrl + '/images/chocobo.png' | ||||||
|  |  | ||||||
|  |   const topLeftBlock = document.querySelector('.top-left-block') | ||||||
|  |  | ||||||
|  |   topLeftBlock.style.backgroundImage = 'url(' + imageUrl + ')' | ||||||
|  | } | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| { | { | ||||||
|   "name": "peertube-plugin-hello-world", |   "name": "peertube-plugin-hello-world", | ||||||
|   "version": "0.0.7", |   "version": "0.0.8", | ||||||
|   "description": "Hello world PeerTube plugin example", |   "description": "Hello world PeerTube plugin example", | ||||||
|   "engine": { |   "engine": { | ||||||
|     "peertube": ">=1.3.0" |     "peertube": ">=1.3.0" | ||||||
|  | |||||||
| @ -1,3 +1,8 @@ | |||||||
| body { | body { | ||||||
|   --mainBackgroundColor: red !important; |   --mainBackgroundColor: red !important; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | #custom-css .header .icon-logo { | ||||||
|  |   background: url('../../static/images/chocobo.png') no-repeat; | ||||||
|  |   background-size: contain; | ||||||
|  | } | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| { | { | ||||||
|   "name": "peertube-theme-background-red", |   "name": "peertube-theme-background-red", | ||||||
|   "version": "0.0.1", |   "version": "0.0.2", | ||||||
|   "description": "Example PeerTube theme", |   "description": "Example PeerTube theme", | ||||||
|   "engine": { |   "engine": { | ||||||
|     "peertube": ">=1.3.1" |     "peertube": ">=1.3.1" | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user