- Migrated vanilla JS frontend to Vite + TypeScript - Modular architecture: views, components, utils, api, state - Three-panel layout: libraries (left), content (center), detail (right) - Group name resolution via hstTags (set_hst -> readable name) - Name priority: name_es -> alias -> ref -> hash truncated - D3.js lazy loading in GraphView - Hash-based routing - Deployed to tzzrdeck.me Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
9 lines
326 B
TypeScript
9 lines
326 B
TypeScript
import { apiClientSafe } from './client.ts';
|
|
import type { GraphEdge, TreeEdge } from '@/types/index.ts';
|
|
|
|
export const fetchGraphEdges = (): Promise<GraphEdge[]> =>
|
|
apiClientSafe<GraphEdge[]>('/graph_hst', {}, []);
|
|
|
|
export const fetchTreeEdges = (): Promise<TreeEdge[]> =>
|
|
apiClientSafe<TreeEdge[]>('/tree_hst', {}, []);
|