From 360bd35c608aa0d8df22d270cfe169c424d864d5 Mon Sep 17 00:00:00 2001 From: Kia King Ishii Date: Thu, 26 Nov 2020 17:39:55 +0900 Subject: [PATCH] style: adjust few code styles --- src/client/theme-default/NotFound.vue | 6 +++--- src/client/theme-default/components/NavBarLink.vue | 8 ++++---- src/client/theme-default/components/NextAndPrevLinks.vue | 2 +- src/node/build/build.ts | 2 ++ src/node/build/bundle.ts | 1 + src/node/markdownToVue.ts | 8 +++++--- 6 files changed, 16 insertions(+), 11 deletions(-) diff --git a/src/client/theme-default/NotFound.vue b/src/client/theme-default/NotFound.vue index a56270dd..01ab5f19 100644 --- a/src/client/theme-default/NotFound.vue +++ b/src/client/theme-default/NotFound.vue @@ -2,11 +2,11 @@

404

{{ getMsg() }}
- Take me home. + Take me home.
- diff --git a/src/client/theme-default/components/NavBarLink.vue b/src/client/theme-default/components/NavBarLink.vue index c91ff7ab..ab59f34b 100644 --- a/src/client/theme-default/components/NavBarLink.vue +++ b/src/client/theme-default/components/NavBarLink.vue @@ -20,6 +20,10 @@ import { withBase, isExternal } from '../utils' import type { DefaultTheme } from '../config' import OutboundLink from './icons/OutboundLink.vue' +const { item } = defineProps<{ + item: DefaultTheme.NavItemWithLink +}>() + const normalizePath = (path: string): string => { path = path .replace(/#.*$/, '') @@ -31,10 +35,6 @@ const normalizePath = (path: string): string => { return path } -const { item } = defineProps<{ - item: DefaultTheme.NavItemWithLink -}>() - const route = useRoute() const classes = computed(() => ({ diff --git a/src/client/theme-default/components/NextAndPrevLinks.vue b/src/client/theme-default/components/NextAndPrevLinks.vue index b34173c2..65586a13 100644 --- a/src/client/theme-default/components/NextAndPrevLinks.vue +++ b/src/client/theme-default/components/NextAndPrevLinks.vue @@ -18,8 +18,8 @@