aboutsummaryrefslogtreecommitdiffstats
path: root/recipes
diff options
context:
space:
mode:
authorLibravatar Emanuel Fonseca <emdfonseca@gmail.com>2023-04-07 21:43:54 +0100
committerLibravatar GitHub <noreply@github.com>2023-04-07 21:43:54 +0100
commit83f3374b8f647d942d3fabfa3c84349e987c32fe (patch)
tree91561a9c8261a2f578a5e26a02db8b640960f193 /recipes
parentadd emdfonseca as a contributor for code (#332) [skip ci] (diff)
downloadferdium-recipes-83f3374b8f647d942d3fabfa3c84349e987c32fe.tar.gz
ferdium-recipes-83f3374b8f647d942d3fabfa3c84349e987c32fe.tar.zst
ferdium-recipes-83f3374b8f647d942d3fabfa3c84349e987c32fe.zip
Add PlanITPoker recipe (#327)
Diffstat (limited to 'recipes')
-rw-r--r--recipes/planitpoker/icon.svg31
-rw-r--r--recipes/planitpoker/index.js1
-rw-r--r--recipes/planitpoker/package.json11
-rw-r--r--recipes/planitpoker/webview.js16
4 files changed, 59 insertions, 0 deletions
diff --git a/recipes/planitpoker/icon.svg b/recipes/planitpoker/icon.svg
new file mode 100644
index 0000000..33376cd
--- /dev/null
+++ b/recipes/planitpoker/icon.svg
@@ -0,0 +1,31 @@
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3<!-- Created with Vectornator (http://vectornator.io/) -->
4<svg height="100%" stroke-miterlimit="10" style="fill-rule:nonzero;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;" version="1.1" viewBox="0 0 1024 1024" width="100%" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:vectornator="http://vectornator.io" xmlns:xlink="http://www.w3.org/1999/xlink">
5<defs/>
6<clipPath id="ArtboardFrame">
7<rect height="1024" width="1024" x="0" y="0"/>
8</clipPath>
9<g clip-path="url(#ArtboardFrame)" id="Layer-1" vectornator:layerName="Layer 1">
10<path d="M425.398 0L598.602 0C833.543 0 1024 190.457 1024 425.398L1024 598.602C1024 833.543 833.543 1024 598.602 1024L425.398 1024C190.457 1024-2.84217e-14 833.543-2.84217e-14 598.602L-2.84217e-14 425.398C-2.84217e-14 190.457 190.457 0 425.398 0Z" fill="#ffffff" fill-rule="nonzero" opacity="1" stroke="none"/>
11</g>
12<g id="Layer-2" vectornator:layerName="Layer 2">
13<path d="M581.153 566.313" fill="none" opacity="1" stroke="#007aff" stroke-linecap="butt" stroke-linejoin="round" stroke-width="10"/>
14<path d="M460.141 866.044C287.093 806.688 194.927 618.287 254.284 445.238C313.64 272.19 502.041 180.024 675.09 239.381C616.9 410.178 492.228 775.377 460.141 866.044Z" fill="#efefef" fill-rule="nonzero" opacity="1" stroke="none" vectornator:layerName="(oval)"/>
15<path d="M329.658 553.869C329.658 423.484 436.607 317.786 568.535 317.786C700.463 317.786 807.412 423.484 807.412 553.869C807.412 684.254 700.463 789.952 568.535 789.952C436.607 789.952 329.658 684.254 329.658 553.869Z" fill="#539ce9" fill-rule="nonzero" opacity="1" stroke="none"/>
16<path d="M367.649 554.065C367.649 443.234 458.368 353.387 570.276 353.387C682.183 353.387 772.902 443.234 772.902 554.065C772.902 664.897 682.183 754.744 570.276 754.744C458.368 754.744 367.649 664.897 367.649 554.065Z" fill="#ffffff" fill-rule="nonzero" opacity="1" stroke="none"/>
17<path d="M432.883 450.029C491.13 374.498 599.579 360.486 675.11 418.733C750.641 476.98 764.653 585.429 706.406 660.96C631.791 603.666 472.292 481.035 432.883 450.029Z" fill="#efefef" fill-rule="nonzero" opacity="1" stroke="none" vectornator:layerName="(oval)"/>
18<path d="M582.579 568.181L848.225 323.823L575.663 520.753L416.228 439.462L582.579 568.181Z" fill="#000000" fill-rule="nonzero" opacity="1" stroke="#ffffff" stroke-linecap="butt" stroke-linejoin="round" stroke-width="3"/>
19<path d="M174.933 553.183C174.933 518.136 203.344 489.725 238.391 489.725C273.438 489.725 301.849 518.136 301.849 553.183C301.849 588.23 273.438 616.641 238.391 616.641C203.344 616.641 174.933 588.23 174.933 553.183Z" fill="#000000" fill-rule="nonzero" opacity="1" stroke="none"/>
20<path d="M212.098 399.18C212.098 364.133 240.509 335.722 275.556 335.722C310.603 335.722 339.014 364.133 339.014 399.18C339.014 434.227 310.603 462.639 275.556 462.639C240.509 462.639 212.098 434.227 212.098 399.18Z" fill="#efefef" fill-rule="nonzero" opacity="1" stroke="none"/>
21<path d="M324.736 275.172C324.736 240.125 353.148 211.714 388.195 211.714C423.242 211.714 451.653 240.125 451.653 275.172C451.653 310.219 423.242 338.63 388.195 338.63C353.148 338.63 324.736 310.219 324.736 275.172Z" fill="#539ce9" fill-rule="nonzero" opacity="1" stroke="none"/>
22<path d="M485.5 225.536C485.5 190.489 513.911 162.077 548.958 162.077C584.005 162.077 612.416 190.489 612.416 225.536C612.416 260.583 584.005 288.994 548.958 288.994C513.911 288.994 485.5 260.583 485.5 225.536Z" fill="#000000" fill-rule="nonzero" opacity="1" stroke="none"/>
23<path d="M212.098 399.18C212.098 364.133 240.509 335.722 275.556 335.722C310.603 335.722 339.014 364.133 339.014 399.18C339.014 434.227 310.603 462.639 275.556 462.639C240.509 462.639 212.098 434.227 212.098 399.18Z" fill="#000000" fill-rule="nonzero" opacity="1" stroke="none"/>
24<path d="M234.683 527.738C239.207 527.738 242.479 529.601 244.497 533.329C246.06 536.209 246.841 540.156 246.841 545.169C246.841 549.922 246.133 553.853 244.717 556.961C242.666 561.421 239.313 563.651 234.658 563.651C230.459 563.651 227.334 561.828 225.283 558.182C223.574 555.138 222.72 551.053 222.72 545.926C222.72 541.955 223.232 538.545 224.258 535.697C226.178 530.391 229.653 527.738 234.683 527.738ZM234.634 559.647C236.912 559.647 238.727 558.638 240.078 556.62C241.429 554.601 242.105 550.842 242.105 545.34C242.105 541.369 241.616 538.101 240.64 535.538C239.663 532.975 237.767 531.693 234.951 531.693C232.363 531.693 230.471 532.909 229.275 535.343C228.079 537.776 227.48 541.361 227.48 546.097C227.48 549.662 227.863 552.526 228.628 554.691C229.8 557.995 231.802 559.647 234.634 559.647Z" fill="#ffffff" opacity="1" stroke="none"/>
25<path d="M268.269 409.013L273.128 409.013L273.128 414.092L268.269 414.092L268.269 409.013ZM260.042 389.458C260.042 385.942 261.035 383.114 263.02 380.974C265.006 378.834 267.732 377.763 271.199 377.763C274.405 377.763 276.973 378.679 278.902 380.51C280.83 382.341 281.795 384.681 281.795 387.529C281.795 389.254 281.441 390.654 280.733 391.728C280.025 392.802 278.597 394.381 276.448 396.465C274.886 397.978 273.872 399.26 273.409 400.31C272.945 401.36 272.713 402.91 272.713 404.961L268.367 404.961C268.367 402.633 268.644 400.757 269.197 399.333C269.75 397.909 270.963 396.277 272.835 394.438L274.788 392.51C275.374 391.956 275.846 391.378 276.204 390.776C276.855 389.718 277.18 388.62 277.18 387.48C277.18 385.885 276.704 384.502 275.752 383.33C274.8 382.158 273.225 381.572 271.028 381.572C268.31 381.572 266.43 382.581 265.388 384.599C264.803 385.722 264.469 387.342 264.388 389.458L260.042 389.458Z" fill="#ffffff" opacity="1" stroke="none"/>
26<path d="M563.368 211.738C559.713 212.213 556.249 214.124 552.401 217.786C551.463 218.675 550.82 219.334 549.291 220.974C548.202 222.144 548.041 222.292 547.961 222.246C547.909 222.215 547.488 221.771 547.019 221.255C541.604 215.273 538.092 212.755 534.026 211.948C531.376 211.421 528.626 211.753 526.127 212.898C521.938 214.818 518.871 218.859 518.014 223.59C517.82 224.647 517.772 225.214 517.772 226.476C517.772 228.478 518.028 230.149 518.605 231.916C520.205 236.841 524.025 240.228 528.848 241.004C531.849 241.489 535.176 240.871 538.111 239.293C539.261 238.675 540.232 238.016 541.439 237.04C542.958 235.819 544.07 234.741 546.46 232.187C547.294 231.293 548.008 230.563 548.041 230.563C548.079 230.563 548.406 230.9 548.77 231.308C549.584 232.223 551.572 234.292 552.415 235.104C556.296 238.838 559.24 240.493 562.951 241.045C563.226 241.086 563.869 241.106 564.608 241.106C565.616 241.106 565.928 241.086 566.501 240.989C569.578 240.478 572.204 239.053 574.353 236.739C576.516 234.404 577.865 231.4 578.249 228.059C578.339 227.268 578.324 225.183 578.22 224.381C577.851 221.516 576.919 218.931 575.532 216.938C575.082 216.285 574.14 215.242 573.52 214.716C571.797 213.235 569.559 212.234 566.998 211.804C566.184 211.672 564.186 211.631 563.368 211.738ZM533.402 217.863C534.992 218.226 536.601 219.053 538.182 220.32C538.745 220.77 539.588 221.516 540.137 222.052C540.828 222.731 544.302 226.394 544.302 226.445C544.302 226.527 541.273 229.761 540.539 230.471C538.21 232.708 536.057 234.123 534.031 234.757C533.075 235.053 532.512 235.135 531.357 235.135C530.457 235.135 530.244 235.119 529.776 235.017C526.983 234.409 524.939 232.442 524.049 229.515C523.291 227.017 523.433 224.647 524.475 222.44C525.667 219.906 527.816 218.231 530.467 217.766C530.765 217.715 531.158 217.7 531.854 217.715C532.668 217.73 532.919 217.756 533.402 217.863ZM565.886 217.766C567.433 218.001 568.749 218.64 569.866 219.697C571.944 221.659 572.938 225.127 572.313 228.264C571.679 231.456 569.402 234.041 566.496 234.879C565.796 235.078 565.176 235.16 564.347 235.16C562.88 235.16 561.701 234.843 560.229 234.062C558.682 233.244 557.191 232.064 555.321 230.174C554.147 228.989 551.804 226.501 551.79 226.425C551.776 226.343 553.996 223.896 554.952 222.946C558.18 219.728 560.731 218.18 563.472 217.766C564.087 217.674 565.28 217.674 565.886 217.766Z" fill="#ffffff" fill-rule="nonzero" opacity="1" stroke="none" vectornator:layerName="path"/>
27<path d="M367.054 277.484L405.209 277.402C407.848 277.396 407.48 282.545 405.822 284.598L393.741 298.673C392.083 300.727 388.6 301.24 385.961 301.256L385.952 301.256C383.313 301.271 379.843 300.771 378.201 298.705L366.411 284.725C364.769 282.658 364.415 277.49 367.054 277.484Z" fill="#ffffff" fill-rule="nonzero" opacity="1" stroke="none"/>
28<path d="M380.803 265.55C380.803 267.461 380.581 270.058 381.486 271.895" fill="none" opacity="1" stroke="#ffffff" stroke-linecap="round" stroke-linejoin="round" stroke-width="3"/>
29<path d="M389.491 255.507C389.148 255.995 389.447 258.544 389.447 259.221C389.447 263.989 392.714 267.857 392.714 272.48" fill="none" opacity="1" stroke="#ffffff" stroke-linecap="round" stroke-linejoin="round" stroke-width="3"/>
30</g>
31</svg>
diff --git a/recipes/planitpoker/index.js b/recipes/planitpoker/index.js
new file mode 100644
index 0000000..dd41f72
--- /dev/null
+++ b/recipes/planitpoker/index.js
@@ -0,0 +1 @@
module.exports = Ferdium => Ferdium;
diff --git a/recipes/planitpoker/package.json b/recipes/planitpoker/package.json
new file mode 100644
index 0000000..1b371e4
--- /dev/null
+++ b/recipes/planitpoker/package.json
@@ -0,0 +1,11 @@
1{
2 "id": "planitpoker",
3 "name": "PlanITPoker",
4 "version": "1.0.0",
5 "license": "MIT",
6 "config": {
7 "serviceURL": "https://www.planitpoker.com/board/#/room/{teamId}",
8 "urlInputPrefix": "planitpoker.com/board/#/room/",
9 "hasTeamId": true
10 }
11}
diff --git a/recipes/planitpoker/webview.js b/recipes/planitpoker/webview.js
new file mode 100644
index 0000000..13b8156
--- /dev/null
+++ b/recipes/planitpoker/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 OReilly Service 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};