aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Jake Lee <github@jakelee.co.uk>2020-05-05 08:01:34 +0100
committerLibravatar GitHub <noreply@github.com>2020-05-05 07:01:34 +0000
commit943deca4887f52ec73b8a05663947dd11a354d9b (patch)
tree7f6ef0db6cb3a29e1ac79ab5f8e4b7e9bc4c0ee2
parentMerge pull request #151 from SanketDG/sanketdg/update-featured (diff)
downloadferdium-recipes-943deca4887f52ec73b8a05663947dd11a354d9b.tar.gz
ferdium-recipes-943deca4887f52ec73b8a05663947dd11a354d9b.tar.zst
ferdium-recipes-943deca4887f52ec73b8a05663947dd11a354d9b.zip
Adds Guilded.gg recipe (#150)
-rw-r--r--all.json11
-rw-r--r--archives/guilded.tar.gzbin0 -> 10315 bytes
-rw-r--r--uncompressed/guilded/README.md8
-rw-r--r--uncompressed/guilded/icon.pngbin0 -> 13670 bytes
-rw-r--r--uncompressed/guilded/icon.svg9
-rw-r--r--uncompressed/guilded/index.js3
-rw-r--r--uncompressed/guilded/package.json14
-rw-r--r--uncompressed/guilded/webview.js15
8 files changed, 60 insertions, 0 deletions
diff --git a/all.json b/all.json
index f72e66e..f046c16 100644
--- a/all.json
+++ b/all.json
@@ -308,6 +308,17 @@
308 } 308 }
309 }, 309 },
310 { 310 {
311 "author": "Jake Lee <ferdi@jakelee.co.uk>",
312 "featured": false,
313 "id": "guilded",
314 "name": "Guilded",
315 "version": "1.0.0",
316 "icons": {
317 "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/guilded/icon.png",
318 "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/guilded/icon.svg"
319 }
320 },
321 {
311 "author": "Yuriy Badalyantc <lmnet89@gmail.com>", 322 "author": "Yuriy Badalyantc <lmnet89@gmail.com>",
312 "featured": false, 323 "featured": false,
313 "id": "habitica", 324 "id": "habitica",
diff --git a/archives/guilded.tar.gz b/archives/guilded.tar.gz
new file mode 100644
index 0000000..2c01e32
--- /dev/null
+++ b/archives/guilded.tar.gz
Binary files differ
diff --git a/uncompressed/guilded/README.md b/uncompressed/guilded/README.md
new file mode 100644
index 0000000..caba8cf
--- /dev/null
+++ b/uncompressed/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/uncompressed/guilded/icon.png b/uncompressed/guilded/icon.png
new file mode 100644
index 0000000..e2cd5ae
--- /dev/null
+++ b/uncompressed/guilded/icon.png
Binary files differ
diff --git a/uncompressed/guilded/icon.svg b/uncompressed/guilded/icon.svg
new file mode 100644
index 0000000..199d4a5
--- /dev/null
+++ b/uncompressed/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/uncompressed/guilded/index.js b/uncompressed/guilded/index.js
new file mode 100644
index 0000000..e8243fb
--- /dev/null
+++ b/uncompressed/guilded/index.js
@@ -0,0 +1,3 @@
1"use strict";
2
3module.exports = Franz => Franz; \ No newline at end of file
diff --git a/uncompressed/guilded/package.json b/uncompressed/guilded/package.json
new file mode 100644
index 0000000..fbb7eda
--- /dev/null
+++ b/uncompressed/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/uncompressed/guilded/webview.js b/uncompressed/guilded/webview.js
new file mode 100644
index 0000000..371fac8
--- /dev/null
+++ b/uncompressed/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