From e8a78954ea7b4056f3ea0aa18c37bad80d5c4010 Mon Sep 17 00:00:00 2001 From: YaMoef Date: Sat, 27 Apr 2024 22:54:48 +0200 Subject: feat(recipes): add azure portal recipe --- recipes/azure-portal/icon.svg | 23 +++++++++++++++++++++++ recipes/azure-portal/index.js | 1 + recipes/azure-portal/package.json | 12 ++++++++++++ recipes/azure-portal/webview.js | 16 ++++++++++++++++ 4 files changed, 52 insertions(+) create mode 100644 recipes/azure-portal/icon.svg create mode 100644 recipes/azure-portal/index.js create mode 100644 recipes/azure-portal/package.json create mode 100644 recipes/azure-portal/webview.js diff --git a/recipes/azure-portal/icon.svg b/recipes/azure-portal/icon.svg new file mode 100644 index 0000000..7151406 --- /dev/null +++ b/recipes/azure-portal/icon.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/recipes/azure-portal/index.js b/recipes/azure-portal/index.js new file mode 100644 index 0000000..dd41f72 --- /dev/null +++ b/recipes/azure-portal/index.js @@ -0,0 +1 @@ +module.exports = Ferdium => Ferdium; diff --git a/recipes/azure-portal/package.json b/recipes/azure-portal/package.json new file mode 100644 index 0000000..e0a6d0b --- /dev/null +++ b/recipes/azure-portal/package.json @@ -0,0 +1,12 @@ +{ + "id": "azure-portal", + "name": "Azure Portal", + "version": "1.0.0", + "license": "MIT", + "aliases": [ + "azpo" + ], + "config": { + "serviceURL": "https://portal.azure.com/" + } +} diff --git a/recipes/azure-portal/webview.js b/recipes/azure-portal/webview.js new file mode 100644 index 0000000..2a81dec --- /dev/null +++ b/recipes/azure-portal/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