diff options
author | 2020-03-23 20:06:12 +0100 | |
---|---|---|
committer | 2020-03-23 20:06:12 +0100 | |
commit | 03588ed41823e2b32b15f95333e4c7403194e936 (patch) | |
tree | fa62a792a262f4ac847c0dccd051315ca75047fe /uncompressed/evernote | |
parent | Merge pull request #70 from getferdi/pr/69 (diff) | |
download | ferdium-recipes-03588ed41823e2b32b15f95333e4c7403194e936.tar.gz ferdium-recipes-03588ed41823e2b32b15f95333e4c7403194e936.tar.zst ferdium-recipes-03588ed41823e2b32b15f95333e4c7403194e936.zip |
Add Evernote
Diffstat (limited to 'uncompressed/evernote')
-rw-r--r-- | uncompressed/evernote/LICENSE | 21 | ||||
-rw-r--r-- | uncompressed/evernote/README.md | 20 | ||||
-rw-r--r-- | uncompressed/evernote/css/franz.css | 3 | ||||
-rw-r--r-- | uncompressed/evernote/icon.png | bin | 0 -> 23502 bytes | |||
-rw-r--r-- | uncompressed/evernote/icon.svg | 22 | ||||
-rw-r--r-- | uncompressed/evernote/index.js | 2 | ||||
-rw-r--r-- | uncompressed/evernote/package.json | 13 | ||||
-rw-r--r-- | uncompressed/evernote/webview.js | 18 |
8 files changed, 99 insertions, 0 deletions
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 @@ | |||
1 | MIT License | ||
2 | |||
3 | Copyright (c) 2018 Connor | ||
4 | |||
5 | Permission is hereby granted, free of charge, to any person obtaining a copy | ||
6 | of this software and associated documentation files (the "Software"), to deal | ||
7 | in the Software without restriction, including without limitation the rights | ||
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
9 | copies of the Software, and to permit persons to whom the Software is | ||
10 | furnished to do so, subject to the following conditions: | ||
11 | |||
12 | The above copyright notice and this permission notice shall be included in all | ||
13 | copies or substantial portions of the Software. | ||
14 | |||
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
21 | 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 @@ | |||
1 | # Evernote for Franz | ||
2 | This is the Franz 5 Recipe for Evernote | ||
3 | |||
4 | ## Requirements | ||
5 | This recipe only works for Franz 5.X, find it at http://meetfranz.com | ||
6 | |||
7 | ## Installation | ||
8 | |||
9 | 1. Clone/download the folder `franz-recipe-evernote`. | ||
10 | |||
11 | 2. Open the Franz Recipe folder on your machine: | ||
12 | * Mac: `~/Library/Application Support/Franz/recipes/` | ||
13 | * Windows: `%appdata%/Franz/recipes/` | ||
14 | * Linux: `~/.config/Franz/recipes/` | ||
15 | |||
16 | 3. Create a `dev` folder if you have not already done so | ||
17 | |||
18 | 3. Unzip and copy the `franz-recipe-evernote` folder into the recipes dev directory | ||
19 | |||
20 | 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 @@ | |||
1 | footer { | ||
2 | display: none !important; | ||
3 | } | ||
diff --git a/uncompressed/evernote/icon.png b/uncompressed/evernote/icon.png new file mode 100644 index 0000000..100c4a3 --- /dev/null +++ b/uncompressed/evernote/icon.png | |||
Binary files 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 @@ | |||
1 | <?xml version="1.0" standalone="no"?> | ||
2 | <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" | ||
3 | "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> | ||
4 | <svg version="1.0" xmlns="http://www.w3.org/2000/svg" | ||
5 | width="148.000000pt" height="140.000000pt" viewBox="0 0 148.000000 140.000000" | ||
6 | preserveAspectRatio="xMidYMid meet"> | ||
7 | |||
8 | <g transform="translate(0.000000,140.000000) scale(0.100000,-0.100000)" | ||
9 | fill="#000000" stroke="none"> | ||
10 | <path d="M545 1235 c-24 -23 -25 -30 -25 -145 0 -161 1 -160 -156 -160 -63 0 | ||
11 | -124 -4 -134 -10 -36 -19 -41 -67 -21 -168 31 -149 66 -204 164 -253 53 -28 | ||
12 | 152 -42 194 -28 34 11 64 51 86 115 l14 38 18 -31 c21 -36 74 -68 130 -78 86 | ||
13 | -15 135 -66 135 -138 0 -31 -7 -46 -34 -73 -44 -44 -94 -47 -132 -9 -24 24 | ||
14 | -25 28 -11 48 8 12 24 23 36 25 29 5 45 36 31 62 -23 43 -119 11 -152 -51 -52 | ||
15 | -96 16 -195 142 -207 110 -10 218 62 259 174 32 84 45 265 32 438 -15 192 -28 | ||
16 | 261 -58 297 -37 44 -67 56 -201 80 -106 20 -122 25 -131 46 -24 53 -143 72 | ||
17 | -186 28z m433 -457 c7 -7 12 -21 12 -31 0 -18 -5 -19 -52 -13 -63 9 -75 18 | ||
18 | -53 40 19 19 76 21 93 4z"/> | ||
19 | <path d="M360 1085 l-125 -125 110 0 c61 0 117 5 125 10 11 7 16 33 18 97 7 | ||
20 | 162 15 161 -128 18z"/> | ||
21 | </g> | ||
22 | </svg> | ||
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 @@ | |||
1 | // just pass through Franz | ||
2 | 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 @@ | |||
1 | { | ||
2 | "id": "evernote", | ||
3 | "name": "Evernote", | ||
4 | "version": "1.0.0", | ||
5 | "description": "Evernote", | ||
6 | "main": "index.js", | ||
7 | "author": "concon", | ||
8 | "license": "MIT", | ||
9 | "config": { | ||
10 | "serviceURL": "https://www.evernote.com/Login.action", | ||
11 | "hasTeamID": false | ||
12 | } | ||
13 | } \ 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 @@ | |||
1 | const path = require('path'); | ||
2 | |||
3 | module.exports = (Franz, options) => { | ||
4 | const getMessages = () => { | ||
5 | const inbox = document.querySelector('.topbar-notificationsButton.has-newNotifications'); | ||
6 | const passiveCount = inbox === null ? 0 : 1; | ||
7 | // set Franz badge | ||
8 | // updates => active unread count | ||
9 | // inbox => passive unread count | ||
10 | Franz.setBadge(0, passiveCount); | ||
11 | }; | ||
12 | |||
13 | // inject franz.css stylesheet | ||
14 | Franz.injectCSS(path.join(__dirname, 'css', 'franz.css')); | ||
15 | |||
16 | // check for new messages every second and update Franz badge | ||
17 | Franz.loop(getMessages); | ||
18 | }; | ||