aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/sync
diff options
context:
space:
mode:
authorLibravatar Marco Lussetti <marcolussetti@users.noreply.github.com>2020-10-20 04:01:27 -0700
committerLibravatar GitHub <noreply@github.com>2020-10-20 12:01:27 +0100
commit6e4cfcd065688c25c5e11db5036ead94dc5a0136 (patch)
treecf2b8c13150a5782611d9127be9bb064df9837d0 /recipes/sync
parentFix messages count for Fastmail (#335) (#336) (diff)
downloadferdium-recipes-6e4cfcd065688c25c5e11db5036ead94dc5a0136.tar.gz
ferdium-recipes-6e4cfcd065688c25c5e11db5036ead94dc5a0136.tar.zst
ferdium-recipes-6e4cfcd065688c25c5e11db5036ead94dc5a0136.zip
Add recipe for Sync.com (#337)
Diffstat (limited to 'recipes/sync')
-rw-r--r--recipes/sync/README.md2
-rw-r--r--recipes/sync/icon.pngbin0 -> 50651 bytes
-rw-r--r--recipes/sync/icon.svg1
-rw-r--r--recipes/sync/index.js2
-rw-r--r--recipes/sync/package.json12
-rw-r--r--recipes/sync/service.css1
-rw-r--r--recipes/sync/webview.js15
7 files changed, 33 insertions, 0 deletions
diff --git a/recipes/sync/README.md b/recipes/sync/README.md
new file mode 100644
index 0000000..ccc5d8f
--- /dev/null
+++ b/recipes/sync/README.md
@@ -0,0 +1,2 @@
1# Sync for Ferdi
2This is a Ferdi recipe for Sync.com
diff --git a/recipes/sync/icon.png b/recipes/sync/icon.png
new file mode 100644
index 0000000..328d2c4
--- /dev/null
+++ b/recipes/sync/icon.png
Binary files differ
diff --git a/recipes/sync/icon.svg b/recipes/sync/icon.svg
new file mode 100644
index 0000000..a52c2eb
--- /dev/null
+++ b/recipes/sync/icon.svg
@@ -0,0 +1 @@
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 170.4 170.4"><defs><style>.cls-1{fill:#2dabe2;}.cls-2{fill:#fff;}</style></defs><title>icon</title><path class="cls-1" d="M152.62,60.52l-.42-.38a38.2,38.2,0,0,0-22.81-10.37A43.81,43.81,0,0,0,86.66,15.14,43.2,43.2,0,0,0,52,32.06a44.35,44.35,0,0,0-8.09,17.8A37.92,37.92,0,0,0,21.12,60.39l-.45.42A37.68,37.68,0,0,0,9.39,86.9v1.49a37.82,37.82,0,0,0,10.74,25.39l.58.62A37.9,37.9,0,0,0,44,125.35a43.68,43.68,0,0,0,85.37,0,38.08,38.08,0,0,0,23.35-11l.5-.54a37.6,37.6,0,0,0,10.66-25.59V86.77A38,38,0,0,0,152.62,60.52Z" transform="translate(-1.46 -7.5)"/><path class="cls-2" d="M171.86,86.61a41.74,41.74,0,0,0-12.44-29l-.46-.41a41.88,41.88,0,0,0-25.18-11.45A48.25,48.25,0,0,0,86.66,7.51a47.59,47.59,0,0,0-38.2,18.66,48.8,48.8,0,0,0-8.92,19.54A41.93,41.93,0,0,0,14.41,57.32l-.5.46A41.46,41.46,0,0,0,1.46,86.57v1.66a41.47,41.47,0,0,0,11.87,28l.62.67A41.83,41.83,0,0,0,39.62,129a48.16,48.16,0,0,0,94.16,0,41.9,41.9,0,0,0,25.76-12.11l.54-.58a41.49,41.49,0,0,0,11.74-28.21v-.87A2.27,2.27,0,0,0,171.86,86.61Zm-20.74,21.32a29,29,0,0,1-19,8.29A45.23,45.23,0,0,0,130.22,106l.45-.66a17.86,17.86,0,0,0,13.19-5.69h0A20.1,20.1,0,0,0,150.46,86a15.9,15.9,0,0,0-4.4-12.08h0a25.23,25.23,0,0,0-14-5.72h0A17.71,17.71,0,0,0,118,73.71h-.41c-.38.37-.92.79-1.25,1.16l4.57,3.52-20.37,6.85L102,63.79l5.31,4.15a24.43,24.43,0,1,0-35.71,6.8,63.14,63.14,0,0,0,12.44,6.35c9,3.61,18.33,5,25.8,11.7a35.34,35.34,0,0,1-44.8,54.59,34.41,34.41,0,0,1-12.44-32.23,21.8,21.8,0,0,1-7.8,1.28v.83h0v-1a33.17,33.17,0,0,1-21.57-8.29H23a28.55,28.55,0,0,1-8.75-20.74,29,29,0,0,1,8.3-20.29v.25A28.55,28.55,0,0,1,41,58.86a46.7,46.7,0,0,0,1.78,9.87h0a17.71,17.71,0,0,0-12,5.72h0a17.51,17.51,0,0,0-5.76,12.07,18.76,18.76,0,0,0,4.68,13.11h0a19,19,0,0,0,12.82,5.73,18.57,18.57,0,0,0,13.52-5.19h.25a11.76,11.76,0,0,0,1.08-1l-4.81-3.36,20.24-6.59-1.33,21.36L66,106.39a24.47,24.47,0,1,0,35.55-6.22A32.23,32.23,0,0,0,98,97.93h0C87.37,92.41,74.76,90.76,64.8,83.54a35.59,35.59,0,0,1,43.64-56.21,36,36,0,0,1,14.23,32.19A32.42,32.42,0,0,1,132,58.15h0a29.07,29.07,0,0,1,19.79,8.3h-.42a29,29,0,0,1,8.3,20.28,28.29,28.29,0,0,1-8.59,20.74Z" transform="translate(-1.46 -7.5)"/></svg> \ No newline at end of file
diff --git a/recipes/sync/index.js b/recipes/sync/index.js
new file mode 100644
index 0000000..a3e9be5
--- /dev/null
+++ b/recipes/sync/index.js
@@ -0,0 +1,2 @@
1module.exports = Ferdi => class sync extends Ferdi {
2};
diff --git a/recipes/sync/package.json b/recipes/sync/package.json
new file mode 100644
index 0000000..923384e
--- /dev/null
+++ b/recipes/sync/package.json
@@ -0,0 +1,12 @@
1{
2 "id": "sync",
3 "name": "sync",
4 "version": "1.0.0",
5 "description": "Sync",
6 "main": "index.js",
7 "author": "Marco Lussetti <packages@marcolussetti.com>",
8 "license": "MIT",
9 "config": {
10 "serviceURL": "https://cp.sync.com/files/"
11 }
12}
diff --git a/recipes/sync/service.css b/recipes/sync/service.css
new file mode 100644
index 0000000..38dcab0
--- /dev/null
+++ b/recipes/sync/service.css
@@ -0,0 +1 @@
/* Insert custom styles you want to insert here */ \ No newline at end of file
diff --git a/recipes/sync/webview.js b/recipes/sync/webview.js
new file mode 100644
index 0000000..5bb7741
--- /dev/null
+++ b/recipes/sync/webview.js
@@ -0,0 +1,15 @@
1"use strict";
2
3var _path = _interopRequireDefault(require("path"));
4
5function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
6
7module.exports = Ferdi => {
8 const getMessages = function getMessages() {
9 // Sync.com does not provide notifications at this time.
10 Ferdi.setBadge(0, 0);
11 };
12
13 Ferdi.loop(getMessages);
14 Ferdi.injectCSS(_path.default.join(__dirname, 'service.css'));
15};