aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Sunny Singh <sunnysinghnitb@gmail.com>2021-02-03 02:17:03 +0530
committerLibravatar GitHub <noreply@github.com>2021-02-02 21:47:03 +0100
commit41a4dbc484b6d4c6fe09b2bce7a3364032a01650 (patch)
tree0f939c3f5c186aca531f433583fb5206248d6671
parentFix null element for proton-mail (#432) (diff)
downloadferdium-recipes-41a4dbc484b6d4c6fe09b2bce7a3364032a01650.tar.gz
ferdium-recipes-41a4dbc484b6d4c6fe09b2bce7a3364032a01650.tar.zst
ferdium-recipes-41a4dbc484b6d4c6fe09b2bce7a3364032a01650.zip
Added recipe for productivity app Clockify (#431)
-rw-r--r--clockify/README.md5
-rw-r--r--clockify/icon.svg20
-rw-r--r--clockify/index.js3
-rw-r--r--clockify/package.json23
-rw-r--r--clockify/service.css3
-rw-r--r--clockify/webview.js11
6 files changed, 65 insertions, 0 deletions
diff --git a/clockify/README.md b/clockify/README.md
new file mode 100644
index 0000000..a3b4401
--- /dev/null
+++ b/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/clockify/icon.svg b/clockify/icon.svg
new file mode 100644
index 0000000..f2fa1d0
--- /dev/null
+++ b/clockify/icon.svg
@@ -0,0 +1,20 @@
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3<svg width="100%" height="100%" viewBox="0 0 33 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;">
4 <g id="Artboard1" transform="matrix(1,0,0,1,-0.0025813,-0.0111808)">
5 <rect x="0.003" y="0.011" width="32.02" height="31.97" style="fill:none;"/>
6 <g id="Group" transform="matrix(1,0,0,1,-5819,3931.01)">
7 <g id="path0_fill" transform="matrix(1,0,0,1,5833.95,-3923.97)">
8 <path d="M4.171,5.499L9.663,0L11.236,1.573L5.743,7.071L4.171,5.499ZM1.946,11.118C0.871,11.118 0,10.243 0,9.162C0,8.083 0.871,7.206 1.946,7.206C3.02,7.206 3.891,8.083 3.891,9.162C3.891,10.243 3.02,11.118 1.946,11.118ZM11.261,16.797L9.689,18.371L4.197,12.872L5.769,11.298L11.261,16.797Z" style="fill:rgb(34,34,34);"/>
9 </g>
10 <g id="path1_fill" transform="matrix(1,0,0,1,5824,-3928)">
11 <clipPath id="_clip1">
12 <rect x="0" y="0" width="25.244" height="26.711"/>
13 </clipPath>
14 <g clip-path="url(#_clip1)">
15 <path d="M121.506,28.309C121.001,29.451 120.277,30.353 119.334,31.011C118.39,31.671 117.347,32 116.207,32C114.604,32 113.156,31.417 111.862,30.253L113.54,27.254C114.308,27.979 115.104,28.342 115.927,28.342C116.75,28.342 117.419,28.045 117.935,27.451C118.45,26.859 118.709,26.21 118.709,25.508C118.709,25.2 116.349,19.191 111.631,7.481L115.581,7.481L120.815,20.399L126.05,7.481L130,7.481L121.506,28.309ZM107.924,3.295C107.134,3.295 106.519,3.542 106.081,4.036C105.641,4.531 105.422,5.196 105.422,6.031L105.422,7.481L110.031,7.481L110.031,10.447L105.422,10.447L105.422,25.014L101.735,25.014L101.735,10.447L99.53,10.447L99.53,7.481L101.735,7.481L101.735,6.129C101.735,4.284 102.289,2.817 103.398,1.73C104.505,0.642 105.844,0.098 107.414,0.098C108.983,0.098 110.414,0.681 111.71,1.845L110.195,4.448C109.471,3.68 108.714,3.295 107.924,3.295ZM93.803,4.679C93.166,4.679 92.617,4.448 92.156,3.987C91.695,3.526 91.464,2.977 91.464,2.34C91.464,1.702 91.695,1.153 92.156,0.692C92.617,0.23 93.166,0 93.803,0C94.438,0 94.988,0.23 95.448,0.692C95.909,1.153 96.14,1.702 96.14,2.34C96.14,2.977 95.909,3.526 95.448,3.987C94.988,4.448 94.438,4.679 93.803,4.679ZM84.236,25.014L79.035,17.334L76.368,20.036L76.368,25.014L72.681,25.014L72.681,0.559L76.368,0.559L76.368,14.928L83.479,7.481L88.219,7.481L81.569,14.434L88.713,25.014L84.236,25.014ZM63.78,21.915C64.648,21.915 65.491,21.697 66.308,21.274L68.662,23.632C67.01,24.727 65.191,25.277 63.203,25.277C60.767,25.277 58.671,24.448 56.916,22.789C55.16,21.13 54.282,18.96 54.282,16.28C54.282,13.6 55.199,11.419 57.031,9.738C58.863,8.057 61.097,7.216 63.73,7.216C65.515,7.216 67.111,7.637 68.524,8.474L65.889,11.112C65.15,10.803 64.409,10.644 63.664,10.644C62.127,10.644 60.795,11.156 59.664,12.177C58.534,13.198 57.969,14.517 57.969,16.132C57.969,17.746 58.529,19.114 59.648,20.235C60.767,21.355 62.144,21.915 63.78,21.915ZM42.102,25.277C39.469,25.277 37.275,24.403 35.519,22.657C33.762,20.91 32.885,18.774 32.885,16.247C32.885,13.721 33.762,11.583 35.519,9.837C37.275,8.09 39.469,7.216 42.102,7.216C44.736,7.216 46.93,8.09 48.686,9.837C50.442,11.583 51.32,13.721 51.32,16.247C51.32,18.774 50.442,20.91 48.686,22.657C46.93,24.403 44.736,25.277 42.102,25.277ZM46.07,12.111C45.027,11.045 43.705,10.513 42.102,10.513C40.5,10.513 39.178,11.045 38.137,12.111C37.093,13.177 36.572,14.556 36.572,16.247C36.572,17.939 37.093,19.317 38.137,20.382C39.178,21.448 40.5,21.981 42.102,21.981C43.705,21.981 45.027,21.448 46.07,20.382C47.111,19.317 47.633,17.939 47.633,16.247C47.633,14.556 47.111,13.177 46.07,12.111ZM25.362,0.559L29.049,0.559L29.049,25.014L25.362,25.014L25.362,0.559ZM11.953,21.649C13.06,21.649 14.114,21.428 15.081,21.035L17.764,23.722C16.043,24.683 14.063,25.236 11.953,25.236C5.352,25.236 0,19.878 0,13.27C0,6.661 5.352,1.303 11.953,1.303C14.042,1.303 16.004,1.842 17.712,2.785L15.074,5.427C14.109,5.036 13.057,4.815 11.953,4.815C7.33,4.815 3.582,8.584 3.582,13.233C3.582,17.881 7.33,21.649 11.953,21.649ZM95.613,25.014L91.926,25.014L91.926,7.481L95.613,7.481L95.613,25.014Z" style="fill:rgb(3,169,244);"/>
16 </g>
17 </g>
18 </g>
19 </g>
20</svg>
diff --git a/clockify/index.js b/clockify/index.js
new file mode 100644
index 0000000..e8243fb
--- /dev/null
+++ b/clockify/index.js
@@ -0,0 +1,3 @@
1"use strict";
2
3module.exports = Franz => Franz; \ No newline at end of file
diff --git a/clockify/package.json b/clockify/package.json
new file mode 100644
index 0000000..f7b794a
--- /dev/null
+++ b/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/clockify/service.css b/clockify/service.css
new file mode 100644
index 0000000..a16a615
--- /dev/null
+++ b/clockify/service.css
@@ -0,0 +1,3 @@
1.notice {
2 display: none;
3}
diff --git a/clockify/webview.js b/clockify/webview.js
new file mode 100644
index 0000000..5aab471
--- /dev/null
+++ b/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