aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Maitre_Oda <oda.alexandre31@gmail.com>2021-08-28 15:33:46 +0200
committerLibravatar GitHub <noreply@github.com>2021-08-28 19:03:46 +0530
commitbc4394d8f0f9a4efcf4217f900463d2dec12c96c (patch)
tree6681794856e95c49660441239b088694f04ce26e
parentNew recipe: ovh-cloud (#650) (diff)
downloadferdium-recipes-bc4394d8f0f9a4efcf4217f900463d2dec12c96c.tar.gz
ferdium-recipes-bc4394d8f0f9a4efcf4217f900463d2dec12c96c.tar.zst
ferdium-recipes-bc4394d8f0f9a4efcf4217f900463d2dec12c96c.zip
New recipe: binance (#645)
-rw-r--r--all.json9
-rw-r--r--recipes/binance/LICENSE21
-rw-r--r--recipes/binance/README.md2
-rw-r--r--recipes/binance/icon.svg1
-rw-r--r--recipes/binance/index.js2
-rw-r--r--recipes/binance/package.json9
-rw-r--r--recipes/binance/service.css1
-rw-r--r--recipes/binance/webview.js14
8 files changed, 59 insertions, 0 deletions
diff --git a/all.json b/all.json
index 6bd6dab..9649df5 100644
--- a/all.json
+++ b/all.json
@@ -94,6 +94,15 @@
94 }, 94 },
95 { 95 {
96 "featured": false, 96 "featured": false,
97 "id": "binance",
98 "name": "Binance",
99 "version": "1.0.0",
100 "icons": {
101 "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/binance/icon.svg"
102 }
103 },
104 {
105 "featured": false,
97 "id": "bip", 106 "id": "bip",
98 "name": "BiP", 107 "name": "BiP",
99 "version": "1.1.0", 108 "version": "1.1.0",
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 @@
1MIT License
2
3Copyright (c) 2020 Vijay Raghavan Aravamudhan
4
5Permission is hereby granted, free of charge, to any person obtaining a copy
6of this software and associated documentation files (the "Software"), to deal
7in the Software without restriction, including without limitation the rights
8to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9copies of the Software, and to permit persons to whom the Software is
10furnished to do so, subject to the following conditions:
11
12The above copyright notice and this permission notice shall be included in all
13copies or substantial portions of the Software.
14
15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21SOFTWARE.
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
2This 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 @@
1module.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 @@
1var _path = _interopRequireDefault(require('path'));
2
3function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4
5module.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};