From 13b4e94b14518f6e83ece21f1cc0fb70eb244976 Mon Sep 17 00:00:00 2001 From: ChenKS12138 Date: Sun, 23 Jun 2024 20:28:52 +0800 Subject: [PATCH] fix: fix style --- src/components.d.ts | 1 + src/components/ArticleWrapper.vue | 69 +++++++++--------------------- src/components/ShadowBox.vue | 71 +++++++++++++++++++++++++++++++ src/layouts/default.vue | 18 +------- src/pages/RSS.vue | 14 ------ src/pages/about.vue | 28 ++++++------ src/pages/article-list.vue | 44 ++++++++++--------- src/pages/index.vue | 34 ++++++++------- 8 files changed, 149 insertions(+), 130 deletions(-) create mode 100644 src/components/ShadowBox.vue delete mode 100644 src/pages/RSS.vue diff --git a/src/components.d.ts b/src/components.d.ts index 6c535eae..1512efde 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -12,5 +12,6 @@ declare module '@vue/runtime-core' { DarkMode: typeof import('./components/DarkMode.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] + ShadowBox: typeof import('./components/ShadowBox.vue')['default'] } } diff --git a/src/components/ArticleWrapper.vue b/src/components/ArticleWrapper.vue index 6c738f0f..a2e0d66d 100644 --- a/src/components/ArticleWrapper.vue +++ b/src/components/ArticleWrapper.vue @@ -16,8 +16,6 @@ const { frontmatter } = defineProps<{ const headings = frontmatter.headings; -console.log(frontmatter.headings) - useHead({ title: frontmatter.title, meta: [ @@ -43,36 +41,36 @@ watch(isDark, () => { diff --git a/src/components/ShadowBox.vue b/src/components/ShadowBox.vue new file mode 100644 index 00000000..d6e52397 --- /dev/null +++ b/src/components/ShadowBox.vue @@ -0,0 +1,71 @@ + + + \ No newline at end of file diff --git a/src/layouts/default.vue b/src/layouts/default.vue index 658c013e..a209ae5e 100644 --- a/src/layouts/default.vue +++ b/src/layouts/default.vue @@ -23,10 +23,6 @@ const links = [ to: '/about', label: '关于' }, - // { - // to: '/RSS', - // label: 'RSS' - // } ] @@ -50,9 +46,7 @@ const links = [
-
- -
+
@@ -98,14 +92,4 @@ const links = [ @apply diff --git a/src/pages/RSS.vue b/src/pages/RSS.vue deleted file mode 100644 index 1820dc60..00000000 --- a/src/pages/RSS.vue +++ /dev/null @@ -1,14 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/pages/about.vue b/src/pages/about.vue index b66f8208..a55c51a5 100644 --- a/src/pages/about.vue +++ b/src/pages/about.vue @@ -19,19 +19,21 @@ const config = {