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/mailbox.org/LICENSE | 21 ++++++++++ recipes/mailbox.org/README.md | 18 +++++++++ recipes/mailbox.org/icon.png | Bin 0 -> 29543 bytes recipes/mailbox.org/icon.svg | 85 +++++++++++++++++++++++++++++++++++++++ recipes/mailbox.org/index.js | 2 + recipes/mailbox.org/package.json | 12 ++++++ recipes/mailbox.org/webview.js | 9 +++++ 7 files changed, 147 insertions(+) create mode 100644 recipes/mailbox.org/LICENSE create mode 100644 recipes/mailbox.org/README.md create mode 100644 recipes/mailbox.org/icon.png create mode 100644 recipes/mailbox.org/icon.svg create mode 100644 recipes/mailbox.org/index.js create mode 100644 recipes/mailbox.org/package.json create mode 100644 recipes/mailbox.org/webview.js (limited to 'recipes/mailbox.org') diff --git a/recipes/mailbox.org/LICENSE b/recipes/mailbox.org/LICENSE new file mode 100644 index 0000000..b0958eb --- /dev/null +++ b/recipes/mailbox.org/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2017 Jonas H. + +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/mailbox.org/README.md b/recipes/mailbox.org/README.md new file mode 100644 index 0000000..d077587 --- /dev/null +++ b/recipes/mailbox.org/README.md @@ -0,0 +1,18 @@ +# mailbox.org Franz Plugin +Recipe for [mailbox.org](https://www.mailbox.org) integration with [Franz](http://meetfranz.com) + +## Requirements +This recipe only works for Franz 5.X, get it now at http://meetfranz.com + +## How to test this recipe +1. To install a new integration, download the integration folder. +2. Open the Franz Plugins folder on your machine: + * Mac: `~/Library/Application Support/Franz/recipes/dev/` + * Windows: `%appdata%/Franz/recipes/dev/` +3. Copy the folder into the plugins directory +4. Reload Franz + +## Documentation +* [Read the documentation](https://github.com/meetfranz/plugins/blob/master/docs/integration.md) + +**_All images are copyright to their respective owners_** diff --git a/recipes/mailbox.org/icon.png b/recipes/mailbox.org/icon.png new file mode 100644 index 0000000..e2952a2 Binary files /dev/null and b/recipes/mailbox.org/icon.png differ diff --git a/recipes/mailbox.org/icon.svg b/recipes/mailbox.org/icon.svg new file mode 100644 index 0000000..9f723f1 --- /dev/null +++ b/recipes/mailbox.org/icon.svg @@ -0,0 +1,85 @@ + + + +image/svg+xml + + + + + + + + + + + \ No newline at end of file diff --git a/recipes/mailbox.org/index.js b/recipes/mailbox.org/index.js new file mode 100644 index 0000000..886d7f6 --- /dev/null +++ b/recipes/mailbox.org/index.js @@ -0,0 +1,2 @@ +// default integration (e.g messenger.com, ...) +module.exports = Franz => Franz; \ No newline at end of file diff --git a/recipes/mailbox.org/package.json b/recipes/mailbox.org/package.json new file mode 100644 index 0000000..6684cc3 --- /dev/null +++ b/recipes/mailbox.org/package.json @@ -0,0 +1,12 @@ +{ + "id": "mailbox.org", + "name": "mailbox.org", + "version": "1.2.0", + "description": "Integration of mailbox.org", + "main": "index.js", + "author": "Jonas Hilke ", + "license": "MIT", + "config": { + "serviceURL": "https://office.mailbox.org/appsuite/#!!&app=io.ox/portal" + } +} diff --git a/recipes/mailbox.org/webview.js b/recipes/mailbox.org/webview.js new file mode 100644 index 0000000..56cfa6e --- /dev/null +++ b/recipes/mailbox.org/webview.js @@ -0,0 +1,9 @@ +module.exports = (Franz) => { + const getMessages = function getMessages() { + const count = document.querySelectorAll('.new-item').length; + + Franz.setBadge(count); + + }; + Franz.loop(getMessages); +}; -- cgit v1.2.3-54-g00ecf