From f8f6d7a8b5596c196e14926de69383bf03dab71f Mon Sep 17 00:00:00 2001 From: Abdul Hafiz Muhammad <109435420+hafiz-muhammad@users.noreply.github.com> Date: Tue, 4 Oct 2022 05:05:04 -0400 Subject: New recipe: brax.me (#177) --- recipes/brax.me/LICENSE | 21 +++++++++++++++++++++ recipes/brax.me/icon.svg | 9 +++++++++ recipes/brax.me/index.js | 1 + recipes/brax.me/package.json | 10 ++++++++++ recipes/brax.me/webview.js | 16 ++++++++++++++++ 5 files changed, 57 insertions(+) create mode 100644 recipes/brax.me/LICENSE create mode 100644 recipes/brax.me/icon.svg create mode 100644 recipes/brax.me/index.js create mode 100644 recipes/brax.me/package.json create mode 100644 recipes/brax.me/webview.js (limited to 'recipes') diff --git a/recipes/brax.me/LICENSE b/recipes/brax.me/LICENSE new file mode 100644 index 0000000..d4c6c0b --- /dev/null +++ b/recipes/brax.me/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 Abdul Hafiz Muhammad + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/recipes/brax.me/icon.svg b/recipes/brax.me/icon.svg new file mode 100644 index 0000000..e228d26 --- /dev/null +++ b/recipes/brax.me/icon.svg @@ -0,0 +1,9 @@ + + New Project + + + + + + \ No newline at end of file diff --git a/recipes/brax.me/index.js b/recipes/brax.me/index.js new file mode 100644 index 0000000..dd41f72 --- /dev/null +++ b/recipes/brax.me/index.js @@ -0,0 +1 @@ +module.exports = Ferdium => Ferdium; diff --git a/recipes/brax.me/package.json b/recipes/brax.me/package.json new file mode 100644 index 0000000..ca123a1 --- /dev/null +++ b/recipes/brax.me/package.json @@ -0,0 +1,10 @@ +{ + "id": "brax.me", + "name": "Brax.Me", + "version": "1.0.0", + "license": "MIT", + "repository": "https://github.com/hafiz-muhammad/ferdium-recipes", + "config": { + "serviceURL": "https://brax.me" + } +} diff --git a/recipes/brax.me/webview.js b/recipes/brax.me/webview.js new file mode 100644 index 0000000..b83ea5f --- /dev/null +++ b/recipes/brax.me/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 Brax.Me 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