aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/roundcube
diff options
context:
space:
mode:
authorLibravatar Bennett <hello@vantezzen.io>2020-09-22 20:56:48 +0200
committerLibravatar GitHub <noreply@github.com>2020-09-22 19:56:48 +0100
commit6f5e4a00588aefdda7a5a1cfe70935870e7e234a (patch)
tree9e29aa7aa0620a1a4a968ff8739b4b8ba96791a9 /recipes/roundcube
parentUpdated logos for Outlook/OWA (diff)
downloadferdium-recipes-6f5e4a00588aefdda7a5a1cfe70935870e7e234a.tar.gz
ferdium-recipes-6f5e4a00588aefdda7a5a1cfe70935870e7e234a.tar.zst
ferdium-recipes-6f5e4a00588aefdda7a5a1cfe70935870e7e234a.zip
Unpack recipes and update recipes icons (#292)
Co-authored-by: Amine Mouafik <amine@mouafik.fr>
Diffstat (limited to 'recipes/roundcube')
-rw-r--r--recipes/roundcube/ICON_LICENSE4
-rw-r--r--recipes/roundcube/LICENSE21
-rw-r--r--recipes/roundcube/README.md2
-rw-r--r--recipes/roundcube/icon.pngbin0 -> 28983 bytes
-rw-r--r--recipes/roundcube/icon.svg44
-rw-r--r--recipes/roundcube/index.js4
-rw-r--r--recipes/roundcube/package.json15
-rw-r--r--recipes/roundcube/webview.js15
8 files changed, 105 insertions, 0 deletions
diff --git a/recipes/roundcube/ICON_LICENSE b/recipes/roundcube/ICON_LICENSE
new file mode 100644
index 0000000..e1188f7
--- /dev/null
+++ b/recipes/roundcube/ICON_LICENSE
@@ -0,0 +1,4 @@
1Icon by Lorena Salagre
2https://thenounproject.com/lorens/
3https://thenounproject.com/search/?q=email&i=32727
4https://creativecommons.org/licenses/by/3.0/us/ \ No newline at end of file
diff --git a/recipes/roundcube/LICENSE b/recipes/roundcube/LICENSE
new file mode 100644
index 0000000..83683df
--- /dev/null
+++ b/recipes/roundcube/LICENSE
@@ -0,0 +1,21 @@
1MIT License
2
3Copyright (c) 2017 Jonathan Juursema
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/recipes/roundcube/README.md b/recipes/roundcube/README.md
new file mode 100644
index 0000000..096fd03
--- /dev/null
+++ b/recipes/roundcube/README.md
@@ -0,0 +1,2 @@
1# franz-roundcube
2A recipe to add Roundcube support to Franz. \ No newline at end of file
diff --git a/recipes/roundcube/icon.png b/recipes/roundcube/icon.png
new file mode 100644
index 0000000..f12f54e
--- /dev/null
+++ b/recipes/roundcube/icon.png
Binary files differ
diff --git a/recipes/roundcube/icon.svg b/recipes/roundcube/icon.svg
new file mode 100644
index 0000000..7db0005
--- /dev/null
+++ b/recipes/roundcube/icon.svg
@@ -0,0 +1,44 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Generator: Adobe Illustrator 21.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4 viewBox="0 0 1700.8 1700.8" style="enable-background:new 0 0 1700.8 1700.8;" xml:space="preserve">
5<style type="text/css">
6 .st0{fill:#FFFFFF;}
7 .st1{fill:#010101;}
8 .st2{fill:#0475B3;}
9</style>
10<g>
11 <g id="XMLID_1_">
12 <g>
13 <path class="st0" d="M942.3,636l-16.2,88.3c-9,46.8-50.5,104.5-95.5,106.3c-32.4,0-50.5-25.2-50.5-59.5
14 c0-75.7,54-140.5,122.5-140.5C920.7,630.6,935.1,634.2,942.3,636z"/>
15 <path class="st0" d="M1439.6,533.3v234.2l-582.9,494.7L562.1,1018L263,767.5V535.1v-59.5V286.5h288.3h90.1h425.2h88.3h284.7
16 v187.4V533.3z M981.9,872c73.9,0,138.7-68.5,138.7-185.6c0-129.7-90.1-225.2-225.2-225.2c-171.2,0-282.9,136.9-282.9,297.3
17 c0,149.5,108.1,243.2,236,243.2c52.3,0,95.5-7.2,138.7-30.6l-12.6-34.2c-32.4,18-72.1,27-117.1,27c-115.3,0-200-79.3-200-209
18 c0-156.7,106.3-257.6,232.4-257.6c118.9,0,187.4,79.3,187.4,192.8c0,90.1-45,142.3-84.7,142.3c-25.2,0-34.2-27-25.2-84.7
19 l27-140.5c-19.8-9-48.6-16.2-82.9-16.2c-108.1,0-183.8,86.5-183.8,183.8c0,61.3,39.6,97.3,84.7,97.3c46.8,0,82.9-21.6,109.9-68.5
20 h1.8C922.5,850.4,951.3,872,981.9,872z"/>
21 <path class="st1" d="M1661.2,623.4v989.1H39.6V623.4l173-113.5v-272H627L855.8,88.3L1081,237.8h407.2v270.3L1661.2,623.4z
22 M1612.5,1563.9V688.2l-754.9,639.6v-1.8l-325.2-269.5l-0.9-0.7L88.3,688.2v875.6H1612.5z M1488.2,729.7l108.1-91.9l-108.1-72.1
23 v1.8V729.7z M1439.6,767.5V533.3v-59.4V286.5h-284.7h-88.3H641.4h-90.1H263v189.2v59.5v232.4L562.1,1018l293.7,245h1.8l-0.9-0.8
24 L1439.6,767.5z M717.1,237.8h275.7l-136.9-90.1L717.1,237.8z M212.6,727.9V567.5l-108.1,70.3L212.6,727.9z"/>
25 <polygon class="st2" points="1612.5,688.2 1612.5,1563.9 88.3,1563.9 88.3,688.2 531.5,1057.6 857.6,1327.8 "/>
26 <polygon class="st2" points="1596.3,637.8 1488.2,729.7 1488.2,567.5 "/>
27 <path class="st1" d="M1120.7,686.4c0,117.1-64.9,185.6-138.7,185.6c-30.6,0-59.5-21.6-57.7-68.5h-1.8
28 c-27,46.8-63.1,68.5-109.9,68.5c-45,0-84.7-36-84.7-97.3c0-97.3,75.7-183.8,183.8-183.8c34.2,0,63.1,7.2,82.9,16.2l-27,140.5
29 c-9,57.6,0,84.7,25.2,84.7c39.6,0,84.7-52.3,84.7-142.3c0-113.5-68.5-192.8-187.4-192.8c-126.1,0-232.4,100.9-232.4,257.6
30 c0,129.7,84.7,209,200,209c45,0,84.7-9,117.1-27l12.6,34.2c-43.2,23.4-86.5,30.6-138.7,30.6c-127.9,0-236-93.7-236-243.2
31 c0-160.4,111.7-297.3,282.9-297.3C1030.6,461.2,1120.7,556.7,1120.7,686.4z M926.1,724.3l16.2-88.3c-7.2-1.8-21.6-5.4-39.6-5.4
32 c-68.5,0-122.5,64.9-122.5,140.5c0,34.2,18,59.5,50.5,59.5C875.6,828.8,917.1,771.1,926.1,724.3z"/>
33 <polygon class="st2" points="992.7,237.8 717.1,237.8 855.8,147.7 "/>
34 <polygon class="st1" points="857.6,1326.1 857.6,1327.8 532.4,1056.5 "/>
35 <polygon class="st1" points="857.6,1263 855.8,1263 856.7,1262.2 "/>
36 <polygon class="st1" points="856.7,1262.2 855.8,1263 562.1,1018 "/>
37 <polygon class="st2" points="532.4,1056.5 857.6,1327.8 531.5,1057.6 88.3,688.2 531.5,1055.8 "/>
38 <polygon class="st2" points="212.6,567.5 212.6,727.9 104.5,637.8 "/>
39 </g>
40 <g>
41 </g>
42 </g>
43</g>
44</svg>
diff --git a/recipes/roundcube/index.js b/recipes/roundcube/index.js
new file mode 100644
index 0000000..bb8d040
--- /dev/null
+++ b/recipes/roundcube/index.js
@@ -0,0 +1,4 @@
1"use strict";
2
3module.exports = Franz => Franz;
4//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJvdW5kY3ViZS9pbmRleC5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiXSwibWFwcGluZ3MiOiI7O0FBQUFBLE9BQU9DLE9BQVAsR0FBaUJDLFNBQVNBLEtBQTFCIiwiZmlsZSI6InJvdW5kY3ViZS9pbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gRnJhbnogPT4gRnJhbno7Il19 \ No newline at end of file
diff --git a/recipes/roundcube/package.json b/recipes/roundcube/package.json
new file mode 100644
index 0000000..a9428dc
--- /dev/null
+++ b/recipes/roundcube/package.json
@@ -0,0 +1,15 @@
1{
2 "id": "roundcube",
3 "name": "Roundcube",
4 "version": "1.0.0",
5 "description": "Roundcube - Free and Open Source Webmail Software",
6 "main": "index.js",
7 "author": "Jonathan Juursema <dev@jonathanj.nl>",
8 "repository": "https://github.com/jonathanjuursema/franz-roundcube",
9 "license": "MIT",
10 "config": {
11 "hasCustomUrl": true,
12 "hasNotificationSound": false,
13 "hasIndirectMessages": false
14 }
15}
diff --git a/recipes/roundcube/webview.js b/recipes/roundcube/webview.js
new file mode 100644
index 0000000..3ab6cf7
--- /dev/null
+++ b/recipes/roundcube/webview.js
@@ -0,0 +1,15 @@
1'use strict';
2
3module.exports = Franz => {
4 const getMessages = function getMessages() {
5 let directElements = document.querySelectorAll('.unreadcount');
6 let direct = 0;
7 for (let i = 0; i < directElements.length; i += 1) {
8 n = parseInt(directElements[i].innerHTML);
9 direct += isNaN(n) ? 0 : n;
10 }
11 Franz.setBadge(direct);
12 };
13 Franz.loop(getMessages);
14};
15//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJvdW5kY3ViZS93ZWJ2aWV3LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9yd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