File size: 1,452 Bytes
bbc9709
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// File: /tmp/ten_playground/app/page.js
// Simple Next.js app that redirects to API server
export default function Home() {
    return (
        <div style={{ padding: '20px', fontFamily: 'Arial, sans-serif' }}>
            <h1>TEN Agent UI Loader</h1>
            <p>API server is running at: <a href="http://localhost:8080">http://localhost:8080</a></p>

            <div style={{ marginTop: '20px', padding: '10px', backgroundColor: '#f0f0f0', borderRadius: '5px' }}>
                <p>Используйте API напрямую:</p>
                <ul>
                    <li><a href="http://localhost:8080/graphs">/graphs</a> - Список доступных графов</li>
                    <li><a href="http://localhost:8080/health">/health</a> - Статус API сервера</li>
                </ul>
            </div>

            <div style={{ marginTop: '20px' }}>
                <button
                    style={{
                        padding: '10px 15px',
                        backgroundColor: '#4CAF50',
                        color: 'white',
                        border: 'none',
                        borderRadius: '5px',
                        cursor: 'pointer'
                    }}
                    onClick={() => window.location.href = 'http://localhost:8080/graphs'}
                >
                    Перейти к API
                </button>
            </div>
        </div>
    );
}