feat: app 端 ui 设计完成
This commit is contained in:
47
wei-ai-demo/types.ts
Normal file
47
wei-ai-demo/types.ts
Normal file
@@ -0,0 +1,47 @@
|
||||
export interface Message {
|
||||
id: string;
|
||||
text: string;
|
||||
sender: 'user' | 'ai';
|
||||
type: 'text' | 'image' | 'audio';
|
||||
timestamp: number;
|
||||
imageUrl?: string;
|
||||
isLocked?: boolean;
|
||||
}
|
||||
|
||||
export interface Scenario {
|
||||
id: string;
|
||||
title: string;
|
||||
category: string;
|
||||
cover: string;
|
||||
duration: string; // e.g., "15:00"
|
||||
intensity: 'Low' | 'Medium' | 'High' | 'Extreme';
|
||||
isLocked: boolean;
|
||||
tags: string[];
|
||||
}
|
||||
|
||||
export interface Character {
|
||||
id: string;
|
||||
name: string;
|
||||
tagline: string;
|
||||
avatar: string;
|
||||
description: string;
|
||||
tags: string[];
|
||||
compatibility: number; // 硬件契合度 %
|
||||
status: 'online' | 'busy' | 'offline';
|
||||
isLocked?: boolean;
|
||||
}
|
||||
|
||||
export interface DeviceStatus {
|
||||
connected: boolean;
|
||||
battery: number;
|
||||
temperature: number;
|
||||
signalStrength: number;
|
||||
currentMode: 'Idle' | 'Pattern' | 'Manual';
|
||||
}
|
||||
|
||||
export enum UserTab {
|
||||
Discovery = 'discovery', // Changed from Interaction
|
||||
Library = 'library',
|
||||
Control = 'control',
|
||||
Profile = 'profile',
|
||||
}
|
||||
Reference in New Issue
Block a user