IKHSAN
EN Read in EnglishID

homeio

Publik

Fork dari doctor-io/homeio

Branch
main
Commit terakhir
958d74616 Oktober 2026

types.ts

Buka raw
import type { LucideIcon } from "@/components/icons/platform-icons";

export type UptimeParts = {
  days: number;
  hours: number;
  minutes: number;
};

export type ResourceWidgetItem = {
  label: string;
  value: string;
  progress: number;
  colorClassName: string;
  icon: LucideIcon;
};

export type NetworkWidgetData = {
  downloadText: string;
  uploadText: string;
  ipAddress: string;
  hostname: string;
  interfaceName: string;
  ssid: string;
  isDemoMode?: boolean;
};

export type QuickStatItem = {
  label: string;
  value: string;
  sub: string;
};

export type SystemWidgetsViewModel = {
  uptime: UptimeParts;
  resources: ResourceWidgetItem[];
  network: NetworkWidgetData;
  quickStats: QuickStatItem[];
};
byte
727
baris
39
Jenis
ts
Commit terakhir
16 Oktober 2026