feat: initialize netx ops tool repository

Set up netx as a standalone git-managed project with isolated Python dependencies, alarm ingestion/query APIs, oclaw bridge integration, and ops-focused UI enhancements including history and raw field access.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-05-03 23:43:21 +08:00
commit f49c0b5bad
56 changed files with 6974 additions and 0 deletions

12
web/src/utils/time.ts Normal file
View file

@ -0,0 +1,12 @@
const systemTimeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
export function formatSystemTime(value: string | number | Date | null | undefined): string {
if (value === null || value === undefined) return "";
const d = value instanceof Date ? value : new Date(value);
if (Number.isNaN(d.getTime())) return String(value);
return d.toLocaleString(undefined, {
hour12: false,
timeZone: systemTimeZone,
});
}