aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/fastmail
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/fastmail
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/fastmail')
-rw-r--r--recipes/fastmail/LICENSE9
-rw-r--r--recipes/fastmail/README.md12
-rw-r--r--recipes/fastmail/icon.pngbin0 -> 37221 bytes
-rw-r--r--recipes/fastmail/icon.svg55
-rw-r--r--recipes/fastmail/index.js4
-rw-r--r--recipes/fastmail/package.json14
-rw-r--r--recipes/fastmail/webview.js27
7 files changed, 121 insertions, 0 deletions
diff --git a/recipes/fastmail/LICENSE b/recipes/fastmail/LICENSE
new file mode 100644
index 0000000..4d8898a
--- /dev/null
+++ b/recipes/fastmail/LICENSE
@@ -0,0 +1,9 @@
1The MIT License (MIT)
2
3Copyright © 2017 Foss & Haas GmbH <open-source@foss-haas.de>
4
5Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
7The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
9THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/recipes/fastmail/README.md b/recipes/fastmail/README.md
new file mode 100644
index 0000000..5c9b210
--- /dev/null
+++ b/recipes/fastmail/README.md
@@ -0,0 +1,12 @@
1# Franz-FastMail
2
3This is a service recipe for the [Franz](https://meetfranz.com/) cross-platform messenger to add support for [FastMail](https://www.fastmail.com).
4
5This version of the recipe for Franz 5.
6
7For a version compatible with Franz 4 (legacy) see the [franz4 branch](https://github.com/foss-haas/franz-fastmail/tree/franz4).
8
9## License
10
11The MIT license.
12
diff --git a/recipes/fastmail/icon.png b/recipes/fastmail/icon.png
new file mode 100644
index 0000000..7d625b7
--- /dev/null
+++ b/recipes/fastmail/icon.png
Binary files differ
diff --git a/recipes/fastmail/icon.svg b/recipes/fastmail/icon.svg
new file mode 100644
index 0000000..f7161a1
--- /dev/null
+++ b/recipes/fastmail/icon.svg
@@ -0,0 +1,55 @@
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="svg2"
10 xml:space="preserve"
11 viewBox="0 0 1024 1024"
12 height="1024"
13 width="1024"
14 y="0px"
15 x="0px"
16 version="1.1"><metadata
17 id="metadata32"><rdf:RDF><cc:Work
18 rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
19 rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><style
20 id="style4"><![CDATA[ .st0{fill:#4B537D;} .st1{clip-path:url(#SVGID_2_);} .st2{clip-path:url(#SVGID_4_);} .st3{fill:#C4A74A;} .st4{fill:none;}]]></style><defs
21 id="defs6"><defs
22 id="defs10"><rect
23 y="0"
24 x="0"
25 id="SVGID_1_"
26 width="1200"
27 height="1200" /></defs><clipPath
28 id="SVGID_2_"><use
29 height="100%"
30 width="100%"
31 y="0"
32 x="0"
33 xlink:href="#SVGID_1_"
34 style="overflow:visible"
35 id="use14" /></clipPath></defs><path
36 style="fill:#c4a74a"
37 id="path18"
38 d="m 166.59325,629.97379 c -3.27927,-0.17358 -6.57333,-0.37576 -9.8674,-0.54934 -10.51733,-0.63613 -21.01986,-1.58884 -31.52339,-2.68752 -10.50253,-1.04049 -20.99126,-2.42715 -31.465197,-3.95879 -10.488729,-1.53164 -20.904476,-3.40945 -31.321209,-5.48945 -10.387146,-2.16678 -20.74569,-4.56533 -30.97405,-7.54084 -10.22836,-2.9469 -20.356123,-6.35635 -30.1071402,-11.06667 2.0365985,1.76243 4.160973,3.46765 6.3425498,5.11468 2.1963704,1.61843 4.4499434,3.17867 6.7321174,4.68072 4.580127,2.97649 9.318054,5.72122 14.128964,8.35055 9.650419,5.17188 19.604603,9.7954 29.746174,13.92678 20.28314,8.32195 41.245805,14.93769 62.482641,20.45672 10.63273,2.74473 21.35224,5.11468 32.12994,7.28146 4.55054,0.9251 9.11587,1.73382 13.696,2.54254 l 0,-31.06084 z"
39 class="st3" /><path
40 class="st4"
41 d="m 894.76353,739.30905 c 0,16.7583 -13.72461,30.51249 -30.51249,30.51249 l -667.14629,0 c -16.77309,0 -30.51249,-13.7532 -30.51249,-30.51249 l 0,-454.6181 c 0,-16.7869 13.7394,-30.51249 30.51249,-30.51249 l 667.14629,0 c 16.7869,0 30.51249,13.7246 30.51249,30.51249 l 0,454.6181 z"
42 id="path22"
43 style="fill:none" /><path
44 class="st0"
45 d="m 553.58445,591.97866 c -12.59732,11.09527 -33.19902,11.09527 -45.79733,0 l -341.19387,-300.20844 0,447.53785 c 0,16.7583 13.73939,30.51249 30.51249,30.51249 l 667.14629,0 c 16.78689,0 30.51248,-13.75321 30.51248,-30.51249 l 0,-447.53785 -341.18006,300.20844 z"
46 id="path24"
47 style="fill:#4b537d" /><path
48 class="st0"
49 d="m 860.5822,254.17944 c 14.70691,0 17.712,6.9343 6.67492,15.40024 L 550.75294,512.26037 c -11.03708,8.46594 -29.12484,8.46594 -40.16291,0 L 194.11445,269.57968 c -11.05188,-8.46594 -8.04678,-15.40024 6.66012,-15.40024 l 659.80763,0 z"
50 id="path26"
51 style="fill:#4b537d" /><path
52 style="fill:#c4a74a"
53 id="path28"
54 d="m 69.841502,667.16021 c 57.672728,25.25283 124.027368,30.4543 186.366028,31.81236 21.00606,0.46255 41.93914,0.23078 62.77162,-0.9251 41.62156,-2.31176 82.81016,-8.03298 122.40894,-18.26134 19.79199,-5.14327 39.1806,-11.35564 57.9035,-18.92508 9.36145,-3.81381 18.57891,-7.85939 27.5646,-12.33794 9.27466,-4.59393 18.31854,-9.62182 27.39102,-14.59151 37.59077,-20.51491 75.26834,-41.00023 113.32167,-61.05259 9.53503,-4.9983 19.07005,-9.99758 28.66327,-14.93769 9.56363,-4.94109 19.21405,-9.824 28.86546,-14.6497 19.35903,-9.65042 38.89163,-19.09866 58.91441,-27.96896 9.99757,-4.44994 20.13914,-8.69672 30.45429,-12.7423 10.37334,-3.98739 20.89067,-7.80121 31.89915,-10.95128 5.51904,-1.56024 11.12388,-3.00509 16.99007,-4.18957 5.8652,-1.15588 11.93358,-2.10958 18.52072,-2.28217 3.29406,-0.0868 6.70351,0 10.34375,0.43296 l 0.66473,0.11539 c 0.34716,0.0286 0.23078,0.0286 0.37576,0.0286 l 0.26037,0.0582 1.09769,0.17358 c 0.89551,0.14399 1.64703,0.28897 2.42715,0.43296 1.58884,0.31757 3.14909,0.66473 4.70933,1.06909 6.24096,1.61843 12.36654,3.92921 18.08775,7.16607 5.69163,3.23587 11.06667,7.31005 15.60242,12.33794 4.50714,5.02788 8.23516,11.00848 10.34375,17.50981 2.16678,6.50134 2.77431,13.34885 2.07999,19.79199 -0.66473,6.44315 -2.60073,12.45333 -5.14327,17.88558 -5.11467,10.89309 -12.59732,19.6766 -20.6589,27.27563 -8.14837,7.57042 -16.99007,14.01357 -26.29333,19.58981 7.45504,-7.8594 14.56292,-15.94958 20.48532,-24.6177 5.952,-8.60993 10.8063,-17.85599 13.17527,-27.13163 1.15588,-4.65213 1.61843,-9.24606 1.29987,-13.55103 -0.31856,-4.30496 -1.47345,-8.26375 -3.38085,-11.7314 -1.936,-3.43805 -4.50715,-6.44314 -7.65722,-8.95708 -3.14908,-2.48534 -6.8189,-4.47855 -10.74811,-5.9234 -3.95879,-1.44485 -8.14837,-2.42715 -12.45333,-2.8897 -1.06909,-0.11539 -2.16678,-0.20218 -3.23587,-0.26037 -0.54934,-0.0286 -1.0977,-0.0582 -1.56025,-0.0582 l -0.89551,-0.0286 -0.26037,0 c -0.0286,0 -0.28897,-0.0286 -0.11539,0 l -0.34716,0 c -1.73382,0.0582 -3.66982,0.28897 -5.74981,0.63613 -4.10279,0.75152 -8.60993,1.936 -13.14667,3.43805 -4.53673,1.50206 -9.15926,3.29407 -13.78279,5.23007 -9.27466,3.95879 -18.5789,8.43733 -27.85356,13.17526 -9.27466,4.73793 -18.52072,9.76581 -27.76678,14.85188 -18.46352,10.25697 -36.89745,20.89067 -55.36096,31.61018 0,0 -53.82933,31.34981 -55.44776,32.30351 -56.37186,32.79467 -112.19537,69.25915 -173.42154,92.46059 -21.28024,8.06158 -43.09502,14.36073 -65.11296,19.09866 -44.04872,9.44824 -88.83417,12.7423 -133.08506,11.26885 -48.93163,-1.67563 -97.66107,-9.13067 -144.77307,-22.47951 -35.27605,-9.99561 -77.085005,-23.05548 -104.737378,-48.3093 z"
55 class="st3" /></svg> \ No newline at end of file
diff --git a/recipes/fastmail/index.js b/recipes/fastmail/index.js
new file mode 100644
index 0000000..6012f4b
--- /dev/null
+++ b/recipes/fastmail/index.js
@@ -0,0 +1,4 @@
1"use strict";
2
3module.exports = Franz => Franz;
4//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZhc3RtYWlsL2luZGV4LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBU0EsS0FBMUIiLCJmaWxlIjoiZmFzdG1haWwvaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IEZyYW56O1xuIl19 \ No newline at end of file
diff --git a/recipes/fastmail/package.json b/recipes/fastmail/package.json
new file mode 100644
index 0000000..671e97c
--- /dev/null
+++ b/recipes/fastmail/package.json
@@ -0,0 +1,14 @@
1{
2 "id": "fastmail",
3 "name": "FastMail",
4 "version": "1.0.0",
5 "description": "Email, calendars and contacts done right.",
6 "main": "index.js",
7 "author": "Alan Plum <me@pluma.io>",
8 "license": "MIT",
9 "config": {
10 "serviceURL": "https://www.fastmail.com/mail/",
11 "message":
12 "Get private, secure, ad-free email hosting for you or your business"
13 }
14}
diff --git a/recipes/fastmail/webview.js b/recipes/fastmail/webview.js
new file mode 100644
index 0000000..003d18c
--- /dev/null
+++ b/recipes/fastmail/webview.js
@@ -0,0 +1,27 @@
1'use strict';
2
3module.exports = (Franz, options) => {
4 var interval = setInterval(function () {
5 if (!window.O || !window.O.WindowController) return;
6 window.O.WindowController.openExternal = function (href) {
7 var temp = document.createElement('a');
8 temp.setAttribute('href', href);
9 temp.setAttribute('target', '_blank');
10 temp.click();
11 };
12 clearInterval(interval);
13 }, 200);
14 const getMessages = () => {
15 const inbox = document.querySelector(".v-FolderSource--inbox>.v-FolderSource-badge");
16 if (!inbox) {
17 return;
18 }
19 const messages = Number(inbox.innerText);
20 if (!Number.isNaN(messages)) {
21 Franz.setBadge(messages);
22 }
23 };
24
25 Franz.loop(getMessages);
26};
27//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZhc3RtYWlsL3dlYnZpZXcuanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIkZyYW56Iiwib3B0aW9ucyIsImludGVydmFsIiwic2V0SW50ZXJ2YWwiLCJ3aW5kb3ciLCJPIiwiV2luZG93Q29udHJvbGxlciIsIm9wZW5FeHRlcm5hbCIsImhyZWYiLCJ0ZW1wIiwiZG9jdW1lbnQiLCJjcmVhdGVFbGVtZW50Iiwic2V0QXR0cmlidXRlIiwiY2xpY2siLCJjbGVhckludGVydmFsIiwiZ2V0TWVzc2FnZXMiLCJpbmJveCIsInF1ZXJ5U2VsZWN0b3IiLCJtZXNzYWdlcyIsIk51bWJlciIsImlubmVyVGV4dCIsImlzTmFOIiwic2V0QmFkZ2UiLCJsb29wIl0sIm1hcHBpbmdzIjoiOztBQUFBQSxPQUFPQyxPQUFQLEdBQWlCLENBQUNDLEtBQUQsRUFBUUMsT0FBUixLQUFvQjtBQUNuQyxNQUFJQyxXQUFXQyxZQUFZLFlBQVk7QUFDckMsUUFBSSxDQUFDQyxPQUFPQyxDQUFSLElBQWEsQ0FBQ0QsT0FBT0MsQ0FBUCxDQUFTQyxnQkFBM0IsRUFBNkM7QUFDN0NGLFdBQU9DLENBQVAsQ0FBU0MsZ0JBQVQsQ0FBMEJDLFlBQTFCLEdBQXlDLFVBQVVDLElBQVYsRUFBZ0I7QUFDdkQsVUFBSUMsT0FBT0MsU0FBU0MsYUFBVCxDQUF1QixHQUF2QixDQUFYO0FBQ0FGLFdBQUtHLFlBQUwsQ0FBa0IsTUFBbEIsRUFBMEJKLElBQTFCO0FBQ0FDLFdBQUtHLFlBQUwsQ0FBa0IsUUFB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