From 86a50e9601eb114ae47cb61394bd47ed43bb2447 Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Sat, 15 Jun 2024 12:13:09 +0800 Subject: [PATCH] chore: tweak --- theme/src/client/components/Nav/NavBar.vue | 237 ---------------- theme/src/client/components/Nav/VPNav.vue | 86 ++++++ theme/src/client/components/Nav/VPNavBar.vue | 268 ++++++++++++++++++ ...rAppearance.vue => VPNavBarAppearance.vue} | 6 +- .../{NavBarExtra.vue => VPNavBarExtra.vue} | 23 +- ...BarHamburger.vue => VPNavBarHamburger.vue} | 24 +- .../Nav/{NavBarMenu.vue => VPNavBarMenu.vue} | 14 +- ...BarMenuGroup.vue => VPNavBarMenuGroup.vue} | 10 +- ...avBarMenuLink.vue => VPNavBarMenuLink.vue} | 10 +- .../{NavBarSearch.vue => VPNavBarSearch.vue} | 2 +- ...ocialLinks.vue => VPNavBarSocialLinks.vue} | 6 +- .../{NavBarTitle.vue => VPNavBarTitle.vue} | 14 +- ...nslations.vue => VPNavBarTranslations.vue} | 6 +- .../Nav/{NavScreen.vue => VPNavScreen.vue} | 45 +-- ...pearance.vue => VPNavScreenAppearance.vue} | 4 +- ...{NavScreenMenu.vue => VPNavScreenMenu.vue} | 10 +- ...MenuGroup.vue => VPNavScreenMenuGroup.vue} | 28 +- ...pLink.vue => VPNavScreenMenuGroupLink.vue} | 6 +- ...on.vue => VPNavScreenMenuGroupSection.vue} | 8 +- ...enMenuLink.vue => VPNavScreenMenuLink.vue} | 6 +- ...alLinks.vue => VPNavScreenSocialLinks.vue} | 2 +- ...ations.vue => VPNavScreenTranslations.vue} | 6 +- theme/src/client/components/Nav/index.vue | 54 ---- theme/src/client/components/VPEncryptForm.vue | 4 +- .../src/client/components/VPEncryptGlobal.vue | 6 +- theme/src/client/components/VPEncryptPage.vue | 6 +- theme/src/client/components/VPMenuGroup.vue | 8 +- theme/src/client/components/VPMenuLink.vue | 4 +- theme/src/client/components/VPSkipLink.vue | 8 +- theme/src/client/layouts/Layout.vue | 23 +- theme/src/client/layouts/NotFound.vue | 24 +- theme/src/client/styles/search.css | 37 ++- theme/src/shared/frontmatter/normal.ts | 11 + theme/src/shared/navbar.ts | 2 + 34 files changed, 576 insertions(+), 432 deletions(-) delete mode 100644 theme/src/client/components/Nav/NavBar.vue create mode 100644 theme/src/client/components/Nav/VPNav.vue create mode 100644 theme/src/client/components/Nav/VPNavBar.vue rename theme/src/client/components/Nav/{NavBarAppearance.vue => VPNavBarAppearance.vue} (83%) rename theme/src/client/components/Nav/{NavBarExtra.vue => VPNavBarExtra.vue} (88%) rename theme/src/client/components/Nav/{NavBarHamburger.vue => VPNavBarHamburger.vue} (78%) rename theme/src/client/components/Nav/{NavBarMenu.vue => VPNavBarMenu.vue} (62%) rename theme/src/client/components/Nav/{NavBarMenuGroup.vue => VPNavBarMenuGroup.vue} (75%) rename theme/src/client/components/Nav/{NavBarMenuLink.vue => VPNavBarMenuLink.vue} (81%) rename theme/src/client/components/Nav/{NavBarSearch.vue => VPNavBarSearch.vue} (60%) rename theme/src/client/components/Nav/{NavBarSocialLinks.vue => VPNavBarSocialLinks.vue} (88%) rename theme/src/client/components/Nav/{NavBarTitle.vue => VPNavBarTitle.vue} (82%) rename theme/src/client/components/Nav/{NavBarTranslations.vue => VPNavBarTranslations.vue} (91%) rename theme/src/client/components/Nav/{NavScreen.vue => VPNavScreen.vue} (53%) rename theme/src/client/components/Nav/{NavScreenAppearance.vue => VPNavScreenAppearance.vue} (92%) rename theme/src/client/components/Nav/{NavScreenMenu.vue => VPNavScreenMenu.vue} (66%) rename theme/src/client/components/Nav/{NavScreenMenuGroup.vue => VPNavScreenMenuGroup.vue} (78%) rename theme/src/client/components/Nav/{NavScreenMenuGroupLink.vue => VPNavScreenMenuGroupLink.vue} (85%) rename theme/src/client/components/Nav/{NavScreenMenuGroupSection.vue => VPNavScreenMenuGroupSection.vue} (78%) rename theme/src/client/components/Nav/{NavScreenMenuLink.vue => VPNavScreenMenuLink.vue} (83%) rename theme/src/client/components/Nav/{NavScreenSocialLinks.vue => VPNavScreenSocialLinks.vue} (87%) rename theme/src/client/components/Nav/{NavScreenTranslations.vue => VPNavScreenTranslations.vue} (92%) delete mode 100644 theme/src/client/components/Nav/index.vue diff --git a/theme/src/client/components/Nav/NavBar.vue b/theme/src/client/components/Nav/NavBar.vue deleted file mode 100644 index 7e0e3fe3..00000000 --- a/theme/src/client/components/Nav/NavBar.vue +++ /dev/null @@ -1,237 +0,0 @@ - - - - - diff --git a/theme/src/client/components/Nav/VPNav.vue b/theme/src/client/components/Nav/VPNav.vue new file mode 100644 index 00000000..95389307 --- /dev/null +++ b/theme/src/client/components/Nav/VPNav.vue @@ -0,0 +1,86 @@ + + + + + diff --git a/theme/src/client/components/Nav/VPNavBar.vue b/theme/src/client/components/Nav/VPNavBar.vue new file mode 100644 index 00000000..fa069c37 --- /dev/null +++ b/theme/src/client/components/Nav/VPNavBar.vue @@ -0,0 +1,268 @@ + + + + + diff --git a/theme/src/client/components/Nav/NavBarAppearance.vue b/theme/src/client/components/Nav/VPNavBarAppearance.vue similarity index 83% rename from theme/src/client/components/Nav/NavBarAppearance.vue rename to theme/src/client/components/Nav/VPNavBarAppearance.vue index 722ca102..0511ba86 100644 --- a/theme/src/client/components/Nav/NavBarAppearance.vue +++ b/theme/src/client/components/Nav/VPNavBarAppearance.vue @@ -8,19 +8,19 @@ const { theme } = useData() diff --git a/theme/src/client/components/Nav/NavScreenMenuGroupSection.vue b/theme/src/client/components/Nav/VPNavScreenMenuGroupSection.vue similarity index 78% rename from theme/src/client/components/Nav/NavScreenMenuGroupSection.vue rename to theme/src/client/components/Nav/VPNavScreenMenuGroupSection.vue index ab8fc1f0..f3e0faed 100644 --- a/theme/src/client/components/Nav/NavScreenMenuGroupSection.vue +++ b/theme/src/client/components/Nav/VPNavScreenMenuGroupSection.vue @@ -1,7 +1,7 @@