update to namespaced protobufs
This commit is contained in:
@@ -8,7 +8,7 @@ export const Bluetooth = (): JSX.Element => {
|
||||
|
||||
const onSubmit = (data: BluetoothValidation) => {
|
||||
setWorkingConfig(
|
||||
new Protobuf.Config({
|
||||
new Protobuf.Config.Config({
|
||||
payloadVariant: {
|
||||
case: "bluetooth",
|
||||
value: data,
|
||||
@@ -43,7 +43,7 @@ export const Bluetooth = (): JSX.Element => {
|
||||
},
|
||||
],
|
||||
properties: {
|
||||
enumValue: Protobuf.Config_BluetoothConfig_PairingMode,
|
||||
enumValue: Protobuf.Config.Config_BluetoothConfig_PairingMode,
|
||||
formatEnumName: true,
|
||||
},
|
||||
},
|
||||
@@ -56,7 +56,8 @@ export const Bluetooth = (): JSX.Element => {
|
||||
{
|
||||
fieldName: "mode",
|
||||
selector:
|
||||
Protobuf.Config_BluetoothConfig_PairingMode.FIXED_PIN,
|
||||
Protobuf.Config.Config_BluetoothConfig_PairingMode
|
||||
.FIXED_PIN,
|
||||
invert: true,
|
||||
},
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@ export const Device = (): JSX.Element => {
|
||||
|
||||
const onSubmit = (data: DeviceValidation) => {
|
||||
setWorkingConfig(
|
||||
new Protobuf.Config({
|
||||
new Protobuf.Config.Config({
|
||||
payloadVariant: {
|
||||
case: "device",
|
||||
value: data,
|
||||
@@ -32,7 +32,7 @@ export const Device = (): JSX.Element => {
|
||||
label: "Role",
|
||||
description: "What role the device performs on the mesh",
|
||||
properties: {
|
||||
enumValue: Protobuf.Config_DeviceConfig_Role,
|
||||
enumValue: Protobuf.Config.Config_DeviceConfig_Role,
|
||||
formatEnumName: true,
|
||||
},
|
||||
},
|
||||
@@ -67,7 +67,7 @@ export const Device = (): JSX.Element => {
|
||||
label: "Rebroadcast Mode",
|
||||
description: "How to handle rebroadcasting",
|
||||
properties: {
|
||||
enumValue: Protobuf.Config_DeviceConfig_RebroadcastMode,
|
||||
enumValue: Protobuf.Config.Config_DeviceConfig_RebroadcastMode,
|
||||
formatEnumName: true,
|
||||
},
|
||||
},
|
||||
|
||||
@@ -8,7 +8,7 @@ export const Display = (): JSX.Element => {
|
||||
|
||||
const onSubmit = (data: DisplayValidation) => {
|
||||
setWorkingConfig(
|
||||
new Protobuf.Config({
|
||||
new Protobuf.Config.Config({
|
||||
payloadVariant: {
|
||||
case: "display",
|
||||
value: data,
|
||||
@@ -41,7 +41,8 @@ export const Display = (): JSX.Element => {
|
||||
label: "GPS Display Units",
|
||||
description: "Coordinate display format",
|
||||
properties: {
|
||||
enumValue: Protobuf.Config_DisplayConfig_GpsCoordinateFormat,
|
||||
enumValue:
|
||||
Protobuf.Config.Config_DisplayConfig_GpsCoordinateFormat,
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -68,7 +69,7 @@ export const Display = (): JSX.Element => {
|
||||
label: "Display Units",
|
||||
description: "Display metric or imperial units",
|
||||
properties: {
|
||||
enumValue: Protobuf.Config_DisplayConfig_DisplayUnits,
|
||||
enumValue: Protobuf.Config.Config_DisplayConfig_DisplayUnits,
|
||||
formatEnumName: true,
|
||||
},
|
||||
},
|
||||
@@ -78,7 +79,7 @@ export const Display = (): JSX.Element => {
|
||||
label: "OLED Type",
|
||||
description: "Type of OLED screen attached to the device",
|
||||
properties: {
|
||||
enumValue: Protobuf.Config_DisplayConfig_OledType,
|
||||
enumValue: Protobuf.Config.Config_DisplayConfig_OledType,
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -87,7 +88,7 @@ export const Display = (): JSX.Element => {
|
||||
label: "Display Mode",
|
||||
description: "Screen layout variant",
|
||||
properties: {
|
||||
enumValue: Protobuf.Config_DisplayConfig_DisplayMode,
|
||||
enumValue: Protobuf.Config.Config_DisplayConfig_DisplayMode,
|
||||
formatEnumName: true,
|
||||
},
|
||||
},
|
||||
|
||||
@@ -8,7 +8,7 @@ export const LoRa = (): JSX.Element => {
|
||||
|
||||
const onSubmit = (data: LoRaValidation) => {
|
||||
setWorkingConfig(
|
||||
new Protobuf.Config({
|
||||
new Protobuf.Config.Config({
|
||||
payloadVariant: {
|
||||
case: "lora",
|
||||
value: data,
|
||||
@@ -32,7 +32,7 @@ export const LoRa = (): JSX.Element => {
|
||||
label: "Region",
|
||||
description: "Sets the region for your node",
|
||||
properties: {
|
||||
enumValue: Protobuf.Config_LoRaConfig_RegionCode,
|
||||
enumValue: Protobuf.Config.Config_LoRaConfig_RegionCode,
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -70,7 +70,7 @@ export const LoRa = (): JSX.Element => {
|
||||
},
|
||||
],
|
||||
properties: {
|
||||
enumValue: Protobuf.Config_LoRaConfig_ModemPreset,
|
||||
enumValue: Protobuf.Config.Config_LoRaConfig_ModemPreset,
|
||||
formatEnumName: true,
|
||||
},
|
||||
},
|
||||
|
||||
@@ -8,12 +8,12 @@ export const Network = (): JSX.Element => {
|
||||
|
||||
const onSubmit = (data: NetworkValidation) => {
|
||||
setWorkingConfig(
|
||||
new Protobuf.Config({
|
||||
new Protobuf.Config.Config({
|
||||
payloadVariant: {
|
||||
case: "network",
|
||||
value: {
|
||||
...data,
|
||||
ipv4Config: new Protobuf.Config_NetworkConfig_IpV4Config(
|
||||
ipv4Config: new Protobuf.Config.Config_NetworkConfig_IpV4Config(
|
||||
data.ipv4Config,
|
||||
),
|
||||
},
|
||||
@@ -83,7 +83,7 @@ export const Network = (): JSX.Element => {
|
||||
label: "Address Mode",
|
||||
description: "Address assignment selection",
|
||||
properties: {
|
||||
enumValue: Protobuf.Config_NetworkConfig_AddressMode,
|
||||
enumValue: Protobuf.Config.Config_NetworkConfig_AddressMode,
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -94,7 +94,8 @@ export const Network = (): JSX.Element => {
|
||||
disabledBy: [
|
||||
{
|
||||
fieldName: "addressMode",
|
||||
selector: Protobuf.Config_NetworkConfig_AddressMode.DHCP,
|
||||
selector:
|
||||
Protobuf.Config.Config_NetworkConfig_AddressMode.DHCP,
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -106,7 +107,8 @@ export const Network = (): JSX.Element => {
|
||||
disabledBy: [
|
||||
{
|
||||
fieldName: "addressMode",
|
||||
selector: Protobuf.Config_NetworkConfig_AddressMode.DHCP,
|
||||
selector:
|
||||
Protobuf.Config.Config_NetworkConfig_AddressMode.DHCP,
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -118,7 +120,8 @@ export const Network = (): JSX.Element => {
|
||||
disabledBy: [
|
||||
{
|
||||
fieldName: "addressMode",
|
||||
selector: Protobuf.Config_NetworkConfig_AddressMode.DHCP,
|
||||
selector:
|
||||
Protobuf.Config.Config_NetworkConfig_AddressMode.DHCP,
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -130,7 +133,8 @@ export const Network = (): JSX.Element => {
|
||||
disabledBy: [
|
||||
{
|
||||
fieldName: "addressMode",
|
||||
selector: Protobuf.Config_NetworkConfig_AddressMode.DHCP,
|
||||
selector:
|
||||
Protobuf.Config.Config_NetworkConfig_AddressMode.DHCP,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -8,7 +8,7 @@ export const Position = (): JSX.Element => {
|
||||
|
||||
const onSubmit = (data: PositionValidation) => {
|
||||
setWorkingConfig(
|
||||
new Protobuf.Config({
|
||||
new Protobuf.Config.Config({
|
||||
payloadVariant: {
|
||||
case: "position",
|
||||
value: data,
|
||||
@@ -52,7 +52,7 @@ export const Position = (): JSX.Element => {
|
||||
label: "Position Flags",
|
||||
description: "Configuration options for Position messages",
|
||||
properties: {
|
||||
enumValue: Protobuf.Config_PositionConfig_PositionFlags,
|
||||
enumValue: Protobuf.Config.Config_PositionConfig_PositionFlags,
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@ export const Power = (): JSX.Element => {
|
||||
|
||||
const onSubmit = (data: PowerValidation) => {
|
||||
setWorkingConfig(
|
||||
new Protobuf.Config({
|
||||
new Protobuf.Config.Config({
|
||||
payloadVariant: {
|
||||
case: "power",
|
||||
value: data,
|
||||
|
||||
Reference in New Issue
Block a user