aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/trello
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/trello')
-rw-r--r--recipes/trello/LICENSE21
-rw-r--r--recipes/trello/README.md19
-rw-r--r--recipes/trello/icon.pngbin0 -> 42337 bytes
-rw-r--r--recipes/trello/icon.svg22
-rw-r--r--recipes/trello/index.js4
-rw-r--r--recipes/trello/package.json12
-rw-r--r--recipes/trello/webview.js12
7 files changed, 90 insertions, 0 deletions
diff --git a/recipes/trello/LICENSE b/recipes/trello/LICENSE
new file mode 100644
index 0000000..226c90e
--- /dev/null
+++ b/recipes/trello/LICENSE
@@ -0,0 +1,21 @@
1MIT License
2
3Copyright (c) 2017 Thom van Hal
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. \ No newline at end of file
diff --git a/recipes/trello/README.md b/recipes/trello/README.md
new file mode 100644
index 0000000..5e316f3
--- /dev/null
+++ b/recipes/trello/README.md
@@ -0,0 +1,19 @@
1# Trello Franz Recipe
2
3## Requirements
4This recipe only works for Franz 5.X, get it now at http://meetfranz.com
5
6## Installation
7
81. Clone/download the folder `recipe-franz-trello`.
9
102. Open the Franz Recipe folder on your machine:
11 * Mac: `~/Library/Application Support/Franz/recipes/`
12 * Windows: `%appdata%/Franz/recipes/`
13 * Linux: `~/.config/Franz/recipes/`
14
153. Create a `dev` folder if you have not already done so
16
173. Unzip and copy the `recipe-franz-trello` folder into the recipes dev directory
18
194. Restart Franz \ No newline at end of file
diff --git a/recipes/trello/icon.png b/recipes/trello/icon.png
new file mode 100644
index 0000000..4eea248
--- /dev/null
+++ b/recipes/trello/icon.png
Binary files differ
diff --git a/recipes/trello/icon.svg b/recipes/trello/icon.svg
new file mode 100644
index 0000000..eecadb3
--- /dev/null
+++ b/recipes/trello/icon.svg
@@ -0,0 +1,22 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<svg width="200px" height="200px" viewBox="0 0 200 200" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3 <!-- Generator: Sketch 41 (35326) - http://www.bohemiancoding.com/sketch -->
4 <title>trello-mark-blue-flat</title>
5 <desc>Created with Sketch.</desc>
6 <defs></defs>
7 <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
8 <g id="Logos" transform="translate(-1579.000000, -521.000000)">
9 <g id="Group" transform="translate(-9.000000, 1.000000)">
10 <g id="Trello-Logo" transform="translate(468.000000, 0.000000)">
11 <g id="Trello-Mark---Blue---Flat" transform="translate(1020.000000, 420.000000)">
12 <g id="Mark" transform="translate(100.000000, 100.000000)">
13 <rect id="Board" fill="#0079BF" x="0" y="0" width="200" height="200" rx="25"></rect>
14 <rect id="Right-List" fill="#FFFFFF" x="113" y="26" width="61" height="87.5" rx="12"></rect>
15 <rect id="Left-List" fill="#FFFFFF" x="26" y="26" width="61" height="137.5" rx="12"></rect>
16 </g>
17 </g>
18 </g>
19 </g>
20 </g>
21 </g>
22</svg> \ No newline at end of file
diff --git a/recipes/trello/index.js b/recipes/trello/index.js
new file mode 100644
index 0000000..fc1746a
--- /dev/null
+++ b/recipes/trello/index.js
@@ -0,0 +1,4 @@
1"use strict";
2
3module.exports = Franz => Franz;
4//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRyZWxsby9pbmRleC5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiXSwibWFwcGluZ3MiOiI7O0FBQUFBLE9BQU9DLE9BQVAsR0FBaUJDLFNBQVNBLEtBQTFCIiwiZmlsZSI6InRyZWxsby9pbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gRnJhbnogPT4gRnJhbno7XG4iXX0= \ No newline at end of file
diff --git a/recipes/trello/package.json b/recipes/trello/package.json
new file mode 100644
index 0000000..ae3831e
--- /dev/null
+++ b/recipes/trello/package.json
@@ -0,0 +1,12 @@
1{
2 "id": "trello",
3 "name": "Trello",
4 "version": "1.0.2",
5 "description": "Trello",
6 "main": "index.js",
7 "author": "Thom van Hal <thom@thvmh.nl>",
8 "license": "MIT",
9 "config": {
10 "serviceURL": "https://trello.com/"
11 }
12}
diff --git a/recipes/trello/webview.js b/recipes/trello/webview.js
new file mode 100644
index 0000000..b65ea61
--- /dev/null
+++ b/recipes/trello/webview.js
@@ -0,0 +1,12 @@
1'use strict';
2
3module.exports = Franz => {
4 const getMessages = function getMessages() {
5 const notifications = document.querySelectorAll("[class*=_3W-zkl4-bnVKzJ]");
6
7 Franz.setBadge(0, notifications.length >= 1 ? 1 : 0);
8 };
9
10 Franz.loop(getMessages);
11};
12//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRyZWxsby93ZWJ2aWV3LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiIsImdldE1lc3NhZ2VzIiwibm90aWZpY2F0aW9ucyIsImRvY3VtZW50IiwicXVlcnlTZWxlY3RvckFsbCIsInNldEJhZGdlIiwibGVuZ3RoIiwibG9vcCJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFrQkMsS0FBRCxJQUFXO0FBQzFCLFFBQU1DLGNBQWMsU0FBU0EsV0FBVCxHQUF1QjtBQUN6QyxVQUFNQyxnQkFBZ0JDLFNBQVNDLGdCQUFULENBQTBCLG9CQUExQixDQUF0Qjs7QUFFQUosVUFBTUssUUFBTixDQUFlLENBQWYsRUFBbUJILGNBQWNJLE1BQWQsSUFBd0IsQ0FBekIsR0FBOEIsQ0FBOUIsR0FBa0MsQ0FBcEQ7QUFDRCxHQUpEOztBQU1BTixRQUFNTyxJQUFOLENBQVdOLFdBQVg7QUFDRCxDQVJEIiwiZmlsZSI6InRyZWxsby93ZWJ2aWV3LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSAoRnJhbnopID0+IHtcbiAgY29uc3QgZ2V0TWVzc2FnZXMgPSBmdW5jdGlvbiBnZXRNZXNzYWdlcygpIHtcbiAgICBjb25zdCBub3RpZmljYXRpb25zID0gZG9jdW1lbnQucXVlcnlTZWxlY3RvckFsbCgnLm5ldy1ub3RpZmljYXRpb25zJyk7XG5cbiAgICBGcmFuei5zZXRCYWRnZSgwLCAobm90aWZpY2F0aW9ucy5sZW5ndGggPj0gMSkgPyAxIDogMCk7XG4gIH07XG5cbiAgRnJhbnoubG9vcChnZXRNZXNzYWdlcyk7XG59O1xuIl19 \ No newline at end of file