WeKnora/frontend
lyingbug 03fda55261 fix(frontend): replace v-html with text interpolation in deepThink
Replace v-html + DOMPurify sanitization with plain Vue text
interpolation ({{ }}) and CSS white-space: pre-wrap for the
thinking content display.

The thinking content is raw model output that should never be
interpreted as HTML. Using v-html here created an unnecessary XSS
attack surface — even with DOMPurify, the \n→<br/> replacement
happened before sanitization, and future changes to sanitizer config
could introduce vulnerabilities.

Plain text rendering with pre-wrap:
- Eliminates XSS risk entirely (no HTML parsing)
- Preserves line breaks natively via CSS
- Removes the sanitizeHTML import and safeProcessThinkContent function
- Simpler code with identical visual output
2026-03-25 22:08:29 +08:00
..
packages chore: Update Dockerfile and package-lock.json for xlsx package management 2025-11-17 13:15:10 +08:00
public feat: 支持运行时动态配置文件大小限制 2026-01-05 16:05:38 +08:00
src fix(frontend): replace v-html with text interpolation in deepThink 2026-03-25 22:08:29 +08:00
.dockerignore fix: ignore non-utf8 words when saving to db 2025-08-21 19:53:54 +08:00
.gitignore init commit 2025-08-05 15:08:07 +08:00
Dockerfile feat: standardize storage configuration and enhance backward compatibility 2026-03-02 21:21:49 +08:00
docker-entrypoint.sh feat: support remote backend and HTTPS proxy 2026-02-09 17:58:35 +08:00
env.d.ts init commit 2025-08-05 15:08:07 +08:00
index.html feat: 支持运行时动态配置文件大小限制 2026-01-05 16:05:38 +08:00
nginx.conf refactor: improve Nginx configuration for file handling 2026-03-03 22:23:23 +08:00
package-lock.json chore: update package dependencies and remove unused modules 2026-03-02 21:21:49 +08:00
package.json fix: upgrade marked dependency to version 17.0.5 to fix code block rendering 2026-03-25 21:25:54 +08:00
tsconfig.app.json init commit 2025-08-05 15:08:07 +08:00
tsconfig.json init commit 2025-08-05 15:08:07 +08:00
tsconfig.node.json init commit 2025-08-05 15:08:07 +08:00
vite.config.ts feat: enhance Vite configuration for dynamic module resolution 2026-03-02 21:21:49 +08:00