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 'react-perfect-scrollbar/dist/css/styles.css';
|
||||||
import './css/App.less';
|
import './css/App.less';
|
||||||
|
|
||||||
// TODO: fix this
|
|
||||||
// lazy loading this component causes a weird Curve canvas scaling
|
|
||||||
const Tune = lazy(() => import('./pages/Tune'));
|
const Tune = lazy(() => import('./pages/Tune'));
|
||||||
const Logs = lazy(() => import('./pages/Logs'));
|
const Logs = lazy(() => import('./pages/Logs'));
|
||||||
const Diagnose = lazy(() => import('./pages/Diagnose'));
|
const Diagnose = lazy(() => import('./pages/Diagnose'));
|
||||||
|
@ -71,7 +69,6 @@ const App = ({ ui, navigation, tuneData }: { ui: UIState, navigation: Navigation
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// Handle external redirects (oauth, etc)
|
// Handle external redirects (oauth, etc)
|
||||||
// TODO: refactor this
|
|
||||||
const searchParams = new URLSearchParams(window.location.search);
|
const searchParams = new URLSearchParams(window.location.search);
|
||||||
const redirectPage = searchParams.get('redirect');
|
const redirectPage = searchParams.get('redirect');
|
||||||
switch (redirectPage) {
|
switch (redirectPage) {
|
||||||
|
|
|
@ -74,15 +74,6 @@ const LogCanvas = ({ data, width, height, selectedFields1, selectedFields2, show
|
||||||
format: format || '',
|
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 useServerStorage = () => {
|
||||||
const { getIni } = useDb();
|
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 buildFileUrl = (collection: Collections, recordId: string, filename: string) => `${API_URL}/api/files/${collection}/${recordId}/${filename}`;
|
||||||
|
|
||||||
const fetchTuneFile = async (recordId: string, filename: string): Promise<ArrayBuffer> => {
|
const fetchTuneFile = async (recordId: string, filename: string): Promise<ArrayBuffer> => {
|
||||||
|
|
|
@ -71,7 +71,6 @@ export const evaluateExpression = (expression: string, tuneConstants: TuneConsta
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// TODO: strip eval from `command` etc
|
// TODO: strip eval from `command` etc
|
||||||
// https://www.electronjs.org/docs/tutorial/security
|
|
||||||
// eslint-disable-next-line no-eval
|
// eslint-disable-next-line no-eval
|
||||||
return eval(`
|
return eval(`
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
Loading…
Reference in New Issue