From 80cb3d7dcc4c58633808e74b74ab9ab387fd72c0 Mon Sep 17 00:00:00 2001 From: cereum <49958069+cereum@users.noreply.github.com> Date: Wed, 11 Aug 2021 10:35:48 -0800 Subject: added recipe for proton calendar (#606) --- recipes/protoncalendar/README.md | 2 ++ recipes/protoncalendar/darkmode.css | 1 + recipes/protoncalendar/icon.svg | 62 +++++++++++++++++++++++++++++++++++++ recipes/protoncalendar/index.js | 1 + recipes/protoncalendar/package.json | 9 ++++++ recipes/protoncalendar/service.css | 1 + recipes/protoncalendar/webview.js | 15 +++++++++ 7 files changed, 91 insertions(+) create mode 100644 recipes/protoncalendar/README.md create mode 100644 recipes/protoncalendar/darkmode.css create mode 100644 recipes/protoncalendar/icon.svg create mode 100644 recipes/protoncalendar/index.js create mode 100644 recipes/protoncalendar/package.json create mode 100644 recipes/protoncalendar/service.css create mode 100644 recipes/protoncalendar/webview.js diff --git a/recipes/protoncalendar/README.md b/recipes/protoncalendar/README.md new file mode 100644 index 0000000..6598069 --- /dev/null +++ b/recipes/protoncalendar/README.md @@ -0,0 +1,2 @@ +# ProtonCalendar for Ferdi +This is a Ferdi recipe for ProtonCalendar diff --git a/recipes/protoncalendar/darkmode.css b/recipes/protoncalendar/darkmode.css new file mode 100644 index 0000000..8eeeb07 --- /dev/null +++ b/recipes/protoncalendar/darkmode.css @@ -0,0 +1 @@ +/* Insert custom styles you want to insert here */ diff --git a/recipes/protoncalendar/icon.svg b/recipes/protoncalendar/icon.svg new file mode 100644 index 0000000..3a329a5 --- /dev/null +++ b/recipes/protoncalendar/icon.svg @@ -0,0 +1,62 @@ + + + + diff --git a/recipes/protoncalendar/index.js b/recipes/protoncalendar/index.js new file mode 100644 index 0000000..23607bd --- /dev/null +++ b/recipes/protoncalendar/index.js @@ -0,0 +1 @@ +module.exports = Ferdi => Ferdi; diff --git a/recipes/protoncalendar/package.json b/recipes/protoncalendar/package.json new file mode 100644 index 0000000..c337398 --- /dev/null +++ b/recipes/protoncalendar/package.json @@ -0,0 +1,9 @@ +{ + "id": "protoncalendar", + "name": "ProtonCalendar", + "version": "1.0.1", + "license": "MIT", + "config": { + "serviceURL": "https://calendar.protonmail.com/" + } +} diff --git a/recipes/protoncalendar/service.css b/recipes/protoncalendar/service.css new file mode 100644 index 0000000..38dcab0 --- /dev/null +++ b/recipes/protoncalendar/service.css @@ -0,0 +1 @@ +/* Insert custom styles you want to insert here */ \ No newline at end of file diff --git a/recipes/protoncalendar/webview.js b/recipes/protoncalendar/webview.js new file mode 100644 index 0000000..ddd0b40 --- /dev/null +++ b/recipes/protoncalendar/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() { + // TODO: Insert your notification-finding code here + Ferdi.setBadge(0, 0); + }; + + Ferdi.loop(getMessages); + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); +}; -- cgit v1.2.3-70-g09d2