From 9c9ebafaf4af21736a48bec17703b14d5302d352 Mon Sep 17 00:00:00 2001 From: Jake Lee Date: Fri, 10 Apr 2020 23:12:48 +0100 Subject: Add Nextdoor recipe --- all.json | 11 +++++++++++ archives/nextdoor.tar.gz | Bin 0 -> 11748 bytes uncompressed/nextdoor/README.md | 5 +++++ uncompressed/nextdoor/icon.png | Bin 0 -> 14617 bytes uncompressed/nextdoor/icon.svg | 1 + uncompressed/nextdoor/index.js | 3 +++ uncompressed/nextdoor/package.json | 14 ++++++++++++++ uncompressed/nextdoor/webview.js | 10 ++++++++++ 8 files changed, 44 insertions(+) create mode 100644 archives/nextdoor.tar.gz create mode 100644 uncompressed/nextdoor/README.md create mode 100644 uncompressed/nextdoor/icon.png create mode 100644 uncompressed/nextdoor/icon.svg create mode 100644 uncompressed/nextdoor/index.js create mode 100644 uncompressed/nextdoor/package.json create mode 100644 uncompressed/nextdoor/webview.js diff --git a/all.json b/all.json index 65b5d4e..b02ffbf 100644 --- a/all.json +++ b/all.json @@ -549,6 +549,17 @@ "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/nextcloud-talk/icon.svg" } }, + { + "author": "Jake Lee ", + "featured": false, + "id": "nextdoor", + "name": "Nextdoor", + "version": "1.0.0", + "icons": { + "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/nextdoor/icon.png", + "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/nextdoor/icon.svg" + } + }, { "author": "Adam Birds ", "featured": false, diff --git a/archives/nextdoor.tar.gz b/archives/nextdoor.tar.gz new file mode 100644 index 0000000..2670849 Binary files /dev/null and b/archives/nextdoor.tar.gz differ 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 @@ +# Nextdoor for Ferdi +This is the unofficial Ferdi recipe for Nextdoor + +### How to create your own Ferdi recipes: +* [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 Binary files /dev/null and b/uncompressed/nextdoor/icon.png 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 @@ + \ 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 @@ +"use strict"; + +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 @@ +{ + "id": "nextdoor", + "name": "Nextdoor", + "version": "1.0.0", + "description": "Nextdoor", + "main": "index.js", + "author": "Jake Lee ", + "license": "MIT", + "config": { + "serviceURL": "https://nextdoor.co.uk/inbox/", + "hasTeamId": false, + "hasNotificationSound": false + } +} 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 @@ +"use strict"; + +module.exports = Franz => { + const getMessages = function getMessages() { + const unread = document.getElementsByClassName('notification-badge')[0].innerText; + Franz.setBadge(parseInt(unread, 10)); + }; + + Franz.loop(getMessages); +}; \ No newline at end of file -- cgit v1.2.3-70-g09d2