diff options
Diffstat (limited to 'uncompressed')
-rw-r--r-- | uncompressed/wrike/LICENSE | 21 | ||||
-rw-r--r-- | uncompressed/wrike/README.md | 23 | ||||
-rw-r--r-- | uncompressed/wrike/icon.png | bin | 0 -> 7990 bytes | |||
-rw-r--r-- | uncompressed/wrike/icon.svg | 1 | ||||
-rw-r--r-- | uncompressed/wrike/index.js | 4 | ||||
-rw-r--r-- | uncompressed/wrike/package.json | 13 | ||||
-rw-r--r-- | uncompressed/wrike/webview.js | 16 |
7 files changed, 78 insertions, 0 deletions
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 @@ | |||
1 | MIT License | ||
2 | |||
3 | Copyright (c) 2017 Koma | ||
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/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 @@ | |||
1 | # Wrike | ||
2 | Recipe for [Wrike](https://www.wrike.com) integration with [Franz 5](http://meetfranz.com) | ||
3 | |||
4 | ## To test this dev release | ||
5 | |||
6 | 1. Clone/download the folder `recipe-wrike`. | ||
7 | |||
8 | 2. Open the Franz Recipe folder on your machine: | ||
9 | * Mac: `~/Library/Application Support/Franz/recipes/` | ||
10 | * Windows: `%appdata%/Franz/recipes/` | ||
11 | * Linux: `~/.config/Franz/recipes/` | ||
12 | |||
13 | 3. Create a `dev` folder if you have not already done so | ||
14 | |||
15 | 3. Unzip and copy the `recipe-wrike` folder into the recipes dev directory | ||
16 | |||
17 | 4. Restart Franz | ||
18 | |||
19 | ## How to create your own Franz recipes: | ||
20 | [Read the documentation](https://github.com/meetfranz/plugins) | ||
21 | |||
22 | ## Authors | ||
23 | [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 --- /dev/null +++ b/uncompressed/wrike/icon.png | |||
Binary files 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 @@ | |||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><linearGradient id="a" gradientUnits="userSpaceOnUse" x1="445" y1="597.03" x2="868.164" y2="170.762"><stop offset="0" stop-color="#309032"/><stop offset=".006" stop-color="#309032"/><stop offset=".361" stop-color="#46a747"/><stop offset=".699" stop-color="#53b454"/><stop offset="1" stop-color="#57b958"/></linearGradient><path d="M719 172.3L216.5 674.7l149.2 149.9L1018 172.3H719z" fill="url(#a)"/><linearGradient id="b" gradientUnits="userSpaceOnUse" x1="168.837" y1="475.682" x2="434.843" y2="747.082"><stop offset="0" stop-color="#a0db1b"/><stop offset="1" stop-color="#82b500"/></linearGradient><path d="M303.2 463H4.8l360.9 360.9 149.9-149.2L303.2 463z" fill="url(#b)"/></svg> \ 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 @@ | |||
1 | 'use strict'; | ||
2 | |||
3 | // just pass through Franz | ||
4 | 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 @@ | |||
1 | { | ||
2 | "id": "wrike", | ||
3 | "name": "Wrike", | ||
4 | "version": "1.0.0", | ||
5 | "description": "Project management SaaS", | ||
6 | "main": "index.js", | ||
7 | "author": "Koma", | ||
8 | "license": "MIT", | ||
9 | "repository": "https://github.com/koma-private/recipe-wrike", | ||
10 | "config": { | ||
11 | "serviceURL": "https://www.wrike.com/login/" | ||
12 | } | ||
13 | } | ||
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 @@ | |||
1 | 'use strict'; | ||
2 | |||
3 | module.exports = (Franz, options) => { | ||
4 | function getMessages() { | ||
5 | let directCount = 0; | ||
6 | let element = document.querySelector('span.notification-indicator'); | ||
7 | |||
8 | if (element && element.innerText) { | ||
9 | directCount = parseInt(element.innerText); | ||
10 | } | ||
11 | |||
12 | Franz.setBadge(directCount); | ||
13 | } | ||
14 | |||
15 | Franz.loop(getMessages); | ||
16 | } | ||