From 7b839c3e3b36758fa4d944ce1dd3ee697dd46901 Mon Sep 17 00:00:00 2001 From: Konstantinos Paparas Date: Fri, 30 Aug 2024 13:08:48 +0200 Subject: [PATCH] docs: adjust vue-typescript contribution entry --- .vitepress/config.mts | 2 +- .../{vue-typescript-testing.md => vue-typescript.md} | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) rename contribution-guides/{vue-typescript-testing.md => vue-typescript.md} (98%) diff --git a/.vitepress/config.mts b/.vitepress/config.mts index 5083795..3fd4855 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -74,7 +74,7 @@ export default defineConfig({ { text: 'Contributing as a Developer', link: '/contribution-guides/contribute-as-developer' }, { text: 'Working on Issues', link: '/contribution-guides/working-on-issues' }, { text: 'Python Code Testing', link: '/contribution-guides/python-testing' }, - { text: 'Vue/Typescript Testing', link: '/contribution-guides/vue-typescript-testing' }, + { text: 'Vue/Typescript', link: '/contribution-guides/vue-typescript' }, { text: 'Manual Testing', link: '/contribution-guides/manual-testing' }, { text: 'Code Profiling', link: '/contribution-guides/code-profiling' }, { text: 'rotki Database', link: '/contribution-guides/rotki-database' }, diff --git a/contribution-guides/vue-typescript-testing.md b/contribution-guides/vue-typescript.md similarity index 98% rename from contribution-guides/vue-typescript-testing.md rename to contribution-guides/vue-typescript.md index f41ffe0..6987cad 100644 --- a/contribution-guides/vue-typescript-testing.md +++ b/contribution-guides/vue-typescript.md @@ -94,7 +94,9 @@ const emit = defineEmits<{ 'update:msg': [msg: string]; }>(); -// 3, I18n & vue-router +const { msg } = toRefs(props); + +// 3. I18n & vue-router const { t } = useI18n(); const router = useRouter(); const route = useRoute(); @@ -121,7 +123,7 @@ watch(title, (title) => { emit('update:msg', title); }); -// 10 Lifecycle +// 10. Lifecycle onMounted(() => { increaseCounter(); });