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/idobata/README.md | 17 +++++++++++++++++ recipes/idobata/icon.png | Bin 0 -> 26447 bytes recipes/idobata/icon.svg | 21 +++++++++++++++++++++ recipes/idobata/index.js | 4 ++++ recipes/idobata/package.json | 24 ++++++++++++++++++++++++ recipes/idobata/webview.js | 13 +++++++++++++ 6 files changed, 79 insertions(+) create mode 100644 recipes/idobata/README.md create mode 100644 recipes/idobata/icon.png create mode 100644 recipes/idobata/icon.svg create mode 100644 recipes/idobata/index.js create mode 100644 recipes/idobata/package.json create mode 100644 recipes/idobata/webview.js (limited to 'recipes/idobata') diff --git a/recipes/idobata/README.md b/recipes/idobata/README.md new file mode 100644 index 0000000..a410d58 --- /dev/null +++ b/recipes/idobata/README.md @@ -0,0 +1,17 @@ +# Idobata for Franz + +--- + +This is the Franz 5 Recipe for Idobata. + +## For furher information on Idobata: + +[Idobata](https://idobata.io/en/home) is a chat service. + +## Installation for Development + +copy files to [Franz Plugins folder](http://github.com/meetfranz/plugins/blob/master/docs/integration.md#installation). + +## License + +This plugins are available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT). diff --git a/recipes/idobata/icon.png b/recipes/idobata/icon.png new file mode 100644 index 0000000..97e6498 Binary files /dev/null and b/recipes/idobata/icon.png differ diff --git a/recipes/idobata/icon.svg b/recipes/idobata/icon.svg new file mode 100644 index 0000000..1ee3062 --- /dev/null +++ b/recipes/idobata/icon.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + + diff --git a/recipes/idobata/index.js b/recipes/idobata/index.js new file mode 100644 index 0000000..6b71e31 --- /dev/null +++ b/recipes/idobata/index.js @@ -0,0 +1,4 @@ +"use strict"; + +module.exports = Franz => Franz; +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlkb2JhdGEvaW5kZXguanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIkZyYW56Il0sIm1hcHBpbmdzIjoiOztBQUFBQSxPQUFPQyxPQUFQLEdBQWlCQyxTQUFTQSxLQUExQiIsImZpbGUiOiJpZG9iYXRhL2luZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSBGcmFueiA9PiBGcmFuejtcbiJdfQ== \ No newline at end of file diff --git a/recipes/idobata/package.json b/recipes/idobata/package.json new file mode 100644 index 0000000..6f94d4e --- /dev/null +++ b/recipes/idobata/package.json @@ -0,0 +1,24 @@ +{ + "id": "idobata", + "name": "Idobata", + "version": "0.1.0", + "description": "Idobata plugin for meetfranz.", + "main": "index.js", + "author": "", + "license": "MIT", + "config": { + "serviceURL": "https://idobata.io", + "serviceName": "Idobata", + "message": "Idobata plugin for meetfranz.", + "popup": [], + "hasNotificationSound": false, + "hasIndirectMessages": false, + "hasTeamID": false, + "customURL": false, + "hostedOnly": false, + "webviewOptions": { + "disablewebsecurity": "" + }, + "openDevTools": false + } +} diff --git a/recipes/idobata/webview.js b/recipes/idobata/webview.js new file mode 100644 index 0000000..3e7352e --- /dev/null +++ b/recipes/idobata/webview.js @@ -0,0 +1,13 @@ +'use strict'; + +module.exports = Franz => { + function getMessages() { + const title = document.querySelector('title').innerHTML.match(/\d+/); + const count = title !== null ? title[0] : 0; + + Franz.setBadge(count); + } + + Franz.loop(getMessages); +}; +//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlkb2JhdGEvd2Vidmlldy5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiLCJnZXRNZXNzYWdlcyIsInRpdGxlIiwiZG9jdW1lbnQiLCJxdWVyeVNlbGVjdG9yIiwiaW5uZXJIVE1MIiwibWF0Y2giLCJjb3VudCIsInNldEJhZ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