feat: Add Chat Widget and Init Service Chooser components

- Implemented ChatWidget component for real-time chat functionality with socket integration.
- Added InitServiceChooser component for selecting services with manual token input and auto-authorization.
- Updated settings and data provider to support local development with localhost.
- Enhanced settings page with Classworks KV card and improved styles.
- Introduced debug socket page for monitoring connection status and device interactions.
- Refactored socket client utility for better connection management and event handling.
- Added glow highlight effect in styles for UI enhancements.
This commit is contained in:
SunWuyuan
2025-10-25 17:10:20 +08:00
parent b9efaee7ee
commit a2b0cc9e08
20 changed files with 1790 additions and 476 deletions
+3 -3
View File
@@ -68,8 +68,8 @@ const SETTINGS_STORAGE_KEY = "Classworks_settings";
// 新增: Classworks云端存储的默认设置
const classworksCloudDefaults = {
"server.domain": "https://kv.wuyuan.dev",
//"server.domain": "http://localhost:3030",
//"server.domain": "https://kv.wuyuan.dev",
"server.domain": "http://localhost:3030",
"server.siteKey": "",
};
@@ -206,7 +206,7 @@ const settingsDefinitions = {
},
"server.authDomain": {
type: "string",
default: "https://kv.houlang.cloud",
default: "http://localhost:5173",
description: "授权服务器域名",
icon: "mdi-shield-account",
validate: (value) => {