Overhaul (#83)
* WIP Layout Refactor * New Connection Dialog * WIP form overhaul * Fix remaining config pages
This commit is contained in:
@@ -19,4 +19,10 @@ export class DeviceValidation
|
||||
|
||||
@IsInt()
|
||||
buzzerGpio: number;
|
||||
|
||||
@IsEnum(Protobuf.Config_DeviceConfig_RebroadcastMode)
|
||||
rebroadcastMode: Protobuf.Config_DeviceConfig_RebroadcastMode;
|
||||
|
||||
@IsInt()
|
||||
nodeInfoBroadcastSecs: number;
|
||||
}
|
||||
|
||||
@@ -51,6 +51,9 @@ export class LoRaValidation
|
||||
@IsBoolean()
|
||||
sx126xRxBoostedGain: boolean;
|
||||
|
||||
@IsInt()
|
||||
overrideFrequency: number;
|
||||
|
||||
@IsArray()
|
||||
ignoreIncoming: number[];
|
||||
}
|
||||
|
||||
@@ -32,14 +32,4 @@ export class PositionValidation
|
||||
|
||||
@IsInt()
|
||||
txGpio: number;
|
||||
|
||||
// fixed position fields
|
||||
@IsNumber()
|
||||
fixedAlt: number;
|
||||
|
||||
@IsNumber()
|
||||
fixedLat: number;
|
||||
|
||||
@IsNumber()
|
||||
fixedLng: number;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
import { IsArray, IsBoolean, IsNumber, IsString } from "class-validator";
|
||||
import { IsArray, IsBoolean, IsNumber, IsString, IsUrl } from "class-validator";
|
||||
|
||||
import type { RasterSource } from "@core/stores/appStore.js";
|
||||
|
||||
@@ -14,8 +14,8 @@ export class MapValidation_RasterSources implements RasterSource {
|
||||
@IsString()
|
||||
title: string;
|
||||
|
||||
// @IsUrl()
|
||||
tiles: string[];
|
||||
@IsUrl()
|
||||
tiles: string;
|
||||
|
||||
@IsNumber()
|
||||
tileSize: number;
|
||||
Reference in New Issue
Block a user