From 10c4b81c4cb676a9bb92dfa819cf5c7764e16389 Mon Sep 17 00:00:00 2001 From: Ryan Martin Date: Tue, 22 Oct 2024 16:52:28 +0700 Subject: [PATCH] fix: formatting and lint errors --- src/routeTree.gen.ts | 6 +++--- src/routes/_cardinal.tsx | 2 +- src/routes/_jaeger.jaeger.tsx | 6 +++--- src/routes/_jaeger.tsx | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/routeTree.gen.ts b/src/routeTree.gen.ts index aca1e76..2509485 100644 --- a/src/routeTree.gen.ts +++ b/src/routeTree.gen.ts @@ -11,11 +11,11 @@ // Import Routes import { Route as rootRoute } from './routes/__root' -import { Route as JaegerImport } from './routes/_jaeger' import { Route as CardinalImport } from './routes/_cardinal' -import { Route as IndexImport } from './routes/index' -import { Route as JaegerJaegerImport } from './routes/_jaeger.jaeger' import { Route as CardinalCardinalImport } from './routes/_cardinal.cardinal' +import { Route as JaegerImport } from './routes/_jaeger' +import { Route as JaegerJaegerImport } from './routes/_jaeger.jaeger' +import { Route as IndexImport } from './routes/index' // Create/Update Routes diff --git a/src/routes/_cardinal.tsx b/src/routes/_cardinal.tsx index 00ae66d..33958b0 100644 --- a/src/routes/_cardinal.tsx +++ b/src/routes/_cardinal.tsx @@ -98,7 +98,7 @@ function CardinalLayout() { // setup websocket connection to receive events useEffect(() => { const wsCardinalUrl = cardinalUrl.replace(/https|http/, 'ws') - let ws: WebSocket; + let ws: WebSocket try { // this throws error if url scheme is not valid ws = new WebSocket(`${wsCardinalUrl}${routeEvents}`) diff --git a/src/routes/_jaeger.jaeger.tsx b/src/routes/_jaeger.jaeger.tsx index 16882b3..8c7ff4a 100644 --- a/src/routes/_jaeger.jaeger.tsx +++ b/src/routes/_jaeger.jaeger.tsx @@ -40,16 +40,16 @@ function Jaeger() { const parsed = responseSchema.safeParse(body) // this means jaegerUrl isn't pointing to a proper jaeger service if (!parsed.success) { - throw new Error("Invalid Jaeger Services API") + throw new Error('Invalid Jaeger Services API') } setIsJaegerRunning(true) } catch (error) { setIsJaegerRunning(false) - errorToast(toast, error, "Error fetching Jaeger") + errorToast(toast, error, 'Error fetching Jaeger') } } ping().then() - }, [jaegerUrl]) + }, [jaegerUrl, toast]) const defaultUrl = `${jaegerUrl}/?uiEmbed=v0` const telemetryCommand = 'world cardinal start --telemetry' diff --git a/src/routes/_jaeger.tsx b/src/routes/_jaeger.tsx index 2dec19a..b2d7b2d 100644 --- a/src/routes/_jaeger.tsx +++ b/src/routes/_jaeger.tsx @@ -11,7 +11,7 @@ function JaegerLayout() {
-
+