From 72cd3bcd09d5cc9bee0fad57db1546b302179bb3 Mon Sep 17 00:00:00 2001 From: polv Date: Fri, 17 Jul 2026 18:03:49 +0700 Subject: [PATCH] edit button with validator and YAML --- .vscode/settings.json | 3 +- .../theme/components/SentenceAudio.vue | 10 +----- .../.vitepress/theme/components/VocabQuiz.vue | 13 +++++--- docs/.vitepress/theme/types.ts | 16 +++++++++ docs/howtostudykorean/unit-1/05-tenses.md | 8 ++--- docs/howtostudykorean/unit-1/13-and-with.md | 16 ++++----- package.json | 4 ++- pnpm-lock.yaml | 33 +++++++++++++++---- 8 files changed, 68 insertions(+), 35 deletions(-) create mode 100644 docs/.vitepress/theme/types.ts diff --git a/.vscode/settings.json b/.vscode/settings.json index 460d5c5..ec42c3f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -29,5 +29,6 @@ "editor.formatOnSave": true, "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.maxTokenizationLineLength": 2500 - } + }, + "vue3snippets.enable-compile-vue-file-on-did-save-code": false } \ No newline at end of file diff --git a/docs/.vitepress/theme/components/SentenceAudio.vue b/docs/.vitepress/theme/components/SentenceAudio.vue index 6cc2588..ee1c5a8 100644 --- a/docs/.vitepress/theme/components/SentenceAudio.vue +++ b/docs/.vitepress/theme/components/SentenceAudio.vue @@ -15,15 +15,7 @@ import { useTemplateRef } from "vue"; import TTS from "./TTS.vue"; import AudioButton from "./AudioButton.vue"; - -export interface IVoc { - ko: string; - audio?: string; - en: string; - usages?: IVoc[]; - notes?: string; - examples?: IVoc[]; -} +import { IVoc } from "../types.ts"; defineProps<{ v: IVoc; diff --git a/docs/.vitepress/theme/components/VocabQuiz.vue b/docs/.vitepress/theme/components/VocabQuiz.vue index a0b3342..7169661 100644 --- a/docs/.vitepress/theme/components/VocabQuiz.vue +++ b/docs/.vitepress/theme/components/VocabQuiz.vue @@ -57,7 +57,7 @@