From a5f8d09e7747a93b11dcba07aadd282e95fc5e93 Mon Sep 17 00:00:00 2001 From: qwqcode Date: Wed, 20 Dec 2023 20:45:37 +0800 Subject: [PATCH] fix(ui/sidebar): refactor settings and fix save issue (#677) --- .../src/components/PreferenceArr.vue | 21 +-- .../src/components/PreferenceGrp.vue | 56 ++---- .../src/components/PreferenceItem.vue | 54 +++--- .../artalk-sidebar/src/lib/settings-option.ts | 178 ++++++++++++++++++ .../artalk-sidebar/src/lib/settings.ts | 109 +++++------ .../artalk-sidebar/src/pages/settings.vue | 22 +-- 6 files changed, 285 insertions(+), 155 deletions(-) create mode 100644 ui/packages/artalk-sidebar/src/lib/settings-option.ts diff --git a/ui/packages/artalk-sidebar/src/components/PreferenceArr.vue b/ui/packages/artalk-sidebar/src/components/PreferenceArr.vue index dad9c0048..07aec31ce 100644 --- a/ui/packages/artalk-sidebar/src/components/PreferenceArr.vue +++ b/ui/packages/artalk-sidebar/src/components/PreferenceArr.vue @@ -1,31 +1,26 @@