From 6c0449e4e524f26d392c84ea0dcab8d43d19f042 Mon Sep 17 00:00:00 2001 From: Bennett Date: Sun, 4 Oct 2020 16:38:36 +0200 Subject: Add OneNote --- recipes/onenote/README.md | 2 ++ recipes/onenote/icon.png | Bin 0 -> 233094 bytes recipes/onenote/icon.svg | 37 +++++++++++++++++++++++++++++++++++++ recipes/onenote/index.js | 2 ++ recipes/onenote/package.json | 12 ++++++++++++ recipes/onenote/service.css | 1 + recipes/onenote/webview.js | 15 +++++++++++++++ 7 files changed, 69 insertions(+) create mode 100644 recipes/onenote/README.md create mode 100644 recipes/onenote/icon.png create mode 100644 recipes/onenote/icon.svg create mode 100644 recipes/onenote/index.js create mode 100644 recipes/onenote/package.json create mode 100644 recipes/onenote/service.css create mode 100644 recipes/onenote/webview.js (limited to 'recipes') diff --git a/recipes/onenote/README.md b/recipes/onenote/README.md new file mode 100644 index 0000000..c102cd1 --- /dev/null +++ b/recipes/onenote/README.md @@ -0,0 +1,2 @@ +# OneNote for Ferdi +This is a Ferdi recipe for OneNote diff --git a/recipes/onenote/icon.png b/recipes/onenote/icon.png new file mode 100644 index 0000000..6beacc1 Binary files /dev/null and b/recipes/onenote/icon.png differ diff --git a/recipes/onenote/icon.svg b/recipes/onenote/icon.svg new file mode 100644 index 0000000..1e268d3 --- /dev/null +++ b/recipes/onenote/icon.svg @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/recipes/onenote/index.js b/recipes/onenote/index.js new file mode 100644 index 0000000..b322187 --- /dev/null +++ b/recipes/onenote/index.js @@ -0,0 +1,2 @@ +module.exports = Ferdi => class onenote extends Ferdi { +}; diff --git a/recipes/onenote/package.json b/recipes/onenote/package.json new file mode 100644 index 0000000..70fda8f --- /dev/null +++ b/recipes/onenote/package.json @@ -0,0 +1,12 @@ +{ + "id": "onenote", + "name": "OneNote", + "version": "1.0.0", + "description": "onenote", + "main": "index.js", + "author": "Ferdi ", + "license": "MIT", + "config": { + "serviceURL": "https://onenote.com" + } +} diff --git a/recipes/onenote/service.css b/recipes/onenote/service.css new file mode 100644 index 0000000..38dcab0 --- /dev/null +++ b/recipes/onenote/service.css @@ -0,0 +1 @@ +/* Insert custom styles you want to insert here */ \ No newline at end of file diff --git a/recipes/onenote/webview.js b/recipes/onenote/webview.js new file mode 100644 index 0000000..ddd0b40 --- /dev/null +++ b/recipes/onenote/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