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/trello/LICENSE | 21 +++++++++++++++++++++ recipes/trello/README.md | 19 +++++++++++++++++++ recipes/trello/icon.png | Bin 0 -> 42337 bytes recipes/trello/icon.svg | 22 ++++++++++++++++++++++ recipes/trello/index.js | 4 ++++ recipes/trello/package.json | 12 ++++++++++++ recipes/trello/webview.js | 12 ++++++++++++ 7 files changed, 90 insertions(+) create mode 100644 recipes/trello/LICENSE create mode 100644 recipes/trello/README.md create mode 100644 recipes/trello/icon.png create mode 100644 recipes/trello/icon.svg create mode 100644 recipes/trello/index.js create mode 100644 recipes/trello/package.json create mode 100644 recipes/trello/webview.js (limited to 'recipes/trello') 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 @@ +MIT License + +Copyright (c) 2017 Thom van Hal + +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. \ 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 @@ +# Trello Franz Recipe + +## Requirements +This recipe only works for Franz 5.X, get it now at http://meetfranz.com + +## Installation + +1. Clone/download the folder `recipe-franz-trello`. + +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-franz-trello` folder into the recipes dev directory + +4. 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 Binary files /dev/null and b/recipes/trello/icon.png 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 @@ + + + + trello-mark-blue-flat + Created with Sketch. + + + + + + + + + \ 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 @@ +"use strict"; + +module.exports = Franz => Franz; +//# 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 @@ +{ + "id": "trello", + "name": "Trello", + "version": "1.0.2", + "description": "Trello", + "main": "index.js", + "author": "Thom van Hal ", + "license": "MIT", + "config": { + "serviceURL": "https://trello.com/" + } +} 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 @@ +'use strict'; + +module.exports = Franz => { + const getMessages = function getMessages() { + const notifications = document.querySelectorAll("[class*=_3W-zkl4-bnVKzJ]"); + + Franz.setBadge(0, notifications.length >= 1 ? 1 : 0); + }; + + Franz.loop(getMessages); +}; +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRyZWxsby93ZWJ2aWV3LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiIsImdldE1lc3NhZ2VzIiwibm90aWZpY2F0aW9ucyIsImRvY3VtZW50IiwicXVlcnlTZWxlY3RvckFsbCIsInNldEJhZGdlIiwibGVuZ3RoIiwibG9vcCJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFrQkMsS0FBRCxJQUFXO0FBQzFCLFFBQU1DLGNBQWMsU0FBU0EsV0FBVCxHQUF1QjtBQUN6QyxVQUFNQyxnQkFBZ0JDLFNBQVNDLGdCQUFULENBQTBCLG9CQUExQixDQUF0Qjs7QUFFQUosVUFBTUssUUFBTixDQUFlLENBQWYsRUFBbUJILGNBQWNJLE1BQWQsSUFBd0IsQ0FBekIsR0FBOEIsQ0FBOUIsR0FBa0MsQ0FBcEQ7QUFDRCxHQUpEOztBQU1BTixRQUFNTyxJQUFOLENBQVdOLFdBQVg7QUFDRCxDQVJEIiwiZmlsZSI6InRyZWxsby93ZWJ2aWV3LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSAoRnJhbnopID0+IHtcbiAgY29uc3QgZ2V0TWVzc2FnZXMgPSBmdW5jdGlvbiBnZXRNZXNzYWdlcygpIHtcbiAgICBjb25zdCBub3RpZmljYXRpb25zID0gZG9jdW1lbnQucXVlcnlTZWxlY3RvckFsbCgnLm5ldy1ub3RpZmljYXRpb25zJyk7XG5cbiAgICBGcmFuei5zZXRCYWRnZSgwLCAobm90aWZpY2F0aW9ucy5sZW5ndGggPj0gMSkgPyAxIDogMCk7XG4gIH07XG5cbiAgRnJhbnoubG9vcChnZXRNZXNzYWdlcyk7XG59O1xuIl19 \ No newline at end of file -- cgit v1.2.3-70-g09d2