feat(admin): codeeditor field on CodeMirror 6, loaded lazily

- Pin the seven approved CodeMirror/lezer packages exactly; lockfile integrity matches the decision note
- Lazy createCodeEditor with Go {{ }} highlighting, form hotkeys kept, Tab unbound
- Loading skeleton, chunk-failure textarea fallback, read-only pre

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-13 13:28:02 +01:00
parent 7e2c01172f
commit 9975cf4b52
6 changed files with 597 additions and 26 deletions

View File

@@ -14,9 +14,16 @@
"gen:api": "openapi-typescript openapi/admin.json -o src/api/schema.d.ts"
},
"dependencies": {
"@codemirror/commands": "6.11.1",
"@codemirror/lang-css": "6.3.1",
"@codemirror/lang-html": "6.4.12",
"@codemirror/language": "6.13.1",
"@codemirror/state": "6.7.6",
"@codemirror/view": "6.43.15",
"@fontsource/dm-mono": "5.3.0",
"@fontsource/dm-sans": "5.3.0",
"@internationalized/date": "3.12.4",
"@lezer/highlight": "1.2.5",
"@lucide/vue": "1.17.0",
"@tiptap/core": "3.31.4",
"@tiptap/pm": "3.31.4",