diff options
author | Maitre_Oda <oda.alexandre31@gmail.com> | 2021-08-28 13:05:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-28 16:35:52 +0530 |
commit | 95c3365e63e4772013d97ca09a88d7ddcf7c4b44 (patch) | |
tree | dee4063ce56728b1e91dac61fb83eb7e13a6b0e0 /recipes/bitwarden | |
parent | New recipe: google-translate (#642) (diff) | |
download | ferdium-recipes-95c3365e63e4772013d97ca09a88d7ddcf7c4b44.tar.gz ferdium-recipes-95c3365e63e4772013d97ca09a88d7ddcf7c4b44.tar.zst ferdium-recipes-95c3365e63e4772013d97ca09a88d7ddcf7c4b44.zip |
New recipe: bitwarden (#647)
Co-authored-by: Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>
Diffstat (limited to 'recipes/bitwarden')
-rw-r--r-- | recipes/bitwarden/LICENSE | 21 | ||||
-rw-r--r-- | recipes/bitwarden/README.md | 2 | ||||
-rw-r--r-- | recipes/bitwarden/icon.svg | 59 | ||||
-rw-r--r-- | recipes/bitwarden/index.js | 2 | ||||
-rw-r--r-- | recipes/bitwarden/package.json | 10 | ||||
-rw-r--r-- | recipes/bitwarden/service.css | 1 | ||||
-rw-r--r-- | recipes/bitwarden/webview.js | 14 |
7 files changed, 109 insertions, 0 deletions
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 @@ | |||
1 | MIT License | ||
2 | |||
3 | Copyright (c) 2020 Vijay Raghavan Aravamudhan | ||
4 | |||
5 | Permission is hereby granted, free of charge, to any person obtaining a copy | ||
6 | of this software and associated documentation files (the "Software"), to deal | ||
7 | in the Software without restriction, including without limitation the rights | ||
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
9 | copies of the Software, and to permit persons to whom the Software is | ||
10 | furnished to do so, subject to the following conditions: | ||
11 | |||
12 | The above copyright notice and this permission notice shall be included in all | ||
13 | copies or substantial portions of the Software. | ||
14 | |||
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
21 | 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 @@ | |||
1 | # bitwarden for Ferdi | ||
2 | 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 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
2 | <!-- Created with Inkscape (http://www.inkscape.org/) --> | ||
3 | |||
4 | <svg | ||
5 | xmlns:dc="http://purl.org/dc/elements/1.1/" | ||
6 | xmlns:cc="http://creativecommons.org/ns#" | ||
7 | xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | ||
8 | xmlns:svg="http://www.w3.org/2000/svg" | ||
9 | xmlns="http://www.w3.org/2000/svg" | ||
10 | xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" | ||
11 | xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" | ||
12 | version="1.1" | ||
13 | id="svg2" | ||
14 | xml:space="preserve" | ||
15 | width="64" | ||
16 | height="64" | ||
17 | viewBox="0 0 64 63.999999" | ||
18 | sodipodi:docname="bitwarden-icon.svg" | ||
19 | inkscape:version="0.92.2 5c3e80d, 2017-08-06"><metadata | ||
20 | id="metadata8"><rdf:RDF><cc:Work | ||
21 | rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type | ||
22 | rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs | ||
23 | id="defs6"><clipPath | ||
24 | clipPathUnits="userSpaceOnUse" | ||
25 | id="clipPath18"><path | ||
26 | d="M 0,1500 H 1500 V 0 H 0 Z" | ||
27 | id="path16" | ||
28 | inkscape:connector-curvature="0" /></clipPath></defs><sodipodi:namedview | ||
29 | pagecolor="#ffffff" | ||
30 | bordercolor="#666666" | ||
31 | borderopacity="1" | ||
32 | objecttolerance="10" | ||
33 | gridtolerance="10" | ||
34 | guidetolerance="10" | ||
35 | inkscape:pageopacity="0" | ||
36 | inkscape:pageshadow="2" | ||
37 | inkscape:window-width="1440" | ||
38 | inkscape:window-height="799" | ||
39 | id="namedview4" | ||
40 | showgrid="false" | ||
41 | fit-margin-top="50" | ||
42 | fit-margin-left="50" | ||
43 | fit-margin-right="50" | ||
44 | fit-margin-bottom="50" | ||
45 | inkscape:zoom="5.3400704" | ||
46 | inkscape:cx="72.883247" | ||
47 | inkscape:cy="23.722997" | ||
48 | inkscape:window-x="0" | ||
49 | inkscape:window-y="1" | ||
50 | inkscape:window-maximized="1" | ||
51 | inkscape:current-layer="g10" /><g | ||
52 | id="g10" | ||
53 | inkscape:groupmode="layer" | ||
54 | inkscape:label="logo-vertical" | ||
55 | transform="matrix(1.3333333,0,0,-1.3333333,31.882666,774.35078)"><path | ||
56 | d="m 20.088053,578.76279 v -24.00016 c 0,-1.79111 -0.34893,-3.56734 -1.046785,-5.32749 -0.698165,-1.76104 -1.562895,-3.32302 -2.593423,-4.68822 -1.031908,-1.36442 -2.261363,-2.69188 -3.687599,-3.98376 -1.427771,-1.29219 -2.745111,-2.36474 -3.9537075,-3.21903 -1.2081373,-0.85369 -2.4685751,-1.66122 -3.7808519,-2.42195 -1.3125864,-0.76028 -2.2452616,-1.27562 -2.7971051,-1.54665 -0.5518437,-0.27117 -0.9947907,-0.47961 -1.3280751,-0.6253 -0.2500014,-0.12451 -0.5211689,-0.18713 -0.8124295,-0.18713 -0.2917201,0 -0.5624267,0.0627 -0.81258076,0.18713 -0.33343844,0.14566 -0.77607884,0.35413 -1.32776984,0.6253 -0.552611,0.27103 -1.4845188,0.78637 -2.7972576,1.54665 -1.3125851,0.76073 -2.5731749,1.56826 -3.7814668,2.42195 -1.2081351,0.85429 -2.5257829,1.92684 -3.9529389,3.21903 -1.427156,1.29188 -2.655998,2.61934 -3.687139,3.98376 -1.031297,1.3652 -1.896026,2.92718 -2.594036,4.68822 -0.69801,1.76015 -1.046939,3.53638 -1.046939,5.32749 v 24.00016 c 0,0.54172 0.198161,1.01088 0.594021,1.40629 0.395556,0.39586 0.864578,0.59402 1.405992,0.59402 h 36.000846 c 0.540954,0 1.009208,-0.19816 1.405377,-0.59402 0.396014,-0.39541 0.593868,-0.86457 0.593868,-1.40629 m -6.000346,-24.00016 v 20.00043 H 0.0880769 v -35.53105 c 2.4786974,1.31259 4.6980372,2.73943 6.6564844,4.281 4.8952787,3.83317 7.3431457,7.58318 7.3431457,11.24962" | ||
57 | style="fill:#3c8dbc;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.15337521" | ||
58 | id="path28" | ||
59 | inkscape:connector-curvature="0" /></g></svg> \ 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 @@ | |||
1 | module.exports = Ferdi => class Bitwarden extends Ferdi { | ||
2 | }; | ||
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 @@ | |||
1 | { | ||
2 | "id": "bitwarden", | ||
3 | "name": "Bitwarden", | ||
4 | "version": "1.0.0", | ||
5 | "license": "MIT", | ||
6 | "config": { | ||
7 | "serviceURL": "https://vault.bitwarden.com", | ||
8 | "hasCustomUrl": true | ||
9 | } | ||
10 | } | ||
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 @@ | |||
1 | var _path = _interopRequireDefault(require('path')); | ||
2 | |||
3 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
4 | |||
5 | module.exports = Ferdi => { | ||
6 | // TODO: If your bitwarden service has unread messages, uncomment these lines to implement the logic for updating the badges | ||
7 | // const getMessages = function getMessages() { | ||
8 | // // TODO: Insert your notification-finding code here | ||
9 | // Ferdi.setBadge(0, 0); | ||
10 | // }; | ||
11 | // Ferdi.loop(getMessages); | ||
12 | |||
13 | Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); | ||
14 | }; | ||