From 532c7d74d1cf2beb492bf3bd2cf1a94274794996 Mon Sep 17 00:00:00 2001 From: Xaviju Date: Wed, 24 Apr 2024 15:57:52 +0200 Subject: Add taiga recipe --- recipes/taiga/icon.svg | 48 ++++++++++++++++++++++++++++++++++++++++++++++ recipes/taiga/index.js | 1 + recipes/taiga/package.json | 10 ++++++++++ recipes/taiga/service.css | 3 +++ recipes/taiga/webview.js | 16 ++++++++++++++++ 5 files changed, 78 insertions(+) create mode 100644 recipes/taiga/icon.svg create mode 100644 recipes/taiga/index.js create mode 100644 recipes/taiga/package.json create mode 100644 recipes/taiga/service.css create mode 100644 recipes/taiga/webview.js diff --git a/recipes/taiga/icon.svg b/recipes/taiga/icon.svg new file mode 100644 index 0000000..2dd47d8 --- /dev/null +++ b/recipes/taiga/icon.svg @@ -0,0 +1,48 @@ + + + + + + + + diff --git a/recipes/taiga/index.js b/recipes/taiga/index.js new file mode 100644 index 0000000..dd41f72 --- /dev/null +++ b/recipes/taiga/index.js @@ -0,0 +1 @@ +module.exports = Ferdium => Ferdium; diff --git a/recipes/taiga/package.json b/recipes/taiga/package.json new file mode 100644 index 0000000..aa811c2 --- /dev/null +++ b/recipes/taiga/package.json @@ -0,0 +1,10 @@ +{ + "id": "taiga", + "name": "Taiga", + "version": "1.0.0", + "license": "MIT", + "repository": "https://github.com/kaleidos-ventures/taiga", + "config": { + "serviceURL": "https://tree.taiga.io" + } +} diff --git a/recipes/taiga/service.css b/recipes/taiga/service.css new file mode 100644 index 0000000..cdf802a --- /dev/null +++ b/recipes/taiga/service.css @@ -0,0 +1,3 @@ +body { + background-color: white; +} diff --git a/recipes/taiga/webview.js b/recipes/taiga/webview.js new file mode 100644 index 0000000..f398ae8 --- /dev/null +++ b/recipes/taiga/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 Taiga 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