diff options
author | 2023-07-26 06:29:03 -0600 | |
---|---|---|
committer | 2023-07-26 17:59:03 +0530 | |
commit | 9b8f01716774a960073e944823ab727cc867a8f6 (patch) | |
tree | 732b83770baa78f5cf12776aaa33ce65bebfa418 /recipes/google-podcasts | |
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/google-podcasts')
-rw-r--r-- | recipes/google-podcasts/icon.svg | 1 | ||||
-rw-r--r-- | recipes/google-podcasts/index.js | 1 | ||||
-rw-r--r-- | recipes/google-podcasts/package.json | 9 | ||||
-rw-r--r-- | recipes/google-podcasts/webview.js | 16 |
4 files changed, 27 insertions, 0 deletions
diff --git a/recipes/google-podcasts/icon.svg b/recipes/google-podcasts/icon.svg new file mode 100644 index 0000000..f1da8b9 --- /dev/null +++ b/recipes/google-podcasts/icon.svg | |||
@@ -0,0 +1 @@ | |||
<svg width="400" height="400" xmlns="http://www.w3.org/2000/svg"><g stroke-linecap="round" stroke-width="48.5"><path d="M24.26 186.32v27.351" stroke="#0066d9"/><path d="M375.74 186.32v27.351" stroke="#4285f4"/><path d="M112.13 104.27v89.46m0 74.645v27.351" stroke="#ea4335"/><path d="M287.87 206.26v89.46m0-191.46v27.351" stroke="#34a853"/><path d="M200 127.06v145.87m0-248.68v27.351m0 296.78v27.351" stroke="#fab908"/></g></svg> \ No newline at end of file | |||
diff --git a/recipes/google-podcasts/index.js b/recipes/google-podcasts/index.js new file mode 100644 index 0000000..dd41f72 --- /dev/null +++ b/recipes/google-podcasts/index.js | |||
@@ -0,0 +1 @@ | |||
module.exports = Ferdium => Ferdium; | |||
diff --git a/recipes/google-podcasts/package.json b/recipes/google-podcasts/package.json new file mode 100644 index 0000000..91258da --- /dev/null +++ b/recipes/google-podcasts/package.json | |||
@@ -0,0 +1,9 @@ | |||
1 | { | ||
2 | "id": "google-podcasts", | ||
3 | "name": "Google Podcasts", | ||
4 | "version": "1.4.0", | ||
5 | "license": "MIT", | ||
6 | "config": { | ||
7 | "serviceURL": "https://podcasts.google.com/u/0/" | ||
8 | } | ||
9 | } | ||
diff --git a/recipes/google-podcasts/webview.js b/recipes/google-podcasts/webview.js new file mode 100644 index 0000000..2a81dec --- /dev/null +++ b/recipes/google-podcasts/webview.js | |||
@@ -0,0 +1,16 @@ | |||
1 | function _interopRequireDefault(obj) { | ||
2 | return obj && obj.__esModule ? obj : { default: obj }; | ||
3 | } | ||
4 | |||
5 | const _path = _interopRequireDefault(require('path')); | ||
6 | |||
7 | module.exports = Ferdium => { | ||
8 | // TODO: If your SNAME service has unread messages, uncomment these lines to implement the logic for updating the badges | ||
9 | // const getMessages = () => { | ||
10 | // // TODO: Insert your notification-finding code here | ||
11 | // Ferdium.setBadge(0, 0); | ||
12 | // }; | ||
13 | // Ferdium.loop(getMessages); | ||
14 | |||
15 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); | ||
16 | }; | ||