diff --git a/peertube-plugin-hello-world/assets/style1.css b/peertube-plugin-hello-world/assets/style1.css index 1a5aacc..90f23c6 100644 --- a/peertube-plugin-hello-world/assets/style1.css +++ b/peertube-plugin-hello-world/assets/style1.css @@ -1,3 +1,3 @@ -body { - --mainBackgroundColor: black !important; +.header-right { + background-color: black; } diff --git a/peertube-plugin-hello-world/assets/style2.css b/peertube-plugin-hello-world/assets/style2.css index 3f254ad..1c6fb10 100644 --- a/peertube-plugin-hello-world/assets/style2.css +++ b/peertube-plugin-hello-world/assets/style2.css @@ -1,3 +1,3 @@ -body { - color: white !important; +.upload-button { + background-color: red !important; } diff --git a/peertube-plugin-hello-world/main.js b/peertube-plugin-hello-world/main.js index c98b1d9..8f08f8d 100644 --- a/peertube-plugin-hello-world/main.js +++ b/peertube-plugin-hello-world/main.js @@ -6,7 +6,8 @@ async function register ({ storageManager, videoCategoryManager, videoLicenceManager, - videoLanguageManager + videoLanguageManager, + registerExternalAuth }) { const defaultAdmin = 'PeerTube admin' @@ -79,6 +80,21 @@ async function register ({ router.post('/form/post/mirror', (req, res) => { res.json(req.body) }) + + { + const result = registerExternalAuth({ + authName: 'fake-auth', + authDisplayName: 'fake auth', + onAuthRequest: (req, res) => { + result.userAuthenticated({ + req, + res, + username: 'fake_auth_username', + email: 'fake_auth_username@example.com' + }) + } + }) + } } async function unregister () {