feat: Add NVIDIA industrial design dashboard with Create/Destoy sandbox workflows
- Industrial dark theme with #76B900 NVIDIA green accents - Real-time telemetry from Kubernetes API - Create Sandbox button and workflow - Destroy Sandbox mode with destructive confirmation overlay - Sidebar fetches pod data directly from /api/telemetry/real - Fixed TypeError with defensive array checks - Technical typography, sharp corners, data-dense panels - Status indicators: GREEN RUNNING, red DESTROY mode
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
import { NextResponse } from 'next/server'
|
||||
|
||||
// Mock Ollama configuration
|
||||
// In production, this would call Ollama API at localhost:11434/api/tags
|
||||
const mockOllamaConfig = {
|
||||
enabled: true,
|
||||
port: 11434,
|
||||
models: ['qwen2.5-vl:7b', 'llama3.1:8b', 'mistral:7b', 'qwen2.5-coder:32b', 'gemma2:9b']
|
||||
}
|
||||
|
||||
export async function GET() {
|
||||
try {
|
||||
return NextResponse.json(mockOllamaConfig)
|
||||
} catch (error) {
|
||||
return NextResponse.json(
|
||||
{ error: 'Failed to fetch Ollama config' },
|
||||
{ status: 500 }
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
export async function POST(request: Request) {
|
||||
try {
|
||||
const body = await request.json()
|
||||
return NextResponse.json({ ...mockOllamaConfig, ...body })
|
||||
} catch (error) {
|
||||
return NextResponse.json(
|
||||
{ error: 'Failed to update Ollama config' },
|
||||
{ status: 500 }
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user