diff options
author | 2021-09-12 22:01:51 +0530 | |
---|---|---|
committer | 2021-09-12 22:06:03 +0530 | |
commit | 9db43e100a672b6d6932ac68c0fbe503c129138b (patch) | |
tree | 4f6a31d25a7345c5d92dbd8b80d30ce7d129944f /recipes/kimai-cloud | |
parent | New recipe: 'stackoverflow' (#707) (diff) | |
download | ferdium-recipes-9db43e100a672b6d6932ac68c0fbe503c129138b.tar.gz ferdium-recipes-9db43e100a672b6d6932ac68c0fbe503c129138b.tar.zst ferdium-recipes-9db43e100a672b6d6932ac68c0fbe503c129138b.zip |
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
Diffstat (limited to 'recipes/kimai-cloud')
-rw-r--r-- | recipes/kimai-cloud/icon.svg | 1 | ||||
-rw-r--r-- | recipes/kimai-cloud/index.js | 1 | ||||
-rw-r--r-- | recipes/kimai-cloud/package.json | 12 | ||||
-rw-r--r-- | recipes/kimai-cloud/webview.js | 26 |
4 files changed, 0 insertions, 40 deletions
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 @@ | |||
1 | <svg xmlns="http://www.w3.org/2000/svg" width="440" height="440" style="zoom:1"><radialGradient id="b" cy="41.267" r="160.5" gradientTransform="matrix(1.16733 0 0 1.19662 -102.241 -19.722)" cx="611" gradientUnits="userSpaceOnUse"><stop stop-color="#00AAE9" offset="0"/><stop stop-color="#1E87B6" offset="1"/></radialGradient><radialGradient id="c" cy="-16.38" r="55.747" gradientTransform="matrix(1.92951 -1.114 1.15503 2.00056 -1087.686 1104.895)" cx="873.783" gradientUnits="userSpaceOnUse"><stop stop-color="#f9f9f9" offset="0"/><stop stop-color="#fff" offset="1"/></radialGradient><linearGradient id="a" y1="234.571" x1="611.143" y2="-110.916" x2="610.571" gradientUnits="userSpaceOnUse"><stop stop-color="#f2f2f2" offset="0"/><stop stop-color="#f2f2f2" offset="1"/></linearGradient><g transform="translate(-390.567 181.567)"><circle cx="611" r="187.777" fill="url(#a)" cy="38"/><circle stroke="#fff" stroke-linejoin="round" stroke-width="3" cy="38" fill="url(#b)" r="166.286" cx="611"/><path d="m571.156 108.308 110-64-110-64" fill-rule="evenodd" fill="url(#c)"/></g><g fill="#76B5D5" transform="translate(-390.567 181.567)" fill-rule="evenodd"><rect x="-542.469" height="32" y="419.41" width="14" transform="rotate(-146.737)" ry="7"/><rect x="-320.158" height="32" y="642.978" width="14" transform="rotate(-117.207)" ry="7"/><rect x="-48.536" height="41" y="718.754" width="18" transform="rotate(-90)" ry="9"/><rect x="244.405" height="32" y="673.799" width="14" transform="rotate(-61.862)" ry="7"/><rect x="-505.885" height="32" y="-503.868" width="14" transform="rotate(148.251)" ry="7"/><rect x="-620.297" height="41" y="-187.943" width="18" transform="scale(-1)" ry="9"/><rect x="-539.166" height="32" y="148.582" width="14" transform="rotate(-147.175)" ry="7"/><rect x="-319.728" height="32" y="374.805" width="14" transform="rotate(-117.207)" ry="7"/><rect x="-48.536" height="41" y="460.965" width="18" transform="rotate(-90)" ry="9"/><rect x="250.842" height="32" y="406.196" width="14" transform="rotate(-61.862)" ry="7"/><rect x="-505.958" height="32" y="-236.96" width="14" transform="rotate(148.136)" ry="7"/><g transform="scale(-1)"><rect x="-633.025" height="41" y="69.121" width="18" ry="9"/><rect x="-606.761" height="41" y="69.121" width="18" ry="9"/></g></g></svg> \ 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 @@ | |||
1 | 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 @@ | |||
1 | { | ||
2 | "id": "kimaicloud", | ||
3 | "name": "Kimai Cloud", | ||
4 | "version": "1.1.0", | ||
5 | "license": "MIT", | ||
6 | "repository": "https://github.com/kimai-cloud/recipe-kimaicloud", | ||
7 | "config": { | ||
8 | "serviceURL": "https://{teamId}.kimai.cloud", | ||
9 | "hasTeamId": true, | ||
10 | "urlInputSuffix": ".kimai.cloud" | ||
11 | } | ||
12 | } | ||
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 @@ | |||
1 | module.exports = (Ferdi) => { | ||
2 | const getMessages = function getMessages() { | ||
3 | let count = 0; | ||
4 | |||
5 | // get amount of running timesheets | ||
6 | const label = document.querySelector('.main-header .navbar .dropdown.messages-menu .ticktac span.label'); | ||
7 | if (label !== undefined) { | ||
8 | count = label.textContent; | ||
9 | } | ||
10 | |||
11 | // set Ferdi badge | ||
12 | Ferdi.setBadge(count); | ||
13 | }; | ||
14 | |||
15 | document.addEventListener('click', (e) => { | ||
16 | const { tagName, target, href } = e.target; | ||
17 | |||
18 | if (tagName === 'A' && target === '_blank') { | ||
19 | e.preventDefault(); | ||
20 | e.stopImmediatePropagation(); | ||
21 | window.open(href); | ||
22 | } | ||
23 | }); | ||
24 | |||
25 | Ferdi.loop(getMessages); | ||
26 | }; | ||