diff options
author | 2023-07-26 06:29:03 -0600 | |
---|---|---|
committer | 2023-07-26 17:59:03 +0530 | |
commit | 9b8f01716774a960073e944823ab727cc867a8f6 (patch) | |
tree | 732b83770baa78f5cf12776aaa33ce65bebfa418 /recipes/googledrive | |
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/googledrive')
-rw-r--r-- | recipes/googledrive/icon.svg | 1 | ||||
-rw-r--r-- | recipes/googledrive/index.js | 1 | ||||
-rw-r--r-- | recipes/googledrive/package.json | 11 | ||||
-rw-r--r-- | recipes/googledrive/service.css | 5 | ||||
-rw-r--r-- | recipes/googledrive/webview-unsafe.js | 16 | ||||
-rw-r--r-- | recipes/googledrive/webview.js | 8 |
6 files changed, 0 insertions, 42 deletions
diff --git a/recipes/googledrive/icon.svg b/recipes/googledrive/icon.svg deleted file mode 100644 index c430a62..0000000 --- a/recipes/googledrive/icon.svg +++ /dev/null | |||
@@ -1 +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/googledrive/index.js b/recipes/googledrive/index.js deleted file mode 100644 index dd41f72..0000000 --- a/recipes/googledrive/index.js +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | module.exports = Ferdium => Ferdium; | ||
diff --git a/recipes/googledrive/package.json b/recipes/googledrive/package.json deleted file mode 100644 index 5dd53a6..0000000 --- a/recipes/googledrive/package.json +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | { | ||
2 | "id": "googledrive", | ||
3 | "name": "Google Drive", | ||
4 | "version": "2.2.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/googledrive/service.css b/recipes/googledrive/service.css deleted file mode 100644 index 2d8c1a6..0000000 --- a/recipes/googledrive/service.css +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | .app-wrapper-web .app { | ||
2 | width: 100% !important; | ||
3 | height: 100% !important; | ||
4 | top: 0 !important; | ||
5 | } | ||
diff --git a/recipes/googledrive/webview-unsafe.js b/recipes/googledrive/webview-unsafe.js deleted file mode 100644 index 9198ac5..0000000 --- a/recipes/googledrive/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/googledrive/webview.js b/recipes/googledrive/webview.js deleted file mode 100644 index aba811f..0000000 --- a/recipes/googledrive/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 | }; | ||