From 7828ffd94eb23122bb2d0ead8e781b2b350f4687 Mon Sep 17 00:00:00 2001 From: Daniele Lenares Date: Wed, 6 May 2020 10:12:27 +0200 Subject: Add Clubhouse recipe --- all.json | 11 +++++++++++ archives/clubhouse.tar.gz | Bin 0 -> 69281 bytes uncompressed/clubhouse/.gitignore | 3 +++ uncompressed/clubhouse/README.md | 2 ++ uncompressed/clubhouse/icon.png | Bin 0 -> 82638 bytes uncompressed/clubhouse/icon.svg | 20 ++++++++++++++++++++ uncompressed/clubhouse/index.js | 1 + uncompressed/clubhouse/package.json | 14 ++++++++++++++ uncompressed/clubhouse/webview.js | 11 +++++++++++ 9 files changed, 62 insertions(+) create mode 100644 archives/clubhouse.tar.gz create mode 100644 uncompressed/clubhouse/.gitignore create mode 100644 uncompressed/clubhouse/README.md create mode 100644 uncompressed/clubhouse/icon.png create mode 100644 uncompressed/clubhouse/icon.svg create mode 100644 uncompressed/clubhouse/index.js create mode 100644 uncompressed/clubhouse/package.json create mode 100644 uncompressed/clubhouse/webview.js diff --git a/all.json b/all.json index f046c16..5d26625 100644 --- a/all.json +++ b/all.json @@ -87,6 +87,17 @@ "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/cliq/icon.svg" } }, + { + "author": "Daniele Lenares ", + "featured": false, + "id": "clubhouse", + "name": "Clubhouse", + "version": "1.0.0", + "icons": { + "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/clubhouse/icon.png", + "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/clubhouse/icon.svg" + } + }, { "author": "Stefan Malzner ", "featured": true, diff --git a/archives/clubhouse.tar.gz b/archives/clubhouse.tar.gz new file mode 100644 index 0000000..8b44a8c Binary files /dev/null and b/archives/clubhouse.tar.gz differ diff --git a/uncompressed/clubhouse/.gitignore b/uncompressed/clubhouse/.gitignore new file mode 100644 index 0000000..e026003 --- /dev/null +++ b/uncompressed/clubhouse/.gitignore @@ -0,0 +1,3 @@ +.DS_Store +.idea +.vscode \ No newline at end of file diff --git a/uncompressed/clubhouse/README.md b/uncompressed/clubhouse/README.md new file mode 100644 index 0000000..3066666 --- /dev/null +++ b/uncompressed/clubhouse/README.md @@ -0,0 +1,2 @@ +# Clubhouse for Franz +This is a community Ferdi recipe for [Clubhouse](https://clubhouse.io) diff --git a/uncompressed/clubhouse/icon.png b/uncompressed/clubhouse/icon.png new file mode 100644 index 0000000..c91b19f Binary files /dev/null and b/uncompressed/clubhouse/icon.png differ diff --git a/uncompressed/clubhouse/icon.svg b/uncompressed/clubhouse/icon.svg new file mode 100644 index 0000000..eaf00fc --- /dev/null +++ b/uncompressed/clubhouse/icon.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + diff --git a/uncompressed/clubhouse/index.js b/uncompressed/clubhouse/index.js new file mode 100644 index 0000000..23607bd --- /dev/null +++ b/uncompressed/clubhouse/index.js @@ -0,0 +1 @@ +module.exports = Ferdi => Ferdi; diff --git a/uncompressed/clubhouse/package.json b/uncompressed/clubhouse/package.json new file mode 100644 index 0000000..f21948a --- /dev/null +++ b/uncompressed/clubhouse/package.json @@ -0,0 +1,14 @@ +{ + "id": "clubhouse", + "name": "Clubhouse", + "version": "1.0.0", + "description": "Project Management for Software Teams", + "main": "index.js", + "author": "Daniele Lenares ", + "license": "MIT", + "repository": "https://github.com/dnlnrs/ferdi-recipe-clubhouse", + "config": { + "serviceURL": "https://app.clubhouse.io/{teamId}/dashboard", + "hasTeamId": true + } +} \ No newline at end of file diff --git a/uncompressed/clubhouse/webview.js b/uncompressed/clubhouse/webview.js new file mode 100644 index 0000000..b16ab05 --- /dev/null +++ b/uncompressed/clubhouse/webview.js @@ -0,0 +1,11 @@ +module.exports = (Ferdi) => { + function getMessages() { + let unread = 0; + const hasNotifications = document.querySelector('#notifications-link .badge').classList.contains('visible'); + if (hasNotifications) { + Ferdi.setBadge(1); + } + } + + Ferdi.loop(getMessages); +} -- cgit v1.2.3-70-g09d2