aboutsummaryrefslogtreecommitdiffstats
path: root/recipes
diff options
context:
space:
mode:
authorLibravatar hayk <haykh.mfs+github@gmail.com>2022-06-22 21:40:14 -0400
committerLibravatar GitHub <noreply@github.com>2022-06-23 01:40:14 +0000
commite118745fc2714047d0844061ed963c47edef3bc1 (patch)
tree09b8480e99fca3c84ff00dbc8660fcf7a8720a18 /recipes
parentAdd fixes for Nextcloud-related webapps (#66) (diff)
downloadferdium-recipes-e118745fc2714047d0844061ed963c47edef3bc1.tar.gz
ferdium-recipes-e118745fc2714047d0844061ed963c47edef3bc1.tar.zst
ferdium-recipes-e118745fc2714047d0844061ed963c47edef3bc1.zip
New recipe 'protondrive' added (#61)
Co-authored-by: Vijay A <vraravam@users.noreply.github.com>
Diffstat (limited to 'recipes')
-rwxr-xr-xrecipes/protondrive/icon.svg20
-rwxr-xr-xrecipes/protondrive/index.js1
-rwxr-xr-xrecipes/protondrive/package.json9
-rwxr-xr-xrecipes/protondrive/webview-unsafe.js16
-rwxr-xr-xrecipes/protondrive/webview.js8
5 files changed, 54 insertions, 0 deletions
diff --git a/recipes/protondrive/icon.svg b/recipes/protondrive/icon.svg
new file mode 100755
index 0000000..6d34d92
--- /dev/null
+++ b/recipes/protondrive/icon.svg
@@ -0,0 +1,20 @@
1<svg width="552" height="552" viewBox="0 0 552 552" fill="none" xmlns="http://www.w3.org/2000/svg">
2<path d="M0 130C0 58.203 58.203 0 130 0H422C493.797 0 552 58.203 552 130V422C552 493.797 493.797 552 422 552H130C58.203 552 0 493.797 0 422V130Z" fill="white"/>
3<path d="M102 384V168C102 148.118 118.118 132 138 132H205.514C212.327 132 218.961 134.174 224.452 138.205L247.048 154.795C252.539 158.826 259.173 161 265.986 161H414C433.882 161 450 177.118 450 197V384C450 403.882 433.882 420 414 420H138C118.118 420 102 403.882 102 384Z" fill="url(#paint0_linear_5497_105462)"/>
4<path d="M102 384V168C102 148.118 118.118 132 138 132H205.514C212.327 132 218.961 134.174 224.452 138.205L247.048 154.795C252.539 158.826 259.173 161 265.986 161H414C433.882 161 450 177.118 450 197V384C450 403.882 433.882 420 414 420H138C118.118 420 102 403.882 102 384Z" fill="url(#paint1_radial_5497_105462)"/>
5<path fill-rule="evenodd" clip-rule="evenodd" d="M265.986 161H414C433.882 161 450 177.117 450 197V384C450 403.883 433.882 420 414 420H376V232.162C376 216.635 363.365 204.073 347.839 204.162L211.529 204.947C205.659 204.982 199.926 203.17 195.141 199.768L164.786 178.182C160.047 174.811 154.375 173 148.559 173H102V168C102 148.117 118.118 132 138 132H205.514C212.327 132 218.961 134.174 224.452 138.205L247.048 154.795C252.539 158.826 259.173 161 265.986 161Z" fill="url(#paint2_linear_5497_105462)"/>
6<defs>
7<linearGradient id="paint0_linear_5497_105462" x1="276.25" y1="-13.7704" x2="303.22" y2="365.775" gradientUnits="userSpaceOnUse">
8<stop offset="0.988738" stop-color="#6D4AFF"/>
9</linearGradient>
10<radialGradient id="paint1_radial_5497_105462" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(387.589 5.75312) rotate(116.076) scale(501.829 780.735)">
11<stop offset="0.556057" stop-color="#FF62C0" stop-opacity="0"/>
12<stop offset="0.994421" stop-color="#FF62C0"/>
13</radialGradient>
14<linearGradient id="paint2_linear_5497_105462" x1="-15" y1="84" x2="420" y2="562" gradientUnits="userSpaceOnUse">
15<stop stop-color="#6D4AFF"/>
16<stop offset="0.35934" stop-color="#AE8CFF"/>
17<stop offset="1" stop-color="#F8CCFF"/>
18</linearGradient>
19</defs>
20</svg>
diff --git a/recipes/protondrive/index.js b/recipes/protondrive/index.js
new file mode 100755
index 0000000..dd41f72
--- /dev/null
+++ b/recipes/protondrive/index.js
@@ -0,0 +1 @@
module.exports = Ferdium => Ferdium;
diff --git a/recipes/protondrive/package.json b/recipes/protondrive/package.json
new file mode 100755
index 0000000..3399600
--- /dev/null
+++ b/recipes/protondrive/package.json
@@ -0,0 +1,9 @@
1{
2 "id": "protondrive",
3 "name": "Proton Drive",
4 "version": "1.0.0",
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
new file mode 100755
index 0000000..9198ac5
--- /dev/null
+++ b/recipes/protondrive/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/protondrive/webview.js b/recipes/protondrive/webview.js
new file mode 100755
index 0000000..aba811f
--- /dev/null
+++ b/recipes/protondrive/webview.js
@@ -0,0 +1,8 @@
1const _path = _interopRequireDefault(require('path'));
2
3function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4
5module.exports = (Ferdium) => {
6 Ferdium.injectCSS(_path.default.join(__dirname, 'service.css'));
7 Ferdium.injectJSUnsafe(_path.default.join(__dirname, 'webview-unsafe.js'));
8};