botserver/web/desktop/js/mock-data.js
Rodrigo Rodriguez (Pragmatismo) 4b185f00f9 feat: add HTTP server and refactor initialization
- Added HTTP server with CORS support and various endpoints
- Introduced http_tx/http_rx channels for HTTP server control
- Cleaned up build.rs by removing commented code
- Updated .gitignore to use *.rdb pattern instead of .rdb
- Simplified capabilities.json to empty object
- Improved UI initialization with better error handling
- Reorganized module imports in main.rs
- Added worker count configuration for HTTP server

The changes introduce a new HTTP server capability while cleaning up and improving existing code structure. The HTTP server includes authentication, session management, and websocket support.
2025-11-15 09:48:46 -03:00

46 lines
856 B
JavaScript

const mockUsers = [
{
id: 'user1',
name: 'John Doe',
email: 'john@example.com',
avatar: '👨'
},
{
id: 'user2',
name: 'Jane Smith',
email: 'jane@example.com',
avatar: '👩'
}
];
const mockBots = [
{
id: 'default_bot',
name: 'General Bot',
description: 'Main assistant bot'
}
];
const mockSessions = [
{
id: 'session1',
title: 'First Chat',
created_at: new Date().toISOString()
},
{
id: 'session2',
title: 'Project Discussion',
created_at: new Date(Date.now() - 86400000).toISOString()
}
];
const mockAuthResponse = {
user_id: mockUsers[0].id,
session_id: mockSessions[0].id
};
const mockSuggestions = [
{ text: "What can you do?", context: "capabilities" },
{ text: "Show my files", context: "drive" },
{ text: "Create a task", context: "tasks" }
];