From 83f3374b8f647d942d3fabfa3c84349e987c32fe Mon Sep 17 00:00:00 2001 From: Emanuel Fonseca Date: Fri, 7 Apr 2023 21:43:54 +0100 Subject: Add PlanITPoker recipe (#327) --- pnpm-lock.yaml | 3 +++ recipes/planitpoker/icon.svg | 31 +++++++++++++++++++++++++++++++ recipes/planitpoker/index.js | 1 + recipes/planitpoker/package.json | 11 +++++++++++ recipes/planitpoker/webview.js | 16 ++++++++++++++++ 5 files changed, 62 insertions(+) create mode 100644 recipes/planitpoker/icon.svg create mode 100644 recipes/planitpoker/index.js create mode 100644 recipes/planitpoker/package.json create mode 100644 recipes/planitpoker/webview.js diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1c73e3b..d1af5ef 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -568,6 +568,9 @@ importers: recipes/plan: specifiers: {} + recipes/planitpoker: + specifiers: {} + recipes/plek: specifiers: {} 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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 @@ +{ + "id": "planitpoker", + "name": "PlanITPoker", + "version": "1.0.0", + "license": "MIT", + "config": { + "serviceURL": "https://www.planitpoker.com/board/#/room/{teamId}", + "urlInputPrefix": "planitpoker.com/board/#/room/", + "hasTeamId": true + } +} 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 @@ +const _path = _interopRequireDefault(require('path')); + +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; +} + +module.exports = Ferdium => { + // TODO: If your OReilly Service service has unread messages, uncomment these lines to implement the logic for updating the badges + // const getMessages = () => { + // // TODO: Insert your notification-finding code here + // Ferdium.setBadge(0, 0); + // }; + // Ferdium.loop(getMessages); + + Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); +}; -- cgit v1.2.3-54-g00ecf