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/zoho/README.md | 6 ++++++ recipes/zoho/icon.png | Bin 0 -> 46482 bytes recipes/zoho/icon.svg | 1 + recipes/zoho/index.js | 2 ++ recipes/zoho/package.json | 13 +++++++++++++ recipes/zoho/webview.js | 11 +++++++++++ 6 files changed, 33 insertions(+) create mode 100644 recipes/zoho/README.md create mode 100644 recipes/zoho/icon.png create mode 100644 recipes/zoho/icon.svg create mode 100644 recipes/zoho/index.js create mode 100644 recipes/zoho/package.json create mode 100644 recipes/zoho/webview.js (limited to 'recipes/zoho') diff --git a/recipes/zoho/README.md b/recipes/zoho/README.md new file mode 100644 index 0000000..da5bafd --- /dev/null +++ b/recipes/zoho/README.md @@ -0,0 +1,6 @@ +# Zoho Mail for Franz 5 +from plugins legacy +[meetfranz](https://github.com/meetfranz/franz) + +### How to create your own Franz recipes: +* [Read the documentation](https://github.com/meetfranz/plugins) diff --git a/recipes/zoho/icon.png b/recipes/zoho/icon.png new file mode 100644 index 0000000..b72eba0 Binary files /dev/null and b/recipes/zoho/icon.png differ diff --git a/recipes/zoho/icon.svg b/recipes/zoho/icon.svg new file mode 100644 index 0000000..8e705ea --- /dev/null +++ b/recipes/zoho/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/recipes/zoho/index.js b/recipes/zoho/index.js new file mode 100644 index 0000000..46f936f --- /dev/null +++ b/recipes/zoho/index.js @@ -0,0 +1,2 @@ +// just pass through Franz +module.exports = Franz => Franz; diff --git a/recipes/zoho/package.json b/recipes/zoho/package.json new file mode 100644 index 0000000..9faaad9 --- /dev/null +++ b/recipes/zoho/package.json @@ -0,0 +1,13 @@ +{ + "id": "zoho", + "name": "Zoho Mail", + "version": "1.0.0", + "description": "Zoho Mail – Hosted Email for Businesses", + "main": "index.js", + "author": "Troke ", + "license": "MIT", + "config": { + "serviceURL": "https://www.zoho.com/mail/login.html", + "hasNotificationSound": true + } +} diff --git a/recipes/zoho/webview.js b/recipes/zoho/webview.js new file mode 100644 index 0000000..e4f6108 --- /dev/null +++ b/recipes/zoho/webview.js @@ -0,0 +1,11 @@ +const path = require('path'); + +module.exports = (Franz, options) => { + const getMessages = () => { + const unreadMail = $(".zm_urd").not(".hidden").length; + + Franz.setBadge(unreadMail); + } + + Franz.loop(getMessages); +}; \ No newline at end of file -- cgit v1.2.3-54-g00ecf