Remove comments
This commit is contained in:
parent
bee5cefc79
commit
41295d1f85
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
// }
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -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> => {
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue