From 9db43e100a672b6d6932ac68c0fbe503c129138b Mon Sep 17 00:00:00 2001 From: Vijay Aravamudhan Date: Sun, 12 Sep 2021 22:01:51 +0530 Subject: Added a check to verify that the folder name of the recipe matches the recipe id (#708) Use the recipe-id as master to rename internal folder names --- recipes/OVHCloud/LICENSE | 21 ++++++++++++++ recipes/OVHCloud/icon.svg | 1 + recipes/OVHCloud/index.js | 1 + recipes/OVHCloud/package.json | 9 ++++++ recipes/OVHCloud/service.css | 1 + recipes/OVHCloud/webview.js | 14 ++++++++++ recipes/TickTick/LICENSE | 21 ++++++++++++++ recipes/TickTick/icon.svg | 1 + recipes/TickTick/index.js | 2 ++ recipes/TickTick/package.json | 9 ++++++ recipes/TickTick/webview.js | 10 +++++++ recipes/amazon-work-mail/.gitignore | 2 ++ recipes/amazon-work-mail/LICENSE | 21 ++++++++++++++ recipes/amazon-work-mail/icon.svg | 1 + recipes/amazon-work-mail/index.js | 1 + recipes/amazon-work-mail/package.json | 11 ++++++++ recipes/amazon-work-mail/webview.js | 32 +++++++++++++++++++++ recipes/aws-workmail/.gitignore | 2 -- recipes/aws-workmail/LICENSE | 21 -------------- recipes/aws-workmail/icon.svg | 1 - recipes/aws-workmail/index.js | 1 - recipes/aws-workmail/package.json | 11 -------- recipes/aws-workmail/webview.js | 32 --------------------- recipes/docker/LICENSE | 21 -------------- recipes/docker/icon.svg | 52 ----------------------------------- recipes/docker/index.js | 1 - recipes/docker/package.json | 9 ------ recipes/docker/service.css | 1 - recipes/docker/webview.js | 14 ---------- recipes/dockerhub/LICENSE | 21 ++++++++++++++ recipes/dockerhub/icon.svg | 52 +++++++++++++++++++++++++++++++++++ recipes/dockerhub/index.js | 1 + recipes/dockerhub/package.json | 9 ++++++ recipes/dockerhub/service.css | 1 + recipes/dockerhub/webview.js | 14 ++++++++++ recipes/google-contacts/icon.svg | 1 + recipes/google-contacts/index.js | 1 + recipes/google-contacts/package.json | 9 ++++++ recipes/google-contacts/webview.js | 0 recipes/google-news/icon.svg | 1 + recipes/google-news/index.js | 1 + recipes/google-news/package.json | 9 ++++++ recipes/google-news/webview.js | 0 recipes/googlecontacts/icon.svg | 1 - recipes/googlecontacts/index.js | 1 - recipes/googlecontacts/package.json | 9 ------ recipes/googlecontacts/webview.js | 0 recipes/googlenews/icon.svg | 1 - recipes/googlenews/index.js | 1 - recipes/googlenews/package.json | 9 ------ recipes/googlenews/webview.js | 0 recipes/kimai-cloud/icon.svg | 1 - recipes/kimai-cloud/index.js | 1 - recipes/kimai-cloud/package.json | 12 -------- recipes/kimai-cloud/webview.js | 26 ------------------ recipes/kimaicloud/icon.svg | 1 + recipes/kimaicloud/index.js | 1 + recipes/kimaicloud/package.json | 12 ++++++++ recipes/kimaicloud/webview.js | 26 ++++++++++++++++++ recipes/line-me/LICENSE | 21 ++++++++++++++ recipes/line-me/icon.svg | 1 + recipes/line-me/index.js | 2 ++ recipes/line-me/package.json | 10 +++++++ recipes/line-me/webview.js | 2 ++ recipes/line.me/LICENSE | 21 -------------- recipes/line.me/icon.svg | 1 - recipes/line.me/index.js | 2 -- recipes/line.me/package.json | 10 ------- recipes/line.me/webview.js | 2 -- recipes/ovh-cloud/LICENSE | 21 -------------- recipes/ovh-cloud/icon.svg | 1 - recipes/ovh-cloud/index.js | 1 - recipes/ovh-cloud/package.json | 9 ------ recipes/ovh-cloud/service.css | 1 - recipes/ovh-cloud/webview.js | 14 ---------- recipes/paymo/icon.svg | 1 + recipes/paymo/index.js | 1 + recipes/paymo/package.json | 9 ++++++ recipes/paymo/webview.js | 2 ++ recipes/paymoapp/icon.svg | 1 - recipes/paymoapp/index.js | 1 - recipes/paymoapp/package.json | 9 ------ recipes/paymoapp/webview.js | 2 -- recipes/superhuman-email/LICENSE | 21 -------------- recipes/superhuman-email/icon.svg | 1 - recipes/superhuman-email/index.js | 6 ---- recipes/superhuman-email/package.json | 10 ------- recipes/superhuman-email/webview.js | 8 ------ recipes/superhuman/LICENSE | 21 ++++++++++++++ recipes/superhuman/icon.svg | 1 + recipes/superhuman/index.js | 6 ++++ recipes/superhuman/package.json | 10 +++++++ recipes/superhuman/webview.js | 8 ++++++ recipes/ticktick/LICENSE | 21 -------------- recipes/ticktick/icon.svg | 1 - recipes/ticktick/index.js | 2 -- recipes/ticktick/package.json | 9 ------ recipes/ticktick/webview.js | 10 ------- 98 files changed, 413 insertions(+), 413 deletions(-) create mode 100644 recipes/OVHCloud/LICENSE create mode 100644 recipes/OVHCloud/icon.svg create mode 100644 recipes/OVHCloud/index.js create mode 100644 recipes/OVHCloud/package.json create mode 100644 recipes/OVHCloud/service.css create mode 100644 recipes/OVHCloud/webview.js create mode 100644 recipes/TickTick/LICENSE create mode 100644 recipes/TickTick/icon.svg create mode 100644 recipes/TickTick/index.js create mode 100644 recipes/TickTick/package.json create mode 100644 recipes/TickTick/webview.js create mode 100644 recipes/amazon-work-mail/.gitignore create mode 100644 recipes/amazon-work-mail/LICENSE create mode 100755 recipes/amazon-work-mail/icon.svg create mode 100644 recipes/amazon-work-mail/index.js create mode 100644 recipes/amazon-work-mail/package.json create mode 100644 recipes/amazon-work-mail/webview.js delete mode 100644 recipes/aws-workmail/.gitignore delete mode 100644 recipes/aws-workmail/LICENSE delete mode 100755 recipes/aws-workmail/icon.svg delete mode 100644 recipes/aws-workmail/index.js delete mode 100644 recipes/aws-workmail/package.json delete mode 100644 recipes/aws-workmail/webview.js delete mode 100644 recipes/docker/LICENSE delete mode 100644 recipes/docker/icon.svg delete mode 100644 recipes/docker/index.js delete mode 100644 recipes/docker/package.json delete mode 100644 recipes/docker/service.css delete mode 100644 recipes/docker/webview.js create mode 100644 recipes/dockerhub/LICENSE create mode 100644 recipes/dockerhub/icon.svg create mode 100644 recipes/dockerhub/index.js create mode 100644 recipes/dockerhub/package.json create mode 100644 recipes/dockerhub/service.css create mode 100644 recipes/dockerhub/webview.js create mode 100644 recipes/google-contacts/icon.svg create mode 100644 recipes/google-contacts/index.js create mode 100644 recipes/google-contacts/package.json create mode 100644 recipes/google-contacts/webview.js create mode 100644 recipes/google-news/icon.svg create mode 100644 recipes/google-news/index.js create mode 100644 recipes/google-news/package.json create mode 100644 recipes/google-news/webview.js delete mode 100644 recipes/googlecontacts/icon.svg delete mode 100644 recipes/googlecontacts/index.js delete mode 100644 recipes/googlecontacts/package.json delete mode 100644 recipes/googlecontacts/webview.js delete mode 100644 recipes/googlenews/icon.svg delete mode 100644 recipes/googlenews/index.js delete mode 100644 recipes/googlenews/package.json delete mode 100644 recipes/googlenews/webview.js delete mode 100644 recipes/kimai-cloud/icon.svg delete mode 100644 recipes/kimai-cloud/index.js delete mode 100644 recipes/kimai-cloud/package.json delete mode 100644 recipes/kimai-cloud/webview.js create mode 100644 recipes/kimaicloud/icon.svg create mode 100644 recipes/kimaicloud/index.js create mode 100644 recipes/kimaicloud/package.json create mode 100644 recipes/kimaicloud/webview.js create mode 100644 recipes/line-me/LICENSE create mode 100644 recipes/line-me/icon.svg create mode 100644 recipes/line-me/index.js create mode 100644 recipes/line-me/package.json create mode 100644 recipes/line-me/webview.js delete mode 100644 recipes/line.me/LICENSE delete mode 100644 recipes/line.me/icon.svg delete mode 100644 recipes/line.me/index.js delete mode 100644 recipes/line.me/package.json delete mode 100644 recipes/line.me/webview.js delete mode 100644 recipes/ovh-cloud/LICENSE delete mode 100644 recipes/ovh-cloud/icon.svg delete mode 100644 recipes/ovh-cloud/index.js delete mode 100644 recipes/ovh-cloud/package.json delete mode 100644 recipes/ovh-cloud/service.css delete mode 100644 recipes/ovh-cloud/webview.js create mode 100644 recipes/paymo/icon.svg create mode 100644 recipes/paymo/index.js create mode 100644 recipes/paymo/package.json create mode 100644 recipes/paymo/webview.js delete mode 100644 recipes/paymoapp/icon.svg delete mode 100644 recipes/paymoapp/index.js delete mode 100644 recipes/paymoapp/package.json delete mode 100644 recipes/paymoapp/webview.js delete mode 100644 recipes/superhuman-email/LICENSE delete mode 100644 recipes/superhuman-email/icon.svg delete mode 100644 recipes/superhuman-email/index.js delete mode 100644 recipes/superhuman-email/package.json delete mode 100644 recipes/superhuman-email/webview.js create mode 100644 recipes/superhuman/LICENSE create mode 100644 recipes/superhuman/icon.svg create mode 100644 recipes/superhuman/index.js create mode 100644 recipes/superhuman/package.json create mode 100644 recipes/superhuman/webview.js delete mode 100644 recipes/ticktick/LICENSE delete mode 100644 recipes/ticktick/icon.svg delete mode 100644 recipes/ticktick/index.js delete mode 100644 recipes/ticktick/package.json delete mode 100644 recipes/ticktick/webview.js (limited to 'recipes') diff --git a/recipes/OVHCloud/LICENSE b/recipes/OVHCloud/LICENSE new file mode 100644 index 0000000..99d6f23 --- /dev/null +++ b/recipes/OVHCloud/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Vijay Raghavan Aravamudhan + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/recipes/OVHCloud/icon.svg b/recipes/OVHCloud/icon.svg new file mode 100644 index 0000000..14b4933 --- /dev/null +++ b/recipes/OVHCloud/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/recipes/OVHCloud/index.js b/recipes/OVHCloud/index.js new file mode 100644 index 0000000..99219fe --- /dev/null +++ b/recipes/OVHCloud/index.js @@ -0,0 +1 @@ +module.exports = (Ferdi) => class OVHCloud extends Ferdi {}; diff --git a/recipes/OVHCloud/package.json b/recipes/OVHCloud/package.json new file mode 100644 index 0000000..a853f2d --- /dev/null +++ b/recipes/OVHCloud/package.json @@ -0,0 +1,9 @@ +{ + "id": "OVHCloud", + "name": "OVH Cloud", + "version": "1.0.0", + "license": "MIT", + "config": { + "serviceURL": "https://www.ovh.com/auth" + } +} diff --git a/recipes/OVHCloud/service.css b/recipes/OVHCloud/service.css new file mode 100644 index 0000000..38dcab0 --- /dev/null +++ b/recipes/OVHCloud/service.css @@ -0,0 +1 @@ +/* Insert custom styles you want to insert here */ \ No newline at end of file diff --git a/recipes/OVHCloud/webview.js b/recipes/OVHCloud/webview.js new file mode 100644 index 0000000..ee7d8aa --- /dev/null +++ b/recipes/OVHCloud/webview.js @@ -0,0 +1,14 @@ +var _path = _interopRequireDefault(require('path')); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = Ferdi => { + // TODO: If your ovh-cloud service has unread messages, uncomment these lines to implement the logic for updating the badges + // const getMessages = function getMessages() { + // // TODO: Insert your notification-finding code here + // Ferdi.setBadge(0, 0); + // }; + // Ferdi.loop(getMessages); + + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); +}; diff --git a/recipes/TickTick/LICENSE b/recipes/TickTick/LICENSE new file mode 100644 index 0000000..b0958eb --- /dev/null +++ b/recipes/TickTick/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2017 Jonas H. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/recipes/TickTick/icon.svg b/recipes/TickTick/icon.svg new file mode 100644 index 0000000..2521fe7 --- /dev/null +++ b/recipes/TickTick/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/recipes/TickTick/index.js b/recipes/TickTick/index.js new file mode 100644 index 0000000..223ef7e --- /dev/null +++ b/recipes/TickTick/index.js @@ -0,0 +1,2 @@ +// default integration (e.g messenger.com, ...) +module.exports = Ferdi => Ferdi; diff --git a/recipes/TickTick/package.json b/recipes/TickTick/package.json new file mode 100644 index 0000000..c7d3b58 --- /dev/null +++ b/recipes/TickTick/package.json @@ -0,0 +1,9 @@ +{ + "id": "TickTick", + "name": "TickTick", + "version": "1.2.0", + "license": "MIT", + "config": { + "serviceURL": "https://www.ticktick.com/#p/inbox/tasks" + } +} diff --git a/recipes/TickTick/webview.js b/recipes/TickTick/webview.js new file mode 100644 index 0000000..927bb08 --- /dev/null +++ b/recipes/TickTick/webview.js @@ -0,0 +1,10 @@ +module.exports = (Ferdi) => { + const getMessages = function getMessages() { + // all overdue items are being counted + const count = document.querySelectorAll('.duedate-overdue').length; + + Ferdi.setBadge(count); + }; + + Ferdi.loop(getMessages); +}; diff --git a/recipes/amazon-work-mail/.gitignore b/recipes/amazon-work-mail/.gitignore new file mode 100644 index 0000000..63137ec --- /dev/null +++ b/recipes/amazon-work-mail/.gitignore @@ -0,0 +1,2 @@ +# Linter +.jshintrc diff --git a/recipes/amazon-work-mail/LICENSE b/recipes/amazon-work-mail/LICENSE new file mode 100644 index 0000000..231d35b --- /dev/null +++ b/recipes/amazon-work-mail/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2017 Yoav Maman + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/recipes/amazon-work-mail/icon.svg b/recipes/amazon-work-mail/icon.svg new file mode 100755 index 0000000..72a9bfb --- /dev/null +++ b/recipes/amazon-work-mail/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/recipes/amazon-work-mail/index.js b/recipes/amazon-work-mail/index.js new file mode 100644 index 0000000..23607bd --- /dev/null +++ b/recipes/amazon-work-mail/index.js @@ -0,0 +1 @@ +module.exports = Ferdi => Ferdi; diff --git a/recipes/amazon-work-mail/package.json b/recipes/amazon-work-mail/package.json new file mode 100644 index 0000000..e407dd2 --- /dev/null +++ b/recipes/amazon-work-mail/package.json @@ -0,0 +1,11 @@ +{ + "id": "amazon-work-mail", + "name": "Amazon WorkMail", + "version": "1.1.1", + "license": "MIT", + "config": { + "serviceURL": "https://{teamID}.awsapps.com/mail", + "hasIndirectMessages": false, + "hasTeamId": true + } +} diff --git a/recipes/amazon-work-mail/webview.js b/recipes/amazon-work-mail/webview.js new file mode 100644 index 0000000..944a15c --- /dev/null +++ b/recipes/amazon-work-mail/webview.js @@ -0,0 +1,32 @@ +module.exports = (Ferdi) => { + const reload = (EventType) => new Promise((resolve, reject) => { + const btn = document.getElementsByClassName('giraffe-hierarchy-node-refresh')[0]; + const EventObject = document.createEvent('Events'); + EventObject.initEvent(EventType, true, false); + + if (btn.dispatchEvent(EventObject)) { + resolve(); + } else { + reject(); + } + }); + + const getUnread = () => { + const nodes = document.getElementsByClassName('giraffe-hierarchy-node-counter'); + let counter = 0; + + for (let i = 0; i < nodes.length; i++) { + counter += Ferdi.safeParseInt(nodes[i].innerText); + } + + Ferdi.setBadge(counter); + }; + + if (!window.location.pathname.includes('auth')) { + Ferdi.loop(getUnread); + + window.setInterval(() => { + reload('click'); + }, 60000); + } +}; diff --git a/recipes/aws-workmail/.gitignore b/recipes/aws-workmail/.gitignore deleted file mode 100644 index 63137ec..0000000 --- a/recipes/aws-workmail/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -# Linter -.jshintrc diff --git a/recipes/aws-workmail/LICENSE b/recipes/aws-workmail/LICENSE deleted file mode 100644 index 231d35b..0000000 --- a/recipes/aws-workmail/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2017 Yoav Maman - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/recipes/aws-workmail/icon.svg b/recipes/aws-workmail/icon.svg deleted file mode 100755 index 72a9bfb..0000000 --- a/recipes/aws-workmail/icon.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/recipes/aws-workmail/index.js b/recipes/aws-workmail/index.js deleted file mode 100644 index 23607bd..0000000 --- a/recipes/aws-workmail/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = Ferdi => Ferdi; diff --git a/recipes/aws-workmail/package.json b/recipes/aws-workmail/package.json deleted file mode 100644 index e407dd2..0000000 --- a/recipes/aws-workmail/package.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "id": "amazon-work-mail", - "name": "Amazon WorkMail", - "version": "1.1.1", - "license": "MIT", - "config": { - "serviceURL": "https://{teamID}.awsapps.com/mail", - "hasIndirectMessages": false, - "hasTeamId": true - } -} diff --git a/recipes/aws-workmail/webview.js b/recipes/aws-workmail/webview.js deleted file mode 100644 index 944a15c..0000000 --- a/recipes/aws-workmail/webview.js +++ /dev/null @@ -1,32 +0,0 @@ -module.exports = (Ferdi) => { - const reload = (EventType) => new Promise((resolve, reject) => { - const btn = document.getElementsByClassName('giraffe-hierarchy-node-refresh')[0]; - const EventObject = document.createEvent('Events'); - EventObject.initEvent(EventType, true, false); - - if (btn.dispatchEvent(EventObject)) { - resolve(); - } else { - reject(); - } - }); - - const getUnread = () => { - const nodes = document.getElementsByClassName('giraffe-hierarchy-node-counter'); - let counter = 0; - - for (let i = 0; i < nodes.length; i++) { - counter += Ferdi.safeParseInt(nodes[i].innerText); - } - - Ferdi.setBadge(counter); - }; - - if (!window.location.pathname.includes('auth')) { - Ferdi.loop(getUnread); - - window.setInterval(() => { - reload('click'); - }, 60000); - } -}; diff --git a/recipes/docker/LICENSE b/recipes/docker/LICENSE deleted file mode 100644 index 99d6f23..0000000 --- a/recipes/docker/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2020 Vijay Raghavan Aravamudhan - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/recipes/docker/icon.svg b/recipes/docker/icon.svg deleted file mode 100644 index e04cb87..0000000 --- a/recipes/docker/icon.svg +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/recipes/docker/index.js b/recipes/docker/index.js deleted file mode 100644 index 6bff43a..0000000 --- a/recipes/docker/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = (Ferdi) => class DockerHub extends Ferdi {}; diff --git a/recipes/docker/package.json b/recipes/docker/package.json deleted file mode 100644 index 6b33abe..0000000 --- a/recipes/docker/package.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "id": "dockerhub", - "name": "Docker Hub", - "version": "1.0.0", - "license": "MIT", - "config": { - "serviceURL": "https://hub.docker.com" - } -} diff --git a/recipes/docker/service.css b/recipes/docker/service.css deleted file mode 100644 index 38dcab0..0000000 --- a/recipes/docker/service.css +++ /dev/null @@ -1 +0,0 @@ -/* Insert custom styles you want to insert here */ \ No newline at end of file diff --git a/recipes/docker/webview.js b/recipes/docker/webview.js deleted file mode 100644 index 1fd69e8..0000000 --- a/recipes/docker/webview.js +++ /dev/null @@ -1,14 +0,0 @@ -var _path = _interopRequireDefault(require('path')); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -module.exports = Ferdi => { - // TODO: If your docker hub service has unread messages, uncomment these lines to implement the logic for updating the badges - // const getMessages = function getMessages() { - // // TODO: Insert your notification-finding code here - // Ferdi.setBadge(0, 0); - // }; - // Ferdi.loop(getMessages); - - Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); -}; diff --git a/recipes/dockerhub/LICENSE b/recipes/dockerhub/LICENSE new file mode 100644 index 0000000..99d6f23 --- /dev/null +++ b/recipes/dockerhub/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Vijay Raghavan Aravamudhan + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/recipes/dockerhub/icon.svg b/recipes/dockerhub/icon.svg new file mode 100644 index 0000000..e04cb87 --- /dev/null +++ b/recipes/dockerhub/icon.svg @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/recipes/dockerhub/index.js b/recipes/dockerhub/index.js new file mode 100644 index 0000000..6bff43a --- /dev/null +++ b/recipes/dockerhub/index.js @@ -0,0 +1 @@ +module.exports = (Ferdi) => class DockerHub extends Ferdi {}; diff --git a/recipes/dockerhub/package.json b/recipes/dockerhub/package.json new file mode 100644 index 0000000..6b33abe --- /dev/null +++ b/recipes/dockerhub/package.json @@ -0,0 +1,9 @@ +{ + "id": "dockerhub", + "name": "Docker Hub", + "version": "1.0.0", + "license": "MIT", + "config": { + "serviceURL": "https://hub.docker.com" + } +} diff --git a/recipes/dockerhub/service.css b/recipes/dockerhub/service.css new file mode 100644 index 0000000..38dcab0 --- /dev/null +++ b/recipes/dockerhub/service.css @@ -0,0 +1 @@ +/* Insert custom styles you want to insert here */ \ No newline at end of file diff --git a/recipes/dockerhub/webview.js b/recipes/dockerhub/webview.js new file mode 100644 index 0000000..1fd69e8 --- /dev/null +++ b/recipes/dockerhub/webview.js @@ -0,0 +1,14 @@ +var _path = _interopRequireDefault(require('path')); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = Ferdi => { + // TODO: If your docker hub service has unread messages, uncomment these lines to implement the logic for updating the badges + // const getMessages = function getMessages() { + // // TODO: Insert your notification-finding code here + // Ferdi.setBadge(0, 0); + // }; + // Ferdi.loop(getMessages); + + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); +}; diff --git a/recipes/google-contacts/icon.svg b/recipes/google-contacts/icon.svg new file mode 100644 index 0000000..e5bf72a --- /dev/null +++ b/recipes/google-contacts/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/recipes/google-contacts/index.js b/recipes/google-contacts/index.js new file mode 100644 index 0000000..23607bd --- /dev/null +++ b/recipes/google-contacts/index.js @@ -0,0 +1 @@ +module.exports = Ferdi => Ferdi; diff --git a/recipes/google-contacts/package.json b/recipes/google-contacts/package.json new file mode 100644 index 0000000..4f91692 --- /dev/null +++ b/recipes/google-contacts/package.json @@ -0,0 +1,9 @@ +{ + "id": "google-contacts", + "name": "Google Contacts", + "version": "1.1.0", + "license": "MIT", + "config": { + "serviceURL": "https://contacts.google.com/" + } +} diff --git a/recipes/google-contacts/webview.js b/recipes/google-contacts/webview.js new file mode 100644 index 0000000..e69de29 diff --git a/recipes/google-news/icon.svg b/recipes/google-news/icon.svg new file mode 100644 index 0000000..eab3bdc --- /dev/null +++ b/recipes/google-news/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/recipes/google-news/index.js b/recipes/google-news/index.js new file mode 100644 index 0000000..23607bd --- /dev/null +++ b/recipes/google-news/index.js @@ -0,0 +1 @@ +module.exports = Ferdi => Ferdi; diff --git a/recipes/google-news/package.json b/recipes/google-news/package.json new file mode 100644 index 0000000..36bbca9 --- /dev/null +++ b/recipes/google-news/package.json @@ -0,0 +1,9 @@ +{ + "id": "google-news", + "name": "Google News", + "version": "1.1.0", + "license": "MIT", + "config": { + "serviceURL": "https://news.google.com/" + } +} diff --git a/recipes/google-news/webview.js b/recipes/google-news/webview.js new file mode 100644 index 0000000..e69de29 diff --git a/recipes/googlecontacts/icon.svg b/recipes/googlecontacts/icon.svg deleted file mode 100644 index e5bf72a..0000000 --- a/recipes/googlecontacts/icon.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/recipes/googlecontacts/index.js b/recipes/googlecontacts/index.js deleted file mode 100644 index 23607bd..0000000 --- a/recipes/googlecontacts/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = Ferdi => Ferdi; diff --git a/recipes/googlecontacts/package.json b/recipes/googlecontacts/package.json deleted file mode 100644 index 4f91692..0000000 --- a/recipes/googlecontacts/package.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "id": "google-contacts", - "name": "Google Contacts", - "version": "1.1.0", - "license": "MIT", - "config": { - "serviceURL": "https://contacts.google.com/" - } -} diff --git a/recipes/googlecontacts/webview.js b/recipes/googlecontacts/webview.js deleted file mode 100644 index e69de29..0000000 diff --git a/recipes/googlenews/icon.svg b/recipes/googlenews/icon.svg deleted file mode 100644 index eab3bdc..0000000 --- a/recipes/googlenews/icon.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/recipes/googlenews/index.js b/recipes/googlenews/index.js deleted file mode 100644 index 23607bd..0000000 --- a/recipes/googlenews/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = Ferdi => Ferdi; diff --git a/recipes/googlenews/package.json b/recipes/googlenews/package.json deleted file mode 100644 index 36bbca9..0000000 --- a/recipes/googlenews/package.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "id": "google-news", - "name": "Google News", - "version": "1.1.0", - "license": "MIT", - "config": { - "serviceURL": "https://news.google.com/" - } -} diff --git a/recipes/googlenews/webview.js b/recipes/googlenews/webview.js deleted file mode 100644 index e69de29..0000000 diff --git a/recipes/kimai-cloud/icon.svg b/recipes/kimai-cloud/icon.svg deleted file mode 100644 index 06c87fb..0000000 --- a/recipes/kimai-cloud/icon.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/recipes/kimai-cloud/index.js b/recipes/kimai-cloud/index.js deleted file mode 100644 index 23607bd..0000000 --- a/recipes/kimai-cloud/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = Ferdi => Ferdi; diff --git a/recipes/kimai-cloud/package.json b/recipes/kimai-cloud/package.json deleted file mode 100644 index f4c1dcf..0000000 --- a/recipes/kimai-cloud/package.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "id": "kimaicloud", - "name": "Kimai Cloud", - "version": "1.1.0", - "license": "MIT", - "repository": "https://github.com/kimai-cloud/recipe-kimaicloud", - "config": { - "serviceURL": "https://{teamId}.kimai.cloud", - "hasTeamId": true, - "urlInputSuffix": ".kimai.cloud" - } -} diff --git a/recipes/kimai-cloud/webview.js b/recipes/kimai-cloud/webview.js deleted file mode 100644 index f4e2e9f..0000000 --- a/recipes/kimai-cloud/webview.js +++ /dev/null @@ -1,26 +0,0 @@ -module.exports = (Ferdi) => { - const getMessages = function getMessages() { - let count = 0; - - // get amount of running timesheets - const label = document.querySelector('.main-header .navbar .dropdown.messages-menu .ticktac span.label'); - if (label !== undefined) { - count = label.textContent; - } - - // set Ferdi badge - Ferdi.setBadge(count); - }; - - document.addEventListener('click', (e) => { - const { tagName, target, href } = e.target; - - if (tagName === 'A' && target === '_blank') { - e.preventDefault(); - e.stopImmediatePropagation(); - window.open(href); - } - }); - - Ferdi.loop(getMessages); -}; diff --git a/recipes/kimaicloud/icon.svg b/recipes/kimaicloud/icon.svg new file mode 100644 index 0000000..06c87fb --- /dev/null +++ b/recipes/kimaicloud/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/recipes/kimaicloud/index.js b/recipes/kimaicloud/index.js new file mode 100644 index 0000000..23607bd --- /dev/null +++ b/recipes/kimaicloud/index.js @@ -0,0 +1 @@ +module.exports = Ferdi => Ferdi; diff --git a/recipes/kimaicloud/package.json b/recipes/kimaicloud/package.json new file mode 100644 index 0000000..f4c1dcf --- /dev/null +++ b/recipes/kimaicloud/package.json @@ -0,0 +1,12 @@ +{ + "id": "kimaicloud", + "name": "Kimai Cloud", + "version": "1.1.0", + "license": "MIT", + "repository": "https://github.com/kimai-cloud/recipe-kimaicloud", + "config": { + "serviceURL": "https://{teamId}.kimai.cloud", + "hasTeamId": true, + "urlInputSuffix": ".kimai.cloud" + } +} diff --git a/recipes/kimaicloud/webview.js b/recipes/kimaicloud/webview.js new file mode 100644 index 0000000..f4e2e9f --- /dev/null +++ b/recipes/kimaicloud/webview.js @@ -0,0 +1,26 @@ +module.exports = (Ferdi) => { + const getMessages = function getMessages() { + let count = 0; + + // get amount of running timesheets + const label = document.querySelector('.main-header .navbar .dropdown.messages-menu .ticktac span.label'); + if (label !== undefined) { + count = label.textContent; + } + + // set Ferdi badge + Ferdi.setBadge(count); + }; + + document.addEventListener('click', (e) => { + const { tagName, target, href } = e.target; + + if (tagName === 'A' && target === '_blank') { + e.preventDefault(); + e.stopImmediatePropagation(); + window.open(href); + } + }); + + Ferdi.loop(getMessages); +}; diff --git a/recipes/line-me/LICENSE b/recipes/line-me/LICENSE new file mode 100644 index 0000000..99d6f23 --- /dev/null +++ b/recipes/line-me/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Vijay Raghavan Aravamudhan + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/recipes/line-me/icon.svg b/recipes/line-me/icon.svg new file mode 100644 index 0000000..381a62a --- /dev/null +++ b/recipes/line-me/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/recipes/line-me/index.js b/recipes/line-me/index.js new file mode 100644 index 0000000..3ffa657 --- /dev/null +++ b/recipes/line-me/index.js @@ -0,0 +1,2 @@ +module.exports = (Ferdi) => class LineMe extends Ferdi { +}; diff --git a/recipes/line-me/package.json b/recipes/line-me/package.json new file mode 100644 index 0000000..6db3351 --- /dev/null +++ b/recipes/line-me/package.json @@ -0,0 +1,10 @@ +{ + "id": "line-me", + "name": "Line.me", + "version": "1.1.0", + "license": "MIT", + "config": { + "serviceURL": "https://line.me/en", + "hasNotificationSound": true + } +} diff --git a/recipes/line-me/webview.js b/recipes/line-me/webview.js new file mode 100644 index 0000000..7e19dff --- /dev/null +++ b/recipes/line-me/webview.js @@ -0,0 +1,2 @@ +module.exports = Ferdi => { +}; diff --git a/recipes/line.me/LICENSE b/recipes/line.me/LICENSE deleted file mode 100644 index 99d6f23..0000000 --- a/recipes/line.me/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2020 Vijay Raghavan Aravamudhan - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/recipes/line.me/icon.svg b/recipes/line.me/icon.svg deleted file mode 100644 index 381a62a..0000000 --- a/recipes/line.me/icon.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/recipes/line.me/index.js b/recipes/line.me/index.js deleted file mode 100644 index 3ffa657..0000000 --- a/recipes/line.me/index.js +++ /dev/null @@ -1,2 +0,0 @@ -module.exports = (Ferdi) => class LineMe extends Ferdi { -}; diff --git a/recipes/line.me/package.json b/recipes/line.me/package.json deleted file mode 100644 index 6db3351..0000000 --- a/recipes/line.me/package.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "id": "line-me", - "name": "Line.me", - "version": "1.1.0", - "license": "MIT", - "config": { - "serviceURL": "https://line.me/en", - "hasNotificationSound": true - } -} diff --git a/recipes/line.me/webview.js b/recipes/line.me/webview.js deleted file mode 100644 index 7e19dff..0000000 --- a/recipes/line.me/webview.js +++ /dev/null @@ -1,2 +0,0 @@ -module.exports = Ferdi => { -}; diff --git a/recipes/ovh-cloud/LICENSE b/recipes/ovh-cloud/LICENSE deleted file mode 100644 index 99d6f23..0000000 --- a/recipes/ovh-cloud/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2020 Vijay Raghavan Aravamudhan - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/recipes/ovh-cloud/icon.svg b/recipes/ovh-cloud/icon.svg deleted file mode 100644 index 14b4933..0000000 --- a/recipes/ovh-cloud/icon.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/recipes/ovh-cloud/index.js b/recipes/ovh-cloud/index.js deleted file mode 100644 index 99219fe..0000000 --- a/recipes/ovh-cloud/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = (Ferdi) => class OVHCloud extends Ferdi {}; diff --git a/recipes/ovh-cloud/package.json b/recipes/ovh-cloud/package.json deleted file mode 100644 index a853f2d..0000000 --- a/recipes/ovh-cloud/package.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "id": "OVHCloud", - "name": "OVH Cloud", - "version": "1.0.0", - "license": "MIT", - "config": { - "serviceURL": "https://www.ovh.com/auth" - } -} diff --git a/recipes/ovh-cloud/service.css b/recipes/ovh-cloud/service.css deleted file mode 100644 index 38dcab0..0000000 --- a/recipes/ovh-cloud/service.css +++ /dev/null @@ -1 +0,0 @@ -/* Insert custom styles you want to insert here */ \ No newline at end of file diff --git a/recipes/ovh-cloud/webview.js b/recipes/ovh-cloud/webview.js deleted file mode 100644 index ee7d8aa..0000000 --- a/recipes/ovh-cloud/webview.js +++ /dev/null @@ -1,14 +0,0 @@ -var _path = _interopRequireDefault(require('path')); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -module.exports = Ferdi => { - // TODO: If your ovh-cloud service has unread messages, uncomment these lines to implement the logic for updating the badges - // const getMessages = function getMessages() { - // // TODO: Insert your notification-finding code here - // Ferdi.setBadge(0, 0); - // }; - // Ferdi.loop(getMessages); - - Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); -}; diff --git a/recipes/paymo/icon.svg b/recipes/paymo/icon.svg new file mode 100644 index 0000000..58199e0 --- /dev/null +++ b/recipes/paymo/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/recipes/paymo/index.js b/recipes/paymo/index.js new file mode 100644 index 0000000..23607bd --- /dev/null +++ b/recipes/paymo/index.js @@ -0,0 +1 @@ +module.exports = Ferdi => Ferdi; diff --git a/recipes/paymo/package.json b/recipes/paymo/package.json new file mode 100644 index 0000000..905f8da --- /dev/null +++ b/recipes/paymo/package.json @@ -0,0 +1,9 @@ +{ + "id": "paymo", + "name": "paymo", + "version": "1.1.0", + "license": "MIT", + "config": { + "serviceURL": "https://app.paymoapp.com/auth/login" + } +} diff --git a/recipes/paymo/webview.js b/recipes/paymo/webview.js new file mode 100644 index 0000000..7e19dff --- /dev/null +++ b/recipes/paymo/webview.js @@ -0,0 +1,2 @@ +module.exports = Ferdi => { +}; diff --git a/recipes/paymoapp/icon.svg b/recipes/paymoapp/icon.svg deleted file mode 100644 index 58199e0..0000000 --- a/recipes/paymoapp/icon.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/recipes/paymoapp/index.js b/recipes/paymoapp/index.js deleted file mode 100644 index 23607bd..0000000 --- a/recipes/paymoapp/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = Ferdi => Ferdi; diff --git a/recipes/paymoapp/package.json b/recipes/paymoapp/package.json deleted file mode 100644 index 905f8da..0000000 --- a/recipes/paymoapp/package.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "id": "paymo", - "name": "paymo", - "version": "1.1.0", - "license": "MIT", - "config": { - "serviceURL": "https://app.paymoapp.com/auth/login" - } -} diff --git a/recipes/paymoapp/webview.js b/recipes/paymoapp/webview.js deleted file mode 100644 index 7e19dff..0000000 --- a/recipes/paymoapp/webview.js +++ /dev/null @@ -1,2 +0,0 @@ -module.exports = Ferdi => { -}; diff --git a/recipes/superhuman-email/LICENSE b/recipes/superhuman-email/LICENSE deleted file mode 100644 index fcf56e2..0000000 --- a/recipes/superhuman-email/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2021 CrystalLarsh - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/recipes/superhuman-email/icon.svg b/recipes/superhuman-email/icon.svg deleted file mode 100644 index faaa17f..0000000 --- a/recipes/superhuman-email/icon.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/recipes/superhuman-email/index.js b/recipes/superhuman-email/index.js deleted file mode 100644 index 44bc55d..0000000 --- a/recipes/superhuman-email/index.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = Ferdi => class SuperHuman extends Ferdi { - overrideUserAgent() { - // TODO: Rather than hardcoding like this, the user should set it for their individual installation of Ferdi - return 'Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10136'; - } -}; diff --git a/recipes/superhuman-email/package.json b/recipes/superhuman-email/package.json deleted file mode 100644 index 53509cb..0000000 --- a/recipes/superhuman-email/package.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "id": "superhuman", - "name": "superhuman", - "version": "1.1.0", - "license": "MIT", - "repository": "https://github.com/CrystalLarsh/franz-superhuman-recipe", - "config": { - "hasCustomUrl": true - } -} diff --git a/recipes/superhuman-email/webview.js b/recipes/superhuman-email/webview.js deleted file mode 100644 index 697efa6..0000000 --- a/recipes/superhuman-email/webview.js +++ /dev/null @@ -1,8 +0,0 @@ -module.exports = (Ferdi) => { - const getMessages = () => { - const mentions = document.querySelectorAll('.chat-line .mentioned').length; - Ferdi.setBadge(mentions, 0); - }; - - Ferdi.loop(getMessages); -}; diff --git a/recipes/superhuman/LICENSE b/recipes/superhuman/LICENSE new file mode 100644 index 0000000..fcf56e2 --- /dev/null +++ b/recipes/superhuman/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2021 CrystalLarsh + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/recipes/superhuman/icon.svg b/recipes/superhuman/icon.svg new file mode 100644 index 0000000..faaa17f --- /dev/null +++ b/recipes/superhuman/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/recipes/superhuman/index.js b/recipes/superhuman/index.js new file mode 100644 index 0000000..44bc55d --- /dev/null +++ b/recipes/superhuman/index.js @@ -0,0 +1,6 @@ +module.exports = Ferdi => class SuperHuman extends Ferdi { + overrideUserAgent() { + // TODO: Rather than hardcoding like this, the user should set it for their individual installation of Ferdi + return 'Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10136'; + } +}; diff --git a/recipes/superhuman/package.json b/recipes/superhuman/package.json new file mode 100644 index 0000000..53509cb --- /dev/null +++ b/recipes/superhuman/package.json @@ -0,0 +1,10 @@ +{ + "id": "superhuman", + "name": "superhuman", + "version": "1.1.0", + "license": "MIT", + "repository": "https://github.com/CrystalLarsh/franz-superhuman-recipe", + "config": { + "hasCustomUrl": true + } +} diff --git a/recipes/superhuman/webview.js b/recipes/superhuman/webview.js new file mode 100644 index 0000000..697efa6 --- /dev/null +++ b/recipes/superhuman/webview.js @@ -0,0 +1,8 @@ +module.exports = (Ferdi) => { + const getMessages = () => { + const mentions = document.querySelectorAll('.chat-line .mentioned').length; + Ferdi.setBadge(mentions, 0); + }; + + Ferdi.loop(getMessages); +}; diff --git a/recipes/ticktick/LICENSE b/recipes/ticktick/LICENSE deleted file mode 100644 index b0958eb..0000000 --- a/recipes/ticktick/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2017 Jonas H. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/recipes/ticktick/icon.svg b/recipes/ticktick/icon.svg deleted file mode 100644 index 2521fe7..0000000 --- a/recipes/ticktick/icon.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/recipes/ticktick/index.js b/recipes/ticktick/index.js deleted file mode 100644 index 223ef7e..0000000 --- a/recipes/ticktick/index.js +++ /dev/null @@ -1,2 +0,0 @@ -// default integration (e.g messenger.com, ...) -module.exports = Ferdi => Ferdi; diff --git a/recipes/ticktick/package.json b/recipes/ticktick/package.json deleted file mode 100644 index c7d3b58..0000000 --- a/recipes/ticktick/package.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "id": "TickTick", - "name": "TickTick", - "version": "1.2.0", - "license": "MIT", - "config": { - "serviceURL": "https://www.ticktick.com/#p/inbox/tasks" - } -} diff --git a/recipes/ticktick/webview.js b/recipes/ticktick/webview.js deleted file mode 100644 index 927bb08..0000000 --- a/recipes/ticktick/webview.js +++ /dev/null @@ -1,10 +0,0 @@ -module.exports = (Ferdi) => { - const getMessages = function getMessages() { - // all overdue items are being counted - const count = document.querySelectorAll('.duedate-overdue').length; - - Ferdi.setBadge(count); - }; - - Ferdi.loop(getMessages); -}; -- cgit v1.2.3-54-g00ecf