diff options
author | Jake Lee <github@jakelee.co.uk> | 2020-04-10 23:12:48 +0100 |
---|---|---|
committer | Jake Lee <github@jakelee.co.uk> | 2020-04-10 23:12:48 +0100 |
commit | 9c9ebafaf4af21736a48bec17703b14d5302d352 (patch) | |
tree | f2c44ff5a1a68b8d4e33fca5eb0de1330fe4c82d /uncompressed | |
parent | Fix accidental HTML tag (diff) | |
download | ferdium-recipes-9c9ebafaf4af21736a48bec17703b14d5302d352.tar.gz ferdium-recipes-9c9ebafaf4af21736a48bec17703b14d5302d352.tar.zst ferdium-recipes-9c9ebafaf4af21736a48bec17703b14d5302d352.zip |
Add Nextdoor recipe
Diffstat (limited to 'uncompressed')
-rw-r--r-- | uncompressed/nextdoor/README.md | 5 | ||||
-rw-r--r-- | uncompressed/nextdoor/icon.png | bin | 0 -> 14617 bytes | |||
-rw-r--r-- | uncompressed/nextdoor/icon.svg | 1 | ||||
-rw-r--r-- | uncompressed/nextdoor/index.js | 3 | ||||
-rw-r--r-- | uncompressed/nextdoor/package.json | 14 | ||||
-rw-r--r-- | uncompressed/nextdoor/webview.js | 10 |
6 files changed, 33 insertions, 0 deletions
diff --git a/uncompressed/nextdoor/README.md b/uncompressed/nextdoor/README.md new file mode 100644 index 0000000..c137e14 --- /dev/null +++ b/uncompressed/nextdoor/README.md | |||
@@ -0,0 +1,5 @@ | |||
1 | # Nextdoor for Ferdi | ||
2 | This is the unofficial Ferdi recipe for Nextdoor | ||
3 | |||
4 | ### How to create your own Ferdi recipes: | ||
5 | * [Read the documentation](https://github.com/getferdi/recipes/blob/master/docs/integration.md) | ||
diff --git a/uncompressed/nextdoor/icon.png b/uncompressed/nextdoor/icon.png new file mode 100644 index 0000000..690e419 --- /dev/null +++ b/uncompressed/nextdoor/icon.png | |||
Binary files differ | |||
diff --git a/uncompressed/nextdoor/icon.svg b/uncompressed/nextdoor/icon.svg new file mode 100644 index 0000000..9766fd0 --- /dev/null +++ b/uncompressed/nextdoor/icon.svg | |||
@@ -0,0 +1 @@ | |||
<svg xmlns="http://www.w3.org/2000/svg" width="66px" height="52px" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 66 52" fill="#fff" fill-rule="evenodd" stroke="#000" stroke-linecap="round" stroke-linejoin="round"><use xlink:href="#A" x=".5" y=".5"/><symbol id="A" overflow="visible"><path d="M0 19.42a4.18 4.18 0 0 0 .82-.343l9.538-5.894a6.31 6.31 0 0 0 .477-.4V.134h10.168v6.524L32 0l32 19.6-5.265 8.622-5.475-3.338h-.172a.21.21 0 0 0 0 .114v25.58c-1.068.267-38.343.362-41.967.134v-.486q0-12.533 0-25.104l-.114-.23-5.76 3.32L3.1 24.8c-.916-1.488-1.908-2.976-2.766-4.464A1.91 1.91 0 0 0 0 19.934z" stroke="none" fill="#00b340" fill-rule="nonzero"/></symbol></svg> \ No newline at end of file | |||
diff --git a/uncompressed/nextdoor/index.js b/uncompressed/nextdoor/index.js new file mode 100644 index 0000000..e8243fb --- /dev/null +++ b/uncompressed/nextdoor/index.js | |||
@@ -0,0 +1,3 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | module.exports = Franz => Franz; \ No newline at end of file | ||
diff --git a/uncompressed/nextdoor/package.json b/uncompressed/nextdoor/package.json new file mode 100644 index 0000000..42a2554 --- /dev/null +++ b/uncompressed/nextdoor/package.json | |||
@@ -0,0 +1,14 @@ | |||
1 | { | ||
2 | "id": "nextdoor", | ||
3 | "name": "Nextdoor", | ||
4 | "version": "1.0.0", | ||
5 | "description": "Nextdoor", | ||
6 | "main": "index.js", | ||
7 | "author": "Jake Lee <ferdi@jakelee.co.uk>", | ||
8 | "license": "MIT", | ||
9 | "config": { | ||
10 | "serviceURL": "https://nextdoor.co.uk/inbox/", | ||
11 | "hasTeamId": false, | ||
12 | "hasNotificationSound": false | ||
13 | } | ||
14 | } | ||
diff --git a/uncompressed/nextdoor/webview.js b/uncompressed/nextdoor/webview.js new file mode 100644 index 0000000..2e27548 --- /dev/null +++ b/uncompressed/nextdoor/webview.js | |||
@@ -0,0 +1,10 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | module.exports = Franz => { | ||
4 | const getMessages = function getMessages() { | ||
5 | const unread = document.getElementsByClassName('notification-badge')[0].innerText; | ||
6 | Franz.setBadge(parseInt(unread, 10)); | ||
7 | }; | ||
8 | |||
9 | Franz.loop(getMessages); | ||
10 | }; \ No newline at end of file | ||