From 3f92289715914c8ac533b442e6a2e820a19c710a Mon Sep 17 00:00:00 2001 From: Muhammadhussein Ammari Date: Mon, 20 May 2024 16:30:05 +0330 Subject: [PATCH] Add "Eitaa" messenger --- recipes/eitaa/icon.svg | 28 ++++++++++++++++++++++++++++ recipes/eitaa/index.js | 1 + recipes/eitaa/package.json | 9 +++++++++ recipes/eitaa/webview.js | 16 ++++++++++++++++ 4 files changed, 54 insertions(+) create mode 100644 recipes/eitaa/icon.svg create mode 100644 recipes/eitaa/index.js create mode 100644 recipes/eitaa/package.json create mode 100644 recipes/eitaa/webview.js diff --git a/recipes/eitaa/icon.svg b/recipes/eitaa/icon.svg new file mode 100644 index 000000000..646ffe84a --- /dev/null +++ b/recipes/eitaa/icon.svg @@ -0,0 +1,28 @@ + + + + + + + diff --git a/recipes/eitaa/index.js b/recipes/eitaa/index.js new file mode 100644 index 000000000..dd41f7287 --- /dev/null +++ b/recipes/eitaa/index.js @@ -0,0 +1 @@ +module.exports = Ferdium => Ferdium; diff --git a/recipes/eitaa/package.json b/recipes/eitaa/package.json new file mode 100644 index 000000000..63873f52a --- /dev/null +++ b/recipes/eitaa/package.json @@ -0,0 +1,9 @@ +{ + "id": "Eitaa", + "name": "Eitaa", + "version": "1.0.1", + "license": "MIT", + "config": { + "serviceURL": "https://web.eitaa.com/" + } +} diff --git a/recipes/eitaa/webview.js b/recipes/eitaa/webview.js new file mode 100644 index 000000000..2a81dec32 --- /dev/null +++ b/recipes/eitaa/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')); +};