aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/monday
diff options
context:
space:
mode:
authorLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-08-27 18:13:24 +0530
committerLibravatar GitHub <noreply@github.com>2021-08-27 18:13:24 +0530
commit155c4b832281348c16be1f4ef667e6e23dbf1bd8 (patch)
treed144e2de2e6c7fb2e334246e8a4aecdbeb08ef8d /recipes/monday
parentdocs: fixed template file for creating recipe. (diff)
downloadferdium-recipes-155c4b832281348c16be1f4ef667e6e23dbf1bd8.tar.gz
ferdium-recipes-155c4b832281348c16be1f4ef667e6e23dbf1bd8.tar.zst
ferdium-recipes-155c4b832281348c16be1f4ef667e6e23dbf1bd8.zip
chore: normalized all recipes to ensure compatibility with es6 (#639)
- Removed some calls to set badge with '0' all the time. - Removed all 'sourceMaps' since they are all outdated atm.
Diffstat (limited to 'recipes/monday')
-rw-r--r--recipes/monday/index.js2
-rw-r--r--recipes/monday/package.json2
-rwxr-xr-xrecipes/monday/webview.js9
3 files changed, 7 insertions, 6 deletions
diff --git a/recipes/monday/index.js b/recipes/monday/index.js
index 258da41..23607bd 100644
--- a/recipes/monday/index.js
+++ b/recipes/monday/index.js
@@ -1 +1 @@
module.exports = Franz => Franz; module.exports = Ferdi => Ferdi;
diff --git a/recipes/monday/package.json b/recipes/monday/package.json
index 30436b6..35556a8 100644
--- a/recipes/monday/package.json
+++ b/recipes/monday/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "monday", 2 "id": "monday",
3 "name": "Monday", 3 "name": "Monday",
4 "version": "1.0.4", 4 "version": "1.1.0",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://{teamId}.monday.com", 7 "serviceURL": "https://{teamId}.monday.com",
diff --git a/recipes/monday/webview.js b/recipes/monday/webview.js
index e07e784..bdd73ca 100755
--- a/recipes/monday/webview.js
+++ b/recipes/monday/webview.js
@@ -2,7 +2,7 @@ const _path = _interopRequireDefault(require('path'));
2 2
3function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 3function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4 4
5module.exports = Franz => { 5module.exports = Ferdi => {
6 const getMessages = function getMessages() { 6 const getMessages = function getMessages() {
7 let count = 0; 7 let count = 0;
8 8
@@ -12,9 +12,10 @@ module.exports = Franz => {
12 count += parseInt(counters[i].textContent); 12 count += parseInt(counters[i].textContent);
13 } 13 }
14 14
15 Franz.setBadge(count); 15 Ferdi.setBadge(count);
16 }; 16 };
17 17
18 Franz.injectCSS(_path.default.join(__dirname, 'service.css')); 18 Ferdi.loop(getMessages);
19 Franz.loop(getMessages); 19
20 Ferdi.injectCSS(_path.default.join(__dirname, 'service.css'));
20}; 21};