From 728d339739b63e9bb59e457e4a84fe9a65b93fc9 Mon Sep 17 00:00:00 2001 From: vantezzen Date: Sat, 28 Sep 2019 12:10:25 +0200 Subject: Add uncompressed recipes --- uncompressed/roundcube/ICON_LICENSE | 4 ++++ uncompressed/roundcube/LICENSE | 21 ++++++++++++++++++ uncompressed/roundcube/README.md | 2 ++ uncompressed/roundcube/icon.svg | 44 +++++++++++++++++++++++++++++++++++++ uncompressed/roundcube/index.js | 4 ++++ uncompressed/roundcube/package.json | 15 +++++++++++++ uncompressed/roundcube/webview.js | 15 +++++++++++++ 7 files changed, 105 insertions(+) create mode 100644 uncompressed/roundcube/ICON_LICENSE create mode 100644 uncompressed/roundcube/LICENSE create mode 100644 uncompressed/roundcube/README.md create mode 100644 uncompressed/roundcube/icon.svg create mode 100644 uncompressed/roundcube/index.js create mode 100644 uncompressed/roundcube/package.json create mode 100644 uncompressed/roundcube/webview.js (limited to 'uncompressed/roundcube') diff --git a/uncompressed/roundcube/ICON_LICENSE b/uncompressed/roundcube/ICON_LICENSE new file mode 100644 index 0000000..e1188f7 --- /dev/null +++ b/uncompressed/roundcube/ICON_LICENSE @@ -0,0 +1,4 @@ +Icon by Lorena Salagre +https://thenounproject.com/lorens/ +https://thenounproject.com/search/?q=email&i=32727 +https://creativecommons.org/licenses/by/3.0/us/ \ No newline at end of file diff --git a/uncompressed/roundcube/LICENSE b/uncompressed/roundcube/LICENSE new file mode 100644 index 0000000..83683df --- /dev/null +++ b/uncompressed/roundcube/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2017 Jonathan Juursema + +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. \ No newline at end of file diff --git a/uncompressed/roundcube/README.md b/uncompressed/roundcube/README.md new file mode 100644 index 0000000..096fd03 --- /dev/null +++ b/uncompressed/roundcube/README.md @@ -0,0 +1,2 @@ +# franz-roundcube +A recipe to add Roundcube support to Franz. \ No newline at end of file diff --git a/uncompressed/roundcube/icon.svg b/uncompressed/roundcube/icon.svg new file mode 100644 index 0000000..7db0005 --- /dev/null +++ b/uncompressed/roundcube/icon.svg @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/uncompressed/roundcube/index.js b/uncompressed/roundcube/index.js new file mode 100644 index 0000000..bb8d040 --- /dev/null +++ b/uncompressed/roundcube/index.js @@ -0,0 +1,4 @@ +"use strict"; + +module.exports = Franz => Franz; +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJvdW5kY3ViZS9pbmRleC5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiXSwibWFwcGluZ3MiOiI7O0FBQUFBLE9BQU9DLE9BQVAsR0FBaUJDLFNBQVNBLEtBQTFCIiwiZmlsZSI6InJvdW5kY3ViZS9pbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gRnJhbnogPT4gRnJhbno7Il19 \ No newline at end of file diff --git a/uncompressed/roundcube/package.json b/uncompressed/roundcube/package.json new file mode 100644 index 0000000..a9428dc --- /dev/null +++ b/uncompressed/roundcube/package.json @@ -0,0 +1,15 @@ +{ + "id": "roundcube", + "name": "Roundcube", + "version": "1.0.0", + "description": "Roundcube - Free and Open Source Webmail Software", + "main": "index.js", + "author": "Jonathan Juursema ", + "repository": "https://github.com/jonathanjuursema/franz-roundcube", + "license": "MIT", + "config": { + "hasCustomUrl": true, + "hasNotificationSound": false, + "hasIndirectMessages": false + } +} diff --git a/uncompressed/roundcube/webview.js b/uncompressed/roundcube/webview.js new file mode 100644 index 0000000..3ab6cf7 --- /dev/null +++ b/uncompressed/roundcube/webview.js @@ -0,0 +1,15 @@ +'use strict'; + +module.exports = Franz => { + const getMessages = function getMessages() { + let directElements = document.querySelectorAll('.unreadcount'); + let direct = 0; + for (let i = 0; i < directElements.length; i += 1) { + n = parseInt(directElements[i].innerHTML); + direct += isNaN(n) ? 0 : n; + } + Franz.setBadge(direct); + }; + Franz.loop(getMessages); +}; +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJvdW5kY3ViZS93ZWJ2aWV3LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiIsImdldE1lc3NhZ2VzIiwiZGlyZWN0RWxlbWVudHMiLCJkb2N1bWVudCIsInF1ZXJ5U2VsZWN0b3JBbGwiLCJkaXJlY3QiLCJpIiwibGVuZ3RoIiwibiIsInBhcnNlSW50IiwiaW5uZXJIVE1MIiwiaXNOYU4iLCJzZXRCYWRnZSIsImxvb3AiXSwibWFwcGluZ3MiOiI7O0FBQUFBLE9BQU9DLE9BQVAsR0FBaUJDLFNBQVM7QUFDekIsT0FBTUMsY0FBYyxTQUFTQSxXQUFULEdBQXVCO0FBQzFDLE1BQUlDLGlCQUFpQkMsU0FBU0MsZ0JBQVQsQ0FBMEIsY0FBMUIsQ0FBckI7QUFDQSxNQUFJQyxTQUFTLENBQWI7QUFDQSxPQUFLLElBQUlDLElBQU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