diff options
-rw-r--r-- | recipes/pocketcasts/icon.svg | 16 | ||||
-rw-r--r-- | recipes/pocketcasts/index.js | 1 | ||||
-rw-r--r-- | recipes/pocketcasts/package.json | 9 | ||||
-rw-r--r-- | recipes/pocketcasts/webview.js | 16 |
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 @@ | |||
1 | const _path = _interopRequireDefault(require('path')); | ||
2 | |||
3 | function _interopRequireDefault(obj) { | ||
4 | return obj && obj.__esModule ? obj : { default: obj }; | ||
5 | } | ||
6 | |||
7 | module.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 | }; | ||