general: snapshot

This commit is contained in:
k
2024-07-18 09:16:18 +02:00
parent fb978211ae
commit 4d23fdef61
14 changed files with 565 additions and 488 deletions
+2 -2
View File
@@ -34,7 +34,7 @@
"prettier-plugin-tailwindcss": "^0.6.5",
"pwa-asset-generator": "^6.3.1",
"rollup-plugin-visualizer": "^5.12.0",
"tailwindcss": "^3.4.5",
"tailwindcss": "^3.4.6",
"typescript": "^5.5.3",
"unplugin-auto-import": "^0.18.0",
"unplugin-icons": "^0.19.0",
@@ -42,6 +42,6 @@
"vite-plugin-pwa": "^0.20.0",
"vite-plugin-solid": "^2.10.2",
"workbox-window": "^7.1.0",
"wrangler": "^3.64.0"
"wrangler": "^3.65.0"
}
}
+54 -54
View File
@@ -36,7 +36,7 @@ devDependencies:
version: 1.1.117
'@tailwindcss/container-queries':
specifier: ^0.1.1
version: 0.1.1(tailwindcss@3.4.5)
version: 0.1.1(tailwindcss@3.4.6)
autoprefixer:
specifier: ^10.4.19
version: 10.4.19(postcss@8.4.39)
@@ -56,8 +56,8 @@ devDependencies:
specifier: ^5.12.0
version: 5.12.0(rollup@2.79.1)
tailwindcss:
specifier: ^3.4.5
version: 3.4.5
specifier: ^3.4.6
version: 3.4.6
typescript:
specifier: ^5.5.3
version: 5.5.3
@@ -80,8 +80,8 @@ devDependencies:
specifier: ^7.1.0
version: 7.1.0
wrangler:
specifier: ^3.64.0
version: 3.64.0
specifier: ^3.65.0
version: 3.65.0
packages:
@@ -146,7 +146,7 @@ packages:
dependencies:
'@ampproject/remapping': 2.3.0
'@babel/code-frame': 7.24.7
'@babel/generator': 7.24.9
'@babel/generator': 7.24.10
'@babel/helper-compilation-targets': 7.24.8
'@babel/helper-module-transforms': 7.24.9(@babel/core@7.24.9)
'@babel/helpers': 7.24.8
@@ -163,8 +163,8 @@ packages:
- supports-color
dev: true
/@babel/generator@7.24.9:
resolution: {integrity: sha512-G8v3jRg+z8IwY1jHFxvCNhOPYPterE4XljNgdGTYfSTtzzwjIswIzIaSPSLs3R7yFuqnqNeay5rjICfqVr+/6A==}
/@babel/generator@7.24.10:
resolution: {integrity: sha512-o9HBZL1G2129luEUlG1hB4N/nlYNWHnpwlND9eOMclRqqu1YDy2sSYVCFUZwl8I1Gxh+QSRrP2vD7EpUmFVXxg==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.24.9
@@ -1358,7 +1358,7 @@ packages:
engines: {node: '>=6.9.0'}
dependencies:
'@babel/code-frame': 7.24.7
'@babel/generator': 7.24.9
'@babel/generator': 7.24.10
'@babel/helper-environment-visitor': 7.24.7
'@babel/helper-function-name': 7.24.7
'@babel/helper-hoist-variables': 7.24.7
@@ -1387,8 +1387,8 @@ packages:
mime: 3.0.0
dev: true
/@cloudflare/workerd-darwin-64@1.20240701.0:
resolution: {integrity: sha512-XAZa4ZP+qyTn6JQQACCPH09hGZXP2lTnWKkmg5mPwT8EyRzCKLkczAf98vPP5bq7JZD/zORdFWRY0dOTap8zTQ==}
/@cloudflare/workerd-darwin-64@1.20240712.0:
resolution: {integrity: sha512-KB1vbOhr62BCAwVr3VaRcngzPeSCQ7zPA9VGrfwYXIxo0Y4zlW1z0EVtcewFSz5XXKr3BtNnJXxdjDPUNkguQw==}
engines: {node: '>=16'}
cpu: [x64]
os: [darwin]
@@ -1396,8 +1396,8 @@ packages:
dev: true
optional: true
/@cloudflare/workerd-darwin-arm64@1.20240701.0:
resolution: {integrity: sha512-w80ZVAgfH4UwTz7fXZtk7KmS2FzlXniuQm4ku4+cIgRTilBAuKqjpOjwUCbx5g13Gqcm9NuiHce+IDGtobRTIQ==}
/@cloudflare/workerd-darwin-arm64@1.20240712.0:
resolution: {integrity: sha512-UDwFnCfQGFVCNxOeHxKNEc1ANQk/3OIiFWpVsxgZqJqU/22XM88JHxJW+YcBKsaUGUlpLyImaYUn2/rG+i+9UQ==}
engines: {node: '>=16'}
cpu: [arm64]
os: [darwin]
@@ -1405,8 +1405,8 @@ packages:
dev: true
optional: true
/@cloudflare/workerd-linux-64@1.20240701.0:
resolution: {integrity: sha512-UWLr/Anxwwe/25nGv451MNd2jhREmPt/ws17DJJqTLAx6JxwGWA15MeitAIzl0dbxRFAJa+0+R8ag2WR3F/D6g==}
/@cloudflare/workerd-linux-64@1.20240712.0:
resolution: {integrity: sha512-MxpMHSJcZRUL66TO7BEnEim9WgZ8wJEVOB1Rq7a/IF2hI4/8f+N+02PChh62NkBlWxDfTXAtZy0tyQMm0EGjHg==}
engines: {node: '>=16'}
cpu: [x64]
os: [linux]
@@ -1414,8 +1414,8 @@ packages:
dev: true
optional: true
/@cloudflare/workerd-linux-arm64@1.20240701.0:
resolution: {integrity: sha512-3kCnF9kYgov1ggpuWbgpXt4stPOIYtVmPCa7MO2xhhA0TWP6JDUHRUOsnmIgKrvDjXuXqlK16cdg3v+EWsaPJg==}
/@cloudflare/workerd-linux-arm64@1.20240712.0:
resolution: {integrity: sha512-DtLYZsFFFAMgn+6YCHoQS6nYY4nbdAtcAFa4PhWTjLJDbvQEn3IoK9Bi4ajCL7xG36FeuBdZliSbBiiv7CJjfQ==}
engines: {node: '>=16'}
cpu: [arm64]
os: [linux]
@@ -1423,8 +1423,8 @@ packages:
dev: true
optional: true
/@cloudflare/workerd-windows-64@1.20240701.0:
resolution: {integrity: sha512-6IPGITRAeS67j3BH1rN4iwYWDt47SqJG7KlZJ5bB4UaNAia4mvMBSy/p2p4vA89bbXoDRjMtEvRu7Robu6O7hQ==}
/@cloudflare/workerd-windows-64@1.20240712.0:
resolution: {integrity: sha512-u8zoT9PQiiwxuz9npquLBFWrC/RlBWGGZ1aylarZNFlM4sFrRm+bRr6i+KtS+fltHIVXj3teuoKYytA1ppf9Yw==}
engines: {node: '>=16'}
cpu: [x64]
os: [win32]
@@ -1877,7 +1877,7 @@ packages:
optional: true
dependencies:
'@babel/core': 7.24.9
'@babel/generator': 7.24.9
'@babel/generator': 7.24.10
'@babel/parser': 7.24.8
'@babel/traverse': 7.24.8
'@babel/types': 7.24.9
@@ -2072,7 +2072,7 @@ packages:
rollup: 2.79.1
serialize-javascript: 6.0.2
smob: 1.5.0
terser: 5.31.2
terser: 5.31.3
dev: true
/@rollup/pluginutils@3.1.0(rollup@2.79.1):
@@ -2295,12 +2295,12 @@ packages:
string.prototype.matchall: 4.0.11
dev: true
/@tailwindcss/container-queries@0.1.1(tailwindcss@3.4.5):
/@tailwindcss/container-queries@0.1.1(tailwindcss@3.4.6):
resolution: {integrity: sha512-p18dswChx6WnTSaJCSGx6lTmrGzNNvm2FtXmiO6AuA1V4U5REyoqwmT6kgAsIMdjo07QdAfYXHJ4hnMtfHzWgA==}
peerDependencies:
tailwindcss: '>=3.2.0'
dependencies:
tailwindcss: 3.4.5
tailwindcss: 3.4.6
dev: true
/@types/babel__core@7.20.5:
@@ -2347,11 +2347,11 @@ packages:
/@types/node-forge@1.3.11:
resolution: {integrity: sha512-FQx220y22OKNTqaByeBGqHWYz4cl94tpcxeFdvBo3wjG6XPBuZ0BNgNZRV5J5TFmmcsJ4IzsLkmGRiQbnYsBEQ==}
dependencies:
'@types/node': 20.14.10
'@types/node': 20.14.11
dev: true
/@types/node@20.14.10:
resolution: {integrity: sha512-MdiXf+nDuMvY0gJKxyfZ7/6UFsETO7mGKF54MVD/ekJS6HdFtpZFBgrh6Pseu64XTb2MLyFPlbW6hj8HYRQNOQ==}
/@types/node@20.14.11:
resolution: {integrity: sha512-kprQpL8MMeszbz6ojB5/tU8PLN4kesnN8Gjzw349rDlNgsSzg90lAVj3llK99Dh7JON+t9AuscPPFW6mPbTnSA==}
dependencies:
undici-types: 5.26.5
dev: true
@@ -2372,7 +2372,7 @@ packages:
resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==}
requiresBuild: true
dependencies:
'@types/node': 20.14.10
'@types/node': 20.14.11
dev: true
optional: true
@@ -2772,7 +2772,7 @@ packages:
engines: {node: '>=12.13.0'}
hasBin: true
dependencies:
'@types/node': 20.14.10
'@types/node': 20.14.11
escape-string-regexp: 4.0.0
is-wsl: 2.2.0
lighthouse-logger: 1.4.2
@@ -4256,8 +4256,8 @@ packages:
engines: {node: '>=4'}
dev: true
/miniflare@3.20240701.0:
resolution: {integrity: sha512-m9+I+7JNyqDGftCMKp9cK9pCZkK72hAL2mM9IWwhct+ZmucLBA8Uu6+rHQqA5iod86cpwOkrB2PrPA3wx9YNgw==}
/miniflare@3.20240712.0:
resolution: {integrity: sha512-zVbsMX2phvJS1uTPmjK6CvVBq4ON2UkmvTw9IMfNPACsWJmHEdsBDxsYEG1vKAduJdI5gULLuJf7qpFxByDhGw==}
engines: {node: '>=16.13'}
hasBin: true
dependencies:
@@ -4269,7 +4269,7 @@ packages:
glob-to-regexp: 0.4.1
stoppable: 1.1.0
undici: 5.28.4
workerd: 1.20240701.0
workerd: 1.20240712.0
ws: 8.18.0
youch: 3.3.3
zod: 3.23.8
@@ -4330,7 +4330,7 @@ packages:
acorn: 8.12.1
pathe: 1.1.2
pkg-types: 1.1.3
ufo: 1.5.3
ufo: 1.5.4
dev: true
/ms@2.0.0:
@@ -5224,7 +5224,7 @@ packages:
peerDependencies:
solid-js: ^1.3
dependencies:
'@babel/generator': 7.24.9
'@babel/generator': 7.24.10
'@babel/helper-module-imports': 7.24.7
'@babel/types': 7.24.9
solid-js: 1.8.18
@@ -5453,8 +5453,8 @@ packages:
engines: {node: '>= 0.4'}
dev: true
/tailwindcss@3.4.5:
resolution: {integrity: sha512-DlTxttYcogpDfx3tf/8jfnma1nfAYi2cBUYV2YNoPPecwmO3YGiFlOX9D8tGAu+EDF38ryBzvrDKU/BLMsUwbw==}
/tailwindcss@3.4.6:
resolution: {integrity: sha512-1uRHzPB+Vzu57ocybfZ4jh5Q3SdlH7XW23J5sQoM9LhE9eIOlzxer/3XPSsycvih3rboRsvt0QCmzSrqyOYUIA==}
engines: {node: '>=14.0.0'}
hasBin: true
dependencies:
@@ -5519,8 +5519,8 @@ packages:
unique-string: 2.0.0
dev: true
/terser@5.31.2:
resolution: {integrity: sha512-LGyRZVFm/QElZHy/CPr/O4eNZOZIzsrQ92y4v9UJe/pFJjypje2yI3C2FmPtvUEnhadlSbmG2nXtdcjHOjCfxw==}
/terser@5.31.3:
resolution: {integrity: sha512-pAfYn3NIZLyZpa83ZKigvj6Rn9c/vd5KfYGX7cN1mnzqgDcxWvrU5ZtAfIKhEXz9nRecw4z3LXkjaq96/qZqAA==}
engines: {node: '>=10'}
hasBin: true
dependencies:
@@ -5657,8 +5657,8 @@ packages:
hasBin: true
dev: true
/ufo@1.5.3:
resolution: {integrity: sha512-Y7HYmWaFwPUmkoQCUIAYpKqkOf+SbVj/2fJJZ4RJMCfZp0rTGwRbzQD+HghfnhKOjL9E01okqz+ncJskGYfBNw==}
/ufo@1.5.4:
resolution: {integrity: sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ==}
dev: true
/unbox-primitive@1.0.2:
@@ -5696,7 +5696,7 @@ packages:
mime: 3.0.0
node-fetch-native: 1.6.4
pathe: 1.1.2
ufo: 1.5.3
ufo: 1.5.4
dev: true
/unicode-canonical-property-names-ecmascript@2.0.0:
@@ -5722,8 +5722,8 @@ packages:
engines: {node: '>=4'}
dev: true
/unimport@3.7.2(rollup@2.79.1):
resolution: {integrity: sha512-91mxcZTadgXyj3lFWmrGT8GyoRHWuE5fqPOjg5RVtF6vj+OfM5G6WCzXjuYtSgELE5ggB34RY4oiCSEP8I3AHw==}
/unimport@3.8.0(rollup@2.79.1):
resolution: {integrity: sha512-leq5bfNxyytAer8cYPi0dR0L6p8ZnZ8NxR9TKsSIbJM47TOxC5qURJXQZ8xuBGqLakUqYO6CvVtf3lWKo9k+8A==}
dependencies:
'@rollup/pluginutils': 5.1.0(rollup@2.79.1)
acorn: 8.12.1
@@ -5772,7 +5772,7 @@ packages:
local-pkg: 0.5.0
magic-string: 0.30.10
minimatch: 9.0.5
unimport: 3.7.2(rollup@2.79.1)
unimport: 3.8.0(rollup@2.79.1)
unplugin: 1.11.0
transitivePeerDependencies:
- rollup
@@ -6147,25 +6147,25 @@ packages:
workbox-core: 7.1.0
dev: true
/workerd@1.20240701.0:
resolution: {integrity: sha512-qSgNVqauqzNCij9MaJLF2c2ko3AnFioVSIxMSryGbRK+LvtGr9BKBt6JOxCb24DoJASoJDx3pe3DJHBVydUiBg==}
/workerd@1.20240712.0:
resolution: {integrity: sha512-hdIHZif82hBDy9YnMtcmDGgbLU5f2P2aGpi/X8EKhTSLDppVUGrkY3XB536J4jGjA2D5dS0FUEXCl5bAJEed8Q==}
engines: {node: '>=16'}
hasBin: true
requiresBuild: true
optionalDependencies:
'@cloudflare/workerd-darwin-64': 1.20240701.0
'@cloudflare/workerd-darwin-arm64': 1.20240701.0
'@cloudflare/workerd-linux-64': 1.20240701.0
'@cloudflare/workerd-linux-arm64': 1.20240701.0
'@cloudflare/workerd-windows-64': 1.20240701.0
'@cloudflare/workerd-darwin-64': 1.20240712.0
'@cloudflare/workerd-darwin-arm64': 1.20240712.0
'@cloudflare/workerd-linux-64': 1.20240712.0
'@cloudflare/workerd-linux-arm64': 1.20240712.0
'@cloudflare/workerd-windows-64': 1.20240712.0
dev: true
/wrangler@3.64.0:
resolution: {integrity: sha512-q2VQADJXzuOkXs9KIfPSx7UCZHBoxsqSNbJDLkc2pHpGmsyNQXsJRqjMoTg/Kls7O3K9A7EGnzGr7+Io2vE6AQ==}
/wrangler@3.65.0:
resolution: {integrity: sha512-IDy4ttyJZssazAd5CXHw4NWeZFGxngdNF5m2ogltdT3CV7uHfCvPVdMcr4uNMpRZd0toHmAE3LtQeXxDFFp88A==}
engines: {node: '>=16.17.0'}
hasBin: true
peerDependencies:
'@cloudflare/workers-types': ^4.20240620.0
'@cloudflare/workers-types': ^4.20240712.0
peerDependenciesMeta:
'@cloudflare/workers-types':
optional: true
@@ -6177,7 +6177,7 @@ packages:
chokidar: 3.6.0
date-fns: 3.6.0
esbuild: 0.17.19
miniflare: 3.20240701.0
miniflare: 3.20240712.0
nanoid: 3.3.7
path-to-regexp: 6.2.2
resolve: 1.22.8
+192 -133
View File
@@ -1,144 +1,203 @@
import { colors } from "../../utils/colors";
export function createPresets() {
const scale: ResourceScale = "date";
export function createPresets(scale: ResourceScale) {
return {
name: "Blocks",
tree: [
{
scale,
icon: IconTablerWall,
name: "Height",
title: "Block Height",
description: "",
bottom: [
{
title: "Height",
color: colors.bitcoin,
datasetPath: `/date-to-last-height`,
},
],
},
{
scale,
name: "Mined",
tree: [
{
scale,
icon: IconTablerCube,
name: "Daily Sum",
title: "Daily Sum Of Blocks Mined",
description: "",
bottom: [
{
title: "Target",
color: colors.white,
datasetPath: `/date-to-blocks-mined-1d-target`,
options: {
lineStyle: 3,
...((scale === "date"
? [
{
scale,
icon: IconTablerWall,
name: "Height",
title: "Block Height",
description: "",
bottom: [
{
title: "Height",
color: colors.bitcoin,
datasetPath: `/date-to-last-height`,
},
},
{
title: "1W Avg.",
color: colors.momentumYellow,
datasetPath: `/date-to-blocks-mined-1w-sma`,
defaultVisible: false,
},
{
title: "1M Avg.",
color: colors.bitcoin,
datasetPath: `/date-to-blocks-mined-1m-sma`,
},
{
title: "Mined",
color: colors.darkBitcoin,
datasetPath: `/date-to-blocks-mined`,
},
],
},
{
scale,
icon: IconTablerLetterW,
name: "Weekly Sum",
title: "Weekly Sum Of Blocks Mined",
description: "",
bottom: [
{
title: "Target",
color: colors.white,
datasetPath: `/date-to-blocks-mined-1w-target`,
options: {
lineStyle: 3,
],
},
{
scale,
name: "Mined",
tree: [
{
scale,
icon: IconTablerCube,
name: "Daily Sum",
title: "Daily Sum Of Blocks Mined",
description: "",
bottom: [
{
title: "Target",
color: colors.white,
datasetPath: `/date-to-blocks-mined-1d-target`,
options: {
lineStyle: 3,
},
},
{
title: "1W Avg.",
color: colors.momentumYellow,
datasetPath: `/date-to-blocks-mined-1w-sma`,
defaultVisible: false,
},
{
title: "1M Avg.",
color: colors.bitcoin,
datasetPath: `/date-to-blocks-mined-1m-sma`,
},
{
title: "Mined",
color: colors.darkBitcoin,
datasetPath: `/date-to-blocks-mined`,
},
],
},
},
{
title: "Sum Mined",
color: colors.bitcoin,
datasetPath: `/date-to-blocks-mined-1w-sum`,
},
],
},
{
scale,
icon: IconTablerLetterM,
name: "Monthly Sum",
title: "Monthly Sum Of Blocks Mined",
description: "",
bottom: [
{
title: "Target",
color: colors.white,
datasetPath: `/date-to-blocks-mined-1m-target`,
options: {
lineStyle: 3,
{
scale,
icon: IconTablerLetterW,
name: "Weekly Sum",
title: "Weekly Sum Of Blocks Mined",
description: "",
bottom: [
{
title: "Target",
color: colors.white,
datasetPath: `/date-to-blocks-mined-1w-target`,
options: {
lineStyle: 3,
},
},
{
title: "Sum Mined",
color: colors.bitcoin,
datasetPath: `/date-to-blocks-mined-1w-sum`,
},
],
},
},
{
title: "Sum Mined",
color: colors.bitcoin,
datasetPath: `/date-to-blocks-mined-1m-sum`,
},
],
},
{
scale,
icon: IconTablerLetterY,
name: "Yearly Sum",
title: "Yearly Sum Of Blocks Mined",
description: "",
bottom: [
{
title: "Target",
color: colors.white,
datasetPath: `/date-to-blocks-mined-1y-target`,
options: {
lineStyle: 3,
{
scale,
icon: IconTablerLetterM,
name: "Monthly Sum",
title: "Monthly Sum Of Blocks Mined",
description: "",
bottom: [
{
title: "Target",
color: colors.white,
datasetPath: `/date-to-blocks-mined-1m-target`,
options: {
lineStyle: 3,
},
},
{
title: "Sum Mined",
color: colors.bitcoin,
datasetPath: `/date-to-blocks-mined-1m-sum`,
},
],
},
},
{
title: "Sum Mined",
color: colors.bitcoin,
datasetPath: `/date-to-blocks-mined-1y-sum`,
},
],
},
{
scale,
icon: IconTablerWall,
name: "Total",
title: "Total Blocks Mined",
description: "",
bottom: [
{
title: "Mined",
color: colors.bitcoin,
datasetPath: `/date-to-total-blocks-mined`,
},
],
},
],
},
{
scale,
icon: IconTablerLetterY,
name: "Yearly Sum",
title: "Yearly Sum Of Blocks Mined",
description: "",
bottom: [
{
title: "Target",
color: colors.white,
datasetPath: `/date-to-blocks-mined-1y-target`,
options: {
lineStyle: 3,
},
},
{
title: "Sum Mined",
color: colors.bitcoin,
datasetPath: `/date-to-blocks-mined-1y-sum`,
},
],
},
{
scale,
icon: IconTablerWall,
name: "Total",
title: "Total Blocks Mined",
description: "",
bottom: [
{
title: "Mined",
color: colors.bitcoin,
datasetPath: `/date-to-total-blocks-mined`,
},
],
},
],
},
]
: [
{
scale,
icon: IconTablerMaximize,
name: "Size",
title: "Block Size",
description: "",
bottom: [
{
title: "Size (MB)",
color: colors.darkWhite,
datasetPath: `/height-to-block-size`,
},
],
},
{
scale,
icon: IconTablerWeight,
name: "Weight",
title: "Block Weight",
description: "",
bottom: [
{
title: "Weight (MB)",
color: colors.darkWhite,
datasetPath: `/height-to-block-weight`,
},
],
},
{
scale,
icon: IconTablerBinary,
name: "VBytes",
title: "Block VBytes",
description: "",
bottom: [
{
title: "VBytes",
color: colors.darkWhite,
datasetPath: `/height-to-block-vbytes`,
},
],
},
{
scale,
icon: IconTablerAlarm,
name: "Interval",
title: "Block Interval",
description: "",
bottom: [
{
title: "Interval (s)",
color: colors.darkWhite,
datasetPath: `/height-to-block-interval`,
},
],
},
]) satisfies PartialPresetTree),
{
scale,
icon: IconTablerStack3,
@@ -149,7 +208,7 @@ export function createPresets() {
{
title: "Size (MB)",
color: colors.darkWhite,
datasetPath: `/date-to-cumulative-block-size`,
datasetPath: `/${scale}-to-cumulative-block-size`,
},
],
},
+2 -1
View File
@@ -36,7 +36,7 @@ export function createPresets(): Presets {
name: "By Block Date",
tree: [
createMarketPresets("date"),
createBlocksPresets(),
createBlocksPresets("date"),
createMinersPresets("date"),
createTransactionsPresets("date"),
...createCohortPresetList({
@@ -62,6 +62,7 @@ export function createPresets(): Presets {
tree: !phone
? [
createMarketPresets("height"),
createBlocksPresets("height"),
createMinersPresets("height"),
createTransactionsPresets("height"),
...createCohortPresetList({
@@ -12,7 +12,7 @@ export function createPresets(scale: ResourceScale): PartialPresetFolder {
scale,
icon: IconTablerMathAvg,
name: "All",
title: "All Averages",
title: "All Moving Averages",
description: "",
top: averages.map((average) => ({
title: average.key.toUpperCase(),
@@ -25,6 +25,7 @@ export function createPresets(scale: ResourceScale): PartialPresetFolder {
scale,
color: colors[`_${key}`],
name,
title: `${name} Market Price Moving Average`,
key,
}),
),
@@ -36,11 +37,13 @@ function createPresetFolder({
scale,
color,
name,
title,
key,
}: {
scale: ResourceScale;
color: Color;
name: string;
title: string;
key: AverageName;
}) {
return {
@@ -51,7 +54,7 @@ function createPresetFolder({
name: "Average",
description: "",
icon: IconTablerMathAvg,
title: `${name} Moving Average`,
title,
top: [
{
title: `SMA`,
@@ -60,255 +63,12 @@ function createPresetFolder({
},
],
},
// {
// name: "Ratio",
// tree: [
// {
// scale,
// name: "Basic",
// description: "",
// icon: IconTablerMathXDivideY,
// title: `Market Price To ${name} Moving Average Ratio`,
// top: [
// {
// title: `SMA`,
// color,
// datasetPath: `/${scale}-to-price-${key}-sma`,
// },
// ],
// bottom: [
// {
// title: `Ratio`,
// seriesType: SeriesType.Based,
// datasetPath: `/${scale}-to-market-price-to-price-${key}-sma-ratio`,
// options: {
// base: 1,
// },
// },
// {
// title: `Even`,
// color: colors.white,
// datasetPath: `/${scale}-to-1`,
// options: {
// lineStyle: 3,
// lastValueVisible: false,
// },
// },
// ],
// },
// {
// scale,
// name: "Averages",
// description: "",
// icon: IconTablerMathAvg,
// title: `Market Price To ${name} Moving Average Ratio Averages`,
// top: [
// {
// title: `SMA`,
// color,
// datasetPath: `/${scale}-to-price-${key}-sma`,
// },
// ],
// bottom: [
// {
// title: `1Y`,
// color: colors._1y,
// datasetPath: `/${scale}-to-market-price-to-price-${key}-sma-ratio-1y-sma`,
// },
// {
// title: `1M`,
// color: colors._1m,
// datasetPath: `/${scale}-to-market-price-to-price-${key}-sma-ratio-1m-sma`,
// },
// {
// title: `1W`,
// color: colors._1w,
// datasetPath: `/${scale}-to-market-price-to-price-${key}-sma-ratio-1w-sma`,
// },
// {
// title: `Raw`,
// color: colors.white,
// datasetPath: `/${scale}-to-market-price-to-price-${key}-sma-ratio`,
// options: {
// base: 1,
// },
// },
// {
// title: `Even`,
// color: colors.gray,
// datasetPath: `/${scale}-to-1`,
// options: {
// lineStyle: 3,
// lastValueVisible: false,
// },
// },
// ],
// },
// {
// scale,
// name: "Momentum Oscillator",
// description: "",
// icon: IconTablerWaveSine,
// title: `Market Price To ${name} Moving Average Ratio 1Y SMA Momentum Oscillator`,
// top: [
// {
// title: `SMA`,
// color,
// datasetPath: `/${scale}-to-price-${key}-sma`,
// },
// ],
// bottom: [
// {
// title: `Momentum`,
// seriesType: SeriesType.Based,
// datasetPath: `/${scale}-to-market-price-to-price-${key}-sma-ratio-1y-sma-momentum-oscillator`,
// },
// {
// title: `Base`,
// color: colors.white,
// datasetPath: `/${scale}-to-0`,
// options: {
// lineStyle: 3,
// lastValueVisible: false,
// },
// },
// ],
// },
// {
// scale,
// name: "Top Percentiles",
// description: "",
// icon: IconTablerFlame,
// title: `Market Price To ${name} Moving Average Ratio Top Percentiles`,
// top: [
// {
// title: `SMA`,
// color,
// datasetPath: `/${scale}-to-price-${key}-sma`,
// },
// ],
// bottom: [
// {
// title: `99.9%`,
// color: colors.extremeMax,
// datasetPath: `/${scale}-to-market-price-to-price-${key}-sma-ratio-99-9p`,
// },
// {
// title: `99.5%`,
// color: colors.extremeMiddle,
// datasetPath: `/${scale}-to-market-price-to-price-${key}-sma-ratio-99-5p`,
// },
// {
// title: `99%`,
// color: colors.extremeMin,
// datasetPath: `/${scale}-to-market-price-to-price-${key}-sma-ratio-99p`,
// },
// {
// title: `Raw`,
// color: colors.white,
// datasetPath: `/${scale}-to-market-price-to-price-${key}-sma-ratio`,
// options: {
// base: 1,
// },
// },
// ],
// },
// {
// scale,
// name: "Bottom Percentiles",
// description: "",
// icon: IconTablerIceCream,
// title: `Market Price To ${name} Moving Average Ratio Bottom Percentiles`,
// top: [
// {
// title: `SMA`,
// color,
// datasetPath: `/${scale}-to-price-${key}-sma`,
// },
// ],
// bottom: [
// {
// title: `1%`,
// color: colors.extremeMin,
// datasetPath: `/${scale}-to-market-price-to-price-${key}-sma-ratio-1p`,
// },
// {
// title: `0.5%`,
// color: colors.extremeMiddle,
// datasetPath: `/${scale}-to-market-price-to-price-${key}-sma-ratio-0-5p`,
// },
// {
// title: `0.1%`,
// color: colors.extremeMax,
// datasetPath: `/${scale}-to-market-price-to-price-${key}-sma-ratio-0-1p`,
// },
// {
// title: `Raw`,
// color: colors.white,
// datasetPath: `/${scale}-to-market-price-to-price-${key}-sma-ratio`,
// options: {
// base: 1,
// },
// },
// ],
// },
// {
// scale,
// name: "Extreme Tops",
// description: "",
// icon: IconTablerRocket,
// title: `${name} Moving Average Extreme Tops`,
// top: [
// {
// title: `99.9%`,
// color: colors.extremeMax,
// datasetPath: `/${scale}-to-price-${key}-sma-99-9p`,
// },
// {
// title: `99.5%`,
// color: colors.extremeMiddle,
// datasetPath: `/${scale}-to-price-${key}-sma-99-5p`,
// },
// {
// title: `99%`,
// color: colors.extremeMin,
// datasetPath: `/${scale}-to-price-${key}-sma-99p`,
// },
// ],
// },
// {
// scale,
// name: "Extreme Bottoms",
// description: "",
// icon: IconTablerSubmarine,
// title: `${name} Moving Average Extreme Bottoms`,
// top: [
// {
// title: `0.1%`,
// color: colors.extremeMax,
// datasetPath: `/${scale}-to-price-${key}-sma-0-1p`,
// },
// {
// title: `0.5%`,
// color: colors.extremeMiddle,
// datasetPath: `/${scale}-to-price-${key}-sma-0-5p`,
// },
// {
// title: `1%`,
// color: colors.extremeMin,
// datasetPath: `/${scale}-to-price-${key}-sma-1p`,
// },
// ],
// },
// ],
// },
createRatioFolder({
scale,
color,
ratioDatasetPath: `/${scale}-to-market-price-to-price-${key}-sma-ratio`,
valueDatasetPath: `/${scale}-to-price-${key}-sma`,
title: `${name} Moving Average`,
title,
}),
],
} satisfies PartialPresetFolder;
+19 -19
View File
@@ -142,17 +142,17 @@ export function createRatioFolder({
bottom: [
{
title: `99.9%`,
color: colors.extremeMax,
color: colors.probability0_1p,
datasetPath: `${ratioDatasetPath}-99-9p` as any,
},
{
title: `99.5%`,
color: colors.extremeMiddle,
color: colors.probability0_5p,
datasetPath: `${ratioDatasetPath}-99-5p` as any,
},
{
title: `99%`,
color: colors.extremeMin,
color: colors.probability1p,
datasetPath: `${ratioDatasetPath}-99p` as any,
},
{
@@ -178,17 +178,17 @@ export function createRatioFolder({
bottom: [
{
title: `1%`,
color: colors.extremeMin,
color: colors.probability1p,
datasetPath: `${ratioDatasetPath}-1p` as any,
},
{
title: `0.5%`,
color: colors.extremeMiddle,
color: colors.probability0_5p,
datasetPath: `${ratioDatasetPath}-0-5p` as any,
},
{
title: `0.1%`,
color: colors.extremeMax,
color: colors.probability0_1p,
datasetPath: `${ratioDatasetPath}-0-1p` as any,
},
{
@@ -200,48 +200,48 @@ export function createRatioFolder({
},
{
scale,
name: "Extreme Tops",
name: "Top Probabilities",
description: "",
icon: IconTablerRocket,
title: `${title} Extreme Tops`,
title: `${title} Top Probabilities`,
top: [
{
title: `99.9%`,
color: colors.extremeMax,
title: `0.1%`,
color: colors.probability0_1p,
datasetPath: `${valueDatasetPath}-99-9p` as any,
},
{
title: `99.5%`,
color: colors.extremeMiddle,
title: `0.5%`,
color: colors.probability0_5p,
datasetPath: `${valueDatasetPath}-99-5p` as any,
},
{
title: `99%`,
color: colors.extremeMin,
title: `1%`,
color: colors.probability1p,
datasetPath: `${valueDatasetPath}-99p` as any,
},
],
},
{
scale,
name: "Extreme Bottoms",
name: "Bottom Probabilities",
description: "",
icon: IconTablerSubmarine,
title: `${title} Extreme Bottoms`,
title: `${title} Bottom Probabilities`,
top: [
{
title: `0.1%`,
color: colors.extremeMax,
color: colors.probability0_1p,
datasetPath: `${valueDatasetPath}-0-1p` as any,
},
{
title: `0.5%`,
color: colors.extremeMiddle,
color: colors.probability0_5p,
datasetPath: `${valueDatasetPath}-0-5p` as any,
},
{
title: `1%`,
color: colors.extremeMin,
color: colors.probability1p,
datasetPath: `${valueDatasetPath}-1p` as any,
},
],
+3 -3
View File
@@ -306,9 +306,9 @@ export const colors = {
momentumGreen: green,
momentumYellow: yellow,
momentumRed: red,
extremeMax: red,
extremeMiddle: orange,
extremeMin: yellow,
probability0_1p: red,
probability0_5p: orange,
probability1p: yellow,
year_2009: yellow,
year_2010: yellow,
year_2011: yellow,
+1
View File
@@ -34,6 +34,7 @@ declare global {
const IconTablerAsterisk: typeof import('~icons/tabler/asterisk.jsx')['default']
const IconTablerAt: (typeof import("~icons/tabler/at.jsx"))["default"]
const IconTablerBalance: (typeof import("~icons/tabler/balance.jsx"))["default"]
const IconTablerBinary: typeof import('~icons/tabler/binary.jsx')['default']
const IconTablerBitcoin: typeof import('~icons/tabler/bitcoin.jsx')['default']
const IconTablerBitcoinCoin: typeof import('~icons/tabler/bitcoin-coin.jsx')['default']
const IconTablerBolt: (typeof import("~icons/tabler/bolt.jsx"))["default"]