diff options
author | André Oliveira <37463445+SpecialAro@users.noreply.github.com> | 2023-10-19 01:23:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-19 01:23:01 +0100 |
commit | 5438c4606943d02c3286af727d3b483a9a290768 (patch) | |
tree | d497f332ed74b38c0e190e35eef1faa7ac42ba10 /recipes/strava | |
parent | Instagram fix (#1403) (#443) (diff) | |
download | ferdium-recipes-5438c4606943d02c3286af727d3b483a9a290768.tar.gz ferdium-recipes-5438c4606943d02c3286af727d3b483a9a290768.tar.zst ferdium-recipes-5438c4606943d02c3286af727d3b483a9a290768.zip |
Add multiple recipes (#444)
Diffstat (limited to 'recipes/strava')
-rw-r--r-- | recipes/strava/icon.svg | 1 | ||||
-rw-r--r-- | recipes/strava/index.js | 1 | ||||
-rw-r--r-- | recipes/strava/package.json | 9 | ||||
-rw-r--r-- | recipes/strava/webview.js | 16 |
4 files changed, 27 insertions, 0 deletions
diff --git a/recipes/strava/icon.svg b/recipes/strava/icon.svg new file mode 100644 index 0000000..cefb62e --- /dev/null +++ b/recipes/strava/icon.svg | |||
@@ -0,0 +1 @@ | |||
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64"><path d="M41.03 47.852l-5.572-10.976h-8.172L41.03 64l13.736-27.124h-8.18" fill="#f9b797"/><path d="M27.898 21.944l7.564 14.928h11.124L27.898 0 9.234 36.876H20.35" fill="#f05222"/></svg> \ No newline at end of file | |||
diff --git a/recipes/strava/index.js b/recipes/strava/index.js new file mode 100644 index 0000000..dd41f72 --- /dev/null +++ b/recipes/strava/index.js | |||
@@ -0,0 +1 @@ | |||
module.exports = Ferdium => Ferdium; | |||
diff --git a/recipes/strava/package.json b/recipes/strava/package.json new file mode 100644 index 0000000..aa9f09e --- /dev/null +++ b/recipes/strava/package.json | |||
@@ -0,0 +1,9 @@ | |||
1 | { | ||
2 | "id": "strava", | ||
3 | "name": "Strava", | ||
4 | "version": "1.0.0", | ||
5 | "license": "MIT", | ||
6 | "config": { | ||
7 | "serviceURL": "https://www.strava.com/" | ||
8 | } | ||
9 | } | ||
diff --git a/recipes/strava/webview.js b/recipes/strava/webview.js new file mode 100644 index 0000000..2a81dec --- /dev/null +++ b/recipes/strava/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 | }; | ||