From 913d213737ef25218e61a7f11a19cad4d49a5847 Mon Sep 17 00:00:00 2001 From: wang_fan_w <2547096351@qq.com> Date: Sat, 13 Apr 2024 22:09:14 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=80=92=E5=BD=92=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .husky/_/commit-msg | 4 +- .husky/_/pre-commit | 7 +- src/icons/common.svg | 1 + src/icons/form.svg | 1 + src/icons/home.svg | 1 + src/icons/set.svg | 1 + src/icons/switch.svg | 1 + src/layout/components/Aside/index.vue | 130 +++---- src/layout/components/Header/index.vue | 459 ++++++++++++----------- src/layout/components/Menu/index.vue | 28 +- src/layout/components/Menu/menu-item.vue | 26 ++ src/layout/index.vue | 4 - src/store/theme-config.ts | 19 + 13 files changed, 373 insertions(+), 309 deletions(-) create mode 100644 src/icons/common.svg create mode 100644 src/icons/form.svg create mode 100644 src/icons/home.svg create mode 100644 src/icons/set.svg create mode 100644 src/icons/switch.svg create mode 100644 src/layout/components/Menu/menu-item.vue create mode 100644 src/store/theme-config.ts diff --git a/.husky/_/commit-msg b/.husky/_/commit-msg index 21c69a4..94647a4 100644 --- a/.husky/_/commit-msg +++ b/.husky/_/commit-msg @@ -1,2 +1,4 @@ #!/usr/bin/env sh -. "${0%/*}/h" \ No newline at end of file +. "$(dirname -- "$0")/husky.sh" + +npx --no-install commitlint --edit $1 \ No newline at end of file diff --git a/.husky/_/pre-commit b/.husky/_/pre-commit index 21c69a4..1bbfe41 100644 --- a/.husky/_/pre-commit +++ b/.husky/_/pre-commit @@ -1,2 +1,5 @@ -#!/usr/bin/env sh -. "${0%/*}/h" \ No newline at end of file +#!/bin/sh + +. "$(dirname "$0")/husky.sh" + +npm run lint-staged \ No newline at end of file diff --git a/src/icons/common.svg b/src/icons/common.svg new file mode 100644 index 0000000..8a9983a --- /dev/null +++ b/src/icons/common.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/form.svg b/src/icons/form.svg new file mode 100644 index 0000000..99d7b4a --- /dev/null +++ b/src/icons/form.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/home.svg b/src/icons/home.svg new file mode 100644 index 0000000..c375e64 --- /dev/null +++ b/src/icons/home.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/set.svg b/src/icons/set.svg new file mode 100644 index 0000000..c0b63e7 --- /dev/null +++ b/src/icons/set.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/switch.svg b/src/icons/switch.svg new file mode 100644 index 0000000..6a63856 --- /dev/null +++ b/src/icons/switch.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/layout/components/Aside/index.vue b/src/layout/components/Aside/index.vue index 081e345..81bbca1 100644 --- a/src/layout/components/Aside/index.vue +++ b/src/layout/components/Aside/index.vue @@ -1,70 +1,60 @@ - - - - - + + + + + diff --git a/src/layout/components/Header/index.vue b/src/layout/components/Header/index.vue index 287c530..9e52412 100644 --- a/src/layout/components/Header/index.vue +++ b/src/layout/components/Header/index.vue @@ -1,225 +1,234 @@ - - - - + + + + diff --git a/src/layout/components/Menu/index.vue b/src/layout/components/Menu/index.vue index 8b80e99..014ea08 100644 --- a/src/layout/components/Menu/index.vue +++ b/src/layout/components/Menu/index.vue @@ -1,7 +1,21 @@ - - - - - + + + + + diff --git a/src/layout/components/Menu/menu-item.vue b/src/layout/components/Menu/menu-item.vue new file mode 100644 index 0000000..f9055bc --- /dev/null +++ b/src/layout/components/Menu/menu-item.vue @@ -0,0 +1,26 @@ + + + + + diff --git a/src/layout/index.vue b/src/layout/index.vue index 3aaf654..052a340 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -5,10 +5,6 @@