aboutsummaryrefslogtreecommitdiffstats
path: root/uncompressed
diff options
context:
space:
mode:
authorLibravatar vantezzen <hello@vantezzen.io>2020-01-25 12:57:18 +0100
committerLibravatar vantezzen <hello@vantezzen.io>2020-01-25 12:57:18 +0100
commit460eb1d30c576e086fff12924cb141a655051c40 (patch)
tree7eade520a3a3a5a4bcd404f796d0f08e8a345f5a /uncompressed
parent#27 Add NewsBlur (diff)
downloadferdium-recipes-460eb1d30c576e086fff12924cb141a655051c40.tar.gz
ferdium-recipes-460eb1d30c576e086fff12924cb141a655051c40.tar.zst
ferdium-recipes-460eb1d30c576e086fff12924cb141a655051c40.zip
#23 Add Write
Diffstat (limited to 'uncompressed')
-rw-r--r--uncompressed/wrike/LICENSE21
-rw-r--r--uncompressed/wrike/README.md23
-rw-r--r--uncompressed/wrike/icon.pngbin0 -> 7990 bytes
-rw-r--r--uncompressed/wrike/icon.svg1
-rw-r--r--uncompressed/wrike/index.js4
-rw-r--r--uncompressed/wrike/package.json13
-rw-r--r--uncompressed/wrike/webview.js16
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 @@
1MIT License
2
3Copyright (c) 2017 Koma
4
5Permission is hereby granted, free of charge, to any person obtaining a copy
6of this software and associated documentation files (the "Software"), to deal
7in the Software without restriction, including without limitation the rights
8to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9copies of the Software, and to permit persons to whom the Software is
10furnished to do so, subject to the following conditions:
11
12The above copyright notice and this permission notice shall be included in all
13copies or substantial portions of the Software.
14
15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21SOFTWARE.
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
2Recipe for [Wrike](https://www.wrike.com) integration with [Franz 5](http://meetfranz.com)
3
4## To test this dev release
5
61. Clone/download the folder `recipe-wrike`.
7
82. 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
133. Create a `dev` folder if you have not already done so
14
153. Unzip and copy the `recipe-wrike` folder into the recipes dev directory
16
174. 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
4module.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
3module.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}