aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/zammad
diff options
context:
space:
mode:
authorLibravatar Anne Douwe Bouma <annedouwe@bouma.tech>2022-07-04 03:43:43 +0200
committerLibravatar GitHub <noreply@github.com>2022-07-04 01:43:43 +0000
commit964b8463872fc9c059a754ba295c579dec538ca5 (patch)
tree1a3231dce3c6b2276b0fec1283d8435bd4ea370c /recipes/zammad
parentdocs: add fschaupp as a contributor for code [skip ci] (#100) (diff)
downloadferdium-recipes-964b8463872fc9c059a754ba295c579dec538ca5.tar.gz
ferdium-recipes-964b8463872fc9c059a754ba295c579dec538ca5.tar.zst
ferdium-recipes-964b8463872fc9c059a754ba295c579dec538ca5.zip
Add Zammad recipe (#92)
Zammad is a ticketing system that is self-hosted. Co-authored-by: Anne Douwe Bouma <annedouwe@sibben.nl> Co-authored-by: Vijay A <vraravam@users.noreply.github.com>
Diffstat (limited to 'recipes/zammad')
-rw-r--r--recipes/zammad/icon.svg25
-rw-r--r--recipes/zammad/index.js1
-rw-r--r--recipes/zammad/package.json12
-rw-r--r--recipes/zammad/webview.js8
4 files changed, 46 insertions, 0 deletions
diff --git a/recipes/zammad/icon.svg b/recipes/zammad/icon.svg
new file mode 100644
index 0000000..329b712
--- /dev/null
+++ b/recipes/zammad/icon.svg
@@ -0,0 +1,25 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<svg width="1024" height="1024" enable-background="new 0 0 841.9 595.3" version="1.1" viewBox="0 0 1024 1024" xml:space="preserve" xmlns="http://www.w3.org/2000/svg">
3<g transform="translate(-89.7,-174.8)">
4
5 <g transform="matrix(5.5974 0 0 5.5974 -505.46 -847.44)">
6 <polygon points="247.5 252.9 230.5 250 272.2 237.2" fill="#ca2317"/>
7 <polygon points="264.8 262.6 255.9 281.2 247.5 252.9 272.2 237.2" fill="#e84f83"/>
8 <polygon points="272.2 237.2 284.4 229.5 279.8 237.2 264.8 262.6" fill="#ca2317"/>
9 <polygon points="279.8 237.2 285.9 234.5 274.3 246.4" fill="#e54011"/>
10 <polygon points="243.4 246 233 242.1 267.1 238.7" fill="#e54011"/>
11 <polygon points="251.5 290.2 234.3 261.4 247.5 252.9 255.9 281.2" fill="#ca2317"/>
12 <polygon points="251.5 290.2 214.6 295 208.3 218" fill="#b7dff2"/>
13 <polygon points="251.5 290.2 196.7 314.7 214.6 295" fill="#e54011"/>
14 <polygon points="186.2 292.1 109.7 353.4 196.7 314.7 214.6 295" fill="#ffce33"/>
15 <polygon points="164.8 300.8 113 321.8 157.7 315 171.6 303.8" fill="#d6b12d"/>
16 <polygon points="186.2 292.1 129.1 285.3 171.6 303.8" fill="#ffde85"/>
17 <polygon points="200.8 282.9 205.1 245.9 199.7 246.8 186.2 292.1" fill="#009ec6"/>
18 <polygon points="208.3 218 213 275.1 200.8 282.9" fill="#5eafce"/>
19 <polygon points="206.8 230.8 166.9 252 205.1 245.9" fill="#045972"/>
20 <polygon points="207.1 228.7 162.8 216.6 196 236.6 206.8 230.8" fill="#5a8591"/>
21 <polygon points="208.3 218 169.3 194.8 199.5 226.6 207.1 228.7" fill="#009ec6"/>
22 <polygon points="214.6 295 186.2 292.1 213 275.1" fill="#f39804"/>
23 </g>
24</g>
25</svg>
diff --git a/recipes/zammad/index.js b/recipes/zammad/index.js
new file mode 100644
index 0000000..dd41f72
--- /dev/null
+++ b/recipes/zammad/index.js
@@ -0,0 +1 @@
module.exports = Ferdium => Ferdium;
diff --git a/recipes/zammad/package.json b/recipes/zammad/package.json
new file mode 100644
index 0000000..a77b804
--- /dev/null
+++ b/recipes/zammad/package.json
@@ -0,0 +1,12 @@
1{
2 "id": "zammad",
3 "name": "Zammad",
4 "version": "1.0.0",
5 "license": "MIT",
6 "config": {
7 "hasNotificationSound": true,
8 "hasDirectMessages": false,
9 "hasIndirectMessages": true,
10 "hasCustomUrl": true
11 }
12}
diff --git a/recipes/zammad/webview.js b/recipes/zammad/webview.js
new file mode 100644
index 0000000..38710d1
--- /dev/null
+++ b/recipes/zammad/webview.js
@@ -0,0 +1,8 @@
1module.exports = Ferdium => {
2 const getMessages = function getMessages() {
3 const notificationsCounter = document.querySelector('.js-notificationsCounter');
4 Ferdium.setBadge(Ferdium.safeParseInt(notificationsCounter.textContent));
5 };
6
7 Ferdium.loop(getMessages);
8};