From 57d22a09888c7eb6063fc9c3a309bb9cbb86ede5 Mon Sep 17 00:00:00 2001 From: YaMoef Date: Mon, 3 Jun 2024 21:19:15 +0200 Subject: feat(firefly): add new recipe --- recipes/firefly/icon.svg | 46 ++++++++++++++++++++++++++++++++++++++++++++ recipes/firefly/index.js | 6 ++++++ recipes/firefly/package.json | 10 ++++++++++ recipes/firefly/webview.js | 16 +++++++++++++++ 4 files changed, 78 insertions(+) create mode 100644 recipes/firefly/icon.svg create mode 100644 recipes/firefly/index.js create mode 100644 recipes/firefly/package.json create mode 100644 recipes/firefly/webview.js (limited to 'recipes') diff --git a/recipes/firefly/icon.svg b/recipes/firefly/icon.svg new file mode 100644 index 0000000..6fda469 --- /dev/null +++ b/recipes/firefly/icon.svg @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/recipes/firefly/index.js b/recipes/firefly/index.js new file mode 100644 index 0000000..c57c20b --- /dev/null +++ b/recipes/firefly/index.js @@ -0,0 +1,6 @@ +module.exports = Ferdium => + class Firefly extends Ferdium { + buildUrl(url) { + return `${url}/`; + } + }; diff --git a/recipes/firefly/package.json b/recipes/firefly/package.json new file mode 100644 index 0000000..5b2b3ca --- /dev/null +++ b/recipes/firefly/package.json @@ -0,0 +1,10 @@ +{ + "id": "firefly", + "name": "Firefly", + "version": "1.0.0", + "license": "MIT", + "config": { + "hasCustomUrl": true, + "serviceURL": "https://{firefly}/" + } +} diff --git a/recipes/firefly/webview.js b/recipes/firefly/webview.js new file mode 100644 index 0000000..2a81dec --- /dev/null +++ b/recipes/firefly/webview.js @@ -0,0 +1,16 @@ +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; +} + +const _path = _interopRequireDefault(require('path')); + +module.exports = Ferdium => { + // TODO: If your SNAME service has unread messages, uncomment these lines to implement the logic for updating the badges + // const getMessages = () => { + // // TODO: Insert your notification-finding code here + // Ferdium.setBadge(0, 0); + // }; + // Ferdium.loop(getMessages); + + Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); +}; -- cgit v1.2.3-54-g00ecf