vikunja/frontend
kolaente 16790e19f9
fix(editor): preserve consecutive whitespace in comments in TipTap (#1893)
* fix(editor): preserve consecutive whitespace in comments in TipTap

Ensure multiple spaces in comment content are no longer collapsed when editing/saving by:
- Adding SetContentOptions with parseOptions.preserveWhitespace = 'full'
- Applying those options to all setContent calls (initial load, exit edit mode, post-upload cleanup)
- Enabling preserveWhitespace in editor parseOptions

Previously, repeated spaces were normalized away after setContent(false), causing comments with deliberate spacing to be altered unexpectedly.

No behavioral changes beyond whitespace retention; renders identical except space fidelity.

* fix(editor): use preserveWhitespace true instead of full to avoid duplicate checklist items

The 'full' mode preserves all whitespace including between block elements,
which caused the HTML parser to create extra empty list items from newlines
between <li> tags. Using 'true' preserves whitespace in inline content only,
which still achieves the goal of preserving consecutive spaces in text while
not creating spurious nodes from formatting whitespace.

---------

Co-authored-by: maggch <maggch@outlook.com>
2025-11-27 19:10:22 +00:00
..
cypress feat: migrate cypress e2e tests to playwright (#1739) 2025-11-27 16:34:48 +01:00
docs fix: markdown spelling 2025-06-10 12:10:42 +02:00
originalMedia chore: add missing eof newlines (#969) 2025-06-17 09:11:32 +00:00
patches fix(deps): update dependency flexsearch to v0.7.43 (#2095) 2024-09-12 12:35:35 +00:00
public chore: add missing eof newlines (#969) 2025-06-17 09:11:32 +00:00
scripts feat: add subsets for all supported languages 2025-08-17 23:11:30 +02:00
src fix(editor): preserve consecutive whitespace in comments in TipTap (#1893) 2025-11-27 19:10:22 +00:00
tests fix(test): correctly set fixed time in login test 2025-11-27 19:57:23 +01:00
.editorconfig chore(dev): insert final newline 2025-05-23 11:56:50 +02:00
.env.local.example chore: add missing eof newlines (#969) 2025-06-17 09:11:32 +00:00
.gitignore feat: migrate cypress e2e tests to playwright (#1739) 2025-11-27 16:34:48 +01:00
.npmrc feat: remove cypress install v2 (#664) 2025-04-15 09:40:30 +02:00
.nvmrc chore(deps): update node.js to v24.11.1 (#1787) 2025-11-12 13:08:44 +00:00
.stylelintrc.json feat: install stylelint 2025-08-06 10:55:23 +02:00
CHANGELOG.md chore: add missing eof newlines (#969) 2025-06-17 09:11:32 +00:00
LICENSE fix: correct license header references (#882) 2025-06-10 12:18:38 +02:00
README.md docs(frontend): fix env file example name 2025-06-10 12:10:42 +02: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: correct license header references (#882) 2025-06-10 12:18:38 +02:00
env.config.d.ts feat(ts): improve module declarations (#957) 2025-06-16 22:32:40 +02:00
env.d.ts chore: add missing eof newlines (#969) 2025-06-17 09:11:32 +00:00
eslint.config.js chore(deps): update dev-dependencies (#1316) 2025-09-15 15:31:47 +00:00
histoire.config.ts chore: add missing eof newlines (#969) 2025-06-17 09:11:32 +00:00
index.html feat: add logo change toggle setting (#1031) 2025-06-26 15:59:34 +00:00
netlify.toml feat(dev): use proxy server in dev mode (#3069) 2025-03-09 13:40:57 +00:00
package.json fix(deps): update dependency vue-i18n to v11.2.1 (#1891) 2025-11-27 20:07:57 +01:00
playwright.config.ts feat: migrate cypress e2e tests to playwright (#1739) 2025-11-27 16:34:48 +01:00
pnpm-lock.yaml fix(deps): update dependency vue-i18n to v11.2.1 (#1891) 2025-11-27 20:07:57 +01:00
tailwind.config.js fix: correct comments 2025-07-02 17:46:21 +02:00
tsconfig.app.json feat(ts): improve module declarations (#957) 2025-06-16 22:32:40 +02:00
tsconfig.config.json chore: add missing eof newlines (#969) 2025-06-17 09:11:32 +00:00
tsconfig.json fix(ts): align with create-vue setup 2024-06-19 14:05:41 +00:00
tsconfig.vitest.json chore: add missing eof newlines (#969) 2025-06-17 09:11:32 +00:00
vite.config.ts fix(components): handle null values in DatepickerWithValues 2025-11-22 17:23:03 +01:00

README.md

Web frontend for Vikunja

The todo app to organize your life.

License: AGPL-3.0-or-later 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!

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.example as .env.local
  • Uncomment the DEV_PROXY line
  • 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.