From 8a0971ff9f41fdaa1af15e88740ce9479e1ec6ea Mon Sep 17 00:00:00 2001 From: Vijay A Date: Sun, 20 Jun 2021 11:08:00 +0530 Subject: Added new services - 'air-droid' - 'basecamp' - 'box' - 'buffer' - 'chatra' - 'easy-redmine' - 'feedbin' - 'iCloud' - 'jollor' - 'nomadlist' - 'paymo' - 'pivotal-tracker' - 'plan' - 'podio' - 'protonet' - 'teamleader' --- recipes/protonet/icon.png | Bin 0 -> 91473 bytes recipes/protonet/icon.svg | 1 + recipes/protonet/index.js | 1 + recipes/protonet/package.json | 28 ++++++++++++++++++++++++++++ recipes/protonet/webview.js | 10 ++++++++++ 5 files changed, 40 insertions(+) create mode 100644 recipes/protonet/icon.png create mode 100644 recipes/protonet/icon.svg create mode 100755 recipes/protonet/index.js create mode 100755 recipes/protonet/package.json create mode 100755 recipes/protonet/webview.js (limited to 'recipes/protonet') diff --git a/recipes/protonet/icon.png b/recipes/protonet/icon.png new file mode 100644 index 0000000..9453735 Binary files /dev/null and b/recipes/protonet/icon.png differ diff --git a/recipes/protonet/icon.svg b/recipes/protonet/icon.svg new file mode 100644 index 0000000..0989981 --- /dev/null +++ b/recipes/protonet/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/recipes/protonet/index.js b/recipes/protonet/index.js new file mode 100755 index 0000000..258da41 --- /dev/null +++ b/recipes/protonet/index.js @@ -0,0 +1 @@ +module.exports = Franz => Franz; diff --git a/recipes/protonet/package.json b/recipes/protonet/package.json new file mode 100755 index 0000000..47c1239 --- /dev/null +++ b/recipes/protonet/package.json @@ -0,0 +1,28 @@ +{ + "id": "protonet", + "name": "protonet", + "version": "1.0.1", + "description": "Protonet", + "main": "index.js", + "author": "Joschka Schulz", + "license": "MIT", + "config": { + "serviceURL": "https://{teamID}.protonet.info", + "serviceName": "Protonet", + "message": "", + "popup": [], + "hasNotificationSound": true, + "hasIndirectMessages": false, + "hasTeamID": true, + "wording": { + "url": "protonet.info", + "team": "Protonet" + }, + "customURL": false, + "hostedOnly": false, + "webviewOptions": { + "disablewebsecurity": "" + }, + "openDevTools": false + } +} diff --git a/recipes/protonet/webview.js b/recipes/protonet/webview.js new file mode 100755 index 0000000..8b597cf --- /dev/null +++ b/recipes/protonet/webview.js @@ -0,0 +1,10 @@ +module.exports = (Franz, options) => { + const getMessages = () => { + const unreadPrivateMessages = parseInt($(".messages .unread-meeps").text()); + const unreadGroupMessages = parseInt($(".today .unread-meeps").text()); + + Franz.setBadge(unreadPrivateMessages + unreadGroupMessages); + } + + Franz.loop(getMessages); +} -- cgit v1.2.3-70-g09d2