aboutsummaryrefslogtreecommitdiffstats
path: root/uncompressed
diff options
context:
space:
mode:
authorLibravatar Bennett <hello@vantezzen.io>2020-04-11 08:54:30 +0200
committerLibravatar GitHub <noreply@github.com>2020-04-11 08:54:30 +0200
commit87812b2be4522e5af053ebd42169e851ca6eb175 (patch)
tree5184f0f684c1641aa83e9f211becf15f146803f3 /uncompressed
parentFix accidental HTML tag (diff)
parentReplaces tab indents with spaces (diff)
downloadferdium-recipes-87812b2be4522e5af053ebd42169e851ca6eb175.tar.gz
ferdium-recipes-87812b2be4522e5af053ebd42169e851ca6eb175.tar.zst
ferdium-recipes-87812b2be4522e5af053ebd42169e851ca6eb175.zip
Merge pull request #94 from JakeSteam/master
Add Nextdoor recipe
Diffstat (limited to 'uncompressed')
-rw-r--r--uncompressed/nextdoor/README.md5
-rw-r--r--uncompressed/nextdoor/icon.pngbin0 -> 14617 bytes
-rw-r--r--uncompressed/nextdoor/icon.svg1
-rw-r--r--uncompressed/nextdoor/index.js3
-rw-r--r--uncompressed/nextdoor/package.json14
-rw-r--r--uncompressed/nextdoor/webview.js10
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
2This 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
3module.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..e7789c6
--- /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..c17e99d
--- /dev/null
+++ b/uncompressed/nextdoor/webview.js
@@ -0,0 +1,10 @@
1"use strict";
2
3module.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