From 6e4cfcd065688c25c5e11db5036ead94dc5a0136 Mon Sep 17 00:00:00 2001 From: Marco Lussetti Date: Tue, 20 Oct 2020 04:01:27 -0700 Subject: Add recipe for Sync.com (#337) --- recipes/sync/README.md | 2 ++ recipes/sync/icon.png | Bin 0 -> 50651 bytes recipes/sync/icon.svg | 1 + recipes/sync/index.js | 2 ++ recipes/sync/package.json | 12 ++++++++++++ recipes/sync/service.css | 1 + recipes/sync/webview.js | 15 +++++++++++++++ 7 files changed, 33 insertions(+) create mode 100644 recipes/sync/README.md create mode 100644 recipes/sync/icon.png create mode 100644 recipes/sync/icon.svg create mode 100644 recipes/sync/index.js create mode 100644 recipes/sync/package.json create mode 100644 recipes/sync/service.css create mode 100644 recipes/sync/webview.js (limited to 'recipes/sync') 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 @@ +# Sync for Ferdi +This 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 Binary files /dev/null and b/recipes/sync/icon.png 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 @@ +icon \ 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 @@ +module.exports = Ferdi => class sync extends Ferdi { +}; 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 @@ +{ + "id": "sync", + "name": "sync", + "version": "1.0.0", + "description": "Sync", + "main": "index.js", + "author": "Marco Lussetti ", + "license": "MIT", + "config": { + "serviceURL": "https://cp.sync.com/files/" + } +} 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 @@ +"use strict"; + +var _path = _interopRequireDefault(require("path")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = Ferdi => { + const getMessages = function getMessages() { + // Sync.com does not provide notifications at this time. + Ferdi.setBadge(0, 0); + }; + + Ferdi.loop(getMessages); + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); +}; -- cgit v1.2.3-54-g00ecf