diff options
-rw-r--r-- | recipes/pushover/icon.svg | 7 | ||||
-rw-r--r-- | recipes/pushover/index.js | 1 | ||||
-rw-r--r-- | recipes/pushover/package.json | 14 | ||||
-rw-r--r-- | recipes/pushover/webview.js | 16 | ||||
-rw-r--r-- | scripts/sample_recipe/package.json | 2 |
5 files changed, 39 insertions, 1 deletions
diff --git a/recipes/pushover/icon.svg b/recipes/pushover/icon.svg new file mode 100644 index 0000000..35250c1 --- /dev/null +++ b/recipes/pushover/icon.svg | |||
@@ -0,0 +1,7 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <svg width="602px" height="602px" viewBox="57 57 602 602" version="1.1" xmlns="http://www.w3.org/2000/svg"> | ||
3 | <g id="layer1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(58.964119, 58.887520)" opacity="0.91"> | ||
4 | <ellipse style="fill: rgb(36, 157, 241); fill-rule: evenodd; stroke: rgb(255, 255, 255); stroke-width: 0;" transform="matrix(-0.674571, 0.73821, -0.73821, -0.674571, 556.833239, 241.613465)" cx="216.308" cy="152.076" rx="296.855" ry="296.855"/> | ||
5 | <path d="M 280.949 172.514 L 355.429 162.714 L 282.909 326.374 L 282.909 326.374 C 295.649 325.394 308.142 321.067 320.389 313.394 L 320.389 313.394 L 320.389 313.394 C 332.642 305.714 343.916 296.077 354.209 284.484 L 354.209 284.484 L 354.209 284.484 C 364.496 272.884 373.396 259.981 380.909 245.774 L 380.909 245.774 L 380.909 245.774 C 388.422 231.561 393.812 217.594 397.079 203.874 L 397.079 203.874 L 397.079 203.874 C 399.039 195.381 399.939 187.214 399.779 179.374 L 399.779 179.374 L 399.779 179.374 C 399.612 171.534 397.569 164.674 393.649 158.794 L 393.649 158.794 L 393.649 158.794 C 389.729 152.914 383.766 148.177 375.759 144.584 L 375.759 144.584 L 375.759 144.584 C 367.759 140.991 356.899 139.194 343.179 139.194 L 343.179 139.194 L 343.179 139.194 C 327.172 139.194 311.409 141.807 295.889 147.034 L 295.889 147.034 L 295.889 147.034 C 280.376 152.261 266.002 159.857 252.769 169.824 L 252.769 169.824 L 252.769 169.824 C 239.542 179.784 228.029 192.197 218.229 207.064 L 218.229 207.064 L 218.229 207.064 C 208.429 221.924 201.406 238.827 197.159 257.774 L 197.159 257.774 L 197.159 257.774 C 195.526 263.981 194.546 268.961 194.219 272.714 L 194.219 272.714 L 194.219 272.714 C 193.892 276.474 193.812 279.577 193.979 282.024 L 193.979 282.024 L 193.979 282.024 C 194.139 284.477 194.462 286.357 194.949 287.664 L 194.949 287.664 L 194.949 287.664 C 195.442 288.971 195.852 290.277 196.179 291.584 L 196.179 291.584 L 196.179 291.584 C 179.519 291.584 167.349 288.234 159.669 281.534 L 159.669 281.534 L 159.669 281.534 C 151.996 274.841 150.119 263.164 154.039 246.504 L 154.039 246.504 L 154.039 246.504 C 157.959 229.191 166.862 212.694 180.749 197.014 L 180.749 197.014 L 180.749 197.014 C 194.629 181.334 211.122 167.531 230.229 155.604 L 230.229 155.604 L 230.229 155.604 C 249.342 143.684 270.249 134.214 292.949 127.194 L 292.949 127.194 L 292.949 127.194 C 315.656 120.167 337.789 116.654 359.349 116.654 L 359.349 116.654 L 359.349 116.654 C 378.296 116.654 394.219 119.347 407.119 124.734 L 407.119 124.734 L 407.119 124.734 C 420.026 130.127 430.072 137.234 437.259 146.054 L 437.259 146.054 L 437.259 146.054 C 444.446 154.874 448.936 165.164 450.729 176.924 L 450.729 176.924 L 450.729 176.924 C 452.529 188.684 451.959 200.934 449.019 213.674 L 449.019 213.674 L 449.019 213.674 C 445.426 229.027 438.646 244.464 428.679 259.984 L 428.679 259.984 L 428.679 259.984 C 418.719 275.497 406.226 289.544 391.199 302.124 L 391.199 302.124 L 391.199 302.124 C 376.172 314.697 358.939 324.904 339.499 332.744 L 339.499 332.744 L 339.499 332.744 C 320.066 340.584 299.406 344.504 277.519 344.504 L 277.519 344.504 L 275.069 344.504 L 212.839 484.154 L 142.279 484.154 L 280.949 172.514 Z" transform="matrix(1, 0, 0, 1, 0, 0)" style="fill: rgb(255, 255, 255); fill-rule: nonzero; white-space: pre;"/> | ||
6 | </g> | ||
7 | </svg> \ No newline at end of file | ||
diff --git a/recipes/pushover/index.js b/recipes/pushover/index.js new file mode 100644 index 0000000..dd41f72 --- /dev/null +++ b/recipes/pushover/index.js | |||
@@ -0,0 +1 @@ | |||
module.exports = Ferdium => Ferdium; | |||
diff --git a/recipes/pushover/package.json b/recipes/pushover/package.json new file mode 100644 index 0000000..9616852 --- /dev/null +++ b/recipes/pushover/package.json | |||
@@ -0,0 +1,14 @@ | |||
1 | { | ||
2 | "id": "pushover", | ||
3 | "name": "Pushover", | ||
4 | "version": "1.0.0", | ||
5 | "license": "MIT", | ||
6 | "repository": "https://github.com/jdwhite/franz-recipe-pushover", | ||
7 | "config": { | ||
8 | "serviceURL": "https://client.pushover.net", | ||
9 | "hasNotificationSound": true, | ||
10 | "hasDirectMessages": true, | ||
11 | "hasIndirectMessages": false, | ||
12 | "hasTeamId": false | ||
13 | } | ||
14 | } | ||
diff --git a/recipes/pushover/webview.js b/recipes/pushover/webview.js new file mode 100644 index 0000000..b37b9e4 --- /dev/null +++ b/recipes/pushover/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 | const getMessages = () => { | ||
9 | const totalMessages = document.querySelector('#app_0 > div.app_counter').innerHTML; | ||
10 | Ferdium.setBadge(totalMessages); | ||
11 | }; | ||
12 | |||
13 | Ferdium.loop(getMessages); | ||
14 | |||
15 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); | ||
16 | }; | ||
diff --git a/scripts/sample_recipe/package.json b/scripts/sample_recipe/package.json index 4b0dda6..e2eba15 100644 --- a/scripts/sample_recipe/package.json +++ b/scripts/sample_recipe/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "SERVICE", | 2 | "id": "SERVICE", |
3 | "name": "SNAME", | 3 | "name": "SNAME", |
4 | "version": "1.1.0", | 4 | "version": "1.0.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://SERVICE.com" | 7 | "serviceURL": "https://SERVICE.com" |