From bc4394d8f0f9a4efcf4217f900463d2dec12c96c Mon Sep 17 00:00:00 2001 From: Maitre_Oda Date: Sat, 28 Aug 2021 15:33:46 +0200 Subject: New recipe: binance (#645) --- all.json | 9 +++++++++ recipes/binance/LICENSE | 21 +++++++++++++++++++++ recipes/binance/README.md | 2 ++ recipes/binance/icon.svg | 1 + recipes/binance/index.js | 2 ++ recipes/binance/package.json | 9 +++++++++ recipes/binance/service.css | 1 + recipes/binance/webview.js | 14 ++++++++++++++ 8 files changed, 59 insertions(+) create mode 100644 recipes/binance/LICENSE create mode 100644 recipes/binance/README.md create mode 100644 recipes/binance/icon.svg create mode 100644 recipes/binance/index.js create mode 100644 recipes/binance/package.json create mode 100644 recipes/binance/service.css create mode 100644 recipes/binance/webview.js diff --git a/all.json b/all.json index 6bd6dab..9649df5 100644 --- a/all.json +++ b/all.json @@ -92,6 +92,15 @@ "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/bigbluebutton/icon.svg" } }, + { + "featured": false, + "id": "binance", + "name": "Binance", + "version": "1.0.0", + "icons": { + "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/binance/icon.svg" + } + }, { "featured": false, "id": "bip", diff --git a/recipes/binance/LICENSE b/recipes/binance/LICENSE new file mode 100644 index 0000000..99d6f23 --- /dev/null +++ b/recipes/binance/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Vijay Raghavan Aravamudhan + +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/binance/README.md b/recipes/binance/README.md new file mode 100644 index 0000000..0ba286a --- /dev/null +++ b/recipes/binance/README.md @@ -0,0 +1,2 @@ +# binance for Ferdi +This is a Ferdi recipe for binance diff --git a/recipes/binance/icon.svg b/recipes/binance/icon.svg new file mode 100644 index 0000000..2a7b456 --- /dev/null +++ b/recipes/binance/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/recipes/binance/index.js b/recipes/binance/index.js new file mode 100644 index 0000000..a6681d5 --- /dev/null +++ b/recipes/binance/index.js @@ -0,0 +1,2 @@ +module.exports = Ferdi => class Binance extends Ferdi { +}; diff --git a/recipes/binance/package.json b/recipes/binance/package.json new file mode 100644 index 0000000..ecd7675 --- /dev/null +++ b/recipes/binance/package.json @@ -0,0 +1,9 @@ +{ + "id": "binance", + "name": "Binance", + "version": "1.0.0", + "license": "MIT", + "config": { + "serviceURL": "https://accounts.binance.com" + } +} diff --git a/recipes/binance/service.css b/recipes/binance/service.css new file mode 100644 index 0000000..38dcab0 --- /dev/null +++ b/recipes/binance/service.css @@ -0,0 +1 @@ +/* Insert custom styles you want to insert here */ \ No newline at end of file diff --git a/recipes/binance/webview.js b/recipes/binance/webview.js new file mode 100644 index 0000000..2b16247 --- /dev/null +++ b/recipes/binance/webview.js @@ -0,0 +1,14 @@ +var _path = _interopRequireDefault(require('path')); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = Ferdi => { + // TODO: If your binance service has unread messages, uncomment these lines to implement the logic for updating the badges + // const getMessages = function getMessages() { + // // TODO: Insert your notification-finding code here + // Ferdi.setBadge(0, 0); + // }; + // Ferdi.loop(getMessages); + + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); +}; -- cgit v1.2.3-54-g00ecf