vikunja/frontend
DanielPantle faff1040dc feat(task): cancel editing task title with escape (#2730)
With this change, it is possible to cancel editing the task title with pressing the escape key.

# Problem

Before it was not possible to cancel editing the task title. Pressing outside the title saves the changes that have already been done (which is intended I think). But when e.g. pasting something with a wrong format, I was not able to revert the change without saving and editing it again

Example: after accidentially pasting something with multiple lines it is not possible to escape, the only way to revert this is to save and edit again manually:
![grafik.png](/attachments/11d3559a-3111-458f-9a9c-4107292054fa)

# Solution

This PR implements a listener for the escape key that sets the title back to its original value and blurs the focus of the title

# Additional notes

- I checked this in the "page" view of the task and the "popup" view and it worked in both. For me, the popup does not close with the escape key (as it often does on other sites), therefore there is no collision with this function. But I think it would be good to check this again to make sure it does not break anything like this
- I don't know anything about testing in this repository, if it is possible/necessary to implement a test for this feature please leave a comment :)

Co-authored-by: Daniel Pantle <daniel.pantle@newtec.de>
Reviewed-on: https://kolaente.dev/vikunja/vikunja/pulls/2730
Co-authored-by: DanielPantle <danielpantle@noreply.kolaente.dev>
Co-committed-by: DanielPantle <danielpantle@noreply.kolaente.dev>
2024-10-02 07:32:33 +00:00
..
cypress fix(test): use correct selector for modal header 2024-09-29 14:16:43 +02:00
docs chore: move frontend files 2024-02-07 14:56:56 +01:00
originalMedia chore: move frontend files 2024-02-07 14:56:56 +01:00
patches fix(deps): update dependency flexsearch to v0.7.43 (#2095) 2024-09-12 12:35:35 +00:00
public feat: emoji reactions for tasks and comments (#2196) 2024-03-12 19:25:58 +00:00
scripts fix: clarify preview deployment text and fix typo 2024-02-25 13:51:43 +01:00
src feat(task): cancel editing task title with escape (#2730) 2024-10-02 07:32:33 +00:00
.editorconfig chore: move frontend files 2024-02-07 14:56:56 +01:00
.env.local.example chore: move frontend files 2024-02-07 14:56:56 +01:00
.eslintrc.cjs feat: remove eslint rule vue/no-required-prop-with-default 2024-07-05 11:49:29 +02:00
.gitignore fix(task): dragging and dropping on mobile 2024-09-18 18:00:27 +02:00
.nvmrc chore(deps): update dependency node to v20.16.0 2024-08-12 12:26:53 +02:00
CHANGELOG.md chore: release preparation 2024-02-10 14:46:33 +01:00
LICENSE chore: move frontend files 2024-02-07 14:56:56 +01:00
README.md docs: remove mention of vikunja/api and vikunja/frontend repos 2024-02-08 14:31:02 +01:00
cliff.toml chore: move frontend files 2024-02-07 14:56:56 +01:00
cypress.config.ts fix(ts): align with create-vue setup 2024-06-19 14:05:41 +00:00
embed.go fix: lint 2024-02-09 15:32:12 +01:00
env.config.d.ts chore: move frontend files 2024-02-07 14:56:56 +01:00
env.d.ts feat: remove polyfills 2024-06-10 21:22:39 +00:00
histoire.config.ts chore: move frontend files 2024-02-07 14:56:56 +01:00
index.html feat: move custom logo setting to api 2024-02-09 14:33:21 +01:00
netlify.toml chore: move frontend files 2024-02-07 14:56:56 +01:00
package.json chore(deps): update dev-dependencies 2024-10-02 05:14:56 +00:00
pnpm-lock.yaml chore(deps): update dev-dependencies 2024-10-02 05:14:56 +00:00
tailwind.config.js fix(task): align task title on mobile popup 2024-09-18 11:36:06 +02:00
tsconfig.app.json feat: add tailwind with prefix (#2513) 2024-07-19 07:33:10 +00:00
tsconfig.config.json fix(ts): align with create-vue setup 2024-06-19 14:05:41 +00:00
tsconfig.json fix(ts): align with create-vue setup 2024-06-19 14:05:41 +00:00
tsconfig.vitest.json fix(ts): align with create-vue setup 2024-06-19 14:05:41 +00:00
vite.config.ts feat: add tailwind with prefix (#2513) 2024-07-19 07:33:10 +00:00

README.md

Web frontend for Vikunja

The todo app to organize your life.

Build Status License: AGPL v3 Download Translation

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!

Security Reports

If you find any security-related issues you don't want to disclose publicly, please use the contact information on our website.

Docker

There is a docker image available with support for http/2 and aggressive caching enabled. In order to build it from sources run the command below. (Docker >= v19.03)

export DOCKER_BUILDKIT=1
docker build -t vikunja/frontend .

Refer to multi-platform documentation in order to build for different platforms.

Project setup

pnpm install

Compiles and hot-reloads for development

pnpm run serve

Compiles and minifies for production

pnpm run build

Lints and fixes files

pnpm run lint