aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/proton-drive
diff options
context:
space:
mode:
authorLibravatar MCMXC <16797721+mcmxcdev@users.noreply.github.com>2023-07-26 06:29:03 -0600
committerLibravatar GitHub <noreply@github.com>2023-07-26 17:59:03 +0530
commit9b8f01716774a960073e944823ab727cc867a8f6 (patch)
tree732b83770baa78f5cf12776aaa33ce65bebfa418 /recipes/proton-drive
parentAdd Excalidraw recipe (#393) (diff)
downloadferdium-recipes-9b8f01716774a960073e944823ab727cc867a8f6.tar.gz
ferdium-recipes-9b8f01716774a960073e944823ab727cc867a8f6.tar.zst
ferdium-recipes-9b8f01716774a960073e944823ab727cc867a8f6.zip
chore: improve lint setup (#397)
- update eslint config to closely mirror the ones from ferdium-app - add .eslintignore - opt in to eslint `reportUnusedDisableDirectives` config option - remove `trailingComma: all` from `prettier` config which is default in `prettier` v3 - autofix or disable a lot of lint issues throughout codebase - add `volta` configuration to `package.json` to autoload correct `node` and `pnpm` versions - upgrade all `eslint` and `prettier` related dependencies to latest - update lint:fix npm script - reformat touched files with prettier - bumped up minor version for all recipes that have changes - introduced injection of 'service.css' where it was missing in many recipes --------- Co-authored-by: Vijay A <vraravam@users.noreply.github.com>
Diffstat (limited to 'recipes/proton-drive')
-rwxr-xr-xrecipes/proton-drive/icon.svg176
-rwxr-xr-xrecipes/proton-drive/index.js1
-rwxr-xr-xrecipes/proton-drive/package.json9
-rwxr-xr-xrecipes/proton-drive/webview-unsafe.js16
-rwxr-xr-xrecipes/proton-drive/webview.js10
5 files changed, 212 insertions, 0 deletions
diff --git a/recipes/proton-drive/icon.svg b/recipes/proton-drive/icon.svg
new file mode 100755
index 0000000..1709ff1
--- /dev/null
+++ b/recipes/proton-drive/icon.svg
@@ -0,0 +1,176 @@
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<svg
3 viewBox="0 0 36.054688 36"
4 width="142"
5 height="141.78462"
6 fill="none"
7 class="logo with-wordmark"
8 aria-labelledby="logo-14-title"
9 version="1.1"
10 id="svg53"
11 sodipodi:docname="icon.svg"
12 inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
13 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
14 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
15 xmlns="http://www.w3.org/2000/svg"
16 xmlns:svg="http://www.w3.org/2000/svg">
17 <sodipodi:namedview
18 id="namedview55"
19 pagecolor="#505050"
20 bordercolor="#eeeeee"
21 borderopacity="1"
22 inkscape:showpageshadow="0"
23 inkscape:pageopacity="0"
24 inkscape:pagecheckerboard="0"
25 inkscape:deskcolor="#505050"
26 showgrid="false"
27 inkscape:zoom="4.3737652"
28 inkscape:cx="67.561926"
29 inkscape:cy="69.048059"
30 inkscape:window-width="1856"
31 inkscape:window-height="1043"
32 inkscape:window-x="64"
33 inkscape:window-y="0"
34 inkscape:window-maximized="1"
35 inkscape:current-layer="svg53" />
36 <defs
37 id="defs50">
38 <linearGradient
39 id="logo-14-a"
40 x1="23.450001"
41 x2="18.57"
42 y1="18.09"
43 y2="-2.77"
44 gradientUnits="userSpaceOnUse">
45 <stop
46 stop-color="#E2DBFF"
47 id="stop16" />
48 <stop
49 offset="1"
50 stop-color="#6D4AFF"
51 id="stop18" />
52 </linearGradient>
53 <linearGradient
54 id="logo-14-b"
55 x1="35.25"
56 x2="18.57"
57 y1="38.169998"
58 y2="2.55"
59 gradientUnits="userSpaceOnUse">
60 <stop
61 offset=".27"
62 stop-color="#E2DBFF"
63 id="stop21" />
64 <stop
65 offset="1"
66 stop-color="#6D4AFF"
67 id="stop23" />
68 </linearGradient>
69 <linearGradient
70 id="paint1_linear_213_165"
71 x1="394.34399"
72 y1="328.811"
73 x2="176.76601"
74 y2="28.745399"
75 gradientUnits="userSpaceOnUse"
76 gradientTransform="matrix(0.0977312,0,0,0.0977312,-8.9763659,-9.0135482)">
77 <stop
78 stop-color="#BFE8FF"
79 id="stop886" />
80 <stop
81 offset="0.3075"
82 stop-color="#BFACFF"
83 id="stop888" />
84 <stop
85 offset="1"
86 stop-color="#7348FF"
87 id="stop890" />
88 </linearGradient>
89 <radialGradient
90 id="paint0_radial_213_165"
91 cx="0"
92 cy="0"
93 r="1"
94 gradientUnits="userSpaceOnUse"
95 gradientTransform="matrix(-16.956227,45.542823,-60.688746,-22.595265,24.156758,-10.482047)">
96 <stop
97 offset="0.5561"
98 stop-color="#07B9FF"
99 stop-opacity="0"
100 id="stop881" />
101 <stop
102 offset="0.9944"
103 stop-color="#07B9FF"
104 id="stop883" />
105 </radialGradient>
106 <linearGradient
107 id="paint2_linear_5497_105462"
108 x1="-15"
109 y1="84"
110 x2="420"
111 y2="562"
112 gradientUnits="userSpaceOnUse"
113 gradientTransform="matrix(0.09905857,0,0,0.09905857,-9.1379282,-9.3117002)">
114 <stop
115 stop-color="#6D4AFF"
116 id="stop1557" />
117 <stop
118 offset="0.35934"
119 stop-color="#AE8CFF"
120 id="stop1559" />
121 <stop
122 offset="1"
123 stop-color="#F8CCFF"
124 id="stop1561" />
125 </linearGradient>
126 <radialGradient
127 id="paint1_radial_5497_105462"
128 cx="0"
129 cy="0"
130 r="1"
131 gradientUnits="userSpaceOnUse"
132 gradientTransform="matrix(-21.850878,44.650525,-69.466344,-33.995137,29.256085,-8.7418043)">
133 <stop
134 offset="0.556057"
135 stop-color="#FF62C0"
136 stop-opacity="0"
137 id="stop1552" />
138 <stop
139 offset="0.994421"
140 stop-color="#FF62C0"
141 id="stop1554" />
142 </radialGradient>
143 <linearGradient
144 id="paint0_linear_5497_105462"
145 x1="276.25"
146 y1="-13.7704"
147 x2="303.22"
148 y2="365.77499"
149 gradientUnits="userSpaceOnUse"
150 gradientTransform="matrix(0.09905857,0,0,0.09905857,-9.1379282,-9.3117002)">
151 <stop
152 offset="0.988738"
153 stop-color="#6D4AFF"
154 id="stop1549" />
155 </linearGradient>
156 </defs>
157 <title
158 id="logo-14-title">Proton Mail</title>
159 <path
160 d="M 0.96604661,28.726792 V 7.3301402 c 0,-1.9694833 1.59662609,-3.5661092 3.56610869,-3.5661092 h 6.6878407 c 0.674887,0 1.332041,0.2153534 1.875972,0.6146581 l 2.238327,1.643382 c 0.543931,0.3993056 1.201085,0.6146581 1.875971,0.6146581 h 14.662056 c 1.969482,0 3.566109,1.5966265 3.566109,3.5661088 v 18.523954 c 0,1.969482 -1.596627,3.566109 -3.566109,3.566109 H 4.5321553 c -1.9694826,0 -3.56610869,-1.596627 -3.56610869,-3.566109 z"
161 fill="url(#paint0_linear_5497_105462)"
162 id="path1543"
163 style="fill:url(#paint0_linear_5497_105462);stroke-width:0.0990582" />
164 <path
165 d="M 0.96604661,28.726792 V 7.3301402 c 0,-1.9694833 1.59662609,-3.5661092 3.56610869,-3.5661092 h 6.6878407 c 0.674887,0 1.332041,0.2153534 1.875972,0.6146581 l 2.238327,1.643382 c 0.543931,0.3993056 1.201085,0.6146581 1.875971,0.6146581 h 14.662056 c 1.969482,0 3.566109,1.5966265 3.566109,3.5661088 v 18.523954 c 0,1.969482 -1.596627,3.566109 -3.566109,3.566109 H 4.5321553 c -1.9694826,0 -3.56610869,-1.596627 -3.56610869,-3.566109 z"
166 fill="url(#paint1_radial_5497_105462)"
167 id="path1545"
168 style="fill:url(#paint1_radial_5497_105462);stroke-width:0.0990582" />
169 <path
170 fill-rule="evenodd"
171 clip-rule="evenodd"
172 d="m 17.210266,6.6367292 h 14.662056 c 1.969482,0 3.566109,1.5965272 3.566109,3.5661088 v 18.523954 c 0,1.969581 -1.596627,3.566109 -3.566109,3.566109 H 28.108096 V 13.685936 c 0,-1.538083 -1.251605,-2.782457 -2.789589,-2.77364 l -13.502674,0.07776 c -0.581474,0.0034 -1.149376,-0.176027 -1.623372,-0.513023 L 7.1855383,8.3387545 C 6.7160996,8.0048275 6.1542394,7.8254323 5.5781147,7.8254323 H 0.96604661 V 7.3301402 c 0,-1.969582 1.59662609,-3.5661092 3.56610869,-3.5661092 h 6.6878407 c 0.674887,0 1.332041,0.2153534 1.875972,0.6146581 l 2.238327,1.643382 c 0.543931,0.3993056 1.201085,0.6146581 1.875971,0.6146581 z"
173 fill="url(#paint2_linear_5497_105462)"
174 id="path1547"
175 style="fill:url(#paint2_linear_5497_105462);stroke-width:0.0990582" />
176</svg>
diff --git a/recipes/proton-drive/index.js b/recipes/proton-drive/index.js
new file mode 100755
index 0000000..dd41f72
--- /dev/null
+++ b/recipes/proton-drive/index.js
@@ -0,0 +1 @@
module.exports = Ferdium => Ferdium;
diff --git a/recipes/proton-drive/package.json b/recipes/proton-drive/package.json
new file mode 100755
index 0000000..54ea8f4
--- /dev/null
+++ b/recipes/proton-drive/package.json
@@ -0,0 +1,9 @@
1{
2 "id": "proton-drive",
3 "name": "Proton Drive",
4 "version": "1.1.0",
5 "license": "MIT",
6 "config": {
7 "serviceURL": "https://drive.proton.me"
8 }
9}
diff --git a/recipes/proton-drive/webview-unsafe.js b/recipes/proton-drive/webview-unsafe.js
new file mode 100755
index 0000000..9198ac5
--- /dev/null
+++ b/recipes/proton-drive/webview-unsafe.js
@@ -0,0 +1,16 @@
1const notImplemented = () => {
2 console.warn('chrome.runtime is not implemented');
3};
4
5window.chrome = {
6 runtime: {
7 connect: () => ({
8 onMessage: {
9 addListener: notImplemented,
10 removeListener: notImplemented,
11 },
12 postMessage: notImplemented,
13 disconnect: notImplemented,
14 }),
15 },
16};
diff --git a/recipes/proton-drive/webview.js b/recipes/proton-drive/webview.js
new file mode 100755
index 0000000..c27c226
--- /dev/null
+++ b/recipes/proton-drive/webview.js
@@ -0,0 +1,10 @@
1function _interopRequireDefault(obj) {
2 return obj && obj.__esModule ? obj : { default: obj };
3}
4
5const _path = _interopRequireDefault(require('path'));
6
7module.exports = Ferdium => {
8 Ferdium.injectCSS(_path.default.join(__dirname, 'service.css'));
9 Ferdium.injectJSUnsafe(_path.default.join(__dirname, 'webview-unsafe.js'));
10};