From 5438c4606943d02c3286af727d3b483a9a290768 Mon Sep 17 00:00:00 2001 From: André Oliveira <37463445+SpecialAro@users.noreply.github.com> Date: Thu, 19 Oct 2023 01:23:01 +0100 Subject: Add multiple recipes (#444) --- recipes/temp-mail/icon.svg | 18 ++++++++++++++++++ recipes/temp-mail/index.js | 1 + recipes/temp-mail/package.json | 9 +++++++++ recipes/temp-mail/webview.js | 16 ++++++++++++++++ 4 files changed, 44 insertions(+) create mode 100644 recipes/temp-mail/icon.svg create mode 100644 recipes/temp-mail/index.js create mode 100644 recipes/temp-mail/package.json create mode 100644 recipes/temp-mail/webview.js (limited to 'recipes/temp-mail') diff --git a/recipes/temp-mail/icon.svg b/recipes/temp-mail/icon.svg new file mode 100644 index 0000000..9db9021 --- /dev/null +++ b/recipes/temp-mail/icon.svg @@ -0,0 +1,18 @@ + + + + + + + + + + \ No newline at end of file diff --git a/recipes/temp-mail/index.js b/recipes/temp-mail/index.js new file mode 100644 index 0000000..dd41f72 --- /dev/null +++ b/recipes/temp-mail/index.js @@ -0,0 +1 @@ +module.exports = Ferdium => Ferdium; diff --git a/recipes/temp-mail/package.json b/recipes/temp-mail/package.json new file mode 100644 index 0000000..2d880f3 --- /dev/null +++ b/recipes/temp-mail/package.json @@ -0,0 +1,9 @@ +{ + "id": "temp-mail", + "name": "Temp Mail", + "version": "1.0.0", + "license": "MIT", + "config": { + "serviceURL": "https://temp-mail.org/" + } +} diff --git a/recipes/temp-mail/webview.js b/recipes/temp-mail/webview.js new file mode 100644 index 0000000..2a81dec --- /dev/null +++ b/recipes/temp-mail/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