aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-05-19 13:41:07 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-05-19 14:08:59 +0530
commitc35cda5c57ef9a35f7fb892051a46dd57a6b477a (patch)
tree4a8c815efe19190f2a624b0375d76f6bbc623774
parentMissed 'prepare' step that enforces the installation of the git pre-commit hooks (diff)
downloadferdium-recipes-c35cda5c57ef9a35f7fb892051a46dd57a6b477a.tar.gz
ferdium-recipes-c35cda5c57ef9a35f7fb892051a46dd57a6b477a.tar.zst
ferdium-recipes-c35cda5c57ef9a35f7fb892051a46dd57a6b477a.zip
Added new recipe: snapdrop (fixes #512)
-rw-r--r--all.json11
-rw-r--r--recipes/snapdrop/LICENSE21
-rw-r--r--recipes/snapdrop/icon.pngbin0 -> 275511 bytes
-rw-r--r--recipes/snapdrop/icon.svg23
-rw-r--r--recipes/snapdrop/index.js15
-rw-r--r--recipes/snapdrop/package.json24
-rw-r--r--recipes/snapdrop/webview.js3
7 files changed, 97 insertions, 0 deletions
diff --git a/all.json b/all.json
index f45d54b..f129e41 100644
--- a/all.json
+++ b/all.json
@@ -1221,6 +1221,17 @@
1221 } 1221 }
1222 }, 1222 },
1223 { 1223 {
1224 "author": "Vijay Raghavan Aravamudhan <avijayr@protonmail.com>",
1225 "featured": false,
1226 "id": "snapdrop",
1227 "name": "Snapdrop",
1228 "version": "1.0.0",
1229 "icons": {
1230 "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/snapdrop/icon.png",
1231 "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/snapdrop/icon.svg"
1232 }
1233 },
1234 {
1224 "author": "Kittywhiskers Van Gogh <63189531+kittywhiskers@users.noreply.github.com>", 1235 "author": "Kittywhiskers Van Gogh <63189531+kittywhiskers@users.noreply.github.com>",
1225 "featured": false, 1236 "featured": false,
1226 "id": "stackexchange", 1237 "id": "stackexchange",
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 @@
1MIT License
2
3Copyright (c) 2021 Vijay Raghavan Aravamudhan
4
5Permission is hereby granted, free of charge, to any person obtaining a copy
6of this software and associated documentation files (the "Software"), to deal
7in the Software without restriction, including without limitation the rights
8to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9copies of the Software, and to permit persons to whom the Software is
10furnished to do so, subject to the following conditions:
11
12The above copyright notice and this permission notice shall be included in all
13copies or substantial portions of the Software.
14
15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21SOFTWARE.
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)"
8fill="#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
10510 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
12122 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
1718 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
20207 45 295 5z m-101 -200 c110 -46 96 -197 -20 -213 -140 -19 -183 176 -48
21217 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 @@
1module.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
3module.exports = (Franz) => {};