From 9db43e100a672b6d6932ac68c0fbe503c129138b Mon Sep 17 00:00:00 2001 From: Vijay Aravamudhan Date: Sun, 12 Sep 2021 22:01:51 +0530 Subject: Added a check to verify that the folder name of the recipe matches the recipe id (#708) Use the recipe-id as master to rename internal folder names --- recipes/dockerhub/LICENSE | 21 +++++++++++++++++ recipes/dockerhub/icon.svg | 52 ++++++++++++++++++++++++++++++++++++++++++ recipes/dockerhub/index.js | 1 + recipes/dockerhub/package.json | 9 ++++++++ recipes/dockerhub/service.css | 1 + recipes/dockerhub/webview.js | 14 ++++++++++++ 6 files changed, 98 insertions(+) create mode 100644 recipes/dockerhub/LICENSE create mode 100644 recipes/dockerhub/icon.svg create mode 100644 recipes/dockerhub/index.js create mode 100644 recipes/dockerhub/package.json create mode 100644 recipes/dockerhub/service.css create mode 100644 recipes/dockerhub/webview.js (limited to 'recipes/dockerhub') diff --git a/recipes/dockerhub/LICENSE b/recipes/dockerhub/LICENSE new file mode 100644 index 0000000..99d6f23 --- /dev/null +++ b/recipes/dockerhub/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Vijay Raghavan Aravamudhan + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/recipes/dockerhub/icon.svg b/recipes/dockerhub/icon.svg new file mode 100644 index 0000000..e04cb87 --- /dev/null +++ b/recipes/dockerhub/icon.svg @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/recipes/dockerhub/index.js b/recipes/dockerhub/index.js new file mode 100644 index 0000000..6bff43a --- /dev/null +++ b/recipes/dockerhub/index.js @@ -0,0 +1 @@ +module.exports = (Ferdi) => class DockerHub extends Ferdi {}; diff --git a/recipes/dockerhub/package.json b/recipes/dockerhub/package.json new file mode 100644 index 0000000..6b33abe --- /dev/null +++ b/recipes/dockerhub/package.json @@ -0,0 +1,9 @@ +{ + "id": "dockerhub", + "name": "Docker Hub", + "version": "1.0.0", + "license": "MIT", + "config": { + "serviceURL": "https://hub.docker.com" + } +} diff --git a/recipes/dockerhub/service.css b/recipes/dockerhub/service.css new file mode 100644 index 0000000..38dcab0 --- /dev/null +++ b/recipes/dockerhub/service.css @@ -0,0 +1 @@ +/* Insert custom styles you want to insert here */ \ No newline at end of file diff --git a/recipes/dockerhub/webview.js b/recipes/dockerhub/webview.js new file mode 100644 index 0000000..1fd69e8 --- /dev/null +++ b/recipes/dockerhub/webview.js @@ -0,0 +1,14 @@ +var _path = _interopRequireDefault(require('path')); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = Ferdi => { + // TODO: If your docker hub service has unread messages, uncomment these lines to implement the logic for updating the badges + // const getMessages = function getMessages() { + // // TODO: Insert your notification-finding code here + // Ferdi.setBadge(0, 0); + // }; + // Ferdi.loop(getMessages); + + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); +}; -- cgit v1.2.3-70-g09d2