aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/bring
diff options
context:
space:
mode:
authorLibravatar Dennis Heinrich <dennis.heinrich@posteo.de>2023-06-29 03:44:20 +0200
committerLibravatar GitHub <noreply@github.com>2023-06-29 07:14:20 +0530
commit09bec6fec5af85963e2b6705cbad117a201710c1 (patch)
treeb1959c00598d0888d14ad054be4968194c5f778a /recipes/bring
parentadd survfate as a contributor for code (#384) [skip ci] (diff)
downloadferdium-recipes-09bec6fec5af85963e2b6705cbad117a201710c1.tar.gz
ferdium-recipes-09bec6fec5af85963e2b6705cbad117a201710c1.tar.zst
ferdium-recipes-09bec6fec5af85963e2b6705cbad117a201710c1.zip
Implemented the Service: Bring (#382)
Diffstat (limited to 'recipes/bring')
-rw-r--r--recipes/bring/icon.svg6
-rw-r--r--recipes/bring/index.js1
-rw-r--r--recipes/bring/package.json9
-rw-r--r--recipes/bring/webview.js16
4 files changed, 32 insertions, 0 deletions
diff --git a/recipes/bring/icon.svg b/recipes/bring/icon.svg
new file mode 100644
index 0000000..857aa42
--- /dev/null
+++ b/recipes/bring/icon.svg
@@ -0,0 +1,6 @@
1<?xml version="1.0" encoding="utf-8"?>
2<svg viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg">
3 <path d="M 339.368 441.284 C 351.527 435.204 388.06 405.164 404.818 391.524 C 402.26 330.152 399.938 270.291 396.049 208.548 C 394.137 178.183 394.488 146.176 390.202 116.184 C 378.511 113.455 349.331 109.212 329.456 109.212 C 331.404 208.397 339.368 416.496 339.368 441.284 Z" fill="#338A7E" style=""/>
4 <path fill-rule="evenodd" clip-rule="evenodd" d="M 123.74 406.716 C 130.444 411.184 153.693 415.654 222.047 428.792 L 231.89 430.685 C 267.622 437.555 303.14 441.275 339.454 441.275 C 339.454 425.429 335.167 194.556 333.025 81.099 C 330.687 76.423 315.486 53.624 302.04 51.285 C 291.284 49.416 273.784 55.183 266.381 58.301 C 261.704 50.351 255.079 46.025 252.351 44.856 C 238.788 43.921 218.639 51.091 210.26 54.793 C 193.424 68.355 187.266 82.269 186.292 87.531 L 186.292 113.253 C 176.745 113.642 155.542 114.539 147.124 115.007 C 136.601 115.591 135.432 117.344 133.094 122.606 C 131.223 126.814 129.975 155.148 129.585 168.789 C 128.855 188.918 127.63 214.418 126.342 241.2 C 122.697 317.086 118.555 403.259 123.74 406.716 Z M 303.101 77.592 C 299.828 76.657 284.589 77.982 277.38 78.761 C 276.212 79.93 280.887 108.576 281.471 109.159 C 282.056 109.745 308.365 110.328 308.365 108.576 C 308.365 106.821 307.193 78.761 303.101 77.592 Z M 258.097 73.511 C 255.175 77.992 249.329 91.633 249.329 110.339 C 239.195 110.534 216.825 111.158 208.408 112.093 C 208.408 104.299 208.642 88.125 209.577 85.787 C 209.736 85.391 209.851 84.874 209.986 84.278 C 210.837 80.474 212.437 73.352 230.621 72.342 C 251.667 71.173 256.928 71.173 258.097 73.511 Z" fill="white" style=""/>
5 <path d="M 217.171 331.303 C 227.692 318.442 310.704 207.956 311.289 207.372 L 284.398 183.988 L 214.247 276.353 L 176.248 248.293 L 154.034 275.183 L 217.171 331.303 Z" fill="#338A7E" style=""/>
6</svg> \ No newline at end of file
diff --git a/recipes/bring/index.js b/recipes/bring/index.js
new file mode 100644
index 0000000..dd41f72
--- /dev/null
+++ b/recipes/bring/index.js
@@ -0,0 +1 @@
module.exports = Ferdium => Ferdium;
diff --git a/recipes/bring/package.json b/recipes/bring/package.json
new file mode 100644
index 0000000..dc424a6
--- /dev/null
+++ b/recipes/bring/package.json
@@ -0,0 +1,9 @@
1{
2 "id": "bring",
3 "name": "Bring!",
4 "version": "1.0.0",
5 "license": "MIT",
6 "config": {
7 "serviceURL": "https://web.getbring.com"
8 }
9}
diff --git a/recipes/bring/webview.js b/recipes/bring/webview.js
new file mode 100644
index 0000000..52e1cef
--- /dev/null
+++ b/recipes/bring/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 Bring 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};