diff options
author | 2020-11-11 21:37:02 +0100 | |
---|---|---|
committer | 2020-11-11 21:37:02 +0100 | |
commit | f70d8e44d9f9e88a131e7df28bd41a52e0a49d19 (patch) | |
tree | a48e65c0a28d08f43fde354ad7b4c014f5198115 | |
parent | Merge pull request #356 from iansealy/habitica (diff) | |
parent | Correctly sized PNG. (diff) | |
download | ferdium-recipes-f70d8e44d9f9e88a131e7df28bd41a52e0a49d19.tar.gz ferdium-recipes-f70d8e44d9f9e88a131e7df28bd41a52e0a49d19.tar.zst ferdium-recipes-f70d8e44d9f9e88a131e7df28bd41a52e0a49d19.zip |
Merge pull request #357 from iansealy/fleep
Add recipe for Fleep (https://fleep.io/).
-rw-r--r-- | recipes/fleep/README.md | 3 | ||||
-rw-r--r-- | recipes/fleep/icon.png | bin | 0 -> 15196 bytes | |||
-rw-r--r-- | recipes/fleep/icon.svg | 4 | ||||
-rw-r--r-- | recipes/fleep/index.js | 2 | ||||
-rw-r--r-- | recipes/fleep/package.json | 12 | ||||
-rw-r--r-- | recipes/fleep/service.css | 1 | ||||
-rw-r--r-- | recipes/fleep/webview.js | 16 |
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 | |||
3 | This 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..80d4731 --- /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 @@ | |||
1 | module.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 | |||
3 | var _path = _interopRequireDefault(require("path")); | ||
4 | |||
5 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
6 | |||
7 | module.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 | }; | ||