diff options
author | 2023-07-26 06:29:03 -0600 | |
---|---|---|
committer | 2023-07-26 17:59:03 +0530 | |
commit | 9b8f01716774a960073e944823ab727cc867a8f6 (patch) | |
tree | 732b83770baa78f5cf12776aaa33ce65bebfa418 /recipes/jitsi | |
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/jitsi')
-rw-r--r-- | recipes/jitsi/index.js | 13 | ||||
-rw-r--r-- | recipes/jitsi/package.json | 2 | ||||
-rw-r--r-- | recipes/jitsi/webview.js | 8 |
3 files changed, 17 insertions, 6 deletions
diff --git a/recipes/jitsi/index.js b/recipes/jitsi/index.js index 5f22c17..7b8486c 100644 --- a/recipes/jitsi/index.js +++ b/recipes/jitsi/index.js | |||
@@ -1,5 +1,8 @@ | |||
1 | module.exports = Ferdium => class Jitsi extends Ferdium { | 1 | module.exports = Ferdium => |
2 | overrideUserAgent() { | 2 | class Jitsi extends Ferdium { |
3 | return window.navigator.userAgent.replace(/(Ferdium|Electron)\/\S+ \([^)]+\)/g, '').trim(); | 3 | overrideUserAgent() { |
4 | } | 4 | return window.navigator.userAgent |
5 | }; | 5 | .replaceAll(/(Ferdium|Electron)\/\S+ \([^)]+\)/g, '') |
6 | .trim(); | ||
7 | } | ||
8 | }; | ||
diff --git a/recipes/jitsi/package.json b/recipes/jitsi/package.json index 0e4cf90..4842791 100644 --- a/recipes/jitsi/package.json +++ b/recipes/jitsi/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "jitsi", | 2 | "id": "jitsi", |
3 | "name": "Jitsi Meet", | 3 | "name": "Jitsi Meet", |
4 | "version": "1.2.0", | 4 | "version": "1.3.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "repository": "https://github.com/sampathBlam/ferdi-jitsi", | 6 | "repository": "https://github.com/sampathBlam/ferdi-jitsi", |
7 | "config": { | 7 | "config": { |
diff --git a/recipes/jitsi/webview.js b/recipes/jitsi/webview.js index 6e0e1e9..847624e 100644 --- a/recipes/jitsi/webview.js +++ b/recipes/jitsi/webview.js | |||
@@ -1,3 +1,9 @@ | |||
1 | function _interopRequireDefault(obj) { | ||
2 | return obj && obj.__esModule ? obj : { default: obj }; | ||
3 | } | ||
4 | |||
5 | const _path = _interopRequireDefault(require('path')); | ||
6 | |||
1 | const NOTIFICATION_BADGE_CLASS = '.badge-round'; | 7 | const NOTIFICATION_BADGE_CLASS = '.badge-round'; |
2 | 8 | ||
3 | module.exports = Ferdium => { | 9 | module.exports = Ferdium => { |
@@ -12,4 +18,6 @@ module.exports = Ferdium => { | |||
12 | }; | 18 | }; |
13 | 19 | ||
14 | Ferdium.loop(getMessages); | 20 | Ferdium.loop(getMessages); |
21 | |||
22 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); | ||
15 | }; | 23 | }; |