From 23efe145fef3ea3a65344e46880a1f3e468f8e8a Mon Sep 17 00:00:00 2001 From: Ian Sealy Date: Tue, 10 Nov 2020 22:16:07 +0000 Subject: Add recipe for Fleep (https://fleep.io/). --- recipes/fleep/README.md | 3 +++ recipes/fleep/icon.png | Bin 0 -> 24854 bytes recipes/fleep/icon.svg | 4 ++++ recipes/fleep/index.js | 2 ++ recipes/fleep/package.json | 12 ++++++++++++ recipes/fleep/service.css | 1 + recipes/fleep/webview.js | 16 ++++++++++++++++ 7 files changed, 38 insertions(+) create mode 100644 recipes/fleep/README.md create mode 100644 recipes/fleep/icon.png create mode 100644 recipes/fleep/icon.svg create mode 100644 recipes/fleep/index.js create mode 100644 recipes/fleep/package.json create mode 100644 recipes/fleep/service.css create mode 100644 recipes/fleep/webview.js (limited to 'recipes/fleep') 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 @@ +# Fleep for Ferdi + +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..926054a Binary files /dev/null and b/recipes/fleep/icon.png 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 @@ + + + + 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 @@ +module.exports = Ferdi => class fleep extends Ferdi { +}; 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 @@ +{ + "id": "fleep", + "name": "Fleep", + "version": "1.0.0", + "description": "Fleep", + "main": "index.js", + "author": "Ian Sealy ", + "license": "MIT", + "config": { + "serviceURL": "https://fleep.io/chat" + } +} 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 @@ +"use strict"; + +var _path = _interopRequireDefault(require("path")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = Ferdi => { + const getMessages = function getMessages() { + // Count number of conversations or teams with unread messages + let count = document.querySelectorAll(".unread-count").length; + Ferdi.setBadge(count, 0); + }; + + Ferdi.loop(getMessages); + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); +}; -- cgit v1.2.3-54-g00ecf