diff options
Diffstat (limited to 'recipes/clickup')
-rw-r--r-- | recipes/clickup/icon.png | bin | 0 -> 47846 bytes | |||
-rw-r--r-- | recipes/clickup/icon.svg | 24 | ||||
-rw-r--r-- | recipes/clickup/index.js | 3 | ||||
-rw-r--r-- | recipes/clickup/package.json | 13 | ||||
-rw-r--r-- | recipes/clickup/readme.md | 5 | ||||
-rw-r--r-- | recipes/clickup/webview.js | 11 |
6 files changed, 56 insertions, 0 deletions
diff --git a/recipes/clickup/icon.png b/recipes/clickup/icon.png new file mode 100644 index 0000000..b57eb86 --- /dev/null +++ b/recipes/clickup/icon.png | |||
Binary files 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 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | ||
2 | <!-- Generator: Adobe Illustrator 22.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> | ||
3 | <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" | ||
4 | viewBox="0 0 155 155" style="enable-background:new 0 0 155 155;" xml:space="preserve"> | ||
5 | <style type="text/css"> | ||
6 | .st0{fill:url(#SVGID_1_);} | ||
7 | .st1{fill:url(#SVGID_2_);} | ||
8 | </style> | ||
9 | <g> | ||
10 | |||
11 | <linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="-600.2136" y1="455.8474" x2="-599.2136" y2="455.8474" gradientTransform="matrix(129.03 0 0 -54.12 77458.5469 24798.3184)"> | ||
12 | <stop offset="0" style="stop-color:#8930FD"/> | ||
13 | <stop offset="1" style="stop-color:#49CCF9"/> | ||
14 | </linearGradient> | ||
15 | <path class="st0" d="M13,119l23.8-18.2c12.7,16.5,26.1,24.1,41.1,24.1c14.9,0,27.9-7.5,40-23.9l24.1,17.8 | ||
16 | c-17.4,23.6-39.1,36.1-64.2,36.1C52.8,154.9,31,142.5,13,119z"/> | ||
17 | |||
18 | <linearGradient id="SVGID_2_" gradientUnits="userSpaceOnUse" x1="-600.0046" y1="457.4853" x2="-599.0046" y2="457.4853" gradientTransform="matrix(123.63 0 0 -76.2 74194.3594 34898.5586)"> | ||
19 | <stop offset="0" style="stop-color:#FF02F0"/> | ||
20 | <stop offset="1" style="stop-color:#FFC800"/> | ||
21 | </linearGradient> | ||
22 | <path class="st1" d="M77.8,39.8L35.4,76.3L15.8,53.6L77.9,0.1l61.6,53.5l-19.7,22.6L77.8,39.8z"/> | ||
23 | </g> | ||
24 | </svg> | ||
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 @@ | |||
1 | 'use strict'; | ||
2 | |||
3 | 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 @@ | |||
1 | { | ||
2 | "id": "clickup", | ||
3 | "name": "ClickUp", | ||
4 | "version": "2.0.0", | ||
5 | "description": "ClickUp Productivity Software", | ||
6 | "main": "index.js", | ||
7 | "author": "Genesis Guerrero", | ||
8 | "license": "MIT", | ||
9 | "config": { | ||
10 | "serviceURL": "https://app.clickup.com", | ||
11 | "hasNotificationSound": true | ||
12 | } | ||
13 | } | ||
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 @@ | |||
1 | # ClickUp for Franz | ||
2 | Unofficial support for app.clickup.com in Franz | ||
3 | |||
4 | ### How to create your own Franz recipes: | ||
5 | * [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 @@ | |||
1 | 'use strict'; | ||
2 | |||
3 | module.exports = Franz => { | ||
4 | const getMessages = function getMessages() { | ||
5 | const elements = document.querySelectorAll('.unreadCount'); | ||
6 | const unread = document.querySelector('.cu-notification-alert__dot'); | ||
7 | Franz.setBadge(unread ? 1 : 0); | ||
8 | }; | ||
9 | |||
10 | Franz.loop(getMessages); | ||
11 | }; | ||