aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/nextdoor
diff options
context:
space:
mode:
authorLibravatar Bennett <hello@vantezzen.io>2020-09-22 20:56:48 +0200
committerLibravatar GitHub <noreply@github.com>2020-09-22 19:56:48 +0100
commit6f5e4a00588aefdda7a5a1cfe70935870e7e234a (patch)
tree9e29aa7aa0620a1a4a968ff8739b4b8ba96791a9 /recipes/nextdoor
parentUpdated logos for Outlook/OWA (diff)
downloadferdium-recipes-6f5e4a00588aefdda7a5a1cfe70935870e7e234a.tar.gz
ferdium-recipes-6f5e4a00588aefdda7a5a1cfe70935870e7e234a.tar.zst
ferdium-recipes-6f5e4a00588aefdda7a5a1cfe70935870e7e234a.zip
Unpack recipes and update recipes icons (#292)
Co-authored-by: Amine Mouafik <amine@mouafik.fr>
Diffstat (limited to 'recipes/nextdoor')
-rw-r--r--recipes/nextdoor/README.md9
-rw-r--r--recipes/nextdoor/icon.pngbin0 -> 28007 bytes
-rw-r--r--recipes/nextdoor/icon.svg13
-rw-r--r--recipes/nextdoor/index.js3
-rw-r--r--recipes/nextdoor/package.json14
-rw-r--r--recipes/nextdoor/webview.js14
6 files changed, 53 insertions, 0 deletions
diff --git a/recipes/nextdoor/README.md b/recipes/nextdoor/README.md
new file mode 100644
index 0000000..f1fec15
--- /dev/null
+++ b/recipes/nextdoor/README.md
@@ -0,0 +1,9 @@
1# Nextdoor for Ferdi
2This is the unofficial Ferdi recipe for Nextdoor
3
4### Release notes
51.0.1: Fixes notification not disappearing.
61.0.0: First version
7
8### How to create your own Ferdi recipes:
9* [Read the documentation](https://github.com/getferdi/recipes/blob/master/docs/integration.md) \ No newline at end of file
diff --git a/recipes/nextdoor/icon.png b/recipes/nextdoor/icon.png
new file mode 100644
index 0000000..85633df
--- /dev/null
+++ b/recipes/nextdoor/icon.png
Binary files differ
diff --git a/recipes/nextdoor/icon.svg b/recipes/nextdoor/icon.svg
new file mode 100644
index 0000000..3e08242
--- /dev/null
+++ b/recipes/nextdoor/icon.svg
@@ -0,0 +1,13 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Generator: Adobe Illustrator 22.0.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 66 66" style="enable-background:new 0 0 66 66;" xml:space="preserve">
5<style type="text/css">
6 .st0{fill:#00B340;}
7</style>
8<g>
9 <path class="st0" d="M0.5,26.9c0.3-0.1,0.6-0.2,0.8-0.3l9.5-5.9c0.2-0.1,0.3-0.3,0.5-0.4V7.6h10.2v6.5l11-6.7l32,19.6l-5.3,8.6
10 l-5.5-3.3h-0.2c0,0,0,0.1,0,0.1v25.6c-1.1,0.3-38.3,0.4-42,0.1v-0.5c0-8.4,0-16.7,0-25.1l-0.1-0.2l-5.8,3.3l-2.1-3.4
11 c-0.9-1.5-1.9-3-2.8-4.5c-0.1-0.1-0.2-0.3-0.3-0.4V26.9z"/>
12</g>
13</svg>
diff --git a/recipes/nextdoor/index.js b/recipes/nextdoor/index.js
new file mode 100644
index 0000000..e8243fb
--- /dev/null
+++ b/recipes/nextdoor/index.js
@@ -0,0 +1,3 @@
1"use strict";
2
3module.exports = Franz => Franz; \ No newline at end of file
diff --git a/recipes/nextdoor/package.json b/recipes/nextdoor/package.json
new file mode 100644
index 0000000..93dabb8
--- /dev/null
+++ b/recipes/nextdoor/package.json
@@ -0,0 +1,14 @@
1{
2 "id": "nextdoor",
3 "name": "Nextdoor",
4 "version": "1.0.1",
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/recipes/nextdoor/webview.js b/recipes/nextdoor/webview.js
new file mode 100644
index 0000000..e20c6b5
--- /dev/null
+++ b/recipes/nextdoor/webview.js
@@ -0,0 +1,14 @@
1"use strict";
2
3module.exports = Franz => {
4 const getMessages = function getMessages() {
5 var unread = 0
6 const notificationBadge = document.getElementsByClassName('notification-badge')[0]
7 if (notificationBadge != undefined) {
8 unread = notificationBadge.innerText;
9 }
10 Franz.setBadge(parseInt(unread, 10));
11 };
12
13 Franz.loop(getMessages);
14}; \ No newline at end of file