Skip to content

Commit

Permalink
Implemented the Service: Bring (#382)
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudmaker97 authored Jun 29, 2023
1 parent 6a1ad4f commit 09bec6f
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
6 changes: 6 additions & 0 deletions recipes/bring/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions recipes/bring/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = Ferdium => Ferdium;
9 changes: 9 additions & 0 deletions recipes/bring/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"id": "bring",
"name": "Bring!",
"version": "1.0.0",
"license": "MIT",
"config": {
"serviceURL": "https://web.getbring.com"
}
}
16 changes: 16 additions & 0 deletions recipes/bring/webview.js
Original file line number Diff line number Diff line change
@@ -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'));
};

0 comments on commit 09bec6f

Please sign in to comment.