aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/riseup
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/riseup')
-rw-r--r--recipes/riseup/LICENSE21
-rw-r--r--recipes/riseup/README.md7
-rw-r--r--recipes/riseup/icon.pngbin0 -> 51089 bytes
-rw-r--r--recipes/riseup/icon.svg78
-rw-r--r--recipes/riseup/index.js2
-rw-r--r--recipes/riseup/package.json12
-rw-r--r--recipes/riseup/service.css1
-rw-r--r--recipes/riseup/webview.js18
8 files changed, 139 insertions, 0 deletions
diff --git a/recipes/riseup/LICENSE b/recipes/riseup/LICENSE
new file mode 100644
index 0000000..76a123f
--- /dev/null
+++ b/recipes/riseup/LICENSE
@@ -0,0 +1,21 @@
1MIT License
2
3Copyright (c) 2020 Dan Feder
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/riseup/README.md b/recipes/riseup/README.md
new file mode 100644
index 0000000..0ef43fc
--- /dev/null
+++ b/recipes/riseup/README.md
@@ -0,0 +1,7 @@
1# Riseup.net for Ferdi
2
3This is a Ferdi recipe for Riseup.net webmail.
4
5[Built using the Ferdi recipe creation script](https://github.com/getferdi/recipes/blob/master/docs/integration.md).
6
7[Riseup.net logo](https://riseup.net/en/about-us/images) used under [CC BY-NC-SA](https://creativecommons.org/licenses/by-nc-sa/3.0/) / Modified from original
diff --git a/recipes/riseup/icon.png b/recipes/riseup/icon.png
new file mode 100644
index 0000000..d4ce661
--- /dev/null
+++ b/recipes/riseup/icon.png
Binary files differ
diff --git a/recipes/riseup/icon.svg b/recipes/riseup/icon.svg
new file mode 100644
index 0000000..a75abb9
--- /dev/null
+++ b/recipes/riseup/icon.svg
@@ -0,0 +1,78 @@
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:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
9 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10 sodipodi:docname="icon.svg"
11 inkscape:version="1.0 (4035a4fb49, 2020-05-01)"
12 version="1.1"
13 id="svg4506"
14 height="116.92913"
15 width="116.92913">
16 <defs
17 id="defs4508" />
18 <sodipodi:namedview
19 inkscape:document-rotation="0"
20 inkscape:window-maximized="0"
21 inkscape:window-y="0"
22 inkscape:window-x="0"
23 inkscape:window-height="1418"
24 inkscape:window-width="2560"
25 inkscape:snap-global="false"
26 units="mm"
27 showgrid="false"
28 inkscape:current-layer="layer1"
29 inkscape:document-units="mm"
30 inkscape:cy="68.396061"
31 inkscape:cx="65.559127"
32 inkscape:zoom="7.9195959"
33 inkscape:pageshadow="2"
34 inkscape:pageopacity="0.0"
35 borderopacity="1.0"
36 bordercolor="#666666"
37 pagecolor="#ffffff"
38 id="base">
39 <inkscape:grid
40 snapvisiblegridlinesonly="true"
41 enabled="true"
42 visible="true"
43 empspacing="5"
44 id="grid5125"
45 type="xygrid" />
46 </sodipodi:namedview>
47 <metadata
48 id="metadata4511">
49 <rdf:RDF>
50 <cc:Work
51 rdf:about="">
52 <dc:format>image/svg+xml</dc:format>
53 <dc:type
54 rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
55 <dc:title />
56 </cc:Work>
57 </rdf:RDF>
58 </metadata>
59 <g
60 transform="translate(0,-935.433)"
61 id="layer1"
62 inkscape:groupmode="layer"
63 inkscape:label="Layer 1">
64 <circle
65 style="fill:#007cc3;fill-rule:evenodd;stroke:none;stroke-width:0.0210157"
66 id="circle9"
67 r="54.199368"
68 cy="990.44196"
69 cx="59.066776"
70 class="fil0 str0" />
71 <path
72 sodipodi:nodetypes="csccccccccccccccccccccccccccccccccccccccccccccccccccccccscccccccccccccsccccccccccccscccccccccccccccccccccccccccccccccccccccccccscccccccccccccccccccccccc"
73 inkscape:connector-curvature="0"
74 id="path5892"
75 d="m 47.396023,972.44114 c 0,0 -1.527128,-2.95852 -1.628934,-3.36658 -0.101828,-0.40811 -0.916288,-4.59081 -0.916288,-4.59081 l 1.018094,-1.83636 2.239817,-3.36657 3.2579,-2.55047 0.81447,-0.30606 7.839353,-2.95854 0.712658,-0.71413 -0.814474,-1.22421 -1.119908,-0.61209 -2.055164,-0.5276 -5.14863,-0.52758 -3.995263,0.0351 -2.748853,0.61212 -2.443439,-0.91817 -3.05429,-0.40807 -4.47961,-0.10207 -2.239821,-0.10206 -3.766943,1.42825 -5.701339,6.63119 -0.712671,2.55045 -0.407238,2.24438 -1.934371,4.18275 -1.221738,3.9787 -0.610839,4.28478 v 0.91815 l -2.952483,4.48882 -1.628955,3.3666 v 4.79485 l 0.509045,9.89571 0.916289,3.57088 1.832578,3.2645 2.341609,2.1424 1.01809,4.1829 3.868776,8.5695 4.581442,5.5087 0.305398,0.3061 1.628969,8.2635 -5.59952,10.202 -1.527141,2.3462 -1.425346,0.9182 -2.239807,-0.3063 -1.323517,0.5104 -1.527149,-0.1012 -1.018095,0.816 -1.934382,-0.51 -1.934379,-0.306 -1.628956,1.0201 -0.407242,1.7342 1.11991,-1.0201 1.730757,-0.3061 v 1.6324 l 2.748866,-0.6119 1.52714,0.1012 2.647047,0.6123 c 0,0 2.341623,0.1012 2.748865,0.1012 0.407244,0 2.850659,0.5099 2.850659,0.5099 h 1.832575 l 0.916287,0.51 1.32352,-0.2039 1.32353,0.8163 h 2.036198 l 0.407218,-1.3263 v -0.7142 l 1.32354,0.6122 1.018093,1.0202 0.610863,1.1223 0.101839,-1.3266 -0.712669,-1.632 c 0,0 -0.509045,-0.9182 -0.916287,-0.9182 -0.40723,0 -1.93438,-0.5103 -1.93438,-0.5103 l -1.11991,0.3062 -1.119896,-0.6124 -1.221715,0.5105 -1.018103,-0.5105 -0.40723,-1.0199 -0.712668,-0.3064 0.610849,-1.8361 1.832577,-4.1826 2.443429,-4.0807 2.138013,-2.5507 0.814472,-1.0199 c 0,0 1.018092,-1.5303 1.018092,-1.9383 0,-0.4083 0.203629,-4.6928 0.203629,-4.6928 l -1.32353,-2.7547 -0.610852,-2.2444 11.809908,2.8567 h 0.712677 l 10.079134,7.2432 1.425336,1.8364 0.509046,7.0391 -0.203627,1.6325 -0.712667,1.3261 -0.814473,0.8161 -0.305427,1.4281 -0.407252,0.7144 -1.934368,0.3058 -1.83259,-0.612 -1.1199,-0.3061 h -2.137988 l -1.018103,0.816 -0.509046,1.1223 0.101829,1.2244 0.61085,-1.1223 0.712668,-0.7141 0.61085,-0.1012 -0.101828,1.0201 0.71268,0.6121 1.730762,-0.5101 h 0.814459 l 0.101828,1.1223 2.443429,0.3061 1.730759,-0.3061 1.323519,0.4079 1.934393,0.51 0.712669,-0.1012 0.610839,-0.4079 0.610873,1.9382 0.305414,-2.0406 -0.509035,-2.4483 -1.11991,-0.9181 0.40723,-1.5304 -0.916276,-1.7341 0.101839,-6.4273 5.090476,6.0192 6.719443,5.3049 c 0,0 4.581428,1.6324 4.988658,1.6324 0.407242,0 3.563338,-0.4081 3.563338,-0.4081 l 2.036184,-3.3665 -1.52714,-4.591 0.610861,-1.5303 -3.257908,-4.2845 -6.901547,-7.0273 -1.650461,-5.5211 0.101839,-3.7747 -1.527138,-3.9788 -1.730749,-3.1625 1.018082,-3.1626 -0.814459,-4.5906 -3.471946,-7.81532 1.282515,-0.21644 -2.152432,-3.72617 1.398448,-0.4439 -2.458316,-4.00742 1.033985,-0.5574 -1.842641,-3.0252 0.600764,-0.33635 -2.229731,-1.80602 0.814473,-0.42325 -5.803131,-4.06557 z"
76 style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:1.52963" />
77 </g>
78</svg>
diff --git a/recipes/riseup/index.js b/recipes/riseup/index.js
new file mode 100644
index 0000000..b4e1380
--- /dev/null
+++ b/recipes/riseup/index.js
@@ -0,0 +1,2 @@
1module.exports = Ferdi => class riseupnet extends Ferdi {
2};
diff --git a/recipes/riseup/package.json b/recipes/riseup/package.json
new file mode 100644
index 0000000..27e23fa
--- /dev/null
+++ b/recipes/riseup/package.json
@@ -0,0 +1,12 @@
1{
2 "id": "riseup",
3 "name": "Riseup.net",
4 "version": "1.0.0",
5 "description": "riseup.net",
6 "main": "index.js",
7 "author": "Dan Feder <danfeder@riseup.net>",
8 "license": "MIT",
9 "config": {
10 "serviceURL": "https://mail.riseup.net"
11 }
12}
diff --git a/recipes/riseup/service.css b/recipes/riseup/service.css
new file mode 100644
index 0000000..38dcab0
--- /dev/null
+++ b/recipes/riseup/service.css
@@ -0,0 +1 @@
/* Insert custom styles you want to insert here */ \ No newline at end of file
diff --git a/recipes/riseup/webview.js b/recipes/riseup/webview.js
new file mode 100644
index 0000000..705a0ba
--- /dev/null
+++ b/recipes/riseup/webview.js
@@ -0,0 +1,18 @@
1"use strict";
2
3var _path = _interopRequireDefault(require("path"));
4
5function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
6
7module.exports = Ferdi => {
8 const getMessages = function getMessages() {
9 var unread = 0
10 const notificationBadge = document.getElementsByClassName('unreadcount')[0]
11 if (notificationBadge != undefined) {
12 unread = notificationBadge.innerText;
13 }
14 Ferdi.setBadge(parseInt(unread, 10));
15 };
16
17 Ferdi.loop(getMessages);
18};