Add basic frontend: sidebar, views and inventory table
CI / basic-check (push) Has been cancelled

This commit is contained in:
Perplexity Bot
2026-08-03 22:06:00 +00:00
parent 00ecb1862d
commit 871f4d0547
11 changed files with 373 additions and 1 deletions
+14
View File
@@ -0,0 +1,14 @@
import type { NetObject } from '../types';
const API_BASE = '/api/v1';
export async function fetchObjects(): Promise<NetObject[]> {
// Mock data for now
return [
{ id: '1', name: 'Site HQ', slug: 'site-hq', type: 'site', status: 'active' },
{ id: '2', name: 'Rack A', slug: 'rack-a', type: 'rack', status: 'active' },
{ id: '3', name: 'Server Proxmox', slug: 'server-proxmox', type: 'physical_host', vendor: 'Dell', model: 'R730', status: 'active' },
{ id: '4', name: 'Switch Core', slug: 'switch-core', type: 'switch', vendor: 'Mikrotik', status: 'active' },
{ id: '5', name: 'Firewall Edge', slug: 'firewall-edge', type: 'firewall', status: 'active' },
];
}