diff --git a/CHANGELOG.md b/CHANGELOG.md index dac9a51..5577cbd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Trello Kanban Board +## 0.7.1 + +### Patch Changes + +- 387ba59: Add option to hide mouse trails. + ## 0.7.0 ### Minor Changes diff --git a/extension/interface.ts b/extension/interface.ts index 548a2e5..679a7ad 100644 --- a/extension/interface.ts +++ b/extension/interface.ts @@ -26,4 +26,5 @@ export interface BoardType { columns: ColumnType[]; tasks: { [key: string]: TaskType }; scope: string; + hideTrails?: boolean; } diff --git a/package.json b/package.json index 855a904..1245667 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "trello-kanban-task-board", "private": true, - "version": "0.7.0", + "version": "0.7.1", "type": "module", "scripts": { "dev": "vite --port 3000", @@ -25,7 +25,8 @@ "react-toastify": "^9.1.3", "react-webgl-trails": "^0.0.4", "rehype-raw": "^7.0.0", - "remark-gfm": "^4.0.0" + "remark-gfm": "^4.0.0", + "webgl-generative-particles": "^0.0.1" }, "devDependencies": { "@changesets/cli": "^2.27.1", diff --git a/src/App.tsx b/src/App.tsx index a27940a..28317d7 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -8,6 +8,7 @@ import { ToastContainer } from "react-toastify"; import "react-toastify/dist/ReactToastify.css"; import { ThemeSwitcher } from "nextjs-themes"; import { MouseTrail } from "react-webgl-trails"; +import { Particles } from "webgl-generative-particles/react"; function App() { const [state, _setState] = useState(defaultBoard); @@ -25,7 +26,12 @@ function App() { - + {!state.hideTrails && ( + <> + + + + )} ); } diff --git a/src/components/drawer/drawer.module.scss b/src/components/drawer/drawer.module.scss index caffbf0..52930d4 100644 --- a/src/components/drawer/drawer.module.scss +++ b/src/components/drawer/drawer.module.scss @@ -9,7 +9,8 @@ padding: 0; list-style-type: none; } - a { + a, + label { padding: 20px; display: block; color: inherit; diff --git a/src/components/drawer/index.tsx b/src/components/drawer/index.tsx index 0824138..b68ad0f 100644 --- a/src/components/drawer/index.tsx +++ b/src/components/drawer/index.tsx @@ -1,6 +1,7 @@ import { vscode } from "utils/vscode"; import styles from "./drawer.module.scss"; import { MouseEventHandler } from "react"; +import { useGlobalState } from "utils/context"; const links = [ { @@ -26,10 +27,24 @@ const links = [ ]; export default function Drawer({ open, scope }: { open: boolean; scope: string }) { + const { state, setState } = useGlobalState(); + return (