diff options
author | Patrick Kastner <patrick.kastner@gmail.com> | 2020-09-19 15:09:00 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-19 20:09:00 +0100 |
commit | 762edbc0c72dd53f4f50366a02c24b4d048f5e88 (patch) | |
tree | e308ff29355d71d2eae85542ae89b908b799eb96 /uncompressed | |
parent | Update Nextcloud Talk to remove/disable unnecessary links (#270) (diff) | |
download | ferdium-recipes-762edbc0c72dd53f4f50366a02c24b4d048f5e88.tar.gz ferdium-recipes-762edbc0c72dd53f4f50366a02c24b4d048f5e88.tar.zst ferdium-recipes-762edbc0c72dd53f4f50366a02c24b4d048f5e88.zip |
Add Feedly recipe (#254)
Co-authored-by: Amine <amine@mouafik.fr>
Diffstat (limited to 'uncompressed')
-rw-r--r-- | uncompressed/feedly/LICENSE | 21 | ||||
-rw-r--r-- | uncompressed/feedly/README.md | 2 | ||||
-rw-r--r-- | uncompressed/feedly/feedly.css | 1 | ||||
-rw-r--r-- | uncompressed/feedly/icon.png | bin | 0 -> 58852 bytes | |||
-rw-r--r-- | uncompressed/feedly/icon.svg | 1 | ||||
-rw-r--r-- | uncompressed/feedly/index.js | 2 | ||||
-rw-r--r-- | uncompressed/feedly/package.json | 12 | ||||
-rw-r--r-- | uncompressed/feedly/webview.js | 16 |
8 files changed, 55 insertions, 0 deletions
diff --git a/uncompressed/feedly/LICENSE b/uncompressed/feedly/LICENSE new file mode 100644 index 0000000..74d4100 --- /dev/null +++ b/uncompressed/feedly/LICENSE | |||
@@ -0,0 +1,21 @@ | |||
1 | MIT License | ||
2 | |||
3 | Copyright (c) 2019 kastnerp | ||
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. \ No newline at end of file | ||
diff --git a/uncompressed/feedly/README.md b/uncompressed/feedly/README.md new file mode 100644 index 0000000..92ad480 --- /dev/null +++ b/uncompressed/feedly/README.md | |||
@@ -0,0 +1,2 @@ | |||
1 | # Ferdi 5 Recipe: Feedly | ||
2 | This recipe integrates Feedly into Ferdi. | ||
diff --git a/uncompressed/feedly/feedly.css b/uncompressed/feedly/feedly.css new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/uncompressed/feedly/feedly.css | |||
@@ -0,0 +1 @@ | |||
diff --git a/uncompressed/feedly/icon.png b/uncompressed/feedly/icon.png new file mode 100644 index 0000000..de865bc --- /dev/null +++ b/uncompressed/feedly/icon.png | |||
Binary files differ | |||
diff --git a/uncompressed/feedly/icon.svg b/uncompressed/feedly/icon.svg new file mode 100644 index 0000000..57287f2 --- /dev/null +++ b/uncompressed/feedly/icon.svg | |||
@@ -0,0 +1 @@ | |||
<svg xmlns="http://www.w3.org/2000/svg" width="2500" height="2213" viewBox="51.622 205.389 487.385 431.346"><path fill="#FFF" d="M111.615 420.945L297.64 234.92l186.025 186.025L297.64 606.97 111.615 420.945z"/><path fill="#6CC655" d="M201.837 622.782L64.179 484.193c-16.742-16.742-16.742-53.017 0-68.829l197.187-198.117c15.812-15.812 51.156-15.812 66.969 0L526.45 415.364c16.742 16.742 16.742 53.018 0 68.829L388.792 622.782c-8.371 8.371-21.393 13.952-34.415 13.952H234.392c-12.092 0-24.184-5.581-32.555-13.952zm125.567-53.947c2.791-2.79 2.791-8.371 0-11.161L300.43 530.7c-2.79-2.791-8.37-2.791-11.161 0l-26.974 26.974c-2.79 2.79-2.79 8.371 0 11.161l21.393 20.463h22.323l21.393-20.463zm0-114.405c1.86-1.86 1.86-6.511 0-8.371l-28.834-28.834c-1.859-1.86-6.51-1.86-8.37 0l-83.712 83.711c-2.79 2.791-2.79 9.302 0 12.092l19.533 19.533h22.323l79.06-78.131zm0-113.476c1.86-1.86 2.791-7.441 0-9.301L299.5 303.749c-1.86-1.86-7.44-1.86-10.231 0L148.82 444.198c-1.859 1.86-2.79 7.441-.93 9.301l22.323 21.394h21.393l135.798-133.939z"/></svg> \ No newline at end of file | |||
diff --git a/uncompressed/feedly/index.js b/uncompressed/feedly/index.js new file mode 100644 index 0000000..f6f75e3 --- /dev/null +++ b/uncompressed/feedly/index.js | |||
@@ -0,0 +1,2 @@ | |||
1 | "use strict"; | ||
2 | module.exports = Franz => Franz; \ No newline at end of file | ||
diff --git a/uncompressed/feedly/package.json b/uncompressed/feedly/package.json new file mode 100644 index 0000000..d7f7d73 --- /dev/null +++ b/uncompressed/feedly/package.json | |||
@@ -0,0 +1,12 @@ | |||
1 | { | ||
2 | "id": "feedly", | ||
3 | "name": "Feedly", | ||
4 | "version": "1.0.0", | ||
5 | "description": "Feedly", | ||
6 | "main": "index.js", | ||
7 | "author": "Patrick Kastner <patrick.kastner@gmail.com>", | ||
8 | "license": "MIT", | ||
9 | "config": { | ||
10 | "serviceURL": "https://feedly.com" | ||
11 | } | ||
12 | } | ||
diff --git a/uncompressed/feedly/webview.js b/uncompressed/feedly/webview.js new file mode 100644 index 0000000..c0f625d --- /dev/null +++ b/uncompressed/feedly/webview.js | |||
@@ -0,0 +1,16 @@ | |||
1 | module.exports = Franz => { | ||
2 | |||
3 | getMessages = () => { | ||
4 | const newsDOM = document.querySelectorAll("div[title='All'] > .LeftnavListRow__count")[0].innerHTML; | ||
5 | let counter = parseInt(newsDOM); | ||
6 | |||
7 | if (newsDOM.indexOf('K') !== -1 || newsDOM.indexOf('+') !== -1) { | ||
8 | counter = newsDOM.substring(0, newsDOM.indexOf('K')) + '000'; | ||
9 | } | ||
10 | |||
11 | Franz.setBadge(counter); | ||
12 | }; | ||
13 | |||
14 | Franz.loop(getMessages); | ||
15 | |||
16 | } \ No newline at end of file | ||