From 03588ed41823e2b32b15f95333e4c7403194e936 Mon Sep 17 00:00:00 2001 From: vantezzen Date: Mon, 23 Mar 2020 20:06:12 +0100 Subject: Add Evernote --- all.json | 11 +++++++++++ evernote.tar.gz | Bin 0 -> 22738 bytes uncompressed/evernote/LICENSE | 21 +++++++++++++++++++++ uncompressed/evernote/README.md | 20 ++++++++++++++++++++ uncompressed/evernote/css/franz.css | 3 +++ uncompressed/evernote/icon.png | Bin 0 -> 23502 bytes uncompressed/evernote/icon.svg | 22 ++++++++++++++++++++++ uncompressed/evernote/index.js | 2 ++ uncompressed/evernote/package.json | 13 +++++++++++++ uncompressed/evernote/webview.js | 18 ++++++++++++++++++ 10 files changed, 110 insertions(+) create mode 100644 evernote.tar.gz create mode 100644 uncompressed/evernote/LICENSE create mode 100644 uncompressed/evernote/README.md create mode 100644 uncompressed/evernote/css/franz.css create mode 100644 uncompressed/evernote/icon.png create mode 100644 uncompressed/evernote/icon.svg create mode 100644 uncompressed/evernote/index.js create mode 100644 uncompressed/evernote/package.json create mode 100644 uncompressed/evernote/webview.js diff --git a/all.json b/all.json index 5361cdb..40bc396 100644 --- a/all.json +++ b/all.json @@ -1021,5 +1021,16 @@ "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/zoho/icon.png", "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/zoho/icon.svg" } + }, + { + "author": "concon", + "featured": false, + "id": "evernote", + "name": "Evernote", + "version": "1.0.0", + "icons": { + "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/evernote/icon.png", + "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/evernote/icon.svg" + } } ] diff --git a/evernote.tar.gz b/evernote.tar.gz new file mode 100644 index 0000000..a3ab132 Binary files /dev/null and b/evernote.tar.gz differ diff --git a/uncompressed/evernote/LICENSE b/uncompressed/evernote/LICENSE new file mode 100644 index 0000000..7c2e393 --- /dev/null +++ b/uncompressed/evernote/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018 Connor + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/uncompressed/evernote/README.md b/uncompressed/evernote/README.md new file mode 100644 index 0000000..11dc447 --- /dev/null +++ b/uncompressed/evernote/README.md @@ -0,0 +1,20 @@ +# Evernote for Franz +This is the Franz 5 Recipe for Evernote + +## Requirements +This recipe only works for Franz 5.X, find it at http://meetfranz.com + +## Installation + +1. Clone/download the folder `franz-recipe-evernote`. + +2. Open the Franz Recipe folder on your machine: + * Mac: `~/Library/Application Support/Franz/recipes/` + * Windows: `%appdata%/Franz/recipes/` + * Linux: `~/.config/Franz/recipes/` + +3. Create a `dev` folder if you have not already done so + +3. Unzip and copy the `franz-recipe-evernote` folder into the recipes dev directory + +4. Restart or reload Franz diff --git a/uncompressed/evernote/css/franz.css b/uncompressed/evernote/css/franz.css new file mode 100644 index 0000000..09e72fb --- /dev/null +++ b/uncompressed/evernote/css/franz.css @@ -0,0 +1,3 @@ +footer { + display: none !important; +} diff --git a/uncompressed/evernote/icon.png b/uncompressed/evernote/icon.png new file mode 100644 index 0000000..100c4a3 Binary files /dev/null and b/uncompressed/evernote/icon.png differ diff --git a/uncompressed/evernote/icon.svg b/uncompressed/evernote/icon.svg new file mode 100644 index 0000000..7135d64 --- /dev/null +++ b/uncompressed/evernote/icon.svg @@ -0,0 +1,22 @@ + + + + + + + + + diff --git a/uncompressed/evernote/index.js b/uncompressed/evernote/index.js new file mode 100644 index 0000000..46f936f --- /dev/null +++ b/uncompressed/evernote/index.js @@ -0,0 +1,2 @@ +// just pass through Franz +module.exports = Franz => Franz; diff --git a/uncompressed/evernote/package.json b/uncompressed/evernote/package.json new file mode 100644 index 0000000..fb9d0ba --- /dev/null +++ b/uncompressed/evernote/package.json @@ -0,0 +1,13 @@ +{ + "id": "evernote", + "name": "Evernote", + "version": "1.0.0", + "description": "Evernote", + "main": "index.js", + "author": "concon", + "license": "MIT", + "config": { + "serviceURL": "https://www.evernote.com/Login.action", + "hasTeamID": false + } +} \ No newline at end of file diff --git a/uncompressed/evernote/webview.js b/uncompressed/evernote/webview.js new file mode 100644 index 0000000..60742ca --- /dev/null +++ b/uncompressed/evernote/webview.js @@ -0,0 +1,18 @@ +const path = require('path'); + +module.exports = (Franz, options) => { + const getMessages = () => { + const inbox = document.querySelector('.topbar-notificationsButton.has-newNotifications'); + const passiveCount = inbox === null ? 0 : 1; + // set Franz badge + // updates => active unread count + // inbox => passive unread count + Franz.setBadge(0, passiveCount); + }; + + // 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-70-g09d2