First commit

This commit is contained in:
Chocobozzz
2019-07-16 11:53:38 +02:00
commit 91a47fc10f
15 changed files with 832 additions and 0 deletions

View File

@ -0,0 +1,3 @@
body {
--mainBackgroundColor: red !important;
}

View File

@ -0,0 +1,7 @@
body {
--mainForegroundColor: yello !important;
}
.action-button-dislike {
display: none !important;
}

View File

@ -0,0 +1,10 @@
function register ({ registerHook, peertubeHelpers }) {
registerHook({
target: 'action:video-watch.loaded',
handler: () => console.log('Background red watch world')
})
}
export {
register
}

View 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')
}

View 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" ]
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB