mirror of
https://github.com/henrygd/beszel.git
synced 2026-03-28 08:26:18 +01:00
* Refactor user settings to use enum for unit preferences (temperature, network, disk). * Update chart components to utilize new unit formatting functions * Remove deprecated conversion functions and streamline unit handling across charts. * Enhance settings page to allow user selection of unit preferences with updated labels.
24 lines
251 B
TypeScript
24 lines
251 B
TypeScript
/** Operating system */
|
|
export enum Os {
|
|
Linux = 0,
|
|
Darwin,
|
|
Windows,
|
|
FreeBSD,
|
|
}
|
|
|
|
/** Type of chart */
|
|
export enum ChartType {
|
|
Memory,
|
|
Disk,
|
|
Network,
|
|
CPU,
|
|
}
|
|
|
|
/** Unit of measurement */
|
|
export enum Unit {
|
|
Bytes,
|
|
Bits,
|
|
Celsius,
|
|
Fahrenheit,
|
|
}
|