Skip to content

Commit

Permalink
feat: initial code commit
Browse files Browse the repository at this point in the history
  • Loading branch information
danvuquoc authored Oct 6, 2021
1 parent 2816d86 commit cd63243
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
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
Binary file added icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = Franz => Franz;
14 changes: 14 additions & 0 deletions package.json
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
}
}
11 changes: 11 additions & 0 deletions webview.js
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);
};

0 comments on commit cd63243

Please sign in to comment.