diff options
author | 2023-07-26 06:29:03 -0600 | |
---|---|---|
committer | 2023-07-26 17:59:03 +0530 | |
commit | 9b8f01716774a960073e944823ab727cc867a8f6 (patch) | |
tree | 732b83770baa78f5cf12776aaa33ce65bebfa418 /recipes/protondrive | |
parent | Add Excalidraw recipe (#393) (diff) | |
download | ferdium-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/protondrive')
-rwxr-xr-x | recipes/protondrive/icon.svg | 176 | ||||
-rwxr-xr-x | recipes/protondrive/index.js | 1 | ||||
-rwxr-xr-x | recipes/protondrive/package.json | 9 | ||||
-rwxr-xr-x | recipes/protondrive/webview-unsafe.js | 16 | ||||
-rwxr-xr-x | recipes/protondrive/webview.js | 8 |
5 files changed, 0 insertions, 210 deletions
diff --git a/recipes/protondrive/icon.svg b/recipes/protondrive/icon.svg deleted file mode 100755 index 1709ff1..0000000 --- a/recipes/protondrive/icon.svg +++ /dev/null | |||
@@ -1,176 +0,0 @@ | |||
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/protondrive/index.js b/recipes/protondrive/index.js deleted file mode 100755 index dd41f72..0000000 --- a/recipes/protondrive/index.js +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | module.exports = Ferdium => Ferdium; | ||
diff --git a/recipes/protondrive/package.json b/recipes/protondrive/package.json deleted file mode 100755 index f0da40a..0000000 --- a/recipes/protondrive/package.json +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | { | ||
2 | "id": "protondrive", | ||
3 | "name": "Proton Drive", | ||
4 | "version": "1.0.1", | ||
5 | "license": "MIT", | ||
6 | "config": { | ||
7 | "serviceURL": "https://drive.proton.me" | ||
8 | } | ||
9 | } | ||
diff --git a/recipes/protondrive/webview-unsafe.js b/recipes/protondrive/webview-unsafe.js deleted file mode 100755 index 9198ac5..0000000 --- a/recipes/protondrive/webview-unsafe.js +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | const notImplemented = () => { | ||
2 | console.warn('chrome.runtime is not implemented'); | ||
3 | }; | ||
4 | |||
5 | window.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/protondrive/webview.js b/recipes/protondrive/webview.js deleted file mode 100755 index aba811f..0000000 --- a/recipes/protondrive/webview.js +++ /dev/null | |||
@@ -1,8 +0,0 @@ | |||
1 | const _path = _interopRequireDefault(require('path')); | ||
2 | |||
3 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
4 | |||
5 | module.exports = (Ferdium) => { | ||
6 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); | ||
7 | Ferdium.injectJSUnsafe(_path.default.join(__dirname, 'webview-unsafe.js')); | ||
8 | }; | ||