Remove comments

This commit is contained in:
Piotr Rogowski 2022-10-28 16:13:09 +02:00
parent bee5cefc79
commit 41295d1f85
No known key found for this signature in database
GPG Key ID: 4A842D702D9C6F8F
4 changed files with 0 additions and 14 deletions

View File

@ -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) {

View File

@ -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;
// }
});
});

View File

@ -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<ArrayBuffer> => {

View File

@ -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';