Add monorepo support to project (#682)
* feat: add monorepo support * fix: correct relatedProjects structure in vercel.json * update github actions with monorepo support * removed legacy dep * moved jsr config into web package
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
import { z } from "zod/v4";
|
||||
import { Protobuf } from "@meshtastic/core";
|
||||
|
||||
const GpsCoordinateEnum = z.enum(
|
||||
Protobuf.Config.Config_DisplayConfig_GpsCoordinateFormat,
|
||||
);
|
||||
const DisplayUnitsEnum = z.enum(
|
||||
Protobuf.Config.Config_DisplayConfig_DisplayUnits,
|
||||
);
|
||||
const OledTypeEnum = z.enum(
|
||||
Protobuf.Config.Config_DisplayConfig_OledType,
|
||||
);
|
||||
const DisplayModeEnum = z.enum(
|
||||
Protobuf.Config.Config_DisplayConfig_DisplayMode,
|
||||
);
|
||||
const CompassOrientationEnum = z.enum(
|
||||
Protobuf.Config.Config_DisplayConfig_CompassOrientation,
|
||||
);
|
||||
|
||||
export const DisplayValidationSchema = z.object({
|
||||
screenOnSecs: z.coerce.number().int().min(0),
|
||||
gpsFormat: GpsCoordinateEnum,
|
||||
autoScreenCarouselSecs: z.coerce.number().int().min(0),
|
||||
compassNorthTop: z.boolean(),
|
||||
flipScreen: z.boolean(),
|
||||
units: DisplayUnitsEnum,
|
||||
oled: OledTypeEnum,
|
||||
displaymode: DisplayModeEnum,
|
||||
headingBold: z.boolean(),
|
||||
wakeOnTapOrMotion: z.boolean(),
|
||||
compassOrientation: CompassOrientationEnum,
|
||||
use12hClock: z.boolean(),
|
||||
});
|
||||
|
||||
export type DisplayValidation = z.infer<typeof DisplayValidationSchema>;
|
||||
Reference in New Issue
Block a user