Execute oxfmt (#1166)
Ran pnpm oxfmt . This should get the web repo aligned so that we can better enforce oxfmt going forward.
This commit is contained in:
@@ -2,7 +2,10 @@ import * as Protobuf from "@meshtastic/protobufs";
|
||||
import { computed } from "@preact/signals-core";
|
||||
import type { ResultType } from "better-result";
|
||||
import type { MeshClient } from "../../core/client/MeshClient.ts";
|
||||
import { type ReadonlySignal, toReadonly } from "../../core/signals/createStore.ts";
|
||||
import {
|
||||
type ReadonlySignal,
|
||||
toReadonly,
|
||||
} from "../../core/signals/createStore.ts";
|
||||
import {
|
||||
beginEditSettings,
|
||||
commitEditSettings,
|
||||
@@ -45,12 +48,17 @@ export class ConfigClient {
|
||||
computed(() => {
|
||||
const lora = this.store.radio.write.value.lora;
|
||||
if (!lora) return false;
|
||||
return lora.region === Protobuf.Config.Config_LoRaConfig_RegionCode.UNSET;
|
||||
return (
|
||||
lora.region === Protobuf.Config.Config_LoRaConfig_RegionCode.UNSET
|
||||
);
|
||||
}),
|
||||
);
|
||||
|
||||
client.events.onConfigPacket.subscribe((config) => {
|
||||
this.store.radio.write.value = ConfigMapper.mergeRadio(this.store.radio.write.value, config);
|
||||
this.store.radio.write.value = ConfigMapper.mergeRadio(
|
||||
this.store.radio.write.value,
|
||||
config,
|
||||
);
|
||||
});
|
||||
client.events.onModuleConfigPacket.subscribe((moduleConfig) => {
|
||||
this.store.modules.write.value = ConfigMapper.mergeModule(
|
||||
@@ -68,7 +76,9 @@ export class ConfigClient {
|
||||
return commitEditSettings(this.client);
|
||||
}
|
||||
|
||||
public setRadio(config: Protobuf.Config.Config): Promise<ResultType<number, Error>> {
|
||||
public setRadio(
|
||||
config: Protobuf.Config.Config,
|
||||
): Promise<ResultType<number, Error>> {
|
||||
return setConfig(this.client, config);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user