From 761da71a160dc6dc10e38cd2e0e05b0cd53ee1d4 Mon Sep 17 00:00:00 2001 From: httpsdalia <82799862+httpsdalia@users.noreply.github.com> Date: Fri, 17 Feb 2023 00:22:25 -0500 Subject: New Recipe BlueBubbles (#316) --- recipes/BlueBubbles/README.md | 2 ++ recipes/BlueBubbles/icon.svg | 1 + recipes/BlueBubbles/index.js | 1 + recipes/BlueBubbles/package.json | 9 +++++++++ recipes/BlueBubbles/webview.js | 16 ++++++++++++++++ 5 files changed, 29 insertions(+) create mode 100644 recipes/BlueBubbles/README.md create mode 100644 recipes/BlueBubbles/icon.svg create mode 100644 recipes/BlueBubbles/index.js create mode 100644 recipes/BlueBubbles/package.json create mode 100644 recipes/BlueBubbles/webview.js (limited to 'recipes/BlueBubbles') diff --git a/recipes/BlueBubbles/README.md b/recipes/BlueBubbles/README.md new file mode 100644 index 0000000..76c7ad8 --- /dev/null +++ b/recipes/BlueBubbles/README.md @@ -0,0 +1,2 @@ +# BlueBubbles for ferdium +This is a ferdium recipe for BlueBubbles diff --git a/recipes/BlueBubbles/icon.svg b/recipes/BlueBubbles/icon.svg new file mode 100644 index 0000000..366112c --- /dev/null +++ b/recipes/BlueBubbles/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/recipes/BlueBubbles/index.js b/recipes/BlueBubbles/index.js new file mode 100644 index 0000000..dd41f72 --- /dev/null +++ b/recipes/BlueBubbles/index.js @@ -0,0 +1 @@ +module.exports = Ferdium => Ferdium; diff --git a/recipes/BlueBubbles/package.json b/recipes/BlueBubbles/package.json new file mode 100644 index 0000000..896abb3 --- /dev/null +++ b/recipes/BlueBubbles/package.json @@ -0,0 +1,9 @@ +{ + "id": "BlueBubbles", + "name": "BlueBubbles", + "version": "1.0.0", + "license": "MIT", + "config": { + "serviceURL": "https://bluebubbles.app/web/#/" + } +} diff --git a/recipes/BlueBubbles/webview.js b/recipes/BlueBubbles/webview.js new file mode 100644 index 0000000..cf4423b --- /dev/null +++ b/recipes/BlueBubbles/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 BlueBubbles 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