fix: three TypeScript build errors in frontend

- Remove unused onMounted import in VisualEditor.vue
- Add missing @codemirror/theme-one-dark to devDependencies
- Add vite-env.d.ts so import.meta.env is typed correctly

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-10 13:21:51 +02:00
parent 2aa055868c
commit 3e41191f45
3 changed files with 3 additions and 1 deletions

View File

@@ -23,6 +23,7 @@
},
"devDependencies": {
"@codemirror/lang-markdown": "^6.2.5",
"@codemirror/theme-one-dark": "^6.1.2",
"@types/node": "^20.14.0",
"@vitejs/plugin-vue": "^5.0.5",
"autoprefixer": "^10.4.19",

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import { watch, onMounted, onBeforeUnmount } from 'vue'
import { watch, onBeforeUnmount } from 'vue'
import { useEditor, EditorContent } from '@tiptap/vue-3'
import StarterKit from '@tiptap/starter-kit'
import { toTipTap, fromTipTap } from '@/bridge/asciidoc-bridge'

1
frontend/src/vite-env.d.ts vendored Normal file
View File

@@ -0,0 +1 @@
/// <reference types="vite/client" />