aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/fleep
diff options
context:
space:
mode:
authorLibravatar Ian Sealy <git@iansealy.com>2020-11-10 22:16:07 +0000
committerLibravatar Ian Sealy <git@iansealy.com>2020-11-10 22:16:07 +0000
commit23efe145fef3ea3a65344e46880a1f3e468f8e8a (patch)
tree6a56823e1d6dc4e2f90cf2bebb2bf582d3f9a410 /recipes/fleep
parentMerge pull request #351 from tpapamichail/master (diff)
downloadferdium-recipes-23efe145fef3ea3a65344e46880a1f3e468f8e8a.tar.gz
ferdium-recipes-23efe145fef3ea3a65344e46880a1f3e468f8e8a.tar.zst
ferdium-recipes-23efe145fef3ea3a65344e46880a1f3e468f8e8a.zip
Add recipe for Fleep (https://fleep.io/).
Diffstat (limited to 'recipes/fleep')
-rw-r--r--recipes/fleep/README.md3
-rw-r--r--recipes/fleep/icon.pngbin0 -> 24854 bytes
-rw-r--r--recipes/fleep/icon.svg4
-rw-r--r--recipes/fleep/index.js2
-rw-r--r--recipes/fleep/package.json12
-rw-r--r--recipes/fleep/service.css1
-rw-r--r--recipes/fleep/webview.js16
7 files changed, 38 insertions, 0 deletions
diff --git a/recipes/fleep/README.md b/recipes/fleep/README.md
new file mode 100644
index 0000000..3ba1f3e
--- /dev/null
+++ b/recipes/fleep/README.md
@@ -0,0 +1,3 @@
1# Fleep for Ferdi
2
3This is an unofficial Ferdi recipe for Fleep.
diff --git a/recipes/fleep/icon.png b/recipes/fleep/icon.png
new file mode 100644
index 0000000..926054a
--- /dev/null
+++ b/recipes/fleep/icon.png
Binary files differ
diff --git a/recipes/fleep/icon.svg b/recipes/fleep/icon.svg
new file mode 100644
index 0000000..5604020
--- /dev/null
+++ b/recipes/fleep/icon.svg
@@ -0,0 +1,4 @@
1<svg width="1024" height="1024" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
2<path fill-rule="evenodd" clip-rule="evenodd" d="M21.2196 0H5.54713C2.48289 0 0 2.48289 0 5.54713V21.5466C0 24.6108 2.48289 27.0937 5.54713 27.0937H14.2796V31.0058L18.7488 27.0937H21.2196C24.2838 27.0937 26.7667 24.6108 26.7667 21.5466V5.54713C26.7546 2.48289 24.2717 0 21.2196 0Z" fill="#3E81DE"/>
3<path fill-rule="evenodd" clip-rule="evenodd" d="M19.5845 9.85889H16.6413V8.4176H12.7777V12.4266H16.7988V15.3212H12.7777V19.4876H14.4734V22.3823H7.83618V19.4876H9.37436V8.4176H7.83618V5.52292H19.5845V9.85889Z" fill="white"/>
4</svg>
diff --git a/recipes/fleep/index.js b/recipes/fleep/index.js
new file mode 100644
index 0000000..8f5370b
--- /dev/null
+++ b/recipes/fleep/index.js
@@ -0,0 +1,2 @@
1module.exports = Ferdi => class fleep extends Ferdi {
2};
diff --git a/recipes/fleep/package.json b/recipes/fleep/package.json
new file mode 100644
index 0000000..50ddc86
--- /dev/null
+++ b/recipes/fleep/package.json
@@ -0,0 +1,12 @@
1{
2 "id": "fleep",
3 "name": "Fleep",
4 "version": "1.0.0",
5 "description": "Fleep",
6 "main": "index.js",
7 "author": "Ian Sealy <ferdi@iansealy.com>",
8 "license": "MIT",
9 "config": {
10 "serviceURL": "https://fleep.io/chat"
11 }
12}
diff --git a/recipes/fleep/service.css b/recipes/fleep/service.css
new file mode 100644
index 0000000..38dcab0
--- /dev/null
+++ b/recipes/fleep/service.css
@@ -0,0 +1 @@
/* Insert custom styles you want to insert here */ \ No newline at end of file
diff --git a/recipes/fleep/webview.js b/recipes/fleep/webview.js
new file mode 100644
index 0000000..f3d765d
--- /dev/null
+++ b/recipes/fleep/webview.js
@@ -0,0 +1,16 @@
1"use strict";
2
3var _path = _interopRequireDefault(require("path"));
4
5function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
6
7module.exports = Ferdi => {
8 const getMessages = function getMessages() {
9 // Count number of conversations or teams with unread messages
10 let count = document.querySelectorAll(".unread-count").length;
11 Ferdi.setBadge(count, 0);
12 };
13
14 Ferdi.loop(getMessages);
15 Ferdi.injectCSS(_path.default.join(__dirname, 'service.css'));
16};