From 6f5e4a00588aefdda7a5a1cfe70935870e7e234a Mon Sep 17 00:00:00 2001 From: Bennett Date: Tue, 22 Sep 2020 20:56:48 +0200 Subject: Unpack recipes and update recipes icons (#292) Co-authored-by: Amine Mouafik --- recipes/clickup/icon.png | Bin 0 -> 47846 bytes recipes/clickup/icon.svg | 24 ++++++++++++++++++++++++ recipes/clickup/index.js | 3 +++ recipes/clickup/package.json | 13 +++++++++++++ recipes/clickup/readme.md | 5 +++++ recipes/clickup/webview.js | 11 +++++++++++ 6 files changed, 56 insertions(+) create mode 100644 recipes/clickup/icon.png create mode 100644 recipes/clickup/icon.svg create mode 100644 recipes/clickup/index.js create mode 100644 recipes/clickup/package.json create mode 100644 recipes/clickup/readme.md create mode 100644 recipes/clickup/webview.js (limited to 'recipes/clickup') diff --git a/recipes/clickup/icon.png b/recipes/clickup/icon.png new file mode 100644 index 0000000..b57eb86 Binary files /dev/null and b/recipes/clickup/icon.png differ diff --git a/recipes/clickup/icon.svg b/recipes/clickup/icon.svg new file mode 100644 index 0000000..b910a17 --- /dev/null +++ b/recipes/clickup/icon.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + diff --git a/recipes/clickup/index.js b/recipes/clickup/index.js new file mode 100644 index 0000000..8a99610 --- /dev/null +++ b/recipes/clickup/index.js @@ -0,0 +1,3 @@ +'use strict'; + +module.exports = Franz => Franz; diff --git a/recipes/clickup/package.json b/recipes/clickup/package.json new file mode 100644 index 0000000..b44529e --- /dev/null +++ b/recipes/clickup/package.json @@ -0,0 +1,13 @@ +{ + "id": "clickup", + "name": "ClickUp", + "version": "2.0.0", + "description": "ClickUp Productivity Software", + "main": "index.js", + "author": "Genesis Guerrero", + "license": "MIT", + "config": { + "serviceURL": "https://app.clickup.com", + "hasNotificationSound": true + } +} diff --git a/recipes/clickup/readme.md b/recipes/clickup/readme.md new file mode 100644 index 0000000..f8459ee --- /dev/null +++ b/recipes/clickup/readme.md @@ -0,0 +1,5 @@ +# ClickUp for Franz +Unofficial support for app.clickup.com in Franz + +### How to create your own Franz recipes: +* [Read the documentation](https://github.com/meetfranz/plugins) diff --git a/recipes/clickup/webview.js b/recipes/clickup/webview.js new file mode 100644 index 0000000..ef7a41e --- /dev/null +++ b/recipes/clickup/webview.js @@ -0,0 +1,11 @@ +'use strict'; + +module.exports = Franz => { + const getMessages = function getMessages() { + const elements = document.querySelectorAll('.unreadCount'); + const unread = document.querySelector('.cu-notification-alert__dot'); + Franz.setBadge(unread ? 1 : 0); + }; + + Franz.loop(getMessages); +}; -- cgit v1.2.3-70-g09d2