diff options
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/inoreader/LICENSE | 21 | ||||
-rw-r--r-- | recipes/inoreader/icon.png | bin | 0 -> 155511 bytes | |||
-rw-r--r-- | recipes/inoreader/icon.svg | 149 | ||||
-rw-r--r-- | recipes/inoreader/index.js | 1 | ||||
-rw-r--r-- | recipes/inoreader/package.json | 14 | ||||
-rw-r--r-- | recipes/inoreader/webview.js | 13 |
6 files changed, 198 insertions, 0 deletions
diff --git a/recipes/inoreader/LICENSE b/recipes/inoreader/LICENSE new file mode 100644 index 0000000..b5fde1f --- /dev/null +++ b/recipes/inoreader/LICENSE | |||
@@ -0,0 +1,21 @@ | |||
1 | MIT License | ||
2 | |||
3 | Copyright (c) 2019 Anna Arad | ||
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/inoreader/icon.png b/recipes/inoreader/icon.png new file mode 100644 index 0000000..0e9fd01 --- /dev/null +++ b/recipes/inoreader/icon.png | |||
Binary files differ | |||
diff --git a/recipes/inoreader/icon.svg b/recipes/inoreader/icon.svg new file mode 100644 index 0000000..a61e4a7 --- /dev/null +++ b/recipes/inoreader/icon.svg | |||
@@ -0,0 +1,149 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
2 | <svg | ||
3 | xmlns:dc="http://purl.org/dc/elements/1.1/" | ||
4 | xmlns:cc="http://creativecommons.org/ns#" | ||
5 | xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | ||
6 | xmlns:svg="http://www.w3.org/2000/svg" | ||
7 | xmlns="http://www.w3.org/2000/svg" | ||
8 | xmlns:xlink="http://www.w3.org/1999/xlink" | ||
9 | id="svg8" | ||
10 | version="1.1" | ||
11 | viewBox="0 0 270.93333 270.93334" | ||
12 | height="1024" | ||
13 | width="1024"> | ||
14 | <defs | ||
15 | id="defs2"> | ||
16 | <linearGradient | ||
17 | id="linearGradient6042"> | ||
18 | <stop | ||
19 | id="stop6038" | ||
20 | offset="0" | ||
21 | style="stop-color:#2f6389;stop-opacity:1" /> | ||
22 | <stop | ||
23 | style="stop-color:#56addf;stop-opacity:1" | ||
24 | offset="1" | ||
25 | id="stop6053" /> | ||
26 | </linearGradient> | ||
27 | <linearGradient | ||
28 | spreadMethod="pad" | ||
29 | y2="26.709442" | ||
30 | x2="125.48809" | ||
31 | y1="295.48807" | ||
32 | x1="125.48809" | ||
33 | gradientUnits="userSpaceOnUse" | ||
34 | id="linearGradient6046" | ||
35 | xlink:href="#linearGradient6042" /> | ||
36 | <linearGradient | ||
37 | gradientUnits="userSpaceOnUse" | ||
38 | y2="172.2966" | ||
39 | x2="99.266357" | ||
40 | y1="165.41743" | ||
41 | x1="103.72218" | ||
42 | id="linearGradient6871" | ||
43 | xlink:href="#linearGradient6042" /> | ||
44 | <filter | ||
45 | height="1.1896" | ||
46 | y="-0.094800001" | ||
47 | width="1.1896" | ||
48 | x="-0.094799999" | ||
49 | id="filter7219" | ||
50 | style="color-interpolation-filters:sRGB"> | ||
51 | <feGaussianBlur | ||
52 | id="feGaussianBlur7221" | ||
53 | stdDeviation="4.1700063" /> | ||
54 | </filter> | ||
55 | <filter | ||
56 | height="1.4872007" | ||
57 | y="-0.24360036" | ||
58 | width="1.4871993" | ||
59 | x="-0.24359964" | ||
60 | id="filter7223" | ||
61 | style="color-interpolation-filters:sRGB"> | ||
62 | <feGaussianBlur | ||
63 | id="feGaussianBlur7225" | ||
64 | stdDeviation="2.6573328" /> | ||
65 | </filter> | ||
66 | <filter | ||
67 | height="1.120006" | ||
68 | y="-0.060003012" | ||
69 | width="1.119994" | ||
70 | x="-0.059996988" | ||
71 | id="filter7365" | ||
72 | style="color-interpolation-filters:sRGB"> | ||
73 | <feGaussianBlur | ||
74 | id="feGaussianBlur7367" | ||
75 | stdDeviation="6.5981513" /> | ||
76 | </filter> | ||
77 | <filter | ||
78 | height="1.1200042" | ||
79 | y="-0.06000208" | ||
80 | width="1.1199958" | ||
81 | x="-0.05999792" | ||
82 | id="filter7381" | ||
83 | style="color-interpolation-filters:sRGB"> | ||
84 | <feGaussianBlur | ||
85 | id="feGaussianBlur7383" | ||
86 | stdDeviation="4.2888659" /> | ||
87 | </filter> | ||
88 | </defs> | ||
89 | <metadata | ||
90 | id="metadata5"> | ||
91 | <rdf:RDF> | ||
92 | <cc:Work | ||
93 | rdf:about=""> | ||
94 | <dc:format>image/svg+xml</dc:format> | ||
95 | <dc:type | ||
96 | rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> | ||
97 | <dc:title></dc:title> | ||
98 | </cc:Work> | ||
99 | </rdf:RDF> | ||
100 | </metadata> | ||
101 | <g | ||
102 | style="display:inline" | ||
103 | transform="translate(0,-26.06665)" | ||
104 | id="layer1"> | ||
105 | <rect | ||
106 | ry="26.458334" | ||
107 | rx="26.458334" | ||
108 | y="26.066635" | ||
109 | x="0" | ||
110 | height="270.93335" | ||
111 | width="270.93335" | ||
112 | id="rect4539" | ||
113 | style="fill:url(#linearGradient6046);fill-opacity:1;fill-rule:nonzero;stroke:#00ffff;stroke-width:0.26458332;stroke-opacity:1" /> | ||
114 | </g> | ||
115 | <g | ||
116 | id="layer2"> | ||
117 | <path | ||
118 | style="fill:#000000;fill-opacity:0.5;fill-rule:nonzero;stroke:#00ffff;stroke-width:0.2639235;stroke-opacity:1;filter:url(#filter7219)" | ||
119 | d="m 79.374999,138.77344 a 52.784705,52.784705 0 0 0 -52.784891,52.78489 52.784705,52.784705 0 0 0 52.784891,52.78489 52.784705,52.784705 0 0 0 52.784891,-52.78489 52.784705,52.784705 0 0 0 -52.784891,-52.78489 z m 12.594063,28.23807 a 13.09033,13.09029 0 0 1 13.090668,13.09016 13.09033,13.09029 0 0 1 -13.090668,13.09067 13.09033,13.09029 0 0 1 -13.090157,-13.09067 13.09033,13.09029 0 0 1 13.090157,-13.09016 z" | ||
120 | id="path6873" /> | ||
121 | <path | ||
122 | id="path6077" | ||
123 | d="m 110.35126,174.81015 a 13.09033,13.09029 0 0 1 -13.090327,13.09029 13.09033,13.09029 0 0 1 -13.09033,-13.09029 13.09033,13.09029 0 0 1 13.09033,-13.09029 13.09033,13.09029 0 0 1 13.090327,13.09029 z" | ||
124 | style="opacity:1;fill:url(#linearGradient6871);fill-opacity:1;fill-rule:nonzero;stroke:#00ffff;stroke-width:0.27767283;stroke-opacity:1;filter:url(#filter7223)" /> | ||
125 | <path | ||
126 | id="path6075" | ||
127 | d="m 84.666664,133.48177 a 52.784705,52.784705 0 0 0 -52.78489,52.78489 52.784705,52.784705 0 0 0 52.78489,52.78489 52.784705,52.784705 0 0 0 52.784886,-52.78489 52.784705,52.784705 0 0 0 -52.784886,-52.78489 z m 12.594064,28.23807 A 13.09033,13.09029 0 0 1 110.3514,174.81 13.09033,13.09029 0 0 1 97.260728,187.90067 13.09033,13.09029 0 0 1 84.170571,174.81 13.09033,13.09029 0 0 1 97.260728,161.71984 Z" | ||
128 | style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#00ffff;stroke-width:0.2639235;stroke-opacity:1" /> | ||
129 | </g> | ||
130 | <g | ||
131 | id="layer4"> | ||
132 | <path | ||
133 | id="path7315" | ||
134 | d="m 79.375144,105.78988 a 85.780106,85.773996 0 0 0 -0.368646,0.0186 h 0.14105 v 16.07238 a 69.696339,69.691367 0 0 1 0.227561,-0.008 69.696339,69.691367 0 0 1 69.696781,69.69183 69.696339,69.691367 0 0 1 -0.0168,0.32748 h 16.08858 a 85.780106,85.773996 0 0 0 0.0117,-0.32748 85.780106,85.773996 0 0 0 -85.780294,-85.77432 z m -85.7618797,85.25284 a 85.780106,85.773996 0 0 0 -0.01848,0.52144 85.780106,85.773996 0 0 0 0.01848,0.36947 z m 85.5343097,86.17815 v 0.0991 h -0.293913 a 85.780106,85.773996 0 0 0 0.521483,0.0186 85.780106,85.773996 0 0 0 2.350435,-0.11766 z" | ||
135 | style="opacity:1;fill:#000000;fill-opacity:0.39215686;fill-rule:nonzero;stroke:#00ffff;stroke-width:0.41842526;stroke-opacity:1;filter:url(#filter7381)" /> | ||
136 | <path | ||
137 | style="opacity:1;fill:#000000;fill-opacity:0.39215686;fill-rule:nonzero;stroke:#00ffff;stroke-width:0.6437217;stroke-opacity:1;filter:url(#filter7365)" | ||
138 | d="m 79.904586,59.615186 a 131.96957,131.95595 0 0 0 -0.56715,0.0285 h 0.21699 v 24.725911 a 107.22528,107.2142 0 0 1 0.3501,-0.01196 107.22528,107.2142 0 0 1 107.225994,107.214903 107.22528,107.2142 0 0 1 -0.0258,0.50379 h 24.75172 a 131.96957,131.95595 0 0 0 0.0175,-0.50379 A 131.96957,131.95595 0 0 0 79.904056,59.616191 Z M -52.036942,190.76932 a 131.96957,131.95595 0 0 0 -0.02842,0.80218 131.96957,131.95595 0 0 0 0.02842,0.5684 z M 79.554476,323.34701 v 0.15248 h -0.45218 a 131.96957,131.95595 0 0 0 0.80229,0.0285 131.96957,131.95595 0 0 0 3.61606,-0.18098 z" | ||
139 | id="path7301" /> | ||
140 | <path | ||
141 | id="path7230" | ||
142 | d="m 84.667086,54.323519 a 131.96957,131.95595 0 0 0 -0.56715,0.0285 h 0.21699 V 79.07793 a 107.22528,107.2142 0 0 1 0.3501,-0.01196 107.22528,107.2142 0 0 1 107.225994,107.2149 107.22528,107.2142 0 0 1 -0.0258,0.50379 h 24.75172 a 131.96957,131.95595 0 0 0 0.0175,-0.50379 A 131.96957,131.95595 0 0 0 84.666556,54.324524 Z M -47.274442,185.47765 a 131.96957,131.95595 0 0 0 -0.02842,0.80218 131.96957,131.95595 0 0 0 0.02842,0.5684 z M 84.316976,318.05534 v 0.15248 h -0.45218 a 131.96957,131.95595 0 0 0 0.80229,0.0285 131.96957,131.95595 0 0 0 3.61606,-0.18098 z" | ||
143 | style="opacity:1;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#00ffff;stroke-width:0.6437217;stroke-opacity:1" /> | ||
144 | <path | ||
145 | style="opacity:1;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#00ffff;stroke-width:0.41842526;stroke-opacity:1" | ||
146 | d="m 84.666811,100.49821 a 85.780106,85.773996 0 0 0 -0.368646,0.0186 h 0.14105 v 16.07238 a 69.696339,69.691367 0 0 1 0.227561,-0.008 69.696339,69.691367 0 0 1 69.696784,69.69183 69.696339,69.691367 0 0 1 -0.0168,0.32748 h 16.08858 a 85.780106,85.773996 0 0 0 0.0117,-0.32748 85.780106,85.773996 0 0 0 -85.780297,-85.77432 z m -85.76188,85.25284 a 85.780106,85.773996 0 0 0 -0.01848,0.52144 85.780106,85.773996 0 0 0 0.01848,0.36947 z m 85.53431,86.17815 v 0.0991 h -0.293913 a 85.780106,85.773996 0 0 0 0.521483,0.0186 85.780106,85.773996 0 0 0 2.350435,-0.11766 z" | ||
147 | id="path7280" /> | ||
148 | </g> | ||
149 | </svg> | ||
diff --git a/recipes/inoreader/index.js b/recipes/inoreader/index.js new file mode 100644 index 0000000..258da41 --- /dev/null +++ b/recipes/inoreader/index.js | |||
@@ -0,0 +1 @@ | |||
module.exports = Franz => Franz; | |||
diff --git a/recipes/inoreader/package.json b/recipes/inoreader/package.json new file mode 100644 index 0000000..32159a4 --- /dev/null +++ b/recipes/inoreader/package.json | |||
@@ -0,0 +1,14 @@ | |||
1 | { | ||
2 | "id": "inoreader", | ||
3 | "name": "Inoreader", | ||
4 | "version": "1.0.0", | ||
5 | "description": "The content reader for power users who want to save time.", | ||
6 | "main": "index.js", | ||
7 | "author": "Anna Arad <annagram@shards.me>", | ||
8 | "license": "MIT", | ||
9 | "repository": "https://github.com/annagrram/recipe-inoreader", | ||
10 | "config": { | ||
11 | "serviceURL": "https://www.inoreader.com/login", | ||
12 | "message": "The content reader for power users who want to save time." | ||
13 | } | ||
14 | } | ||
diff --git a/recipes/inoreader/webview.js b/recipes/inoreader/webview.js new file mode 100644 index 0000000..a05abe2 --- /dev/null +++ b/recipes/inoreader/webview.js | |||
@@ -0,0 +1,13 @@ | |||
1 | module.exports = (Franz) => { | ||
2 | const getMessages = () => { | ||
3 | const all_articles = document.querySelector('#unread_cnt_all_items') | ||
4 | if (!all_articles) return; | ||
5 | |||
6 | const unread_articles_cnt = Number(all_articles.textContent.split('+')[0]) | ||
7 | if (!Number.isNaN(unread_articles_cnt)) { | ||
8 | Franz.setBadge(unread_articles_cnt); | ||
9 | } | ||
10 | }; | ||
11 | |||
12 | Franz.loop(getMessages); | ||
13 | } | ||