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/podio/css/franz.css | 22 ++++++++++++++++++++++ recipes/podio/icon.png | Bin 0 -> 143907 bytes recipes/podio/icon.svg | 1 + recipes/podio/index.js | 2 ++ recipes/podio/package.json | 24 ++++++++++++++++++++++++ recipes/podio/webview.js | 22 ++++++++++++++++++++++ 6 files changed, 71 insertions(+) create mode 100644 recipes/podio/css/franz.css create mode 100644 recipes/podio/icon.png create mode 100644 recipes/podio/icon.svg create mode 100644 recipes/podio/index.js create mode 100644 recipes/podio/package.json create mode 100644 recipes/podio/webview.js (limited to 'recipes/podio') diff --git a/recipes/podio/css/franz.css b/recipes/podio/css/franz.css new file mode 100644 index 0000000..b5668ee --- /dev/null +++ b/recipes/podio/css/franz.css @@ -0,0 +1,22 @@ +#header-global { + display: none !important; +} + +.content-container +{ + margin-top: -15px !important; + padding-top: 0px !important; +} + +.settings-trigger { + display: none !important; +} + +.grid { + box-sizing: border-box; + padding: 0 !important; +} + +.grid .grid-column-1-2:last-of-type, .grid .grid-column-1-3:last-of-type, .grid .grid-column-1-4:last-of-type, .grid .grid-column-1:last-of-type, .grid .grid-column-2-3:last-of-type, .grid .grid-column-3-4:last-of-type { + padding-right: -10px !important; +} \ No newline at end of file diff --git a/recipes/podio/icon.png b/recipes/podio/icon.png new file mode 100644 index 0000000..5c20fac Binary files /dev/null and b/recipes/podio/icon.png differ diff --git a/recipes/podio/icon.svg b/recipes/podio/icon.svg new file mode 100644 index 0000000..ca5bc1f --- /dev/null +++ b/recipes/podio/icon.svg @@ -0,0 +1 @@ + diff --git a/recipes/podio/index.js b/recipes/podio/index.js new file mode 100644 index 0000000..46f936f --- /dev/null +++ b/recipes/podio/index.js @@ -0,0 +1,2 @@ +// just pass through Franz +module.exports = Franz => Franz; diff --git a/recipes/podio/package.json b/recipes/podio/package.json new file mode 100644 index 0000000..9ed76dd --- /dev/null +++ b/recipes/podio/package.json @@ -0,0 +1,24 @@ +{ + "id": "podio", + "name": "podio", + "version": "1.0.0", + "description": "Podio", + "main": "index.js", + "author": "Jan Willem Kaper ", + "license": "MIT", + "config": { + "serviceURL": "https://podio.com", + "serviceName": "Podio", + "message": "", + "popup": [ + ], + "hasNotificationSound": true, + "hasIndirectMessages": false, + "hasTeamID": false, + "customURL": false, + "hostedOnly": false, + "webviewOptions": { + }, + "openDevTools": false + } +} diff --git a/recipes/podio/webview.js b/recipes/podio/webview.js new file mode 100644 index 0000000..b1ddc4f --- /dev/null +++ b/recipes/podio/webview.js @@ -0,0 +1,22 @@ +const path = require('path'); + +module.exports = (Franz, options) => { + const getMessages = () => { + // get unread messages + const updates = document.getElementsByClassName('counter')[0].innerHTML; + + // get conversations in 'My Inbox' + //const inbox = document.getElementById('franz').getAttribute('data-inbox'); + + // set Franz badge + // updates => active unread count + // inbox => passive unread count + Franz.setBadge(updates, 0); + }; + + // inject franz.css stylesheet + Franz.injectCSS(path.join(__dirname, 'css', 'franz.css')); + + // check for new messages every second and update Franz badge + Franz.loop(getMessages); +}; -- cgit v1.2.3-54-g00ecf