From c5293b4acc4283e9bc47569ad0026bae1d06299c Mon Sep 17 00:00:00 2001 From: Maitre_Oda Date: Sat, 28 Aug 2021 15:31:35 +0200 Subject: New recipe: ovh-cloud (#650) Co-authored-by: Vijay Raghavan Aravamudhan --- recipes/ovh-cloud/LICENSE | 21 +++++++++++++++++++++ recipes/ovh-cloud/README.md | 2 ++ recipes/ovh-cloud/icon.svg | 1 + recipes/ovh-cloud/index.js | 1 + recipes/ovh-cloud/package.json | 9 +++++++++ recipes/ovh-cloud/service.css | 1 + recipes/ovh-cloud/webview.js | 14 ++++++++++++++ 7 files changed, 49 insertions(+) create mode 100644 recipes/ovh-cloud/LICENSE create mode 100644 recipes/ovh-cloud/README.md create mode 100644 recipes/ovh-cloud/icon.svg create mode 100644 recipes/ovh-cloud/index.js create mode 100644 recipes/ovh-cloud/package.json create mode 100644 recipes/ovh-cloud/service.css create mode 100644 recipes/ovh-cloud/webview.js (limited to 'recipes') diff --git a/recipes/ovh-cloud/LICENSE b/recipes/ovh-cloud/LICENSE new file mode 100644 index 0000000..99d6f23 --- /dev/null +++ b/recipes/ovh-cloud/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/ovh-cloud/README.md b/recipes/ovh-cloud/README.md new file mode 100644 index 0000000..144e5d8 --- /dev/null +++ b/recipes/ovh-cloud/README.md @@ -0,0 +1,2 @@ +# ovh-cloud for Ferdi +This is a Ferdi recipe for ovh-cloud diff --git a/recipes/ovh-cloud/icon.svg b/recipes/ovh-cloud/icon.svg new file mode 100644 index 0000000..14b4933 --- /dev/null +++ b/recipes/ovh-cloud/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/recipes/ovh-cloud/index.js b/recipes/ovh-cloud/index.js new file mode 100644 index 0000000..99219fe --- /dev/null +++ b/recipes/ovh-cloud/index.js @@ -0,0 +1 @@ +module.exports = (Ferdi) => class OVHCloud extends Ferdi {}; diff --git a/recipes/ovh-cloud/package.json b/recipes/ovh-cloud/package.json new file mode 100644 index 0000000..a853f2d --- /dev/null +++ b/recipes/ovh-cloud/package.json @@ -0,0 +1,9 @@ +{ + "id": "OVHCloud", + "name": "OVH Cloud", + "version": "1.0.0", + "license": "MIT", + "config": { + "serviceURL": "https://www.ovh.com/auth" + } +} diff --git a/recipes/ovh-cloud/service.css b/recipes/ovh-cloud/service.css new file mode 100644 index 0000000..38dcab0 --- /dev/null +++ b/recipes/ovh-cloud/service.css @@ -0,0 +1 @@ +/* Insert custom styles you want to insert here */ \ No newline at end of file diff --git a/recipes/ovh-cloud/webview.js b/recipes/ovh-cloud/webview.js new file mode 100644 index 0000000..ee7d8aa --- /dev/null +++ b/recipes/ovh-cloud/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 ovh-cloud 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