From 077784fa34259929422bdb7e2acd0f0e8e581862 Mon Sep 17 00:00:00 2001 From: Kia King Ishii Date: Sat, 28 Nov 2020 01:09:56 +0900 Subject: [PATCH] refactor: sidebar and navbar --- .../theme-default/components/NavBar.vue | 4 +- .../theme-default/components/NavBarLink.vue | 127 -------- .../theme-default/components/NavBarLinks.vue | 116 -------- .../components/NavDropdownLink.vue | 275 +++++------------- .../components/NavDropdownLinkItem.vue | 90 ++++++ .../theme-default/components/NavLink.vue | 78 +++++ .../theme-default/components/NavLinks.vue | 55 ++++ .../theme-default/components/SideBar.vue | 6 +- src/client/theme-default/composables/nav.ts | 59 ++++ .../theme-default/composables/navLink.ts | 71 +++++ src/client/theme-default/composables/repo.ts | 51 ++++ src/client/theme-default/config.ts | 30 +- .../theme-default/styles/sidebar-links.css | 16 +- src/client/theme-default/styles/vars.css | 10 + 14 files changed, 533 insertions(+), 455 deletions(-) delete mode 100644 src/client/theme-default/components/NavBarLink.vue delete mode 100644 src/client/theme-default/components/NavBarLinks.vue create mode 100644 src/client/theme-default/components/NavDropdownLinkItem.vue create mode 100644 src/client/theme-default/components/NavLink.vue create mode 100644 src/client/theme-default/components/NavLinks.vue create mode 100644 src/client/theme-default/composables/nav.ts create mode 100644 src/client/theme-default/composables/navLink.ts create mode 100644 src/client/theme-default/composables/repo.ts diff --git a/src/client/theme-default/components/NavBar.vue b/src/client/theme-default/components/NavBar.vue index 9e797b0c..51b22dba 100644 --- a/src/client/theme-default/components/NavBar.vue +++ b/src/client/theme-default/components/NavBar.vue @@ -4,7 +4,7 @@
@@ -12,7 +12,7 @@ diff --git a/src/client/theme-default/components/NavBarLinks.vue b/src/client/theme-default/components/NavBarLinks.vue deleted file mode 100644 index 6a325241..00000000 --- a/src/client/theme-default/components/NavBarLinks.vue +++ /dev/null @@ -1,116 +0,0 @@ - - - - - diff --git a/src/client/theme-default/components/NavDropdownLink.vue b/src/client/theme-default/components/NavDropdownLink.vue index 8e049dcf..262affbf 100644 --- a/src/client/theme-default/components/NavDropdownLink.vue +++ b/src/client/theme-default/components/NavDropdownLink.vue @@ -1,249 +1,130 @@ - diff --git a/src/client/theme-default/components/NavDropdownLinkItem.vue b/src/client/theme-default/components/NavDropdownLinkItem.vue new file mode 100644 index 00000000..060f3a04 --- /dev/null +++ b/src/client/theme-default/components/NavDropdownLinkItem.vue @@ -0,0 +1,90 @@ + + + + + diff --git a/src/client/theme-default/components/NavLink.vue b/src/client/theme-default/components/NavLink.vue new file mode 100644 index 00000000..e521c4f8 --- /dev/null +++ b/src/client/theme-default/components/NavLink.vue @@ -0,0 +1,78 @@ + + + + + diff --git a/src/client/theme-default/components/NavLinks.vue b/src/client/theme-default/components/NavLinks.vue new file mode 100644 index 00000000..c97c7de5 --- /dev/null +++ b/src/client/theme-default/components/NavLinks.vue @@ -0,0 +1,55 @@ + + + + + diff --git a/src/client/theme-default/components/SideBar.vue b/src/client/theme-default/components/SideBar.vue index f3dbae2a..f3057e75 100644 --- a/src/client/theme-default/components/SideBar.vue +++ b/src/client/theme-default/components/SideBar.vue @@ -1,8 +1,6 @@