diff options
author | 2020-09-22 20:56:48 +0200 | |
---|---|---|
committer | 2020-09-22 19:56:48 +0100 | |
commit | 6f5e4a00588aefdda7a5a1cfe70935870e7e234a (patch) | |
tree | 9e29aa7aa0620a1a4a968ff8739b4b8ba96791a9 /recipes/proton-mail | |
parent | Updated logos for Outlook/OWA (diff) | |
download | ferdium-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/proton-mail')
-rw-r--r-- | recipes/proton-mail/LICENSE | 21 | ||||
-rw-r--r-- | recipes/proton-mail/icon.png | bin | 0 -> 29418 bytes | |||
-rw-r--r-- | recipes/proton-mail/icon.svg | 9 | ||||
-rw-r--r-- | recipes/proton-mail/index.js | 1 | ||||
-rw-r--r-- | recipes/proton-mail/package.json | 24 | ||||
-rw-r--r-- | recipes/proton-mail/webview.js | 7 |
6 files changed, 62 insertions, 0 deletions
diff --git a/recipes/proton-mail/LICENSE b/recipes/proton-mail/LICENSE new file mode 100644 index 0000000..4af831c --- /dev/null +++ b/recipes/proton-mail/LICENSE | |||
@@ -0,0 +1,21 @@ | |||
1 | MIT License | ||
2 | |||
3 | Copyright (c) 2018 Lukas Reineke | ||
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/proton-mail/icon.png b/recipes/proton-mail/icon.png new file mode 100644 index 0000000..8a6bc85 --- /dev/null +++ b/recipes/proton-mail/icon.png | |||
Binary files differ | |||
diff --git a/recipes/proton-mail/icon.svg b/recipes/proton-mail/icon.svg new file mode 100644 index 0000000..df35f12 --- /dev/null +++ b/recipes/proton-mail/icon.svg | |||
@@ -0,0 +1,9 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
2 | <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> | ||
3 | <svg width="100%" height="100%" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;"> | ||
4 | <g transform="matrix(1.52334,0,0,1.52334,148,0.999645)"> | ||
5 | <path d="M238.688,0.021C238.688,0.021 40.811,-6.479 0,213.021L0,362.521C0,362.521 1.688,378.521 46.688,411.021C91.688,443.521 208.188,535.021 238.688,535.021C269.188,535.021 385.688,443.521 430.688,411.021C475.688,378.521 477.376,362.521 477.376,362.521L477.376,213.021C436.565,-6.479 238.688,0.021 238.688,0.021ZM374.188,294.521L238.688,294.521L103.188,294.521L103.188,213.021C130.688,104.021 238.688,102.521 238.688,102.521C238.688,102.521 346.688,104.021 374.188,213.021L374.188,294.521Z" style="fill:rgb(51,51,102);fill-rule:nonzero;"/> | ||
6 | <path d="M238.688,568.688C238.688,568.688 208.021,565.687 184.021,549.021C160.021,532.355 0,418.021 0,418.021L0,644.355C0,644.355 1.355,670.688 30.355,670.688L447.021,670.688C476.021,670.688 477.376,644.355 477.376,644.355L477.376,418.021C477.376,418.021 317.354,532.355 293.354,549.021C269.354,565.687 238.688,568.688 238.688,568.688Z" style="fill:rgb(51,51,102);fill-rule:nonzero;"/> | ||
7 | </g> | ||
8 | </svg> | ||
9 | |||
diff --git a/recipes/proton-mail/index.js b/recipes/proton-mail/index.js new file mode 100644 index 0000000..258da41 --- /dev/null +++ b/recipes/proton-mail/index.js | |||
@@ -0,0 +1 @@ | |||
module.exports = Franz => Franz; | |||
diff --git a/recipes/proton-mail/package.json b/recipes/proton-mail/package.json new file mode 100644 index 0000000..fc5c564 --- /dev/null +++ b/recipes/proton-mail/package.json | |||
@@ -0,0 +1,24 @@ | |||
1 | { | ||
2 | "id": "proton-mail", | ||
3 | "name": "ProtonMail", | ||
4 | "version": "1.2.0", | ||
5 | "description": "proton-mail", | ||
6 | "main": "index.js", | ||
7 | "author": "Lukas Reineke <lukas.reineke@protonmail.com>", | ||
8 | "license": "MIT", | ||
9 | "config": { | ||
10 | "serviceURL": "https://mail.protonmail.com/login", | ||
11 | "serviceName": "ProtonMail", | ||
12 | "message": "", | ||
13 | "popup": [], | ||
14 | "hasNotificationSound": false, | ||
15 | "hasIndirectMessages": false, | ||
16 | "hasTeamID": false, | ||
17 | "customURL": false, | ||
18 | "hostedOnly": false, | ||
19 | "webviewOptions": { | ||
20 | "disablewebsecurity": "" | ||
21 | }, | ||
22 | "openDevTools": false | ||
23 | } | ||
24 | } | ||
diff --git a/recipes/proton-mail/webview.js b/recipes/proton-mail/webview.js new file mode 100644 index 0000000..8d85afd --- /dev/null +++ b/recipes/proton-mail/webview.js | |||
@@ -0,0 +1,7 @@ | |||
1 | module.exports = Franz => { | ||
2 | function getMessages() { | ||
3 | const count = document.querySelector('.navigationItem-counter').innerText | ||
4 | Franz.setBadge(count ? Number(count.substring(1, count.length - 1)) : 0) | ||
5 | } | ||
6 | Franz.loop(getMessages) | ||
7 | } | ||