app: lazy load lean-qr

This commit is contained in:
k
2024-07-12 12:47:05 +02:00
parent 9077fee4d6
commit 46f8e3bafd
9 changed files with 134 additions and 78 deletions
@@ -43,17 +43,43 @@ function createPresetFolder({
key: AverageName;
}) {
return {
scale,
name,
description: "",
icon: IconTablerMathAvg,
title: `${name} Moving Average`,
top: [
tree: [
{
title: `SMA`,
color,
datasetPath: `/date-to-price-${key}-sma`,
scale,
name: "Average",
description: "",
icon: IconTablerMathAvg,
title: `${name} Moving Average`,
top: [
{
title: `SMA`,
color,
datasetPath: `/date-to-price-${key}-sma`,
},
],
},
{
scale,
name: "Ratio",
description: "",
icon: IconTablerMathXDivideY,
title: `${name} Moving Average Ratio`,
top: [
{
title: `SMA`,
color,
datasetPath: `/date-to-price-${key}-sma`,
},
],
bottom: [
{
title: `Ratio`,
color,
datasetPath: `/date-to-market-price-to-price-${key}-sma-ratio`,
},
],
},
],
} satisfies PartialPreset;
} satisfies PartialPresetFolder;
}