mirror of
https://github.com/dpup/meshstream.git
synced 2026-05-18 07:15:42 +02:00
Lint fixes
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"@eslint/js": "^9.25.1"
|
||||
}
|
||||
}
|
||||
Generated
+23
@@ -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': {}
|
||||
@@ -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}
|
||||
|
||||
@@ -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 = `
|
||||
<div style="font-family: sans-serif; max-width: 240px; color: #181818;">
|
||||
|
||||
Vendored
+3
-3
@@ -9,7 +9,7 @@ declare namespace google {
|
||||
setZoom(zoom: number): void;
|
||||
getZoom(): number | undefined;
|
||||
fitBounds(bounds: LatLngBounds): void;
|
||||
addListener(event: string, handler: Function): MapsEventListener;
|
||||
addListener(event: string, handler: () => void): MapsEventListener;
|
||||
}
|
||||
|
||||
class Marker {
|
||||
@@ -17,7 +17,7 @@ declare namespace google {
|
||||
setMap(map: Map | null): void;
|
||||
setPosition(position: LatLngLiteral): void;
|
||||
setIcon(icon: any): void;
|
||||
addListener(event: string, handler: Function): MapsEventListener;
|
||||
addListener(event: string, handler: () => void): MapsEventListener;
|
||||
}
|
||||
|
||||
class Circle {
|
||||
@@ -87,7 +87,7 @@ declare namespace google {
|
||||
/**
|
||||
* Removes all listeners for all events for the given instance.
|
||||
*/
|
||||
clearInstanceListeners(instance: Object): void;
|
||||
clearInstanceListeners(instance: object): void;
|
||||
};
|
||||
|
||||
// Maps Event Listener
|
||||
|
||||
Reference in New Issue
Block a user