Browse Source

update protobufs

pull/135/head
Sacha Weatherstone 3 years ago
parent
commit
9fff0b8595
Failed to extract signature
  1. 40
      package.json
  2. 1836
      pnpm-lock.yaml
  3. 6
      src/components/PageComponents/Config/Device.tsx
  4. 10
      src/components/PageComponents/Config/Position.tsx
  5. 3
      src/components/UI/Dialog.tsx
  6. 25
      src/components/UI/Modal.tsx
  7. 3
      src/validation/config/device.ts
  8. 3
      src/validation/config/position.ts

40
package.json

@ -23,22 +23,22 @@
"@emeraldpay/hashicon-react": "^0.5.2",
"@hookform/error-message": "^2.0.1",
"@hookform/resolvers": "^3.3.1",
"@meshtastic/meshtasticjs": "2.2.4",
"@meshtastic/meshtasticjs": "2.2.9-0",
"@preact/signals-react": "^1.3.6",
"@radix-ui/react-accordion": "^1.1.2",
"@radix-ui/react-checkbox": "^1.0.4",
"@radix-ui/react-dialog": "^1.0.4",
"@radix-ui/react-dropdown-menu": "^2.0.5",
"@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-dropdown-menu": "^2.0.6",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-menubar": "^1.0.3",
"@radix-ui/react-popover": "^1.0.6",
"@radix-ui/react-scroll-area": "^1.0.4",
"@radix-ui/react-select": "^1.2.2",
"@radix-ui/react-menubar": "^1.0.4",
"@radix-ui/react-popover": "^1.0.7",
"@radix-ui/react-scroll-area": "^1.0.5",
"@radix-ui/react-select": "^2.0.0",
"@radix-ui/react-separator": "^1.0.3",
"@radix-ui/react-switch": "^1.0.3",
"@radix-ui/react-tabs": "^1.0.4",
"@radix-ui/react-toast": "^1.1.4",
"@radix-ui/react-tooltip": "^1.0.6",
"@radix-ui/react-toast": "^1.1.5",
"@radix-ui/react-tooltip": "^1.0.7",
"@tailwindcss/typography": "^0.5.10",
"@turf/turf": "^6.5.0",
"base64-js": "^1.5.1",
@ -56,8 +56,8 @@
"maplibre-gl": "3.3.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.46.1",
"react-map-gl": "7.2.0-beta.1",
"react-hook-form": "^7.47.0",
"react-map-gl": "7.1.6",
"react-qrcode-logo": "^2.9.0",
"rfc4648": "^1.5.2",
"tailwind-merge": "^1.14.0",
@ -68,16 +68,16 @@
"devDependencies": {
"@tailwindcss/forms": "^0.5.6",
"@types/chrome": "^0.0.246",
"@types/geodesy": "^2.2.3",
"@types/node": "^20.6.2",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"@types/w3c-web-serial": "^1.0.3",
"@types/web-bluetooth": "^0.0.17",
"@vitejs/plugin-react": "^4.0.4",
"autoprefixer": "^10.4.15",
"@types/geodesy": "^2.2.4",
"@types/node": "^20.8.0",
"@types/react": "^18.2.24",
"@types/react-dom": "^18.2.8",
"@types/w3c-web-serial": "^1.0.4",
"@types/web-bluetooth": "^0.0.18",
"@vitejs/plugin-react": "^4.1.0",
"autoprefixer": "^10.4.16",
"gzipper": "^7.2.0",
"postcss": "^8.4.29",
"postcss": "^8.4.31",
"rollup-plugin-visualizer": "^5.9.2",
"rome": "^12.1.3",
"tailwindcss": "^3.3.3",

1836
pnpm-lock.yaml

File diff suppressed because it is too large

6
src/components/PageComponents/Config/Device.tsx

@ -92,6 +92,12 @@ export const Device = (): JSX.Element => {
label: "Managed",
description: "Is this device managed by a mesh administator",
},
{
type: "toggle",
name: "disableTripleClick",
label: "Disable Triple Click",
description: "Disable triple click",
},
],
},
]}

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

@ -59,13 +59,19 @@ export const Position = (): JSX.Element => {
type: "number",
name: "rxGpio",
label: "Receive Pin",
description: "GPS Module RX pin override",
description: "GPS module RX pin override",
},
{
type: "number",
name: "txGpio",
label: "Transmit Pin",
description: "GPS Module TX pin override",
description: "GPS module TX pin override",
},
{
type: "number",
name: "gpsEnGpio",
label: "Enable Pin",
description: "GPS module enable pin override",
},
],
},

3
src/components/UI/Dialog.tsx

@ -9,11 +9,10 @@ const Dialog = DialogPrimitive.Root;
const DialogTrigger = DialogPrimitive.Trigger;
const DialogPortal = ({
className,
children,
...props
}: DialogPrimitive.DialogPortalProps) => (
<DialogPrimitive.Portal className={cn(className)} {...props}>
<DialogPrimitive.Portal {...props}>
<div className="fixed inset-0 z-50 flex items-start justify-center sm:items-center">
{children}
</div>

25
src/components/UI/Modal.tsx

@ -0,0 +1,25 @@
export interface ModalProps {
title: string;
actions?: JSX.Element[];
children: React.ReactNode;
}
export const Modal = ({
title,
actions,
children,
}: ModalProps): JSX.Element => {
return (
<div className="rounded-md overflow-hidden w-full">
<div className="flex h-12 px-3 bg-slate-200 dark:bg-slate-700 justify-between">
<h2 className="my-auto font-semibold text-lg">{title}</h2>
{actions && (
<div className="my-auto">{actions.map((action) => action)}</div>
)}
</div>
<div className="h-full border border-slate-200 dark:border-slate-700">
{children}
</div>
</div>
);
};

3
src/validation/config/device.ts

@ -31,4 +31,7 @@ export class DeviceValidation
@IsBoolean()
isManaged: boolean;
@IsBoolean()
disableTripleClick: boolean;
}

3
src/validation/config/position.ts

@ -37,4 +37,7 @@ export class PositionValidation
@IsInt()
broadcastSmartMinimumIntervalSecs: number;
@IsInt()
gpsEnGpio: number;
}

Loading…
Cancel
Save