mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-25 23:29:58 -07:00
app: lazy load lean-qr
This commit is contained in:
@@ -17,17 +17,16 @@ export function createResourceDataset<
|
||||
>;
|
||||
|
||||
const baseURL = `${
|
||||
// location.hostname === "localhost"
|
||||
// ? "http://localhost:3110"
|
||||
// : "https://api.satonomics.xyz"
|
||||
"https://api.satonomics.xyz"
|
||||
location.hostname === "localhost"
|
||||
? "http://localhost:3111"
|
||||
: "https://api.satonomics.xyz"
|
||||
// "https://api.satonomics.xyz"
|
||||
}${path}`;
|
||||
|
||||
const backupURL = `${
|
||||
// location.hostname === "localhost"
|
||||
// ? "http://localhost:3110"
|
||||
// : "https://api.satonomics.xyz"
|
||||
"https://api-bkp.satonomics.xyz"
|
||||
location.hostname === "localhost"
|
||||
? "http://localhost:3111"
|
||||
: "https://api-bkp.satonomics.xyz"
|
||||
}${path}`;
|
||||
|
||||
return createRoot((dispose) => {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user