cleanups
This commit is contained in:
parent
630128ae3f
commit
5cf17f5dbf
|
@ -135,23 +135,6 @@ export const ExpressionViewer: React.FC<Props> = ({ value, width }) => {
|
||||||
{() => value.value.toString()}
|
{() => value.value.toString()}
|
||||||
</VariableBox>
|
</VariableBox>
|
||||||
);
|
);
|
||||||
// case SqValueTag.Symbol:
|
|
||||||
// return (
|
|
||||||
// <VariableBox value={value} heading="Symbol">
|
|
||||||
// {() => (
|
|
||||||
// <>
|
|
||||||
// <span className="text-slate-500 mr-2">Undefined Symbol:</span>
|
|
||||||
// <span className="text-slate-600">{value.value}</span>
|
|
||||||
// </>
|
|
||||||
// )}
|
|
||||||
// </VariableBox>
|
|
||||||
// );
|
|
||||||
// case SqValueTag.Call:
|
|
||||||
// return (
|
|
||||||
// <VariableBox value={value} heading="Call">
|
|
||||||
// {() => value.value}
|
|
||||||
// </VariableBox>
|
|
||||||
// );
|
|
||||||
case SqValueTag.Date:
|
case SqValueTag.Date:
|
||||||
return (
|
return (
|
||||||
<VariableBox value={value} heading="Date">
|
<VariableBox value={value} heading="Date">
|
||||||
|
@ -236,24 +219,6 @@ export const ExpressionViewer: React.FC<Props> = ({ value, width }) => {
|
||||||
</VariableBox>
|
</VariableBox>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
// case SqValueTag.Module: {
|
|
||||||
// return (
|
|
||||||
// <VariableList value={value} heading="Module">
|
|
||||||
// {(_) =>
|
|
||||||
// value.value
|
|
||||||
// .entries()
|
|
||||||
// .filter(([key, _]) => !key.match(/^(__result__)$/))
|
|
||||||
// .map(([key, r]) => (
|
|
||||||
// <ExpressionViewer
|
|
||||||
// key={key}
|
|
||||||
// value={r}
|
|
||||||
// width={width !== undefined ? width - 20 : width}
|
|
||||||
// />
|
|
||||||
// ))
|
|
||||||
// }
|
|
||||||
// </VariableList>
|
|
||||||
// );
|
|
||||||
// }
|
|
||||||
case SqValueTag.Record:
|
case SqValueTag.Record:
|
||||||
const plot = makePlot(value.value);
|
const plot = makePlot(value.value);
|
||||||
if (plot) {
|
if (plot) {
|
||||||
|
|
|
@ -90,10 +90,6 @@ Case "Running a single source".
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
// s1: { x = 1 } / { stdlib }
|
|
||||||
// s2 (deps=[s1]): { y = 2 } / { { x = 1 } + stdlib }
|
|
||||||
// s3 (deps=[s2]): { z = 3 } / { { y = 2 } + stdlib }
|
|
||||||
|
|
||||||
//TODO multiple sources
|
//TODO multiple sources
|
||||||
//TODO multiple sources with includes. Introduction to includes
|
//TODO multiple sources with includes. Introduction to includes
|
||||||
//TODO multiple sources with multi level includes. Cycle detection
|
//TODO multiple sources with multi level includes. Cycle detection
|
||||||
|
|
Loading…
Reference in New Issue
Block a user