aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Patrick Kastner <patrick.kastner@gmail.com>2020-09-19 15:09:00 -0400
committerLibravatar GitHub <noreply@github.com>2020-09-19 20:09:00 +0100
commit762edbc0c72dd53f4f50366a02c24b4d048f5e88 (patch)
treee308ff29355d71d2eae85542ae89b908b799eb96
parentUpdate Nextcloud Talk to remove/disable unnecessary links (#270) (diff)
downloadferdium-recipes-762edbc0c72dd53f4f50366a02c24b4d048f5e88.tar.gz
ferdium-recipes-762edbc0c72dd53f4f50366a02c24b4d048f5e88.tar.zst
ferdium-recipes-762edbc0c72dd53f4f50366a02c24b4d048f5e88.zip
Add Feedly recipe (#254)
Co-authored-by: Amine <amine@mouafik.fr>
-rw-r--r--all.json11
-rw-r--r--archives/feedly.tar.gzbin0 -> 60176 bytes
-rw-r--r--uncompressed/feedly/LICENSE21
-rw-r--r--uncompressed/feedly/README.md2
-rw-r--r--uncompressed/feedly/feedly.css1
-rw-r--r--uncompressed/feedly/icon.pngbin0 -> 58852 bytes
-rw-r--r--uncompressed/feedly/icon.svg1
-rw-r--r--uncompressed/feedly/index.js2
-rw-r--r--uncompressed/feedly/package.json12
-rw-r--r--uncompressed/feedly/webview.js16
10 files changed, 66 insertions, 0 deletions
diff --git a/all.json b/all.json
index 7b008ae..c515d35 100644
--- a/all.json
+++ b/all.json
@@ -231,6 +231,17 @@
231 } 231 }
232 }, 232 },
233 { 233 {
234 "author": "Patrick Kastner <patrick.kastner@gmail.com>",
235 "featured": false,
236 "id": "feedly",
237 "name": "Feedly",
238 "version": "1.0.0",
239 "icons": {
240 "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/feedly/icon.png",
241 "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/feedly/icon.svg"
242 }
243 },
244 {
234 "author": "Stefan Malzner <stefan@adlk.io>", 245 "author": "Stefan Malzner <stefan@adlk.io>",
235 "featured": false, 246 "featured": false,
236 "id": "flowdock", 247 "id": "flowdock",
diff --git a/archives/feedly.tar.gz b/archives/feedly.tar.gz
new file mode 100644
index 0000000..9850382
--- /dev/null
+++ b/archives/feedly.tar.gz
Binary files differ
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 @@
1MIT License
2
3Copyright (c) 2019 kastnerp
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. \ 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
2This 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";
2module.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 @@
1module.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