aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/google-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/google-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/google-drive')
-rw-r--r--recipes/google-drive/icon.svg1
-rw-r--r--recipes/google-drive/index.js1
-rw-r--r--recipes/google-drive/package.json11
-rw-r--r--recipes/google-drive/service.css5
-rw-r--r--recipes/google-drive/webview-unsafe.js16
-rw-r--r--recipes/google-drive/webview.js10
6 files changed, 44 insertions, 0 deletions
diff --git a/recipes/google-drive/icon.svg b/recipes/google-drive/icon.svg
new file mode 100644
index 0000000..c430a62
--- /dev/null
+++ b/recipes/google-drive/icon.svg
@@ -0,0 +1 @@
<?xml version="1.0" ?><!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'><svg enable-background="new 0 0 128 128" id="Social_Icons" version="1.1" viewBox="0 0 128 128" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="_x33__stroke"><g id="Google_Drive"><rect clip-rule="evenodd" fill="none" fill-rule="evenodd" height="128" width="128"/><g id="Google_Drive_1_"><polygon clip-rule="evenodd" fill="#3777E3" fill-rule="evenodd" points="21.335,120 42.666,82.667 128,82.667 106.666,120 "/><polygon clip-rule="evenodd" fill="#FFCF63" fill-rule="evenodd" points="85.335,82.667 128,82.667 85.335,8 42.666,8 "/><polygon clip-rule="evenodd" fill="#11A861" fill-rule="evenodd" points="0,82.667 21.335,120 64,45.333 42.666,8 "/></g></g></g></svg>
diff --git a/recipes/google-drive/index.js b/recipes/google-drive/index.js
new file mode 100644
index 0000000..dd41f72
--- /dev/null
+++ b/recipes/google-drive/index.js
@@ -0,0 +1 @@
module.exports = Ferdium => Ferdium;
diff --git a/recipes/google-drive/package.json b/recipes/google-drive/package.json
new file mode 100644
index 0000000..e9b328d
--- /dev/null
+++ b/recipes/google-drive/package.json
@@ -0,0 +1,11 @@
1{
2 "id": "google-drive",
3 "name": "Google Drive",
4 "version": "2.3.0",
5 "repository": "https://github.com/BrianGilbert/franz-recipe-tawk",
6 "license": "MIT",
7 "config": {
8 "serviceURL": "https://drive.google.com/drive/my-drive",
9 "hasNotificationSound": true
10 }
11}
diff --git a/recipes/google-drive/service.css b/recipes/google-drive/service.css
new file mode 100644
index 0000000..2d8c1a6
--- /dev/null
+++ b/recipes/google-drive/service.css
@@ -0,0 +1,5 @@
1.app-wrapper-web .app {
2 width: 100% !important;
3 height: 100% !important;
4 top: 0 !important;
5}
diff --git a/recipes/google-drive/webview-unsafe.js b/recipes/google-drive/webview-unsafe.js
new file mode 100644
index 0000000..9198ac5
--- /dev/null
+++ b/recipes/google-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/google-drive/webview.js b/recipes/google-drive/webview.js
new file mode 100644
index 0000000..c27c226
--- /dev/null
+++ b/recipes/google-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};