diff --git a/package.json b/package.json new file mode 100644 index 0000000..f37b515 --- /dev/null +++ b/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "@eslint/js": "^9.25.1" + } +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml new file mode 100644 index 0000000..64822dc --- /dev/null +++ b/pnpm-lock.yaml @@ -0,0 +1,23 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + dependencies: + '@eslint/js': + specifier: ^9.25.1 + version: 9.25.1 + +packages: + + '@eslint/js@9.25.1': + resolution: {integrity: sha512-dEIwmjntEx8u3Uvv+kr3PDeeArL8Hw07H9kyYxCjnM9pBjfEhk6uLXSchxxzgiwtRhhzVzqmUSDFBOi1TuZ7qg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + +snapshots: + + '@eslint/js@9.25.1': {} diff --git a/web/src/components/dashboard/GatewayList.tsx b/web/src/components/dashboard/GatewayList.tsx index 713334f..ec5df2c 100644 --- a/web/src/components/dashboard/GatewayList.tsx +++ b/web/src/components/dashboard/GatewayList.tsx @@ -79,7 +79,6 @@ export const GatewayList: React.FC = () => { messageCount: gateway.messageCount, textMessageCount: gateway.textMessageCount }} - gatewayId={gateway.gatewayId} observedNodes={gateway.observedNodes} onClick={handleNodeClick} isRecent={isRecent} diff --git a/web/src/components/dashboard/NetworkMap.tsx b/web/src/components/dashboard/NetworkMap.tsx index 353c550..a6969b1 100644 --- a/web/src/components/dashboard/NetworkMap.tsx +++ b/web/src/components/dashboard/NetworkMap.tsx @@ -4,8 +4,6 @@ import { useAppSelector } from "../../hooks"; import { useNavigate } from "@tanstack/react-router"; import { NodeData, GatewayData } from "../../store/slices/aggregatorSlice"; import { Position } from "../../lib/types"; -import { Button } from "../ui/Button"; -import { Locate } from "lucide-react"; interface NetworkMapProps { /** Height of the map in CSS units */ @@ -367,7 +365,7 @@ export const NetworkMap = React.forwardRef<{ resetAutoZoom: () => void }, Networ `${node.isGateway ? 'Gateway' : 'Node'} ${node.id.toString(16)}`; const secondsAgo = node.lastHeard ? Math.floor(Date.now() / 1000) - node.lastHeard : 0; - let lastSeenText = formatLastSeen(secondsAgo); + const lastSeenText = formatLastSeen(secondsAgo); const infoContent = `