From 460eb1d30c576e086fff12924cb141a655051c40 Mon Sep 17 00:00:00 2001 From: vantezzen Date: Sat, 25 Jan 2020 12:57:18 +0100 Subject: #23 Add Write --- all.json | 11 +++++++++++ uncompressed/wrike/LICENSE | 21 +++++++++++++++++++++ uncompressed/wrike/README.md | 23 +++++++++++++++++++++++ uncompressed/wrike/icon.png | Bin 0 -> 7990 bytes uncompressed/wrike/icon.svg | 1 + uncompressed/wrike/index.js | 4 ++++ uncompressed/wrike/package.json | 13 +++++++++++++ uncompressed/wrike/webview.js | 16 ++++++++++++++++ wrike.tar.gz | Bin 0 -> 8419 bytes 9 files changed, 89 insertions(+) create mode 100644 uncompressed/wrike/LICENSE create mode 100644 uncompressed/wrike/README.md create mode 100644 uncompressed/wrike/icon.png create mode 100644 uncompressed/wrike/icon.svg create mode 100644 uncompressed/wrike/index.js create mode 100644 uncompressed/wrike/package.json create mode 100644 uncompressed/wrike/webview.js create mode 100644 wrike.tar.gz diff --git a/all.json b/all.json index 460f274..c4e19df 100644 --- a/all.json +++ b/all.json @@ -944,5 +944,16 @@ "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/NewsBlur/icon.png", "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/NewsBlur/icon.svg" } + }, + { + "author": "Koma", + "featured": false, + "id": "wrike", + "name": "Wrike", + "version": "1.0.0", + "icons": { + "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/wrike/icon.png", + "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/wrike/icon.svg" + } } ] diff --git a/uncompressed/wrike/LICENSE b/uncompressed/wrike/LICENSE new file mode 100644 index 0000000..eee14ce --- /dev/null +++ b/uncompressed/wrike/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2017 Koma + +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/uncompressed/wrike/README.md b/uncompressed/wrike/README.md new file mode 100644 index 0000000..e079838 --- /dev/null +++ b/uncompressed/wrike/README.md @@ -0,0 +1,23 @@ +# Wrike +Recipe for [Wrike](https://www.wrike.com) integration with [Franz 5](http://meetfranz.com) + +## To test this dev release + +1. Clone/download the folder `recipe-wrike`. + +2. Open the Franz Recipe folder on your machine: + * Mac: `~/Library/Application Support/Franz/recipes/` + * Windows: `%appdata%/Franz/recipes/` + * Linux: `~/.config/Franz/recipes/` + +3. Create a `dev` folder if you have not already done so + +3. Unzip and copy the `recipe-wrike` folder into the recipes dev directory + +4. Restart Franz + +## How to create your own Franz recipes: +[Read the documentation](https://github.com/meetfranz/plugins) + +## Authors +[Koma](https://github.com/koma-private/) diff --git a/uncompressed/wrike/icon.png b/uncompressed/wrike/icon.png new file mode 100644 index 0000000..18e46cc Binary files /dev/null and b/uncompressed/wrike/icon.png differ diff --git a/uncompressed/wrike/icon.svg b/uncompressed/wrike/icon.svg new file mode 100644 index 0000000..d577b7c --- /dev/null +++ b/uncompressed/wrike/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/uncompressed/wrike/index.js b/uncompressed/wrike/index.js new file mode 100644 index 0000000..8fbf1bf --- /dev/null +++ b/uncompressed/wrike/index.js @@ -0,0 +1,4 @@ +'use strict'; + +// just pass through Franz +module.exports = Franz => Franz; \ No newline at end of file diff --git a/uncompressed/wrike/package.json b/uncompressed/wrike/package.json new file mode 100644 index 0000000..ae6ad9b --- /dev/null +++ b/uncompressed/wrike/package.json @@ -0,0 +1,13 @@ +{ + "id": "wrike", + "name": "Wrike", + "version": "1.0.0", + "description": "Project management SaaS", + "main": "index.js", + "author": "Koma", + "license": "MIT", + "repository": "https://github.com/koma-private/recipe-wrike", + "config": { + "serviceURL": "https://www.wrike.com/login/" + } +} diff --git a/uncompressed/wrike/webview.js b/uncompressed/wrike/webview.js new file mode 100644 index 0000000..113b8ae --- /dev/null +++ b/uncompressed/wrike/webview.js @@ -0,0 +1,16 @@ +'use strict'; + +module.exports = (Franz, options) => { + function getMessages() { + let directCount = 0; + let element = document.querySelector('span.notification-indicator'); + + if (element && element.innerText) { + directCount = parseInt(element.innerText); + } + + Franz.setBadge(directCount); + } + + Franz.loop(getMessages); +} diff --git a/wrike.tar.gz b/wrike.tar.gz new file mode 100644 index 0000000..24a7923 Binary files /dev/null and b/wrike.tar.gz differ -- cgit v1.2.3-70-g09d2