aboutsummaryrefslogtreecommitdiffstats
path: root/recipes
diff options
context:
space:
mode:
authorLibravatar Adinda Praditya <apraditya@gmail.com>2022-11-10 21:57:29 +0700
committerLibravatar GitHub <noreply@github.com>2022-11-10 14:57:29 +0000
commit5d1e571a16d9b16d2b90c66041b94bf238d9793b (patch)
tree6acdc5102fb44b712987e64a020ea4c0c1af7720 /recipes
parentAdded 'webview.js' as a mandatory file and fixed broken recipes (diff)
downloadferdium-recipes-5d1e571a16d9b16d2b90c66041b94bf238d9793b.tar.gz
ferdium-recipes-5d1e571a16d9b16d2b90c66041b94bf238d9793b.tar.zst
ferdium-recipes-5d1e571a16d9b16d2b90c66041b94bf238d9793b.zip
Add new recipe: PocketCasts (#226)
Diffstat (limited to 'recipes')
-rw-r--r--recipes/pocketcasts/icon.svg16
-rw-r--r--recipes/pocketcasts/index.js1
-rw-r--r--recipes/pocketcasts/package.json9
-rw-r--r--recipes/pocketcasts/webview.js16
4 files changed, 42 insertions, 0 deletions
diff --git a/recipes/pocketcasts/icon.svg b/recipes/pocketcasts/icon.svg
new file mode 100644
index 0000000..7ed9ca4
--- /dev/null
+++ b/recipes/pocketcasts/icon.svg
@@ -0,0 +1,16 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3 <!-- Generator: Sketch 52.2 (67145) - http://www.bohemiancoding.com/sketch -->
4 <title>Logo/Red Roundel</title>
5 <desc>Created with Sketch.</desc>
6 <g id="Logo/Red-Roundel" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
7 <g id="Pocket-Casts-Roundel---Red">
8 <g id="Group">
9 <path d="M54,27 C54,41.912 41.912,54 27,54 C12.088,54 0,41.912 0,27 C0,12.088 12.088,0 27,0 C41.912,0 54,12.088 54,27" id="Fill-23" fill="#F43E37"></path>
10 <g id="Glyph" transform="translate(6.000000, 6.000000)" fill="#FFFFFF">
11 <path d="M0,21 C0,9.40202025 9.40202025,0 21,0 C32.5979797,0 42,9.40202025 42,21 L36.75,21 C36.75,12.3015152 29.6984848,5.25 21,5.25 C12.3015152,5.25 5.25,12.3015152 5.25,21 C5.25,29.6984848 12.3015152,36.75 21,36.75 L21,42 C9.40202025,42 0,32.5979797 0,21 Z M21,33.6 C14.0412122,33.6 8.4,27.9587878 8.4,21 C8.4,14.0412122 14.0412122,8.4 21,8.4 C27.9587878,8.4 33.6,14.0412122 33.6,21 L29.0181818,21 C29.0181818,16.5716805 25.4283195,12.9818182 21,12.9818182 C16.5716805,12.9818182 12.9818182,16.5716805 12.9818182,21 C12.9818182,25.4283195 16.5716805,29.0181818 21,29.0181818 L21,33.6 Z" id="Path"></path>
12 </g>
13 </g>
14 </g>
15 </g>
16</svg> \ No newline at end of file
diff --git a/recipes/pocketcasts/index.js b/recipes/pocketcasts/index.js
new file mode 100644
index 0000000..dd41f72
--- /dev/null
+++ b/recipes/pocketcasts/index.js
@@ -0,0 +1 @@
module.exports = Ferdium => Ferdium;
diff --git a/recipes/pocketcasts/package.json b/recipes/pocketcasts/package.json
new file mode 100644
index 0000000..7cb2be2
--- /dev/null
+++ b/recipes/pocketcasts/package.json
@@ -0,0 +1,9 @@
1{
2 "id": "pocketcasts",
3 "name": "PocketCasts",
4 "version": "1.0.0",
5 "license": "MIT",
6 "config": {
7 "serviceURL": "https://play.pocketcasts.com/user/login"
8 }
9}
diff --git a/recipes/pocketcasts/webview.js b/recipes/pocketcasts/webview.js
new file mode 100644
index 0000000..5c033a2
--- /dev/null
+++ b/recipes/pocketcasts/webview.js
@@ -0,0 +1,16 @@
1const _path = _interopRequireDefault(require('path'));
2
3function _interopRequireDefault(obj) {
4 return obj && obj.__esModule ? obj : { default: obj };
5}
6
7module.exports = Ferdium => {
8 // TODO: If your Pocket Casts 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};