aboutsummaryrefslogtreecommitdiffstats
path: root/recipes
diff options
context:
space:
mode:
authorLibravatar kytwb <kytwb@pm.me>2021-03-24 21:51:03 +0100
committerLibravatar kytwb <kytwb@pm.me>2021-03-24 21:51:03 +0100
commit30a759f889b5adc93369a937c5d8634183bba874 (patch)
treed7729ee72410d3cde9099ec434587f8cddc06d1d /recipes
parentBump is-svg from 4.2.1 to 4.3.1 (#454) (diff)
downloadferdium-recipes-30a759f889b5adc93369a937c5d8634183bba874.tar.gz
ferdium-recipes-30a759f889b5adc93369a937c5d8634183bba874.tar.zst
ferdium-recipes-30a759f889b5adc93369a937c5d8634183bba874.zip
Move clockify recipe in the right folder
Diffstat (limited to 'recipes')
-rw-r--r--recipes/clockify/README.md5
-rw-r--r--recipes/clockify/icon.pngbin0 -> 21841 bytes
-rw-r--r--recipes/clockify/icon.svg5
-rw-r--r--recipes/clockify/index.js3
-rw-r--r--recipes/clockify/package.json23
-rw-r--r--recipes/clockify/service.css3
-rw-r--r--recipes/clockify/webview.js11
7 files changed, 50 insertions, 0 deletions
diff --git a/recipes/clockify/README.md b/recipes/clockify/README.md
new file mode 100644
index 0000000..a3b4401
--- /dev/null
+++ b/recipes/clockify/README.md
@@ -0,0 +1,5 @@
1# Clockify for Franz
2This is the official Franz recipe for [Clockify](https://clockify.me/), the forever free time tracking application.
3
4### How to create your own Franz recipes:
5* [Read the documentation](https://github.com/meetfranz/plugins)
diff --git a/recipes/clockify/icon.png b/recipes/clockify/icon.png
new file mode 100644
index 0000000..bd3e0dc
--- /dev/null
+++ b/recipes/clockify/icon.png
Binary files differ
diff --git a/recipes/clockify/icon.svg b/recipes/clockify/icon.svg
new file mode 100644
index 0000000..562fbab
--- /dev/null
+++ b/recipes/clockify/icon.svg
@@ -0,0 +1,5 @@
1<svg width="256" height="256" viewBox="0 0 256 256" fill="none" xmlns="http://www.w3.org/2000/svg">
2<rect width="227" height="256" fill="black" fill-opacity="0" transform="translate(14)"/>
3<path fill-rule="evenodd" clip-rule="evenodd" d="M165.124 87.9908L223.901 29.1758L240.726 45.9988L181.948 104.814L165.124 87.9908ZM141.307 148.095C129.804 148.095 120.485 138.735 120.485 127.177C120.485 115.631 129.804 106.259 141.307 106.259C152.81 106.259 162.129 115.631 162.129 127.177C162.129 138.735 152.81 148.095 141.307 148.095ZM241 208.845L224.176 225.68L165.398 166.864L182.223 150.029L241 208.845Z" fill="#222222"/>
4<path fill-rule="evenodd" clip-rule="evenodd" d="M141.913 217.637C153.761 217.637 165.049 215.273 175.395 211.07L204.103 239.81C185.692 250.089 164.5 256 141.913 256C71.2745 256 14 198.689 14 128.006C14 57.3107 71.2745 0 141.913 0C164.274 0 185.275 5.76691 203.554 15.8561L175.323 44.1173C164.99 39.9384 153.738 37.5743 141.913 37.5743C92.4422 37.5743 52.3381 77.8829 52.3381 127.612C52.3381 177.328 92.4422 217.637 141.913 217.637Z" fill="#03A9F4"/>
5</svg>
diff --git a/recipes/clockify/index.js b/recipes/clockify/index.js
new file mode 100644
index 0000000..e8243fb
--- /dev/null
+++ b/recipes/clockify/index.js
@@ -0,0 +1,3 @@
1"use strict";
2
3module.exports = Franz => Franz; \ No newline at end of file
diff --git a/recipes/clockify/package.json b/recipes/clockify/package.json
new file mode 100644
index 0000000..f7b794a
--- /dev/null
+++ b/recipes/clockify/package.json
@@ -0,0 +1,23 @@
1{
2 "id": "clockify",
3 "name": "Clockify",
4 "version": "1.0.0",
5 "description": "Clockify",
6 "main": "index.js",
7 "author": "Sunny Singh <sunnysinghnitb@gmail.com>",
8 "license": "MIT",
9 "config": {
10 "serviceURL": "https://clockify.me/tracker",
11 "message": "",
12 "popup": [],
13 "hasNotificationSound": true,
14 "hasDirectMessages": true,
15 "hasIndirectMessages": false,
16 "hasTeamID": false,
17 "hasPredefinedUrl": true,
18 "hasCustomUrl": false,
19 "webviewOptions": {
20 "disablewebsecurity": ""
21 }
22 }
23}
diff --git a/recipes/clockify/service.css b/recipes/clockify/service.css
new file mode 100644
index 0000000..a16a615
--- /dev/null
+++ b/recipes/clockify/service.css
@@ -0,0 +1,3 @@
1.notice {
2 display: none;
3}
diff --git a/recipes/clockify/webview.js b/recipes/clockify/webview.js
new file mode 100644
index 0000000..5aab471
--- /dev/null
+++ b/recipes/clockify/webview.js
@@ -0,0 +1,11 @@
1"use strict";
2
3module.exports = Franz => {
4 const getMessages = function getMessages() {
5 const notifications = document.querySelectorAll('.notification--number');
6
7 Franz.setBadge(0, notifications.length >= 1 ? 1 : 0);
8 };
9
10 Franz.loop(getMessages);
11}; \ No newline at end of file