From 09bec6fec5af85963e2b6705cbad117a201710c1 Mon Sep 17 00:00:00 2001 From: Dennis Heinrich Date: Thu, 29 Jun 2023 03:44:20 +0200 Subject: [PATCH] Implemented the Service: Bring (#382) --- recipes/bring/icon.svg | 6 ++++++ recipes/bring/index.js | 1 + recipes/bring/package.json | 9 +++++++++ recipes/bring/webview.js | 16 ++++++++++++++++ 4 files changed, 32 insertions(+) create mode 100644 recipes/bring/icon.svg create mode 100644 recipes/bring/index.js create mode 100644 recipes/bring/package.json create mode 100644 recipes/bring/webview.js diff --git a/recipes/bring/icon.svg b/recipes/bring/icon.svg new file mode 100644 index 000000000..857aa424a --- /dev/null +++ b/recipes/bring/icon.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/recipes/bring/index.js b/recipes/bring/index.js new file mode 100644 index 000000000..dd41f7287 --- /dev/null +++ b/recipes/bring/index.js @@ -0,0 +1 @@ +module.exports = Ferdium => Ferdium; diff --git a/recipes/bring/package.json b/recipes/bring/package.json new file mode 100644 index 000000000..dc424a62d --- /dev/null +++ b/recipes/bring/package.json @@ -0,0 +1,9 @@ +{ + "id": "bring", + "name": "Bring!", + "version": "1.0.0", + "license": "MIT", + "config": { + "serviceURL": "https://web.getbring.com" + } +} diff --git a/recipes/bring/webview.js b/recipes/bring/webview.js new file mode 100644 index 000000000..52e1cefc9 --- /dev/null +++ b/recipes/bring/webview.js @@ -0,0 +1,16 @@ +const _path = _interopRequireDefault(require('path')); + +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; +} + +module.exports = Ferdium => { + // TODO: If your Bring 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')); +};