From 6f5e4a00588aefdda7a5a1cfe70935870e7e234a Mon Sep 17 00:00:00 2001 From: Bennett Date: Tue, 22 Sep 2020 20:56:48 +0200 Subject: Unpack recipes and update recipes icons (#292) Co-authored-by: Amine Mouafik --- recipes/proton-mail/LICENSE | 21 +++++++++++++++++++++ recipes/proton-mail/icon.png | Bin 0 -> 29418 bytes recipes/proton-mail/icon.svg | 9 +++++++++ recipes/proton-mail/index.js | 1 + recipes/proton-mail/package.json | 24 ++++++++++++++++++++++++ recipes/proton-mail/webview.js | 7 +++++++ 6 files changed, 62 insertions(+) create mode 100644 recipes/proton-mail/LICENSE create mode 100644 recipes/proton-mail/icon.png create mode 100644 recipes/proton-mail/icon.svg create mode 100644 recipes/proton-mail/index.js create mode 100644 recipes/proton-mail/package.json create mode 100644 recipes/proton-mail/webview.js (limited to 'recipes/proton-mail') 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 @@ +MIT License + +Copyright (c) 2018 Lukas Reineke + +Permission 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: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE 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/proton-mail/icon.png b/recipes/proton-mail/icon.png new file mode 100644 index 0000000..8a6bc85 Binary files /dev/null and b/recipes/proton-mail/icon.png 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 @@ + + + + + + + + + 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 @@ +{ + "id": "proton-mail", + "name": "ProtonMail", + "version": "1.2.0", + "description": "proton-mail", + "main": "index.js", + "author": "Lukas Reineke ", + "license": "MIT", + "config": { + "serviceURL": "https://mail.protonmail.com/login", + "serviceName": "ProtonMail", + "message": "", + "popup": [], + "hasNotificationSound": false, + "hasIndirectMessages": false, + "hasTeamID": false, + "customURL": false, + "hostedOnly": false, + "webviewOptions": { + "disablewebsecurity": "" + }, + "openDevTools": false + } +} 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 @@ +module.exports = Franz => { + function getMessages() { + const count = document.querySelector('.navigationItem-counter').innerText + Franz.setBadge(count ? Number(count.substring(1, count.length - 1)) : 0) + } + Franz.loop(getMessages) +} -- cgit v1.2.3-54-g00ecf