Browse Source

update deps

pull/170/head
Sacha Weatherstone 2 years ago
parent
commit
4d0bd1f2b6
Failed to extract signature
  1. 28
      package.json
  2. 985
      pnpm-lock.yaml
  3. 15
      src/components/PageComponents/Config/Position.tsx
  4. 10
      src/validation/config/position.ts

28
package.json

@ -20,9 +20,9 @@
},
"homepage": "https://meshtastic.org",
"dependencies": {
"@bufbuild/protobuf": "^1.6.0",
"@bufbuild/protobuf": "^1.7.2",
"@emeraldpay/hashicon-react": "^0.5.2",
"@meshtastic/js": "2.2.19-0",
"@meshtastic/js": "2.2.23-0",
"@radix-ui/react-accordion": "^1.1.2",
"@radix-ui/react-checkbox": "^1.0.4",
"@radix-ui/react-dialog": "^1.0.5",
@ -43,41 +43,41 @@
"class-validator": "^0.14.1",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"cmdk": "^0.2.0",
"cmdk": "^0.2.1",
"immer": "^10.0.3",
"lucide-react": "^0.314.0",
"lucide-react": "^0.331.0",
"mapbox-gl": "npm:empty-npm-package@^1.0.0",
"maplibre-gl": "3.6.2",
"maplibre-gl": "4.0.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.49.3",
"react-hook-form": "^7.50.1",
"react-map-gl": "7.1.7",
"react-qrcode-logo": "^2.9.0",
"rfc4648": "^1.5.3",
"tailwind-merge": "^2.2.1",
"tailwindcss-animate": "^1.0.7",
"timeago-react": "^3.0.6",
"zustand": "4.5.0"
"zustand": "4.5.1"
},
"devDependencies": {
"@biomejs/biome": "^1.5.3",
"@buf/meshtastic_protobufs.bufbuild_es": "1.6.0-20240120102703-ad0e0726ffe6.1",
"@types/chrome": "^0.0.258",
"@types/node": "^20.11.6",
"@types/react": "^18.2.48",
"@types/react-dom": "^18.2.18",
"@buf/meshtastic_protobufs.bufbuild_es": "1.7.2-20240216123215-6b07c41c68c9.1",
"@types/chrome": "^0.0.260",
"@types/node": "^20.11.19",
"@types/react": "^18.2.56",
"@types/react-dom": "^18.2.19",
"@types/w3c-web-serial": "^1.0.6",
"@types/web-bluetooth": "^0.0.20",
"@vitejs/plugin-react": "^4.2.1",
"autoprefixer": "^10.4.17",
"gzipper": "^7.2.0",
"postcss": "^8.4.33",
"postcss": "^8.4.35",
"rollup-plugin-visualizer": "^5.12.0",
"tailwindcss": "^3.4.1",
"tar": "^6.2.0",
"tslib": "^2.6.2",
"typescript": "^5.3.3",
"vite": "^5.0.12",
"vite": "^5.1.3",
"vite-plugin-environment": "^1.1.3"
}
}

985
pnpm-lock.yaml

File diff suppressed because it is too large

15
src/components/PageComponents/Config/Position.tsx

@ -73,6 +73,21 @@ export const Position = (): JSX.Element => {
label: "Enable Pin",
description: "GPS module enable pin override",
},
{
type: "select",
name: "gpsMode",
label: "GPS Mode",
description: "GPS module mode",
properties: {
enumValue: Protobuf.Config.Config_PositionConfig_GpsMode,
},
},
{
type: "number",
name: "channelPrecision",
label: "Channel Precision",
description: "GPS channel precision",
},
],
},
{

10
src/validation/config/position.ts

@ -1,6 +1,6 @@
import type { Message } from "@bufbuild/protobuf";
import type { Protobuf } from "@meshtastic/js";
import { IsBoolean, IsInt } from "class-validator";
import { Protobuf } from "@meshtastic/js";
import { IsArray, IsBoolean, IsEnum, IsInt } from "class-validator";
export class PositionValidation
implements Omit<Protobuf.Config.Config_PositionConfig, keyof Message>
@ -40,4 +40,10 @@ export class PositionValidation
@IsInt()
gpsEnGpio: number;
@IsEnum(Protobuf.Config.Config_PositionConfig_GpsMode)
gpsMode: Protobuf.Config.Config_PositionConfig_GpsMode;
@IsArray()
channelPrecision: number[];
}

Loading…
Cancel
Save