Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add firefly and productive recipe #558

Merged
merged 2 commits into from
Jun 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions recipes/firefly/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions recipes/firefly/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = Ferdium =>
class Firefly extends Ferdium {
buildUrl(url) {
return `${url}/`;
}
};
10 changes: 10 additions & 0 deletions recipes/firefly/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"id": "firefly",
"name": "Firefly",
"version": "1.0.0",
"license": "MIT",
"config": {
"hasCustomUrl": true,
"serviceURL": "https://{firefly}/"
}
}
16 changes: 16 additions & 0 deletions recipes/firefly/webview.js
Original file line number Diff line number Diff line change
@@ -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'));
};
Loading
Loading