chore: use pascal for component names

This commit is contained in:
Anthony Fu 2022-04-11 09:49:38 +08:00
parent 25130ff54c
commit d087269b67
5 changed files with 8 additions and 8 deletions

View File

@ -11,5 +11,5 @@ useHead({
</script> </script>
<template> <template>
<router-view /> <RouterView />
</template> </template>

View File

@ -12,9 +12,9 @@ const toggleLocales = () => {
<template> <template>
<nav text-xl mt-6> <nav text-xl mt-6>
<router-link class="icon-btn mx-2" to="/" :title="t('button.home')"> <RouterLink class="icon-btn mx-2" to="/" :title="t('button.home')">
<div i-carbon-campsite /> <div i-carbon-campsite />
</router-link> </RouterLink>
<button class="icon-btn mx-2 !outline-none" :title="t('button.toggle_dark')" @click="toggleDark()"> <button class="icon-btn mx-2 !outline-none" :title="t('button.toggle_dark')" @click="toggleDark()">
<div i="carbon-sun dark:carbon-moon" /> <div i="carbon-sun dark:carbon-moon" />
@ -24,9 +24,9 @@ const toggleLocales = () => {
<div i-carbon-language /> <div i-carbon-language />
</a> </a>
<router-link class="icon-btn mx-2" to="/about" :title="t('button.about')"> <RouterLink class="icon-btn mx-2" to="/about" :title="t('button.about')">
<div i-carbon-dicom-overlay /> <div i-carbon-dicom-overlay />
</router-link> </RouterLink>
<a class="icon-btn mx-2" rel="noreferrer" href="https://github.com/antfu/vitesse" target="_blank" title="GitHub"> <a class="icon-btn mx-2" rel="noreferrer" href="https://github.com/antfu/vitesse" target="_blank" title="GitHub">
<div i-carbon-logo-github /> <div i-carbon-logo-github />

View File

@ -8,7 +8,7 @@ const { t } = useI18n()
<div text-4xl> <div text-4xl>
<div i-carbon-warning inline-block /> <div i-carbon-warning inline-block />
</div> </div>
<router-view /> <RouterView />
<div> <div>
<button btn text-sm m="3 t8" @click="router.back()"> <button btn text-sm m="3 t8" @click="router.back()">
{{ t('button.back') }} {{ t('button.back') }}

View File

@ -1,6 +1,6 @@
<template> <template>
<main class="px-4 py-10 text-center text-gray-700 dark:text-gray-200"> <main class="px-4 py-10 text-center text-gray-700 dark:text-gray-200">
<router-view /> <RouterView />
<Footer /> <Footer />
<div class="mt-5 mx-auto text-center opacity-25 text-sm"> <div class="mt-5 mx-auto text-center opacity-25 text-sm">
[Default Layout] [Default Layout]

View File

@ -1,6 +1,6 @@
<template> <template>
<main class="px-4 py-10 text-center text-gray-700 dark:text-gray-200"> <main class="px-4 py-10 text-center text-gray-700 dark:text-gray-200">
<router-view /> <RouterView />
<Footer /> <Footer />
<div class="mt-5 mx-auto text-center opacity-25 text-sm"> <div class="mt-5 mx-auto text-center opacity-25 text-sm">
[Home Layout] [Home Layout]