diff options
author | 2022-01-01 20:51:29 +0100 | |
---|---|---|
committer | 2022-01-01 20:51:29 +0100 | |
commit | fa3368b49561e3a222f04a52e0d180dc95a750eb (patch) | |
tree | cd90aa80bfe6d95fc1fa0617929c8da859b21dcb | |
parent | Fix Scribens icon (diff) | |
download | ferdium-recipes-fa3368b49561e3a222f04a52e0d180dc95a750eb.tar.gz ferdium-recipes-fa3368b49561e3a222f04a52e0d180dc95a750eb.tar.zst ferdium-recipes-fa3368b49561e3a222f04a52e0d180dc95a750eb.zip |
#811 Add AirMessage
-rw-r--r-- | all.json | 9 | ||||
-rw-r--r-- | recipes/airmessage/icon.svg | 6 | ||||
-rw-r--r-- | recipes/airmessage/index.js | 1 | ||||
-rw-r--r-- | recipes/airmessage/package.json | 9 | ||||
-rw-r--r-- | recipes/airmessage/webview.js | 8 |
5 files changed, 33 insertions, 0 deletions
@@ -10,6 +10,15 @@ | |||
10 | }, | 10 | }, |
11 | { | 11 | { |
12 | "featured": false, | 12 | "featured": false, |
13 | "id": "airmessage", | ||
14 | "name": "AirMessage", | ||
15 | "version": "1.0.0", | ||
16 | "icons": { | ||
17 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/airmessage/icon.svg" | ||
18 | } | ||
19 | }, | ||
20 | { | ||
21 | "featured": false, | ||
13 | "id": "airtable", | 22 | "id": "airtable", |
14 | "name": "Airtable", | 23 | "name": "Airtable", |
15 | "version": "1.1.1", | 24 | "version": "1.1.1", |
diff --git a/recipes/airmessage/icon.svg b/recipes/airmessage/icon.svg new file mode 100644 index 0000000..293a06d --- /dev/null +++ b/recipes/airmessage/icon.svg | |||
@@ -0,0 +1,6 @@ | |||
1 | <svg width="48" height="48" xmlns="http://www.w3.org/2000/svg"> | ||
2 | <g fill="none" fill-rule="evenodd" stroke="#000"> | ||
3 | <circle stroke-width="4" cx="24" cy="24" r="22" /> | ||
4 | <path stroke-width="4.5" stroke-linecap="square" d="M24 10l10.6 10.6M24 10L13.4 20.6M24 12v26" /> | ||
5 | </g> | ||
6 | </svg> \ No newline at end of file | ||
diff --git a/recipes/airmessage/index.js b/recipes/airmessage/index.js new file mode 100644 index 0000000..db6cb13 --- /dev/null +++ b/recipes/airmessage/index.js | |||
@@ -0,0 +1 @@ | |||
module.exports = Ferdi => class Airmessage extends Ferdi {}; | |||
diff --git a/recipes/airmessage/package.json b/recipes/airmessage/package.json new file mode 100644 index 0000000..9e90c9b --- /dev/null +++ b/recipes/airmessage/package.json | |||
@@ -0,0 +1,9 @@ | |||
1 | { | ||
2 | "id": "airmessage", | ||
3 | "name": "AirMessage", | ||
4 | "version": "1.0.0", | ||
5 | "license": "MIT", | ||
6 | "config": { | ||
7 | "serviceURL": "https://web.airmessage.org/" | ||
8 | } | ||
9 | } | ||
diff --git a/recipes/airmessage/webview.js b/recipes/airmessage/webview.js new file mode 100644 index 0000000..a49ac80 --- /dev/null +++ b/recipes/airmessage/webview.js | |||
@@ -0,0 +1,8 @@ | |||
1 | module.exports = () => { | ||
2 | // TODO: If your AirMessage service has unread messages, uncomment these lines to implement the logic for updating the badges | ||
3 | // const getMessages = () => { | ||
4 | // // TODO: Insert your notification-finding code here | ||
5 | // Ferdi.setBadge(0, 0); | ||
6 | // }; | ||
7 | // Ferdi.loop(getMessages); | ||
8 | }; | ||