add framasoft logo plugin
This commit is contained in:
parent
b6a854780d
commit
b4ff861a34
1
peertube-plugin-logo-framasoft/README.md
Normal file
1
peertube-plugin-logo-framasoft/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
# Framasoft logo on PeerTube
|
5
peertube-plugin-logo-framasoft/assets/logo.css
Normal file
5
peertube-plugin-logo-framasoft/assets/logo.css
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#custom-css .icon.icon-logo {
|
||||||
|
background: url('/plugins/logo-framasoft/0.0.1/static/images/framasoft-logo.png') no-repeat;
|
||||||
|
width: 25px;
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
function register ({ registerHook, peertubeHelpers }) {
|
||||||
|
const favicon = document.querySelector('link[rel="icon"]')
|
||||||
|
favicon.href = peertubeHelpers.getBaseStaticRoute() + '/images/framasoft-logo.png'
|
||||||
|
}
|
||||||
|
|
||||||
|
export {
|
||||||
|
register
|
||||||
|
}
|
14
peertube-plugin-logo-framasoft/main.js
Normal file
14
peertube-plugin-logo-framasoft/main.js
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
async function register ({ registerHook, registerSetting, settingsManager, storageManager }) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
async function unregister () {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
register,
|
||||||
|
unregister
|
||||||
|
}
|
||||||
|
|
||||||
|
// ############################################################################
|
29
peertube-plugin-logo-framasoft/package.json
Normal file
29
peertube-plugin-logo-framasoft/package.json
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
"name": "peertube-plugin-logo-framasoft",
|
||||||
|
"version": "0.0.1",
|
||||||
|
"description": "Framasoft logo on PeerTube.",
|
||||||
|
"engine": {
|
||||||
|
"peertube": ">=1.3.0"
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"peertube",
|
||||||
|
"plugin"
|
||||||
|
],
|
||||||
|
"homepage": "https://framagit.org/framasoft/peertube/official-plugins/tree/master/peertube-plugin-logo-framasoft",
|
||||||
|
"author": "Chocobozzz",
|
||||||
|
"bugs": "https://framagit.org/framasoft/peertube/official-plugins/issues",
|
||||||
|
"library": "./main.js",
|
||||||
|
"staticDirs": {
|
||||||
|
"images": "public/images"
|
||||||
|
},
|
||||||
|
"css": [
|
||||||
|
"assets/logo.css"
|
||||||
|
],
|
||||||
|
"clientScripts": [
|
||||||
|
{
|
||||||
|
"script": "client/common-client-plugin.js",
|
||||||
|
"scopes": [ "common" ]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"translations": {}
|
||||||
|
}
|
BIN
peertube-plugin-logo-framasoft/public/images/framasoft-logo.png
Normal file
BIN
peertube-plugin-logo-framasoft/public/images/framasoft-logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.0 KiB |
Loading…
x
Reference in New Issue
Block a user