diff options
Diffstat (limited to 'recipes/snapdrop')
-rw-r--r-- | recipes/snapdrop/LICENSE | 21 | ||||
-rw-r--r-- | recipes/snapdrop/icon.png | bin | 0 -> 275511 bytes | |||
-rw-r--r-- | recipes/snapdrop/icon.svg | 23 | ||||
-rw-r--r-- | recipes/snapdrop/index.js | 15 | ||||
-rw-r--r-- | recipes/snapdrop/package.json | 24 | ||||
-rw-r--r-- | recipes/snapdrop/webview.js | 3 |
6 files changed, 86 insertions, 0 deletions
diff --git a/recipes/snapdrop/LICENSE b/recipes/snapdrop/LICENSE new file mode 100644 index 0000000..366f626 --- /dev/null +++ b/recipes/snapdrop/LICENSE | |||
@@ -0,0 +1,21 @@ | |||
1 | MIT License | ||
2 | |||
3 | Copyright (c) 2021 Vijay Raghavan Aravamudhan | ||
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/recipes/snapdrop/icon.png b/recipes/snapdrop/icon.png new file mode 100644 index 0000000..2ac0711 --- /dev/null +++ b/recipes/snapdrop/icon.png | |||
Binary files differ | |||
diff --git a/recipes/snapdrop/icon.svg b/recipes/snapdrop/icon.svg new file mode 100644 index 0000000..480c1e1 --- /dev/null +++ b/recipes/snapdrop/icon.svg | |||
@@ -0,0 +1,23 @@ | |||
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="128.000000pt" height="128.000000pt" viewBox="0 0 128.000000 128.000000" | ||
6 | preserveAspectRatio="xMidYMid meet"> | ||
7 | <g transform="translate(0.000000,128.000000) scale(0.100000,-0.100000)" | ||
8 | fill="#000000" stroke="none"> | ||
9 | <path fill="#1974fc" d="M10 640 l0 -630 630 0 630 0 0 630 0 630 -630 0 -630 0 0 -630z m764 | ||
10 | 510 c109 -27 169 -63 257 -150 58 -57 85 -94 113 -152 88 -184 68 -402 -52 | ||
11 | -561 -40 -53 -155 -158 -172 -157 -3 0 -18 22 -33 47 l-29 47 24 19 c69 54 | ||
12 | 122 117 156 186 36 72 37 79 37 180 -1 86 -5 117 -23 161 -44 111 -141 208 | ||
13 | -252 252 -45 19 -75 23 -166 23 -107 0 -112 -1 -185 -37 -290 -144 -344 -503 | ||
14 | -108 -722 l70 -65 -26 -45 -26 -45 -33 20 c-45 26 -129 111 -166 167 -54 82 | ||
15 | -73 146 -78 268 -7 179 39 298 162 419 145 143 336 195 530 145z m1 -234 c174 | ||
16 | -79 247 -281 164 -453 -19 -39 -112 -143 -128 -143 -7 0 -61 87 -61 99 0 4 14 | ||
17 | 18 31 30 36 27 79 112 79 157 0 117 -104 223 -221 224 -64 0 -146 -43 -183 | ||
18 | -98 -61 -87 -42 -224 39 -289 l33 -26 -30 -49 -30 -48 -28 20 c-43 30 -91 89 | ||
19 | -114 139 -16 36 -21 65 -21 136 0 83 3 95 35 153 32 60 84 113 140 143 83 43 | ||
20 | 207 45 295 5z m-101 -200 c110 -46 96 -197 -20 -213 -140 -19 -183 176 -48 | ||
21 | 217 16 4 30 9 32 9 1 1 17 -5 36 -13z"/> | ||
22 | </g> | ||
23 | </svg> | ||
diff --git a/recipes/snapdrop/index.js b/recipes/snapdrop/index.js new file mode 100644 index 0000000..a0d85b9 --- /dev/null +++ b/recipes/snapdrop/index.js | |||
@@ -0,0 +1,15 @@ | |||
1 | module.exports = (Franz) => | ||
2 | class Snapdrop extends Franz { | ||
3 | modifyRequestHeaders() { | ||
4 | return [ | ||
5 | { | ||
6 | headers: { | ||
7 | 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36', | ||
8 | }, | ||
9 | requestFilters: { | ||
10 | urls: ['*://*/*'], | ||
11 | } | ||
12 | } | ||
13 | ] | ||
14 | } | ||
15 | }; | ||
diff --git a/recipes/snapdrop/package.json b/recipes/snapdrop/package.json new file mode 100644 index 0000000..3fd670c --- /dev/null +++ b/recipes/snapdrop/package.json | |||
@@ -0,0 +1,24 @@ | |||
1 | { | ||
2 | "id": "snapdrop", | ||
3 | "name": "Snapdrop", | ||
4 | "version": "1.0.0", | ||
5 | "description": "Snapdrop recipe for Franz", | ||
6 | "main": "index.js", | ||
7 | "author": "Vijay Raghavan Aravamudhan <avijayr@protonmail.com>", | ||
8 | "license": "MIT", | ||
9 | "config": { | ||
10 | "serviceURL": "http://snapdrop.net/", | ||
11 | "serviceName": "Snapdrop", | ||
12 | "message": "", | ||
13 | "popup": [], | ||
14 | "hasNotificationSound": true, | ||
15 | "hasIndirectMessages": false, | ||
16 | "hasTeamID": false, | ||
17 | "customURL": false, | ||
18 | "hostedOnly": false, | ||
19 | "webviewOptions": { | ||
20 | "disablewebsecurity": "" | ||
21 | }, | ||
22 | "openDevTools": false | ||
23 | } | ||
24 | } | ||
diff --git a/recipes/snapdrop/webview.js b/recipes/snapdrop/webview.js new file mode 100644 index 0000000..3ad189a --- /dev/null +++ b/recipes/snapdrop/webview.js | |||
@@ -0,0 +1,3 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | module.exports = (Franz) => {}; | ||