aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/airmessage
diff options
context:
space:
mode:
authorLibravatar kytwb <kytwb@pm.me>2022-01-01 20:51:29 +0100
committerLibravatar kytwb <kytwb@pm.me>2022-01-01 20:51:29 +0100
commitfa3368b49561e3a222f04a52e0d180dc95a750eb (patch)
treecd90aa80bfe6d95fc1fa0617929c8da859b21dcb /recipes/airmessage
parentFix Scribens icon (diff)
downloadferdium-recipes-fa3368b49561e3a222f04a52e0d180dc95a750eb.tar.gz
ferdium-recipes-fa3368b49561e3a222f04a52e0d180dc95a750eb.tar.zst
ferdium-recipes-fa3368b49561e3a222f04a52e0d180dc95a750eb.zip
#811 Add AirMessage
Diffstat (limited to 'recipes/airmessage')
-rw-r--r--recipes/airmessage/icon.svg6
-rw-r--r--recipes/airmessage/index.js1
-rw-r--r--recipes/airmessage/package.json9
-rw-r--r--recipes/airmessage/webview.js8
4 files changed, 24 insertions, 0 deletions
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 @@
1module.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};