Review point (#2950, comment 3444116036): when the surrounding task <dialog> closed while the link prompt was open, the prompt was orphaned and cleanup() never ran, leaking listeners and an unresolved promise. Treat the prompt as a sub-modal of the task dialog: pressing Escape while it is open now preventDefault()/stopPropagation()s the keydown so the native modal <dialog> does not close on Escape, resolves the prompt with '' (cancel) and runs cleanup() — only the prompt is dismissed, the task dialog stays open. A one-shot 'cancel' listener on the enclosing dialog backs this up in case the keydown handling is insufficient in some browser. Tighten cleanup() so the prompt fully tears down regardless of how it closes (Enter / Escape / click-outside): it now removes the scroll listener, the document click listener and the dialog cancel listener, and removes the element. handleClickOutside was hoisted so cleanup() can remove it, closing the leaked-listener gap directly. Adds an e2e asserting Escape cancels the prompt while the task dialog stays open; the existing 'Enter creates the link' case still passes. |
||
|---|---|---|
| .. | ||
| docs | ||
| originalMedia | ||
| public | ||
| scripts | ||
| src | ||
| tests | ||
| .editorconfig | ||
| .env.local.example | ||
| .gitignore | ||
| .npmrc | ||
| .nvmrc | ||
| .stylelintrc.json | ||
| CHANGELOG.md | ||
| LICENSE | ||
| README.md | ||
| cliff.toml | ||
| embed.go | ||
| env.config.d.ts | ||
| env.d.ts | ||
| eslint.config.js | ||
| histoire.config.ts | ||
| index.html | ||
| netlify.toml | ||
| package.json | ||
| playwright.config.ts | ||
| pnpm-lock.yaml | ||
| tsconfig.app.json | ||
| tsconfig.config.json | ||
| tsconfig.json | ||
| tsconfig.vitest.json | ||
| vite.config.ts | ||
README.md
Web frontend for Vikunja
The todo app to organize your life.
This is the web frontend for Vikunja, written in Vue.js.
Take a look at our roadmap (hosted on Vikunja!) for a list of things we're currently working on!
For general information about the project, refer to the top-level readme of this repo.
Project setup
pnpm install
Development
Define backend server
You can develop the web front end against any accessible backend, including the demo at https://try.vikunja.io
In order to do so, you need to set the DEV_PROXY env variable. The recommended way to do so is to:
- Copy
.env.local.exampleas.env.local - Uncomment the
DEV_PROXYline - Set the backend url you want to use
In the end, it should look like DEV_PROXY=https://try.vikunja.io if you work against the online demo backend.
Start dev server (compiles and hot-reloads)
pnpm run dev
Compiles and minifies for production
pnpm run build
Lints and fixes files
pnpm run lint
License
This project is licensed under the AGPL-3.0-or-later license. See the LICENSE file for details.