From b3a0d00fc3536008d680406c93d12b8d74654b91 Mon Sep 17 00:00:00 2001 From: wizardchen Date: Fri, 7 Nov 2025 00:30:15 +0800 Subject: [PATCH] feat: Revamp ModelEditorDialog and ModelSettings for improved UI and validation - Replaced the dialog component with a custom modal layout for better user experience. - Enhanced form structure with custom styles and validation for required fields. - Updated model source selection and added dynamic placeholders based on model type. - Improved API validation logic for model saving in both ModelEditorDialog and ModelSettings. - Refactored styles for better alignment and responsiveness across components. --- frontend/src/components/ModelEditorDialog.vue | 512 +++++++++++------- frontend/src/views/settings/ModelSettings.vue | 84 ++- internal/handler/model.go | 8 +- 3 files changed, 383 insertions(+), 221 deletions(-) diff --git a/frontend/src/components/ModelEditorDialog.vue b/frontend/src/components/ModelEditorDialog.vue index 91c83f21f..f69ac66c1 100644 --- a/frontend/src/components/ModelEditorDialog.vue +++ b/frontend/src/components/ModelEditorDialog.vue @@ -1,39 +1,36 @@