aboutsummaryrefslogtreecommitdiffstats
path: root/uncompressed/clubhouse
diff options
context:
space:
mode:
Diffstat (limited to 'uncompressed/clubhouse')
-rw-r--r--uncompressed/clubhouse/.gitignore3
-rw-r--r--uncompressed/clubhouse/README.md2
-rw-r--r--uncompressed/clubhouse/icon.pngbin0 -> 82638 bytes
-rw-r--r--uncompressed/clubhouse/icon.svg20
-rw-r--r--uncompressed/clubhouse/index.js1
-rw-r--r--uncompressed/clubhouse/package.json14
-rw-r--r--uncompressed/clubhouse/webview.js10
7 files changed, 50 insertions, 0 deletions
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 @@
1.DS_Store
2.idea
3.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 @@
1# Clubhouse for Franz
2This 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
--- /dev/null
+++ b/uncompressed/clubhouse/icon.png
Binary files 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 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4 viewBox="0 0 1000 1000" style="enable-background:new 0 0 1000 1000;" xml:space="preserve">
5<style type="text/css">
6 .st0{fill:#6515DD;}
7 .st1{fill:#FFFFFF;}
8</style>
9<rect x="-0.1" class="st0" width="1000.1" height="1000.1"/>
10<g>
11 <g>
12 <g>
13 <path class="st1" d="M235.9,651c-24.7,0-44.9,20.1-44.9,44.9c0,24.7,20.1,44.9,44.9,44.9s44.9-20.1,44.9-44.9
14 C280.8,671.1,260.7,651,235.9,651z"/>
15 </g>
16 <path class="st1" d="M788,259.4l-282.4,90v-89.1l-304.5,97.2v258.2l262.5-83.8v88.7l345.3-110.3l-93.5-91.4L788,259.4z
17 M463.6,487.7L243,558.1V388.3L463.6,318V487.7z M730.7,491.2L505.5,563V393.5L713,327.1l-47.5,100.3L730.7,491.2z"/>
18 </g>
19</g>
20</svg>
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..ce49f10
--- /dev/null
+++ b/uncompressed/clubhouse/package.json
@@ -0,0 +1,14 @@
1{
2 "id": "clubhouse",
3 "name": "Clubhouse",
4 "version": "1.0.1",
5 "description": "Project Management for Software Teams",
6 "main": "index.js",
7 "author": "Daniele Lenares <daniele.lenares@gmail.com>",
8 "license": "MIT",
9 "repository": "https://github.com/dnlnrs/ferdi-recipe-clubhouse",
10 "config": {
11 "serviceURL": "https://app.clubhouse.io/{teamId}/dashboard",
12 "hasTeamId": true
13 }
14}
diff --git a/uncompressed/clubhouse/webview.js b/uncompressed/clubhouse/webview.js
new file mode 100644
index 0000000..51cd09d
--- /dev/null
+++ b/uncompressed/clubhouse/webview.js
@@ -0,0 +1,10 @@
1module.exports = (Ferdi) => {
2 function getMessages() {
3 const hasNotifications = document.querySelector('#notifications-link .badge').classList.contains('visible');
4 if (hasNotifications) {
5 Ferdi.setBadge(0, 1);
6 }
7 }
8
9 Ferdi.loop(getMessages);
10}