aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/guilded
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/guilded
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/guilded')
-rw-r--r--recipes/guilded/README.md8
-rw-r--r--recipes/guilded/icon.pngbin0 -> 13670 bytes
-rw-r--r--recipes/guilded/icon.svg9
-rw-r--r--recipes/guilded/index.js3
-rw-r--r--recipes/guilded/package.json14
-rw-r--r--recipes/guilded/webview.js15
6 files changed, 49 insertions, 0 deletions
diff --git a/recipes/guilded/README.md b/recipes/guilded/README.md
new file mode 100644
index 0000000..caba8cf
--- /dev/null
+++ b/recipes/guilded/README.md
@@ -0,0 +1,8 @@
1# Guilded for Ferdi
2This is the unofficial Ferdi recipe for Guilded, it only supports the current server.
3
4### Release notes
51.0.0: First version
6
7### How to create your own Ferdi recipes:
8* [Read the documentation](https://github.com/getferdi/recipes/blob/master/docs/integration.md) \ No newline at end of file
diff --git a/recipes/guilded/icon.png b/recipes/guilded/icon.png
new file mode 100644
index 0000000..e2cd5ae
--- /dev/null
+++ b/recipes/guilded/icon.png
Binary files differ
diff --git a/recipes/guilded/icon.svg b/recipes/guilded/icon.svg
new file mode 100644
index 0000000..199d4a5
--- /dev/null
+++ b/recipes/guilded/icon.svg
@@ -0,0 +1,9 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<svg width="1024px" height="1024px" viewBox="0 0 136 129" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3 <!-- Generator: Sketch 56.2 (81672) - https://sketch.com -->
4 <title>Logomark / Guilded-Wordmark-Black</title>
5 <desc>Created with Sketch.</desc>
6 <g id="Logomark-/-Guilded-Wordmark-Black" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
7 <path d="M47.8903288,48.2641509 C47.8903288,48.2641509 47.9503286,56.8036226 52.3351089,65.6355094 C56.8398888,74.1369434 63.0510609,79.5977358 68.175038,81.7730189 C73.4694143,79.2981887 78.5837914,75.0023019 81.3749789,70.3735849 L66.840644,70.3735849 C63.0798608,67.2568679 60.1206741,62.0861132 59.4414771,56.109434 L102.079686,56.109434 C99.9772956,65.718717 95.5157156,74.4578868 91.2653346,80.023283 C85.3658754,87.739919 77.3664831,93.6292832 68.2062379,97 L68.0718385,97 C52.7791069,90.9068302 44.5519438,81.309434 39.1231681,70.480566 C35.6407837,63.5410566 32,50.9410566 32,34 L104,34 C104.011637,38.7709414 103.690875,43.5370029 103.039682,48.2641509 L47.8903288,48.2641509 Z" id="Path" fill="#111820" fill-rule="nonzero"></path>
8 </g>
9</svg> \ No newline at end of file
diff --git a/recipes/guilded/index.js b/recipes/guilded/index.js
new file mode 100644
index 0000000..e8243fb
--- /dev/null
+++ b/recipes/guilded/index.js
@@ -0,0 +1,3 @@
1"use strict";
2
3module.exports = Franz => Franz; \ No newline at end of file
diff --git a/recipes/guilded/package.json b/recipes/guilded/package.json
new file mode 100644
index 0000000..fbb7eda
--- /dev/null
+++ b/recipes/guilded/package.json
@@ -0,0 +1,14 @@
1{
2 "id": "guilded",
3 "name": "Guilded",
4 "version": "1.0.0",
5 "description": "Guilded",
6 "main": "index.js",
7 "author": "Jake Lee <ferdi@jakelee.co.uk>",
8 "license": "MIT",
9 "config": {
10 "serviceURL": "https://www.guilded.gg/",
11 "hasTeamId": false,
12 "hasNotificationSound": true
13 }
14}
diff --git a/recipes/guilded/webview.js b/recipes/guilded/webview.js
new file mode 100644
index 0000000..371fac8
--- /dev/null
+++ b/recipes/guilded/webview.js
@@ -0,0 +1,15 @@
1"use strict";
2
3module.exports = Franz => {
4 const getMessages = function getMessages() {
5 var unread = 0
6 const notificationBadge = document.getElementsByClassName('NavSelectorItem-unread-badge')[0]
7 if (notificationBadge != undefined) {
8 const innerBadge = notificationBadge.getElementsByClassName('BadgeV2-count')[0]
9 unread = innerBadge.innerText;
10 }
11 Franz.setBadge(parseInt(unread, 10));
12 };
13
14 Franz.loop(getMessages);
15}; \ No newline at end of file