Overhaul (#83)

* WIP Layout Refactor

* New Connection Dialog

* WIP form overhaul

* Fix remaining config pages
This commit is contained in:
Sacha Weatherstone
2023-02-12 15:31:25 +11:00
committed by GitHub
parent c184c5add6
commit e59fe138f1
121 changed files with 5358 additions and 4701 deletions
+6
View File
@@ -19,4 +19,10 @@ export class DeviceValidation
@IsInt()
buzzerGpio: number;
@IsEnum(Protobuf.Config_DeviceConfig_RebroadcastMode)
rebroadcastMode: Protobuf.Config_DeviceConfig_RebroadcastMode;
@IsInt()
nodeInfoBroadcastSecs: number;
}
+3
View File
@@ -51,6 +51,9 @@ export class LoRaValidation
@IsBoolean()
sx126xRxBoostedGain: boolean;
@IsInt()
overrideFrequency: number;
@IsArray()
ignoreIncoming: number[];
}
-10
View File
@@ -32,14 +32,4 @@ export class PositionValidation
@IsInt()
txGpio: number;
// fixed position fields
@IsNumber()
fixedAlt: number;
@IsNumber()
fixedLat: number;
@IsNumber()
fixedLng: number;
}
-24
View File
@@ -1,24 +0,0 @@
import { IsBoolean, IsOptional, IsString, Length } from "class-validator";
import type { Protobuf } from "@meshtastic/meshtasticjs";
export class UserValidation
implements
Omit<
Protobuf.User,
keyof Protobuf.native.Message | "ID" | "macaddr" | "hwModel"
>
{
@IsString()
@IsOptional()
id: string;
@Length(2, 30)
longName: string;
@Length(1, 4)
shortName: string;
@IsBoolean()
isLicensed: boolean;
}