From d8015b7defe7c9f71d49d08fd9e00761e7046338 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Tue, 16 Jun 2026 20:44:00 +0800 Subject: [PATCH] feat: add Agent Assistant component and integrate with theme customizer - Implemented Agent Assistant widget with chat functionality, including message handling and streaming responses. - Added new localization strings for Agent Assistant in English, Simplified Chinese, and Traditional Chinese. - Updated DefaultLayout to include the Agent Assistant and Theme Customizer components. - Enhanced UserProfile to manage the opening of the Theme Customizer through global events. - Adjusted CSS styles for the Agent Assistant and its interactions with other components. - Introduced new events for opening the Theme Customizer and managing its state. --- src/components/AgentAssistantWidget.vue | 1035 +++++++++++++++++++++ src/components/ThemeCustomizer.vue | 569 +++++------ src/components/dialog/CustomCssDialog.vue | 6 +- src/composables/useThemeCustomizer.ts | 1 + src/layouts/components/DefaultLayout.vue | 25 +- src/layouts/components/UserProfile.vue | 15 +- src/locales/en-US.ts | 13 + src/locales/zh-CN.ts | 13 + src/locales/zh-TW.ts | 13 + src/styles/common.scss | 15 + 10 files changed, 1340 insertions(+), 365 deletions(-) create mode 100644 src/components/AgentAssistantWidget.vue diff --git a/src/components/AgentAssistantWidget.vue b/src/components/AgentAssistantWidget.vue new file mode 100644 index 00000000..361007ca --- /dev/null +++ b/src/components/AgentAssistantWidget.vue @@ -0,0 +1,1035 @@ + + +