From 53ed1f556f2831613b10176647fab0982a0f53d1 Mon Sep 17 00:00:00 2001 From: SunWuyuan Date: Sat, 5 Jul 2025 10:05:52 +0800 Subject: [PATCH] Update .hintrc to disable no-inline-styles hint, modify GlobalMessage.vue to reposition snackbar, remove AppFooter from default layout, and enhance index.vue with a floating toolbar and ICP component. Clean up unused imports in settings.vue. --- .hintrc | 5 +- index.html | 1 + src/components/FloatingICP.vue | 77 +++++++++++ src/components/FloatingToolbar.vue | 203 +++++++++++++++++++++++++++++ src/components/GlobalMessage.vue | 2 +- src/layouts/default.vue | 2 - src/pages/index.vue | 175 +++++-------------------- src/pages/settings.vue | 1 - 8 files changed, 322 insertions(+), 144 deletions(-) create mode 100644 src/components/FloatingICP.vue create mode 100644 src/components/FloatingToolbar.vue diff --git a/.hintrc b/.hintrc index aa8de6b..cb34607 100644 --- a/.hintrc +++ b/.hintrc @@ -1,5 +1,8 @@ { "extends": [ "development" - ] + ], + "hints": { + "no-inline-styles": "off" + } } \ No newline at end of file diff --git a/index.html b/index.html index 4a8d40f..5fb36a9 100644 --- a/index.html +++ b/index.html @@ -14,5 +14,6 @@
+ 浙ICP备2024068645号-4 diff --git a/src/components/FloatingICP.vue b/src/components/FloatingICP.vue new file mode 100644 index 0000000..4209b2f --- /dev/null +++ b/src/components/FloatingICP.vue @@ -0,0 +1,77 @@ + + + + + \ No newline at end of file diff --git a/src/components/FloatingToolbar.vue b/src/components/FloatingToolbar.vue new file mode 100644 index 0000000..095dfc8 --- /dev/null +++ b/src/components/FloatingToolbar.vue @@ -0,0 +1,203 @@ + + + + + diff --git a/src/components/GlobalMessage.vue b/src/components/GlobalMessage.vue index 80f7bab..8910e53 100644 --- a/src/components/GlobalMessage.vue +++ b/src/components/GlobalMessage.vue @@ -3,7 +3,7 @@ v-model="snackbar" :color="colors[message?.type] || colors.info" :timeout="2000" - location="bottom" + location="top right" multi-line variant="tonal" > diff --git a/src/layouts/default.vue b/src/layouts/default.vue index 1efa4a0..2caa78e 100644 --- a/src/layouts/default.vue +++ b/src/layouts/default.vue @@ -3,8 +3,6 @@ - - diff --git a/src/pages/index.vue b/src/pages/index.vue index 5e26f91..8cd1a75 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -1,7 +1,5 @@