aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Serene-Arc <33189705+Serene-Arc@users.noreply.github.com>2024-03-30 13:11:01 +1000
committerLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2024-03-30 05:08:25 +0000
commit1e465d75b8c35deaa388c5e4c4b830ee8f8536f9 (patch)
treefca51bbdfa963d0378aea3b60ab3bb5f4aa7c9f5
parentChange bluesky url from staging to prod (diff)
downloadferdium-recipes-1e465d75b8c35deaa388c5e4c4b830ee8f8536f9.tar.gz
ferdium-recipes-1e465d75b8c35deaa388c5e4c4b830ee8f8536f9.tar.zst
ferdium-recipes-1e465d75b8c35deaa388c5e4c4b830ee8f8536f9.zip
Add recipe for Proton Pass
-rw-r--r--recipes/proton-pass/icon.svg55
-rw-r--r--recipes/proton-pass/index.js6
-rw-r--r--recipes/proton-pass/package.json9
-rw-r--r--recipes/proton-pass/webview.js16
4 files changed, 86 insertions, 0 deletions
diff --git a/recipes/proton-pass/icon.svg b/recipes/proton-pass/icon.svg
new file mode 100644
index 0000000..09041f3
--- /dev/null
+++ b/recipes/proton-pass/icon.svg
@@ -0,0 +1,55 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<!-- Generator: Adobe Illustrator 27.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3<svg version="1.1" id="Слой_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="500px" height="500px" viewBox="0 0 500 500" style="enable-background:new 0 0 500 500;" xml:space="preserve">
4<style type="text/css">
5 .st0{clip-path:url(#SVGID_00000160880367675937928300000013114190071515040655_);}
6 .st1{fill:url(#SVGID_00000158020781677298841590000014386279406831169436_);}
7 .st2{fill:url(#SVGID_00000038389245457700614160000015930090567954731184_);}
8 .st3{fill:url(#SVGID_00000074402669088272121800000007567021010918974869_);}
9</style>
10<g>
11 <defs>
12 <rect id="SVGID_1_" width="500" height="500"/>
13 </defs>
14 <clipPath id="SVGID_00000097476224578929584770000017210037084984045718_">
15 <use xlink:href="#SVGID_1_" style="overflow:visible;"/>
16 </clipPath>
17 <g style="clip-path:url(#SVGID_00000097476224578929584770000017210037084984045718_);">
18
19 <radialGradient id="SVGID_00000047755579261974386440000006872451468367864226_" cx="148.4036" cy="350.2411" r="4.717" gradientTransform="matrix(46.7033 -75.1155 -117.4926 -73.0513 34370.6797 37242.4727)" gradientUnits="userSpaceOnUse">
20 <stop offset="0" style="stop-color:#FFD580"/>
21 <stop offset="9.375000e-02" style="stop-color:#F6C592"/>
22 <stop offset="0.205" style="stop-color:#EBB6A2"/>
23 <stop offset="0.3245" style="stop-color:#DFA5AF"/>
24 <stop offset="0.4288" style="stop-color:#D397BE"/>
25 <stop offset="0.5337" style="stop-color:#C486CB"/>
26 <stop offset="0.6488" style="stop-color:#B578D9"/>
27 <stop offset="0.7713" style="stop-color:#A166E5"/>
28 <stop offset="0.8913" style="stop-color:#8B57F2"/>
29 <stop offset="1" style="stop-color:#704CFF"/>
30 </radialGradient>
31 <path style="fill:url(#SVGID_00000047755579261974386440000006872451468367864226_);" d="M150.4,63.1 c34.9-34.9,52.3-52.3,72.4-58.8c17.7-5.7,36.7-5.7,54.4,0c20.1,6.5,37.5,24,72.4,58.8l87.2,87.1c34.9,34.9,52.3,52.3,58.9,72.4 c5.8,17.7,5.8,36.7,0,54.4c-6.5,20.1-24,37.5-58.9,72.4l-87.2,87.1c-34.9,34.9-52.3,52.3-72.4,58.8c-17.7,5.7-36.7,5.7-54.4,0 c-20.1-6.5-37.5-24-72.4-58.8L134,418.2c-9.9-11.1-14.9-16.7-18.4-23c-3.1-5.6-5.4-11.6-6.8-17.9c-1.6-7.1-1.6-14.5-1.6-29.4 V151.8c0-14.9,0-22.3,1.6-29.4c1.4-6.3,3.7-12.3,6.8-17.9c3.5-6.3,8.5-11.9,18.4-23L150.4,63.1z"/>
32
33 <linearGradient id="SVGID_00000017511077749203986220000003166735930388103090_" gradientUnits="userSpaceOnUse" x1="234.6024" y1="617.7536" x2="331.7387" y2="24.506" gradientTransform="matrix(1 0 0 -1 0 502)">
34 <stop offset="0" style="stop-color:#6D4AFF"/>
35 <stop offset="0.392" style="stop-color:#B39FFB;stop-opacity:0.978"/>
36 <stop offset="1" style="stop-color:#FFE8DB;stop-opacity:0.8"/>
37 </linearGradient>
38 <path style="fill:url(#SVGID_00000017511077749203986220000003166735930388103090_);" d="M150.4,63.1 c34.9-34.9,52.3-52.3,72.4-58.8c17.7-5.7,36.7-5.7,54.4,0c20.1,6.5,37.5,24,72.4,58.8l87.2,87.1c34.9,34.9,52.3,52.3,58.9,72.4 c5.8,17.7,5.8,36.7,0,54.4c-6.5,20.1-24,37.5-58.9,72.4l-87.2,87.1c-34.9,34.9-52.3,52.3-72.4,58.8c-17.7,5.7-36.7,5.7-54.4,0 c-20.1-6.5-37.5-24-72.4-58.8L134,418.2c-9.9-11.1-14.9-16.7-18.4-23c-3.1-5.6-5.4-11.6-6.8-17.9c-1.6-7.1-1.6-14.5-1.6-29.4 V151.8c0-14.9,0-22.3,1.6-29.4c1.4-6.3,3.7-12.3,6.8-17.9c3.5-6.3,8.5-11.9,18.4-23L150.4,63.1z"/>
39
40 <radialGradient id="SVGID_00000089555210451034675070000005649055941905357209_" cx="148.0355" cy="350.4669" r="4.717" gradientTransform="matrix(37.5657 -60.419 -94.5046 -58.7585 27673.916 29995.748)" gradientUnits="userSpaceOnUse">
41 <stop offset="0" style="stop-color:#FFD580"/>
42 <stop offset="9.375000e-02" style="stop-color:#F6C592"/>
43 <stop offset="0.205" style="stop-color:#EBB6A2"/>
44 <stop offset="0.3245" style="stop-color:#DFA5AF"/>
45 <stop offset="0.4288" style="stop-color:#D397BE"/>
46 <stop offset="0.5337" style="stop-color:#C486CB"/>
47 <stop offset="0.6488" style="stop-color:#B578D9"/>
48 <stop offset="0.7713" style="stop-color:#A166E5"/>
49 <stop offset="0.8913" style="stop-color:#8B57F2"/>
50 <stop offset="1" style="stop-color:#704CFF"/>
51 </radialGradient>
52 <path style="fill:url(#SVGID_00000089555210451034675070000005649055941905357209_);" d="M144.1,69.4 c17.4-17.4,26.2-26.1,36.2-29.4c8.8-2.9,18.4-2.9,27.2,0c10.1,3.3,18.8,12,36.2,29.4l130.8,130.7c17.4,17.4,26.2,26.1,29.4,36.2 c2.9,8.8,2.9,18.4,0,27.2c-3.3,10.1-12,18.8-29.4,36.2L243.8,430.4c-17.4,17.4-26.2,26.1-36.2,29.4c-8.8,2.9-18.4,2.9-27.2,0 c-10.1-3.3-18.8-12-36.2-29.4l-81-80.9c-34.9-34.9-52.3-52.3-58.9-72.4c-5.7-17.7-5.7-36.7,0-54.4c6.5-20.1,24-37.5,58.9-72.4 L144.1,69.4z"/>
53 </g>
54</g>
55</svg> \ No newline at end of file
diff --git a/recipes/proton-pass/index.js b/recipes/proton-pass/index.js
new file mode 100644
index 0000000..3ec88c0
--- /dev/null
+++ b/recipes/proton-pass/index.js
@@ -0,0 +1,6 @@
1module.exports = Ferdium =>
2 class ProtonPass extends Ferdium {
3 overrideUserAgent() {
4 return 'Mozilla/5.0 (X11; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0';
5 }
6 };
diff --git a/recipes/proton-pass/package.json b/recipes/proton-pass/package.json
new file mode 100644
index 0000000..871d62c
--- /dev/null
+++ b/recipes/proton-pass/package.json
@@ -0,0 +1,9 @@
1{
2 "id": "proton-pass",
3 "name": "Proton Pass",
4 "version": "1.0.0",
5 "license": "MIT",
6 "config": {
7 "serviceURL": "https://pass.proton.me/"
8 }
9}
diff --git a/recipes/proton-pass/webview.js b/recipes/proton-pass/webview.js
new file mode 100644
index 0000000..1a4ae0c
--- /dev/null
+++ b/recipes/proton-pass/webview.js
@@ -0,0 +1,16 @@
1function _interopRequireDefault(obj) {
2 return obj && obj.__esModule ? obj : { default: obj };
3}
4
5const _path = _interopRequireDefault(require('path'));
6
7module.exports = Ferdium => {
8 // TODO: If your Proton Pass service has unread messages, uncomment these lines to implement the logic for updating the badges
9 // const getMessages = () => {
10 // // TODO: Insert your notification-finding code here
11 // Ferdium.setBadge(0, 0);
12 // };
13 // Ferdium.loop(getMessages);
14
15 Ferdium.injectCSS(_path.default.join(__dirname, 'service.css'));
16};