From 0ece08fb0d996d7276ead40ad83ba3a3f962622c Mon Sep 17 00:00:00 2001 From: Serene <33189705+Serene-Arc@users.noreply.github.com> Date: Sun, 3 Dec 2023 05:00:30 +1000 Subject: Add Wakapi recipe (#474) --- recipes/wakapi/icon.svg | 99 +++++++++++++++++++++++++++++++++++++++++++++ recipes/wakapi/index.js | 1 + recipes/wakapi/package.json | 11 +++++ recipes/wakapi/webview.js | 16 ++++++++ 4 files changed, 127 insertions(+) create mode 100644 recipes/wakapi/icon.svg create mode 100644 recipes/wakapi/index.js create mode 100644 recipes/wakapi/package.json create mode 100644 recipes/wakapi/webview.js (limited to 'recipes') diff --git a/recipes/wakapi/icon.svg b/recipes/wakapi/icon.svg new file mode 100644 index 0000000..8d5f247 --- /dev/null +++ b/recipes/wakapi/icon.svg @@ -0,0 +1,99 @@ + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/recipes/wakapi/index.js b/recipes/wakapi/index.js new file mode 100644 index 0000000..dd41f72 --- /dev/null +++ b/recipes/wakapi/index.js @@ -0,0 +1 @@ +module.exports = Ferdium => Ferdium; diff --git a/recipes/wakapi/package.json b/recipes/wakapi/package.json new file mode 100644 index 0000000..a6401cd --- /dev/null +++ b/recipes/wakapi/package.json @@ -0,0 +1,11 @@ +{ + "id": "wakapi", + "name": "Wakapi", + "version": "1.0.0", + "license": "MIT", + "config": { + "serviceURL": "https://wakapi.dev", + "hasHostedOption": true, + "hasCustomUrl": true + } +} diff --git a/recipes/wakapi/webview.js b/recipes/wakapi/webview.js new file mode 100644 index 0000000..2a81dec --- /dev/null +++ b/recipes/wakapi/webview.js @@ -0,0 +1,16 @@ +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; +} + +const _path = _interopRequireDefault(require('path')); + +module.exports = Ferdium => { + // TODO: If your SNAME service has unread messages, uncomment these lines to implement the logic for updating the badges + // const getMessages = () => { + // // TODO: Insert your notification-finding code here + // Ferdium.setBadge(0, 0); + // }; + // Ferdium.loop(getMessages); + + Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); +}; -- cgit v1.2.3-54-g00ecf