From 30a759f889b5adc93369a937c5d8634183bba874 Mon Sep 17 00:00:00 2001 From: kytwb Date: Wed, 24 Mar 2021 21:51:03 +0100 Subject: Move clockify recipe in the right folder --- clockify/README.md | 5 ----- clockify/icon.svg | 20 -------------------- clockify/index.js | 3 --- clockify/package.json | 23 ----------------------- clockify/service.css | 3 --- clockify/webview.js | 11 ----------- recipes/clockify/README.md | 5 +++++ recipes/clockify/icon.png | Bin 0 -> 21841 bytes recipes/clockify/icon.svg | 5 +++++ recipes/clockify/index.js | 3 +++ recipes/clockify/package.json | 23 +++++++++++++++++++++++ recipes/clockify/service.css | 3 +++ recipes/clockify/webview.js | 11 +++++++++++ 13 files changed, 50 insertions(+), 65 deletions(-) delete mode 100644 clockify/README.md delete mode 100644 clockify/icon.svg delete mode 100644 clockify/index.js delete mode 100644 clockify/package.json delete mode 100644 clockify/service.css delete mode 100644 clockify/webview.js create mode 100644 recipes/clockify/README.md create mode 100644 recipes/clockify/icon.png create mode 100644 recipes/clockify/icon.svg create mode 100644 recipes/clockify/index.js create mode 100644 recipes/clockify/package.json create mode 100644 recipes/clockify/service.css create mode 100644 recipes/clockify/webview.js diff --git a/clockify/README.md b/clockify/README.md deleted file mode 100644 index a3b4401..0000000 --- a/clockify/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# Clockify for Franz -This is the official Franz recipe for [Clockify](https://clockify.me/), the forever free time tracking application. - -### How to create your own Franz recipes: -* [Read the documentation](https://github.com/meetfranz/plugins) diff --git a/clockify/icon.svg b/clockify/icon.svg deleted file mode 100644 index f2fa1d0..0000000 --- a/clockify/icon.svg +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/clockify/index.js b/clockify/index.js deleted file mode 100644 index e8243fb..0000000 --- a/clockify/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = Franz => Franz; \ No newline at end of file diff --git a/clockify/package.json b/clockify/package.json deleted file mode 100644 index f7b794a..0000000 --- a/clockify/package.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "id": "clockify", - "name": "Clockify", - "version": "1.0.0", - "description": "Clockify", - "main": "index.js", - "author": "Sunny Singh ", - "license": "MIT", - "config": { - "serviceURL": "https://clockify.me/tracker", - "message": "", - "popup": [], - "hasNotificationSound": true, - "hasDirectMessages": true, - "hasIndirectMessages": false, - "hasTeamID": false, - "hasPredefinedUrl": true, - "hasCustomUrl": false, - "webviewOptions": { - "disablewebsecurity": "" - } - } -} diff --git a/clockify/service.css b/clockify/service.css deleted file mode 100644 index a16a615..0000000 --- a/clockify/service.css +++ /dev/null @@ -1,3 +0,0 @@ -.notice { - display: none; -} diff --git a/clockify/webview.js b/clockify/webview.js deleted file mode 100644 index 5aab471..0000000 --- a/clockify/webview.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; - -module.exports = Franz => { - const getMessages = function getMessages() { - const notifications = document.querySelectorAll('.notification--number'); - - Franz.setBadge(0, notifications.length >= 1 ? 1 : 0); - }; - - Franz.loop(getMessages); -}; \ No newline at end of file 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 @@ +# Clockify for Franz +This is the official Franz recipe for [Clockify](https://clockify.me/), the forever free time tracking application. + +### How to create your own Franz recipes: +* [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 Binary files /dev/null and b/recipes/clockify/icon.png 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 @@ + + + + + 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 @@ +"use strict"; + +module.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 @@ +{ + "id": "clockify", + "name": "Clockify", + "version": "1.0.0", + "description": "Clockify", + "main": "index.js", + "author": "Sunny Singh ", + "license": "MIT", + "config": { + "serviceURL": "https://clockify.me/tracker", + "message": "", + "popup": [], + "hasNotificationSound": true, + "hasDirectMessages": true, + "hasIndirectMessages": false, + "hasTeamID": false, + "hasPredefinedUrl": true, + "hasCustomUrl": false, + "webviewOptions": { + "disablewebsecurity": "" + } + } +} 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 @@ +.notice { + display: none; +} 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 @@ +"use strict"; + +module.exports = Franz => { + const getMessages = function getMessages() { + const notifications = document.querySelectorAll('.notification--number'); + + Franz.setBadge(0, notifications.length >= 1 ? 1 : 0); + }; + + Franz.loop(getMessages); +}; \ No newline at end of file -- cgit v1.2.3-70-g09d2