diff options
author | httpsdalia <82799862+httpsdalia@users.noreply.github.com> | 2023-02-17 00:22:25 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-17 05:22:25 +0000 |
commit | 761da71a160dc6dc10e38cd2e0e05b0cd53ee1d4 (patch) | |
tree | 32a192655f966bc21546ed5bf5fa96ebe35d7da8 | |
parent | docs: add pre-flight checklist (diff) | |
download | ferdium-recipes-761da71a160dc6dc10e38cd2e0e05b0cd53ee1d4.tar.gz ferdium-recipes-761da71a160dc6dc10e38cd2e0e05b0cd53ee1d4.tar.zst ferdium-recipes-761da71a160dc6dc10e38cd2e0e05b0cd53ee1d4.zip |
New Recipe BlueBubbles (#316)
-rw-r--r-- | recipes/BlueBubbles/README.md | 2 | ||||
-rw-r--r-- | recipes/BlueBubbles/icon.svg | 1 | ||||
-rw-r--r-- | recipes/BlueBubbles/index.js | 1 | ||||
-rw-r--r-- | recipes/BlueBubbles/package.json | 9 | ||||
-rw-r--r-- | recipes/BlueBubbles/webview.js | 16 |
5 files changed, 29 insertions, 0 deletions
diff --git a/recipes/BlueBubbles/README.md b/recipes/BlueBubbles/README.md new file mode 100644 index 0000000..76c7ad8 --- /dev/null +++ b/recipes/BlueBubbles/README.md | |||
@@ -0,0 +1,2 @@ | |||
1 | # BlueBubbles for ferdium | ||
2 | This is a ferdium recipe for BlueBubbles | ||
diff --git a/recipes/BlueBubbles/icon.svg b/recipes/BlueBubbles/icon.svg new file mode 100644 index 0000000..366112c --- /dev/null +++ b/recipes/BlueBubbles/icon.svg | |||
@@ -0,0 +1 @@ | |||
<svg id="svg" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="400" height="400" viewBox="0, 0, 400,400"><g id="svgg"><path id="path0" d="M120.005 159.601 C 96.547 164.739,88.461 194.088,105.918 210.729 C 125.533 229.427,157.901 214.449,156.539 187.305 C 155.620 168.988,138.033 155.652,120.005 159.601 M194.727 159.362 C 175.460 162.664,164.192 184.803,172.950 202.148 C 186.211 228.412,225.196 222.370,229.717 193.350 C 232.805 173.533,214.692 155.939,194.727 159.362 M267.969 159.336 C 248.646 162.630,237.761 184.322,246.486 202.148 C 257.090 223.814,287.911 224.787,299.589 203.825 C 311.968 181.605,293.096 155.053,267.969 159.336 " stroke="none" fill="#d2e1f1" fill-rule="evenodd"></path><path id="path1" d="M187.500 44.008 C 67.523 52.320,-7.306 150.944,34.552 245.595 C 46.642 272.934,70.874 298.668,99.938 315.036 C 104.935 317.850,104.841 317.536,102.131 322.363 C 97.137 331.256,91.476 338.931,83.100 348.162 C 77.309 354.544,76.201 358.019,79.049 360.867 C 84.062 365.880,122.957 353.409,147.598 338.888 L 152.814 335.814 155.215 336.272 C 164.845 338.105,168.548 338.726,174.031 339.424 C 296.738 355.052,399.375 263.533,373.979 161.133 C 356.090 89.005,274.819 37.959,187.500 44.008 M133.443 159.750 C 156.500 165.278,164.431 193.428,147.645 210.156 C 128.767 228.969,96.533 215.755,96.490 189.186 C 96.459 169.641,114.559 155.222,133.443 159.750 M208.984 160.340 C 230.679 167.750,237.137 194.252,221.126 210.172 C 202.741 228.452,171.447 216.474,170.038 190.618 C 168.910 169.901,189.686 153.748,208.984 160.340 M282.617 160.365 C 303.700 167.512,310.458 193.470,295.392 209.440 C 276.709 229.245,243.359 216.184,243.359 189.063 C 243.359 168.754,263.637 153.931,282.617 160.365 " stroke="none" fill="#3581d1" fill-rule="evenodd"></path></g></svg> \ No newline at end of file | |||
diff --git a/recipes/BlueBubbles/index.js b/recipes/BlueBubbles/index.js new file mode 100644 index 0000000..dd41f72 --- /dev/null +++ b/recipes/BlueBubbles/index.js | |||
@@ -0,0 +1 @@ | |||
module.exports = Ferdium => Ferdium; | |||
diff --git a/recipes/BlueBubbles/package.json b/recipes/BlueBubbles/package.json new file mode 100644 index 0000000..896abb3 --- /dev/null +++ b/recipes/BlueBubbles/package.json | |||
@@ -0,0 +1,9 @@ | |||
1 | { | ||
2 | "id": "BlueBubbles", | ||
3 | "name": "BlueBubbles", | ||
4 | "version": "1.0.0", | ||
5 | "license": "MIT", | ||
6 | "config": { | ||
7 | "serviceURL": "https://bluebubbles.app/web/#/" | ||
8 | } | ||
9 | } | ||
diff --git a/recipes/BlueBubbles/webview.js b/recipes/BlueBubbles/webview.js new file mode 100644 index 0000000..cf4423b --- /dev/null +++ b/recipes/BlueBubbles/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 BlueBubbles 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 | }; | ||