diff --git a/src/App.tsx b/src/App.tsx index d3bd0ba..8975ff9 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -39,8 +39,6 @@ import 'uplot/dist/uPlot.min.css'; import 'react-perfect-scrollbar/dist/css/styles.css'; import './css/App.less'; -// TODO: fix this -// lazy loading this component causes a weird Curve canvas scaling const Tune = lazy(() => import('./pages/Tune')); const Logs = lazy(() => import('./pages/Logs')); const Diagnose = lazy(() => import('./pages/Diagnose')); @@ -71,7 +69,6 @@ const App = ({ ui, navigation, tuneData }: { ui: UIState, navigation: Navigation useEffect(() => { // Handle external redirects (oauth, etc) - // TODO: refactor this const searchParams = new URLSearchParams(window.location.search); const redirectPage = searchParams.get('redirect'); switch (redirectPage) { diff --git a/src/components/Logs/LogCanvas.tsx b/src/components/Logs/LogCanvas.tsx index 66766b7..a309560 100644 --- a/src/components/Logs/LogCanvas.tsx +++ b/src/components/Logs/LogCanvas.tsx @@ -74,15 +74,6 @@ const LogCanvas = ({ data, width, height, selectedFields1, selectedFields2, show format: format || '', }; } - - // const value = entry[label]; - // if (value > temp[label].max) { - // temp[label].max = entry[label] as number; - // } - - // if (value < temp[label].min) { - // temp[label].min = entry[label] as number; - // } }); }); diff --git a/src/hooks/useServerStorage.ts b/src/hooks/useServerStorage.ts index 096b6dd..41103a7 100644 --- a/src/hooks/useServerStorage.ts +++ b/src/hooks/useServerStorage.ts @@ -11,7 +11,6 @@ import { const useServerStorage = () => { const { getIni } = useDb(); - // TODO: use built in pocketbase function const buildFileUrl = (collection: Collections, recordId: string, filename: string) => `${API_URL}/api/files/${collection}/${recordId}/${filename}`; const fetchTuneFile = async (recordId: string, filename: string): Promise => { diff --git a/src/utils/tune/expression.ts b/src/utils/tune/expression.ts index 56d637d..eebc445 100644 --- a/src/utils/tune/expression.ts +++ b/src/utils/tune/expression.ts @@ -71,7 +71,6 @@ export const evaluateExpression = (expression: string, tuneConstants: TuneConsta try { // TODO: strip eval from `command` etc - // https://www.electronjs.org/docs/tutorial/security // eslint-disable-next-line no-eval return eval(` 'use strict';