From b4ff861a3458bd502a6b95c9005c90d786f2a74e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 2 Aug 2019 10:21:15 +0200 Subject: [PATCH] add framasoft logo plugin --- peertube-plugin-logo-framasoft/README.md | 1 + .../assets/logo.css | 5 +++ .../client/common-client-plugin.js | 8 +++++ peertube-plugin-logo-framasoft/main.js | 14 +++++++++ peertube-plugin-logo-framasoft/package.json | 29 ++++++++++++++++++ .../public/images/framasoft-logo.png | Bin 0 -> 6169 bytes 6 files changed, 57 insertions(+) create mode 100644 peertube-plugin-logo-framasoft/README.md create mode 100644 peertube-plugin-logo-framasoft/assets/logo.css create mode 100644 peertube-plugin-logo-framasoft/client/common-client-plugin.js create mode 100644 peertube-plugin-logo-framasoft/main.js create mode 100644 peertube-plugin-logo-framasoft/package.json create mode 100644 peertube-plugin-logo-framasoft/public/images/framasoft-logo.png diff --git a/peertube-plugin-logo-framasoft/README.md b/peertube-plugin-logo-framasoft/README.md new file mode 100644 index 0000000..5c3c843 --- /dev/null +++ b/peertube-plugin-logo-framasoft/README.md @@ -0,0 +1 @@ +# Framasoft logo on PeerTube diff --git a/peertube-plugin-logo-framasoft/assets/logo.css b/peertube-plugin-logo-framasoft/assets/logo.css new file mode 100644 index 0000000..c7bc741 --- /dev/null +++ b/peertube-plugin-logo-framasoft/assets/logo.css @@ -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; +} diff --git a/peertube-plugin-logo-framasoft/client/common-client-plugin.js b/peertube-plugin-logo-framasoft/client/common-client-plugin.js new file mode 100644 index 0000000..029c946 --- /dev/null +++ b/peertube-plugin-logo-framasoft/client/common-client-plugin.js @@ -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 +} diff --git a/peertube-plugin-logo-framasoft/main.js b/peertube-plugin-logo-framasoft/main.js new file mode 100644 index 0000000..da5e860 --- /dev/null +++ b/peertube-plugin-logo-framasoft/main.js @@ -0,0 +1,14 @@ +async function register ({ registerHook, registerSetting, settingsManager, storageManager }) { + +} + +async function unregister () { + return +} + +module.exports = { + register, + unregister +} + +// ############################################################################ diff --git a/peertube-plugin-logo-framasoft/package.json b/peertube-plugin-logo-framasoft/package.json new file mode 100644 index 0000000..b450ccd --- /dev/null +++ b/peertube-plugin-logo-framasoft/package.json @@ -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": {} +} diff --git a/peertube-plugin-logo-framasoft/public/images/framasoft-logo.png b/peertube-plugin-logo-framasoft/public/images/framasoft-logo.png new file mode 100644 index 0000000000000000000000000000000000000000..7c374870495c5cd6bf1779c8eba6abccf222157b GIT binary patch literal 6169 zcmbtYc|4Tg_kU(#EQ2uyW6M~Q-3(zYWoab4ELoB;#=gxMTT!S!mXIY9MYcjwXyfBk zBPrPum9?nsTe4H~d!$d_KA+d``}+OyyYt-Vp68tRIrrT2+~?kNC&AL(kb_N-4FCWR zqeCPsu*Gaw78rQ1vzyfc07#_wfdiJ_WHJCqr$wdhJJe{2IcH&AVjwFXilR1KUX_pM zrM{NM6zG@oI)>mQCPnuWBxMv+VtpGL@|()foUf_mtc=C2!9ISRDxMJE{r(ch@#)&| z!v2nv<3U4F(VeBr?Nfq?z3|8`;yd4;uOS{G$B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