aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Daniele Lenares <daniele.lenares@gmail.com>2020-05-06 10:12:27 +0200
committerLibravatar Daniele Lenares <daniele.lenares@gmail.com>2020-05-06 10:12:27 +0200
commit7828ffd94eb23122bb2d0ead8e781b2b350f4687 (patch)
tree0aad4cadcb088a84dcda20c6f84a77109468185e
parent#130 Repackage archives on macOS (diff)
downloadferdium-recipes-7828ffd94eb23122bb2d0ead8e781b2b350f4687.tar.gz
ferdium-recipes-7828ffd94eb23122bb2d0ead8e781b2b350f4687.tar.zst
ferdium-recipes-7828ffd94eb23122bb2d0ead8e781b2b350f4687.zip
Add Clubhouse recipe
-rw-r--r--all.json11
-rw-r--r--archives/clubhouse.tar.gzbin0 -> 69281 bytes
-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.js11
9 files changed, 62 insertions, 0 deletions
diff --git a/all.json b/all.json
index f046c16..5d26625 100644
--- a/all.json
+++ b/all.json
@@ -88,6 +88,17 @@
88 } 88 }
89 }, 89 },
90 { 90 {
91 "author": "Daniele Lenares <daniele.lenares@gmail.com>",
92 "featured": false,
93 "id": "clubhouse",
94 "name": "Clubhouse",
95 "version": "1.0.0",
96 "icons": {
97 "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/clubhouse/icon.png",
98 "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/clubhouse/icon.svg"
99 }
100 },
101 {
91 "author": "Stefan Malzner <stefan@adlk.io>", 102 "author": "Stefan Malzner <stefan@adlk.io>",
92 "featured": true, 103 "featured": true,
93 "id": "discord", 104 "id": "discord",
diff --git a/archives/clubhouse.tar.gz b/archives/clubhouse.tar.gz
new file mode 100644
index 0000000..8b44a8c
--- /dev/null
+++ b/archives/clubhouse.tar.gz
Binary files 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 @@
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..f21948a
--- /dev/null
+++ b/uncompressed/clubhouse/package.json
@@ -0,0 +1,14 @@
1{
2 "id": "clubhouse",
3 "name": "Clubhouse",
4 "version": "1.0.0",
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} \ 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 @@
1module.exports = (Ferdi) => {
2 function getMessages() {
3 let unread = 0;
4 const hasNotifications = document.querySelector('#notifications-link .badge').classList.contains('visible');
5 if (hasNotifications) {
6 Ferdi.setBadge(1);
7 }
8 }
9
10 Ferdi.loop(getMessages);
11}