From 21bebcc1f8862b49f9750ba8b4010192ccd9e51c Mon Sep 17 00:00:00 2001 From: vantezzen Date: Fri, 13 Mar 2020 09:22:50 +0100 Subject: #62 Add Zoho recipe (@jaredkotoff) --- uncompressed/zoho/README.md | 6 ++++++ uncompressed/zoho/icon.png | Bin 0 -> 29926 bytes uncompressed/zoho/icon.svg | 1 + uncompressed/zoho/index.js | 2 ++ uncompressed/zoho/package.json | 13 +++++++++++++ uncompressed/zoho/webview.js | 11 +++++++++++ 6 files changed, 33 insertions(+) create mode 100644 uncompressed/zoho/README.md create mode 100644 uncompressed/zoho/icon.png create mode 100644 uncompressed/zoho/icon.svg create mode 100644 uncompressed/zoho/index.js create mode 100644 uncompressed/zoho/package.json create mode 100644 uncompressed/zoho/webview.js (limited to 'uncompressed') diff --git a/uncompressed/zoho/README.md b/uncompressed/zoho/README.md new file mode 100644 index 0000000..da5bafd --- /dev/null +++ b/uncompressed/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/uncompressed/zoho/icon.png b/uncompressed/zoho/icon.png new file mode 100644 index 0000000..d9bba4c Binary files /dev/null and b/uncompressed/zoho/icon.png differ diff --git a/uncompressed/zoho/icon.svg b/uncompressed/zoho/icon.svg new file mode 100644 index 0000000..8e705ea --- /dev/null +++ b/uncompressed/zoho/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/uncompressed/zoho/index.js b/uncompressed/zoho/index.js new file mode 100644 index 0000000..46f936f --- /dev/null +++ b/uncompressed/zoho/index.js @@ -0,0 +1,2 @@ +// just pass through Franz +module.exports = Franz => Franz; diff --git a/uncompressed/zoho/package.json b/uncompressed/zoho/package.json new file mode 100644 index 0000000..9faaad9 --- /dev/null +++ b/uncompressed/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/uncompressed/zoho/webview.js b/uncompressed/zoho/webview.js new file mode 100644 index 0000000..e4f6108 --- /dev/null +++ b/uncompressed/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