-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# ClickUp Franz Recipe | ||
This is a recipe for integrating [ClickUp](https://clickup.com/) into [Franz](https://meetfranz.com/). | ||
|
||
## How do I install the ClickUp Franz Recipe? | ||
1. Clone or download and extract this repository into the Franz Plugins folder on your machine (note that this `dev` directory may not exist yet, and you must create it): | ||
* Mac: `~/Library/Application Support/Franz/recipes/dev/` | ||
* Windows: `%appdata%/Franz/recipes/dev/` | ||
* Linux: `~/.config/Franz/recipes/dev` | ||
2. Reload Franz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = Franz => Franz; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"id": "clickup", | ||
"name": "ClickUp", | ||
"version": "1.0.0", | ||
"description": "ClickUp brings your team together to plan, track, and collaborate on any project — all in one place.", | ||
"main": "index.js", | ||
"author": "Dan Vu Quoc <[email protected]>", | ||
"license": "MIT", | ||
"config": { | ||
"serviceURL": "https://app.clickup.com", | ||
"hasNotificationSound": true, | ||
"hasDirectMessages": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module.exports = (Franz) => { | ||
const getNotifications = function getNotifications() { | ||
let counter = document.querySelector('.cu-unseen-notifications-counter__body'); | ||
if (counter !== null) { | ||
Franz.setBadge(parseInt(counter.innerText)); | ||
} else { | ||
Franz.setBadge(0); | ||
} | ||
}; | ||
Franz.loop(getNotifications); | ||
}; |