add framasoft logo plugin

This commit is contained in:
Chocobozzz 2019-08-02 10:21:15 +02:00
parent b6a854780d
commit b4ff861a34
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
6 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1 @@
# Framasoft logo on PeerTube

View 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;
}

View File

@ -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
}

View File

@ -0,0 +1,14 @@
async function register ({ registerHook, registerSetting, settingsManager, storageManager }) {
}
async function unregister () {
return
}
module.exports = {
register,
unregister
}
// ############################################################################

View 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": {}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB