From b20181ba080a3c014fc8280bbf2f222017e1c404 Mon Sep 17 00:00:00 2001 From: Muhammadhussein Ammari Date: Thu, 6 Jun 2024 18:03:20 +0330 Subject: [PATCH] Add Soroush+ --- recipes/soroush/icon.svg | 10 ++++++++++ recipes/soroush/index.js | 1 + recipes/soroush/package.json | 9 +++++++++ recipes/soroush/webview.js | 16 ++++++++++++++++ 4 files changed, 36 insertions(+) create mode 100644 recipes/soroush/icon.svg create mode 100644 recipes/soroush/index.js create mode 100644 recipes/soroush/package.json create mode 100644 recipes/soroush/webview.js diff --git a/recipes/soroush/icon.svg b/recipes/soroush/icon.svg new file mode 100644 index 000000000..eeb1b1c69 --- /dev/null +++ b/recipes/soroush/icon.svg @@ -0,0 +1,10 @@ + +Soroush + + + + +Soroush diff --git a/recipes/soroush/index.js b/recipes/soroush/index.js new file mode 100644 index 000000000..dd41f7287 --- /dev/null +++ b/recipes/soroush/index.js @@ -0,0 +1 @@ +module.exports = Ferdium => Ferdium; diff --git a/recipes/soroush/package.json b/recipes/soroush/package.json new file mode 100644 index 000000000..7d689bdc6 --- /dev/null +++ b/recipes/soroush/package.json @@ -0,0 +1,9 @@ +{ + "id": "soroush", + "name": "Soroush+", + "version": "1.0.0", + "license": "MIT", + "config": { + "serviceURL": "https://web.splus.ir/" + } +} diff --git a/recipes/soroush/webview.js b/recipes/soroush/webview.js new file mode 100644 index 000000000..2a81dec32 --- /dev/null +++ b/recipes/soroush/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')); +};