diff options
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/binance/LICENSE | 21 | ||||
-rw-r--r-- | recipes/binance/README.md | 2 | ||||
-rw-r--r-- | recipes/binance/icon.svg | 1 | ||||
-rw-r--r-- | recipes/binance/index.js | 2 | ||||
-rw-r--r-- | recipes/binance/package.json | 9 | ||||
-rw-r--r-- | recipes/binance/service.css | 1 | ||||
-rw-r--r-- | recipes/binance/webview.js | 14 |
7 files changed, 50 insertions, 0 deletions
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 @@ | |||
1 | MIT License | ||
2 | |||
3 | Copyright (c) 2020 Vijay Raghavan Aravamudhan | ||
4 | |||
5 | Permission is hereby granted, free of charge, to any person obtaining a copy | ||
6 | of this software and associated documentation files (the "Software"), to deal | ||
7 | in the Software without restriction, including without limitation the rights | ||
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
9 | copies of the Software, and to permit persons to whom the Software is | ||
10 | furnished to do so, subject to the following conditions: | ||
11 | |||
12 | The above copyright notice and this permission notice shall be included in all | ||
13 | copies or substantial portions of the Software. | ||
14 | |||
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
21 | 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 @@ | |||
1 | # binance for Ferdi | ||
2 | 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 @@ | |||
<?xml version="1.0" ?><svg height="256px" version="1.1" viewBox="0 0 256 256" width="256px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title/><desc/><defs/><g fill="none" fill-rule="evenodd" id="Classic" stroke="none" stroke-width="1"><g fill="#F3BA2F" id="Binance-Coin" transform="translate(-1570.000000, -2488.000000)"><g transform="translate(1570.000000, 2488.000000)"><polygon id="Fill-3" points="8.30912153 147.721013 48.4291093 147.721013 48.4291093 107.601025 8.30912153 107.601025" transform="translate(28.369115, 127.661019) rotate(-45.000000) translate(-28.369115, -127.661019) "/><polygon id="Fill-3" points="206.892929 147.721013 247.012917 147.721013 247.012917 107.601025 206.892929 107.601025" transform="translate(226.952923, 127.661019) rotate(-45.000000) translate(-226.952923, -127.661019) "/><polygon id="Fill-3" points="107.601025 147.721013 147.721013 147.721013 147.721013 107.601025 107.601025 107.601025" transform="translate(127.661019, 127.661019) rotate(-45.000000) translate(-127.661019, -127.661019) "/><path d="M182.826002,42.9100781 L182.826002,22.8500842 L72.4960362,22.8500842 L72.4960362,62.970072 L142.706015,62.970072 L142.706015,133.180051 L182.826002,133.180051 L182.826002,42.9100781 Z" id="Combined-Shape" transform="translate(127.661019, 78.015067) rotate(-45.000000) translate(-127.661019, -78.015067) "/><path d="M182.826002,142.201982 L182.826002,122.141988 L72.4960362,122.141988 L72.4960362,162.261976 L142.706015,162.261976 L142.706015,232.471954 L182.826002,232.471954 L182.826002,142.201982 Z" id="Combined-Shape" transform="translate(127.661019, 177.306971) rotate(-225.000000) translate(-127.661019, -177.306971) "/></g></g></g></svg> \ 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 @@ | |||
1 | module.exports = Ferdi => class Binance extends Ferdi { | ||
2 | }; | ||
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 @@ | |||
1 | { | ||
2 | "id": "binance", | ||
3 | "name": "Binance", | ||
4 | "version": "1.0.0", | ||
5 | "license": "MIT", | ||
6 | "config": { | ||
7 | "serviceURL": "https://accounts.binance.com" | ||
8 | } | ||
9 | } | ||
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 @@ | |||
1 | var _path = _interopRequireDefault(require('path')); | ||
2 | |||
3 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
4 | |||
5 | module.exports = Ferdi => { | ||
6 | // TODO: If your binance service has unread messages, uncomment these lines to implement the logic for updating the badges | ||
7 | // const getMessages = function getMessages() { | ||
8 | // // TODO: Insert your notification-finding code here | ||
9 | // Ferdi.setBadge(0, 0); | ||
10 | // }; | ||
11 | // Ferdi.loop(getMessages); | ||
12 | |||
13 | Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); | ||
14 | }; | ||