diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2022-04-18 06:51:50 -0500 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2022-04-18 06:51:50 -0500 |
commit | 18801ed0c02627e87639dc0848cab44dacc18be2 (patch) | |
tree | 15e56ba66c68bf7b4594e6c9fdef44e037b4be31 /recipes/kimaicloud | |
parent | Remove deprecated webPreference flag (diff) | |
download | ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.gz ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.zst ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.zip |
Rebranded from 'ferdi' to 'ferdium' (companion changes for the main repo PR #2)
Diffstat (limited to 'recipes/kimaicloud')
-rw-r--r-- | recipes/kimaicloud/index.js | 2 | ||||
-rw-r--r-- | recipes/kimaicloud/package.json | 2 | ||||
-rw-r--r-- | recipes/kimaicloud/webview.js | 10 |
3 files changed, 7 insertions, 7 deletions
diff --git a/recipes/kimaicloud/index.js b/recipes/kimaicloud/index.js index 23607bd..dd41f72 100644 --- a/recipes/kimaicloud/index.js +++ b/recipes/kimaicloud/index.js | |||
@@ -1 +1 @@ | |||
module.exports = Ferdi => Ferdi; | module.exports = Ferdium => Ferdium; | ||
diff --git a/recipes/kimaicloud/package.json b/recipes/kimaicloud/package.json index 5a5a9df..c5c9c37 100644 --- a/recipes/kimaicloud/package.json +++ b/recipes/kimaicloud/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "kimaicloud", | 2 | "id": "kimaicloud", |
3 | "name": "Kimai Cloud", | 3 | "name": "Kimai Cloud", |
4 | "version": "1.2.0", | 4 | "version": "1.3.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "repository": "https://github.com/kimai-cloud/recipe-kimaicloud", | 6 | "repository": "https://github.com/kimai-cloud/recipe-kimaicloud", |
7 | "config": { | 7 | "config": { |
diff --git a/recipes/kimaicloud/webview.js b/recipes/kimaicloud/webview.js index 975b53d..2855aa2 100644 --- a/recipes/kimaicloud/webview.js +++ b/recipes/kimaicloud/webview.js | |||
@@ -1,15 +1,15 @@ | |||
1 | module.exports = (Ferdi) => { | 1 | module.exports = (Ferdium) => { |
2 | const getMessages = () => { | 2 | const getMessages = () => { |
3 | let count = 0; | 3 | let count = 0; |
4 | 4 | ||
5 | // get amount of running timesheets | 5 | // get amount of running timesheets |
6 | const label = document.querySelector('.main-header .navbar .dropdown.messages-menu .ticktac span.label'); | 6 | const label = document.querySelector('.main-header .navbar .dropdown.messages-menu .ticktac span.label'); |
7 | if (label !== undefined) { | 7 | if (label !== undefined) { |
8 | count = Ferdi.safeParseInt(label.textContent); | 8 | count = Ferdium.safeParseInt(label.textContent); |
9 | } | 9 | } |
10 | 10 | ||
11 | // set Ferdi badge | 11 | // set Ferdium badge |
12 | Ferdi.setBadge(count); | 12 | Ferdium.setBadge(count); |
13 | }; | 13 | }; |
14 | 14 | ||
15 | document.addEventListener('click', (e) => { | 15 | document.addEventListener('click', (e) => { |
@@ -22,5 +22,5 @@ module.exports = (Ferdi) => { | |||
22 | } | 22 | } |
23 | }); | 23 | }); |
24 | 24 | ||
25 | Ferdi.loop(getMessages); | 25 | Ferdium.loop(getMessages); |
26 | }; | 26 | }; |