From 3d26633fd281beb17dcfc5eae87a978a4ef116dd Mon Sep 17 00:00:00 2001 From: Thehrz Date: Fri, 10 Feb 2023 21:05:35 +0800 Subject: [PATCH] Update Nav --- .github/FUNDING.yml | 1 - src/components.d.ts | 2 ++ src/components/{TheFooter.vue => Footer.vue} | 2 +- src/components/Nav.vue | 23 ++++++++++++++++ src/components/README.md | 10 ------- src/layouts/default.vue | 28 +++----------------- src/main.ts | 1 + 7 files changed, 30 insertions(+), 37 deletions(-) delete mode 100644 .github/FUNDING.yml rename src/components/{TheFooter.vue => Footer.vue} (95%) create mode 100644 src/components/Nav.vue delete mode 100644 src/components/README.md diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 7246382..0000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1 +0,0 @@ -github: antfu diff --git a/src/components.d.ts b/src/components.d.ts index c765678..bef8a2b 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,6 +9,8 @@ declare module '@vue/runtime-core' { export interface GlobalComponents { ElMenu: typeof import('element-plus/es')['ElMenu'] ElMenuItem: typeof import('element-plus/es')['ElMenuItem'] + Footer: typeof import('./components/Footer.vue')['default'] + Nav: typeof import('./components/Nav.vue')['default'] README: typeof import('./components/README.md')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] diff --git a/src/components/TheFooter.vue b/src/components/Footer.vue similarity index 95% rename from src/components/TheFooter.vue rename to src/components/Footer.vue index d1c827c..09c1979 100644 --- a/src/components/TheFooter.vue +++ b/src/components/Footer.vue @@ -9,7 +9,7 @@ const toggleLocales = () => {