From 421f6cdf50a05b26763002beb24aed7b0a5c8e61 Mon Sep 17 00:00:00 2001 From: YaMoef Date: Mon, 3 Jun 2024 21:41:13 +0200 Subject: feat(productive): add new recipe --- recipes/productive/icon.svg | 6 ++++++ recipes/productive/index.js | 1 + recipes/productive/package.json | 9 +++++++++ recipes/productive/webview.js | 16 ++++++++++++++++ 4 files changed, 32 insertions(+) create mode 100644 recipes/productive/icon.svg create mode 100644 recipes/productive/index.js create mode 100644 recipes/productive/package.json create mode 100644 recipes/productive/webview.js (limited to 'recipes/productive') diff --git a/recipes/productive/icon.svg b/recipes/productive/icon.svg new file mode 100644 index 0000000..262356e --- /dev/null +++ b/recipes/productive/icon.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/recipes/productive/index.js b/recipes/productive/index.js new file mode 100644 index 0000000..dd41f72 --- /dev/null +++ b/recipes/productive/index.js @@ -0,0 +1 @@ +module.exports = Ferdium => Ferdium; diff --git a/recipes/productive/package.json b/recipes/productive/package.json new file mode 100644 index 0000000..666043f --- /dev/null +++ b/recipes/productive/package.json @@ -0,0 +1,9 @@ +{ + "id": "productive", + "name": "Productive", + "version": "1.0.0", + "license": "MIT", + "config": { + "serviceURL": "https://app.productive.io/" + } +} diff --git a/recipes/productive/webview.js b/recipes/productive/webview.js new file mode 100644 index 0000000..2a81dec --- /dev/null +++ b/recipes/productive/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