diff options
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/flock/icon.svg | 1 | ||||
-rw-r--r-- | recipes/flock/index.js | 1 | ||||
-rw-r--r-- | recipes/flock/package.json | 11 | ||||
-rw-r--r-- | recipes/flock/webview.js | 7 |
4 files changed, 20 insertions, 0 deletions
diff --git a/recipes/flock/icon.svg b/recipes/flock/icon.svg new file mode 100644 index 0000000..96fbe2e --- /dev/null +++ b/recipes/flock/icon.svg | |||
@@ -0,0 +1 @@ | |||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 302 302"><defs><style>.a{fill:#0abe51;}.b{fill:#fff;}</style></defs><title>flock</title><path class="a" d="M299.9579,275.2787c-9.41-7.2-21.1238-17-22.276-34.2-.5761-9.2,1.92-19.5,4.4168-27,1.5363-3.5,2.8805-7.1,4.1287-10.7v-.1h0c26.9809-79.3-12.8663-166.4-89.1041-194.5s-159.6768,13.5-186.6577,92.8,12.8663,166.4,89.1041,194.5a141.1855,141.1855,0,0,0,126.4548-14.5c3.8407-1.9,7.1053-3,8.93-2.2a105.1736,105.1736,0,0,0,61.3551,7.3C299.9579,286.0787,309.2716,282.4787,299.9579,275.2787Z" transform="translate(-2.0263)"/><path class="b" d="M105.2347,83.2787h98.3218c9.1216,0,16.515,7.7,16.515,17.2v.7c0,9.5-7.3933,17.2-16.515,17.2H105.2347c-9.1216,0-16.515-7.7-16.515-17.2v-.7C88.72,90.9787,96.1131,83.2787,105.2347,83.2787Z" transform="translate(-2.0263)"/><path class="b" d="M105.2347,135.3787h62.1232c9.1216,0,16.515,7.7,16.515,17.2v.8c0,9.5-7.3933,17.2-16.515,17.2H105.2347c-9.1216,0-16.515-7.7-16.515-17.2v-.8C88.72,143.0787,96.1131,135.3787,105.2347,135.3787Z" transform="translate(-2.0263)"/><path class="b" d="M105.2347,186.5787h11.234c9.1216,0,16.515,7.7,16.515,17.2v.7c0,9.5-7.3933,17.2-16.515,17.2h-11.234c-9.1216,0-16.515-7.7-16.515-17.2v-.7C88.72,194.2787,96.1131,186.5787,105.2347,186.5787Z" transform="translate(-2.0263)"/></svg> | |||
diff --git a/recipes/flock/index.js b/recipes/flock/index.js new file mode 100644 index 0000000..23607bd --- /dev/null +++ b/recipes/flock/index.js | |||
@@ -0,0 +1 @@ | |||
module.exports = Ferdi => Ferdi; | |||
diff --git a/recipes/flock/package.json b/recipes/flock/package.json new file mode 100644 index 0000000..83e5b94 --- /dev/null +++ b/recipes/flock/package.json | |||
@@ -0,0 +1,11 @@ | |||
1 | { | ||
2 | "id": "flock", | ||
3 | "name": "Flock", | ||
4 | "version": "1.0.0", | ||
5 | "license": "MIT", | ||
6 | "repository": "https://github.com/jereddowden/franz-recipe-flock", | ||
7 | "config": { | ||
8 | "serviceURL": "https://web.flock.com", | ||
9 | "hasNotificationSound": true | ||
10 | } | ||
11 | } | ||
diff --git a/recipes/flock/webview.js b/recipes/flock/webview.js new file mode 100644 index 0000000..29b52d3 --- /dev/null +++ b/recipes/flock/webview.js | |||
@@ -0,0 +1,7 @@ | |||
1 | module.exports = Ferdi => { | ||
2 | const getMessages = () => { | ||
3 | const allMessages = Ferdi.safeParseInt(document.querySelector('.team-counter').textContent); | ||
4 | Ferdi.setBadge(allMessages); | ||
5 | }; | ||
6 | Ferdi.loop(getMessages); | ||
7 | }; | ||