aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/meetup
diff options
context:
space:
mode:
authorLibravatar Tania R. Zúñiga <25267490+TanZng@users.noreply.github.com>2021-10-08 10:03:42 -0500
committerLibravatar GitHub <noreply@github.com>2021-10-08 20:33:42 +0530
commit0d1b7496271979557f9e979bc7d5cbec5b73d5f2 (patch)
tree30ce98b383b6ae2d4a906a745a305741e700efe0 /recipes/meetup
parentfix: discord does not show notifications (#734) (diff)
downloadferdium-recipes-0d1b7496271979557f9e979bc7d5cbec5b73d5f2.tar.gz
ferdium-recipes-0d1b7496271979557f9e979bc7d5cbec5b73d5f2.tar.zst
ferdium-recipes-0d1b7496271979557f9e979bc7d5cbec5b73d5f2.zip
Add Meetup recipe #389 (#735)
Diffstat (limited to 'recipes/meetup')
-rw-r--r--recipes/meetup/icon.svg7
-rw-r--r--recipes/meetup/index.js1
-rw-r--r--recipes/meetup/package.json10
-rw-r--r--recipes/meetup/service.css1
-rw-r--r--recipes/meetup/webview.js16
5 files changed, 35 insertions, 0 deletions
diff --git a/recipes/meetup/icon.svg b/recipes/meetup/icon.svg
new file mode 100644
index 0000000..cb122f5
--- /dev/null
+++ b/recipes/meetup/icon.svg
@@ -0,0 +1,7 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1024px" height="1024px" viewBox="0 0 1024 1024" version="1.1">
3<g id="surface1">
4<path style=" stroke:none;fill-rule:nonzero;fill:rgb(92.941176%,10.980392%,25.098039%);fill-opacity:1;" d="M 731.921875 889.519531 C 711.617188 904.222656 706.527344 933.390625 720.558594 954.667969 C 734.585938 975.941406 762.421875 981.277344 782.734375 966.574219 C 803.035156 951.871094 808.113281 922.703125 794.085938 901.429688 C 780.050781 880.136719 752.21875 874.816406 731.921875 889.519531 M 471.066406 971.328125 C 458.539062 980.398438 455.398438 998.394531 464.050781 1011.523438 C 472.707031 1024.652344 489.878906 1027.945312 502.40625 1018.875 C 514.933594 1009.792969 518.074219 991.796875 509.421875 978.664062 C 500.765625 965.539062 483.59375 962.261719 471.066406 971.328125 M 154.183594 837.046875 C 156.488281 848.273438 167.050781 855.414062 177.75 852.988281 C 188.464844 850.558594 195.273438 839.503906 192.960938 828.277344 C 190.644531 817.046875 180.09375 809.925781 169.378906 812.335938 C 158.683594 814.761719 151.867188 825.820312 154.183594 837.046875 M 77.855469 515.414062 C 91.179688 495.046875 86.238281 467.214844 66.800781 453.246094 C 47.367188 439.28125 20.8125 444.460938 7.484375 464.828125 C -5.839844 485.195312 -0.898438 513.027344 18.535156 526.996094 C 37.972656 540.960938 64.527344 535.78125 77.855469 515.414062 M 223.6875 227.035156 C 238.410156 216.375 242.09375 195.230469 231.921875 179.800781 C 221.75 164.371094 201.570312 160.511719 186.851562 171.171875 C 172.144531 181.832031 168.445312 202.980469 178.617188 218.40625 C 188.785156 233.820312 208.964844 237.695312 223.6875 227.035156 M 320.25 18.765625 C 317.609375 5.933594 305.542969 -2.226562 293.300781 0.539062 C 281.042969 3.308594 273.257812 15.953125 275.910156 28.796875 C 278.550781 41.628906 290.617188 49.789062 302.859375 47.023438 C 315.117188 44.253906 322.90625 31.59375 320.25 18.765625 M 609.367188 50.175781 C 597.328125 29.167969 571.328125 22.355469 551.296875 34.972656 C 531.253906 47.578125 524.765625 74.828125 536.789062 95.832031 C 548.832031 116.839844 574.835938 123.640625 594.863281 111.035156 C 614.90625 98.417969 621.394531 71.167969 609.367188 50.175781 M 817.078125 367.320312 C 820.289062 323.308594 809.804688 277.945312 783.992188 238.800781 C 733.679688 162.5 641.816406 134.507812 562.347656 164.714844 C 491.339844 117.039062 397.417969 115.035156 323.703125 168.417969 C 286.394531 195.441406 259.808594 232.601562 244.828125 273.902344 C 223.132812 276.984375 201.734375 284.589844 182.476562 298.539062 C 118.824219 344.640625 102.03125 434.511719 142.414062 502.65625 C 87.605469 555.265625 74.96875 642.871094 116.613281 710.542969 C 141.316406 750.667969 180.117188 774.839844 221.789062 782.019531 C 222.5625 814.761719 231.933594 847.648438 251.03125 876.605469 C 303.25 955.816406 406.871094 975.660156 482.441406 920.929688 C 485.328125 918.828125 487.558594 916.175781 490.28125 913.933594 C 532.402344 953.332031 595.636719 959.832031 644.132812 924.707031 C 670.015625 905.96875 686.5625 878.703125 693.78125 849.082031 C 731.730469 850.546875 770.371094 840.4375 804.011719 816.070312 C 884.714844 757.621094 906.371094 643.335938 854.742188 557.113281 C 896.183594 520.480469 905.109375 456.414062 873.269531 409.121094 C 859.078125 388.015625 838.992188 374.164062 817.078125 367.320312 M 908.277344 340.140625 C 924.664062 328.277344 928.769531 304.746094 917.445312 287.570312 C 906.125 270.398438 883.671875 266.097656 867.28125 277.960938 C 850.894531 289.828125 846.792969 313.359375 858.113281 330.535156 C 869.4375 347.707031 891.890625 352.007812 908.277344 340.140625 M 978.082031 561.242188 C 974.953125 546.058594 960.675781 536.421875 946.199219 539.683594 C 931.722656 542.960938 922.511719 557.921875 925.640625 573.09375 C 928.757812 588.28125 943.03125 597.917969 957.523438 594.652344 C 972 591.375 981.210938 576.417969 978.082031 561.242188 M 1023.542969 425.714844 C 1021.214844 414.429688 1010.609375 407.25 999.84375 409.6875 C 989.0625 412.128906 982.222656 423.242188 984.539062 434.542969 C 986.867188 445.824219 997.488281 452.992188 1008.253906 450.566406 C 1019.023438 448.125 1025.875 436.996094 1023.542969 425.714844 "/>
5<path style=" stroke:none;fill-rule:nonzero;fill:rgb(100%,100%,100%);fill-opacity:1;" d="M 720.386719 704.847656 C 714.226562 663.601562 641.363281 695.40625 636.867188 650.21875 C 630.5 586.09375 721.46875 447.894531 714.289062 394.242188 C 707.84375 345.945312 676.789062 335.824219 649.773438 335.328125 C 623.523438 334.832031 616.59375 339.214844 607.722656 344.625 C 602.601562 347.734375 595.246094 353.894531 585.035156 343.714844 C 578.25 336.945312 573.769531 332.207031 566.59375 326.203125 C 562.9375 323.136719 557.113281 319.273438 547.359375 317.769531 C 537.597656 316.265625 524.960938 317.769531 516.929688 321.375 C 508.886719 324.996094 502.574219 331.308594 495.964844 337.328125 C 489.367188 343.347656 472.617188 363.003906 457 355.75 C 450.230469 352.617188 427.300781 340.609375 410.75 333.097656 C 378.804688 318.609375 332.730469 342.082031 316.140625 372.996094 C 291.449219 418.984375 242.707031 599.664062 235.328125 623.492188 C 218.777344 677.003906 256.304688 720.621094 306.914062 718.105469 C 328.3125 717.039062 342.546875 708.851562 356.066406 683.089844 C 363.878906 668.214844 437.253906 467.339844 442.710938 457.703125 C 446.667969 450.71875 459.871094 441.492188 471.074219 447.511719 C 482.257812 453.53125 484.492188 466.074219 482.84375 477.898438 C 480.160156 497.015625 428.410156 619.5625 426.421875 633.429688 C 423.046875 657 433.734375 670.117188 457.082031 671.394531 C 473.089844 672.289062 489.03125 666.257812 501.691406 641.234375 C 508.777344 627.238281 590.386719 455.9375 597.605469 444.5 C 605.542969 431.953125 611.921875 427.824219 620.007812 428.261719 C 626.277344 428.589844 636.3125 430.277344 633.808594 449.980469 C 631.34375 469.296875 565.726562 594.992188 558.847656 625.773438 C 549.636719 666.921875 571.183594 708.59375 606.679688 726.832031 C 629.324219 738.457031 728.378906 758.382812 720.386719 704.847656 "/>
6</g>
7</svg>
diff --git a/recipes/meetup/index.js b/recipes/meetup/index.js
new file mode 100644
index 0000000..1ea918d
--- /dev/null
+++ b/recipes/meetup/index.js
@@ -0,0 +1 @@
module.exports = Ferdi => class Meetup extends Ferdi {};
diff --git a/recipes/meetup/package.json b/recipes/meetup/package.json
new file mode 100644
index 0000000..2b83402
--- /dev/null
+++ b/recipes/meetup/package.json
@@ -0,0 +1,10 @@
1{
2 "id": "meetup",
3 "name": "Meetup",
4 "version": "1.0.0",
5 "license": "MIT",
6 "config": {
7 "serviceURL": "https://meetup.com",
8 "hasIndirectMessages": true
9 }
10}
diff --git a/recipes/meetup/service.css b/recipes/meetup/service.css
new file mode 100644
index 0000000..38dcab0
--- /dev/null
+++ b/recipes/meetup/service.css
@@ -0,0 +1 @@
/* Insert custom styles you want to insert here */ \ No newline at end of file
diff --git a/recipes/meetup/webview.js b/recipes/meetup/webview.js
new file mode 100644
index 0000000..b8ba1fa
--- /dev/null
+++ b/recipes/meetup/webview.js
@@ -0,0 +1,16 @@
1var _path = _interopRequireDefault(require("path"));
2
3function _interopRequireDefault(obj) {
4 return obj && obj.__esModule ? obj : { default: obj };
5}
6
7module.exports = (Ferdi) => {
8 const getMessages = () => {
9 const hasNotifications = document.querySelector(".counterBadge");
10
11 Ferdi.setBadge(0, hasNotifications ? 1 : 0);
12 };
13 Ferdi.loop(getMessages);
14
15 Ferdi.injectCSS(_path.default.join(__dirname, "service.css"));
16};