From 46f8e3bafd108202f46c3b5b773c7b05408eba92 Mon Sep 17 00:00:00 2001 From: k Date: Fri, 12 Jul 2024 12:47:05 +0200 Subject: [PATCH] app: lazy load lean-qr --- CHANGELOG.md | 1 + .../frames/chart/components/buttonShare.tsx | 24 +++--- app/src/app/components/qrcode.tsx | 79 +++++++++---------- app/src/app/index.tsx | 12 ++- app/src/scripts/datasets/resource.ts | 15 ++-- .../scripts/presets/market/averages/index.ts | 44 ++++++++--- app/src/types/auto-imports.d.ts | 1 + parser/src/actions/parse.rs | 1 - parser/src/datasets/price/mod.rs | 35 ++++++-- 9 files changed, 134 insertions(+), 78 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b83caaa3..780ed0884 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,6 +43,7 @@ - Chart - Fixed series color being set to default ones after hovering the legend - Fixed chart starting showing candlesticks and quickly switching to a line when it should've started directly with the line + - Separated the QRCode generator library from the main chunk and made it imported on click - Settings - Removed the horizontal scroll bar which was unintended diff --git a/app/src/app/components/frames/chart/components/buttonShare.tsx b/app/src/app/components/frames/chart/components/buttonShare.tsx index 6dbd8b01a..b0baa2f27 100644 --- a/app/src/app/components/frames/chart/components/buttonShare.tsx +++ b/app/src/app/components/frames/chart/components/buttonShare.tsx @@ -1,5 +1,3 @@ -import { generate } from "lean-qr"; - import { Button } from "./button"; export function ButtonShare({ qrcode }: { qrcode: RWS }) { @@ -7,16 +5,18 @@ export function ButtonShare({ qrcode }: { qrcode: RWS }) {