From 95c3365e63e4772013d97ca09a88d7ddcf7c4b44 Mon Sep 17 00:00:00 2001 From: Maitre_Oda Date: Sat, 28 Aug 2021 13:05:52 +0200 Subject: New recipe: bitwarden (#647) Co-authored-by: Vijay Raghavan Aravamudhan --- recipes/bitwarden/LICENSE | 21 +++++++++++++++ recipes/bitwarden/README.md | 2 ++ recipes/bitwarden/icon.svg | 59 ++++++++++++++++++++++++++++++++++++++++++ recipes/bitwarden/index.js | 2 ++ recipes/bitwarden/package.json | 10 +++++++ recipes/bitwarden/service.css | 1 + recipes/bitwarden/webview.js | 14 ++++++++++ 7 files changed, 109 insertions(+) create mode 100644 recipes/bitwarden/LICENSE create mode 100644 recipes/bitwarden/README.md create mode 100644 recipes/bitwarden/icon.svg create mode 100644 recipes/bitwarden/index.js create mode 100644 recipes/bitwarden/package.json create mode 100644 recipes/bitwarden/service.css create mode 100644 recipes/bitwarden/webview.js (limited to 'recipes') diff --git a/recipes/bitwarden/LICENSE b/recipes/bitwarden/LICENSE new file mode 100644 index 0000000..99d6f23 --- /dev/null +++ b/recipes/bitwarden/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/bitwarden/README.md b/recipes/bitwarden/README.md new file mode 100644 index 0000000..7acd4fc --- /dev/null +++ b/recipes/bitwarden/README.md @@ -0,0 +1,2 @@ +# bitwarden for Ferdi +This is a Ferdi recipe for bitwarden diff --git a/recipes/bitwarden/icon.svg b/recipes/bitwarden/icon.svg new file mode 100644 index 0000000..888e50b --- /dev/null +++ b/recipes/bitwarden/icon.svg @@ -0,0 +1,59 @@ + + + +image/svg+xml \ No newline at end of file diff --git a/recipes/bitwarden/index.js b/recipes/bitwarden/index.js new file mode 100644 index 0000000..a59e581 --- /dev/null +++ b/recipes/bitwarden/index.js @@ -0,0 +1,2 @@ +module.exports = Ferdi => class Bitwarden extends Ferdi { +}; diff --git a/recipes/bitwarden/package.json b/recipes/bitwarden/package.json new file mode 100644 index 0000000..294adf4 --- /dev/null +++ b/recipes/bitwarden/package.json @@ -0,0 +1,10 @@ +{ + "id": "bitwarden", + "name": "Bitwarden", + "version": "1.0.0", + "license": "MIT", + "config": { + "serviceURL": "https://vault.bitwarden.com", + "hasCustomUrl": true + } +} diff --git a/recipes/bitwarden/service.css b/recipes/bitwarden/service.css new file mode 100644 index 0000000..38dcab0 --- /dev/null +++ b/recipes/bitwarden/service.css @@ -0,0 +1 @@ +/* Insert custom styles you want to insert here */ \ No newline at end of file diff --git a/recipes/bitwarden/webview.js b/recipes/bitwarden/webview.js new file mode 100644 index 0000000..3d2e783 --- /dev/null +++ b/recipes/bitwarden/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 bitwarden 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-54-g00ecf