From 62ed5349a8034bd257560b8fd472a35e124f3bbb Mon Sep 17 00:00:00 2001 From: Brent Claessens <34712836+YaMoef@users.noreply.github.com> Date: Sat, 19 Oct 2024 16:13:35 +0200 Subject: [PATCH] add sonarqube recipe (#595) --- recipes/sonarqube/icon.svg | 1 + recipes/sonarqube/index.js | 1 + recipes/sonarqube/package.json | 10 ++++++++++ recipes/sonarqube/webview.js | 16 ++++++++++++++++ 4 files changed, 28 insertions(+) create mode 100644 recipes/sonarqube/icon.svg create mode 100644 recipes/sonarqube/index.js create mode 100644 recipes/sonarqube/package.json create mode 100644 recipes/sonarqube/webview.js diff --git a/recipes/sonarqube/icon.svg b/recipes/sonarqube/icon.svg new file mode 100644 index 000000000..92e9008dc --- /dev/null +++ b/recipes/sonarqube/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/recipes/sonarqube/index.js b/recipes/sonarqube/index.js new file mode 100644 index 000000000..3f38a13e8 --- /dev/null +++ b/recipes/sonarqube/index.js @@ -0,0 +1 @@ +module.exports = Ferdium => class SonarQube extends Ferdium {}; diff --git a/recipes/sonarqube/package.json b/recipes/sonarqube/package.json new file mode 100644 index 000000000..5aa5542b5 --- /dev/null +++ b/recipes/sonarqube/package.json @@ -0,0 +1,10 @@ +{ + "id": "sonarqube", + "name": "SonarQube", + "version": "1.0.0", + "license": "MIT", + "config": { + "hasCustomUrl": true, + "serviceURL": "https://{sonarqube}/" + } +} diff --git a/recipes/sonarqube/webview.js b/recipes/sonarqube/webview.js new file mode 100644 index 000000000..2a81dec32 --- /dev/null +++ b/recipes/sonarqube/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')); +};