From 10a0d296037d62c31d91a9807e92a39b60ea9b8c Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Wed, 7 Aug 2024 10:23:01 +0200 Subject: [PATCH] remove lazy load --- src/lib/components/AnalystEstimate.svelte | 2 +- src/lib/components/BorrowedShare.svelte | 13 +++++-------- src/lib/components/DarkPool.svelte | 11 ++++------- src/lib/components/Enterprise.svelte | 9 +++------ src/lib/components/FailToDeliver.svelte | 14 +++++--------- src/lib/components/ImpliedVolatility.svelte | 4 ++-- src/lib/components/LayerCake/Bar/Bar.svelte | 2 +- src/lib/components/MarketMaker.svelte | 15 ++++++--------- src/lib/components/OptionsNetFlow.svelte | 3 --- src/lib/components/PriceAnalysis.svelte | 9 +++------ src/lib/components/RetailVolume.svelte | 11 ++++------- src/lib/components/RevenueSegmentation.svelte | 4 ++-- src/lib/components/ShareHolders.svelte | 9 +++------ src/lib/components/ShareStatistics.svelte | 13 +++++-------- src/lib/components/Swap.svelte | 6 +----- src/lib/components/TARating.svelte | 3 --- 16 files changed, 45 insertions(+), 83 deletions(-) diff --git a/src/lib/components/AnalystEstimate.svelte b/src/lib/components/AnalystEstimate.svelte index f2b2758e..28f3bfe2 100644 --- a/src/lib/components/AnalystEstimate.svelte +++ b/src/lib/components/AnalystEstimate.svelte @@ -264,7 +264,7 @@ $: {
- + Analyst Forecast diff --git a/src/lib/components/BorrowedShare.svelte b/src/lib/components/BorrowedShare.svelte index f1aef4e5..db731b64 100644 --- a/src/lib/components/BorrowedShare.svelte +++ b/src/lib/components/BorrowedShare.svelte @@ -8,7 +8,6 @@ import { LineChart } from 'echarts/charts' import { GridComponent } from 'echarts/components' import { CanvasRenderer } from 'echarts/renderers' - import Lazy from 'svelte-lazy'; export let data; @@ -160,10 +159,10 @@ function findLowestAndHighestFee(data, lastDateStr) { { data: feeList, type: 'line', - areaStyle: {opacity: 0.3}, + areaStyle: {opacity: 1}, yAxisIndex: 1, itemStyle: { - color: '#FF9E21' // Change bar color to white + color: '#22C55E' // Change bar color to white }, showSymbol: false }, @@ -259,11 +258,9 @@ function findLowestAndHighestFee(data, lastDateStr) {
- -
- -
-
+
+ +
diff --git a/src/lib/components/DarkPool.svelte b/src/lib/components/DarkPool.svelte index 1128366d..52f20447 100644 --- a/src/lib/components/DarkPool.svelte +++ b/src/lib/components/DarkPool.svelte @@ -3,7 +3,6 @@ import InfoModal from '$lib/components/InfoModal.svelte'; import { Chart } from 'svelte-echarts' import { abbreviateNumber, formatDateRange } from "$lib/utils"; - import Lazy from 'svelte-lazy'; import { init, use } from 'echarts/core' import { LineChart } from 'echarts/charts' import { GridComponent } from 'echarts/components' @@ -248,11 +247,9 @@ $: {
- -
- -
-
+
+ +
@@ -288,7 +285,7 @@ $: { Date - + { formatDateRange(rawData?.slice(-1)?.at(0)?.date)} diff --git a/src/lib/components/Enterprise.svelte b/src/lib/components/Enterprise.svelte index 881c97e1..5c28f31f 100644 --- a/src/lib/components/Enterprise.svelte +++ b/src/lib/components/Enterprise.svelte @@ -3,7 +3,6 @@ import { enterpriseComponent, displayCompanyName, stockTicker, screenWidth, getCache, setCache} from '$lib/store'; import InfoModal from '$lib/components/InfoModal.svelte'; import { Chart } from 'svelte-echarts'; - import Lazy from 'svelte-lazy'; import { init, use } from 'echarts/core' import { BarChart } from 'echarts/charts' import { GridComponent } from 'echarts/components' @@ -207,11 +206,9 @@ $: { Full report - -
- -
-
+
+ +
diff --git a/src/lib/components/FailToDeliver.svelte b/src/lib/components/FailToDeliver.svelte index aec0daec..c835d113 100644 --- a/src/lib/components/FailToDeliver.svelte +++ b/src/lib/components/FailToDeliver.svelte @@ -4,8 +4,6 @@ import { Chart } from 'svelte-echarts' import { abbreviateNumber, formatDateRange } from "$lib/utils"; - import Lazy from 'svelte-lazy'; - import { init, use } from 'echarts/core' import { LineChart } from 'echarts/charts' import { GridComponent } from 'echarts/components' @@ -156,10 +154,10 @@ function findLowestAndHighestPrice(data, lastDateStr) { { data: failToDeliverList, type: 'line', - areaStyle: {opacity: 0.3}, + areaStyle: {opacity: 1}, yAxisIndex: 1, itemStyle: { - color: '#FF9E21' // Change bar color to white + color: '#E11D48' // Change bar color to white }, showSymbol: false }, @@ -267,11 +265,9 @@ function findLowestAndHighestPrice(data, lastDateStr) {
- -
- -
-
+
+ +
diff --git a/src/lib/components/ImpliedVolatility.svelte b/src/lib/components/ImpliedVolatility.svelte index e9c27f01..e376aa2d 100644 --- a/src/lib/components/ImpliedVolatility.svelte +++ b/src/lib/components/ImpliedVolatility.svelte @@ -170,7 +170,7 @@ function changeStatement(event) stack: 'ImpliedVolatility', yAxisIndex: 1, itemStyle: { - color: '#00BBFF' + color: '#3B82F6' }, showSymbol: false, @@ -309,7 +309,7 @@ function changeStatement(event)
- + Realized Volatility diff --git a/src/lib/components/LayerCake/Bar/Bar.svelte b/src/lib/components/LayerCake/Bar/Bar.svelte index 8f2114a7..730e7c9b 100644 --- a/src/lib/components/LayerCake/Bar/Bar.svelte +++ b/src/lib/components/LayerCake/Bar/Bar.svelte @@ -7,7 +7,7 @@ const { data, xGet, yGet, xScale, yScale } = getContext('LayerCake'); - /** @type {String} [fill='#00bbff'] - The shape's fill color. This is technically optional because it comes with a default value but you'll likely want to replace it with your own color. */ + /** @type {String} [fill='#3B82F6'] - The shape's fill color. This is technically optional because it comes with a default value but you'll likely want to replace it with your own color. */ export let fill = '#fff'; diff --git a/src/lib/components/MarketMaker.svelte b/src/lib/components/MarketMaker.svelte index 4938c26c..be1a9c79 100644 --- a/src/lib/components/MarketMaker.svelte +++ b/src/lib/components/MarketMaker.svelte @@ -8,7 +8,6 @@ import { LineChart } from 'echarts/charts' import { GridComponent } from 'echarts/components' import { CanvasRenderer } from 'echarts/renderers' - import Lazy from 'svelte-lazy'; use([LineChart, GridComponent, CanvasRenderer]) @@ -138,10 +137,10 @@ function getPlotOptions() { { data: shareQuantityList, type: 'line', - areaStyle: {opacity: 0.3}, + areaStyle: {opacity: 1}, yAxisIndex: 1, itemStyle: { - color: '#00BBFF' // Change bar color to white + color: '#3B82F6' // Change bar color to white }, showSymbol: false }, @@ -255,11 +254,9 @@ else {
- -
- -
-
+
+ +
@@ -273,7 +270,7 @@ else {
- + Share Quantity diff --git a/src/lib/components/OptionsNetFlow.svelte b/src/lib/components/OptionsNetFlow.svelte index f8b398c8..56269f9f 100644 --- a/src/lib/components/OptionsNetFlow.svelte +++ b/src/lib/components/OptionsNetFlow.svelte @@ -2,7 +2,6 @@ import { optionsNetFlowComponent, stockTicker, assetType, etfTicker, getCache, setCache} from '$lib/store'; import InfoModal from '$lib/components/InfoModal.svelte'; import { Chart } from 'svelte-echarts' - import Lazy from 'svelte-lazy'; import { init, use } from 'echarts/core' import { LineChart } from 'echarts/charts' import { GridComponent } from 'echarts/components' @@ -241,11 +240,9 @@
-
-
diff --git a/src/lib/components/PriceAnalysis.svelte b/src/lib/components/PriceAnalysis.svelte index 09b2d0e9..90204a4f 100644 --- a/src/lib/components/PriceAnalysis.svelte +++ b/src/lib/components/PriceAnalysis.svelte @@ -3,7 +3,6 @@ import { priceAnalysisComponent, displayCompanyName, stockTicker, etfTicker, cryptoTicker, assetType, screenWidth, getCache, setCache} from '$lib/store'; import InfoModal from '$lib/components/InfoModal.svelte'; import { Chart } from 'svelte-echarts' - import Lazy from 'svelte-lazy'; import { init, use } from 'echarts/core' @@ -294,11 +293,9 @@ $: { - -
- -
-
+
+ +
Over the next 12 months, the model predicts a diff --git a/src/lib/components/RetailVolume.svelte b/src/lib/components/RetailVolume.svelte index 3c2e1b9c..50ca2c76 100644 --- a/src/lib/components/RetailVolume.svelte +++ b/src/lib/components/RetailVolume.svelte @@ -4,7 +4,6 @@ import InfoModal from '$lib/components/InfoModal.svelte'; import { Chart } from 'svelte-echarts' import { abbreviateNumber, formatDateRange } from "$lib/utils"; - import Lazy from 'svelte-lazy'; import { init, use } from 'echarts/core' import { LineChart, BarChart } from 'echarts/charts' import { GridComponent } from 'echarts/components' @@ -291,11 +290,9 @@ $: {
- -
- -
-
+
+ +
@@ -316,7 +313,7 @@ $: { Date - + {formatDateRange(rawData?.lastDate)} diff --git a/src/lib/components/RevenueSegmentation.svelte b/src/lib/components/RevenueSegmentation.svelte index 0bb2f7b1..83e300b3 100644 --- a/src/lib/components/RevenueSegmentation.svelte +++ b/src/lib/components/RevenueSegmentation.svelte @@ -240,8 +240,8 @@ $: { > '#00bbff'} - colorLinks={d => '#00bbff35'} + colorNodes={d => '#3B82F6'} + colorLinks={d => '#3B82F635'} /> diff --git a/src/lib/components/ShareHolders.svelte b/src/lib/components/ShareHolders.svelte index 6c933ef4..c236644f 100644 --- a/src/lib/components/ShareHolders.svelte +++ b/src/lib/components/ShareHolders.svelte @@ -6,7 +6,6 @@ import { formatString } from '$lib/utils'; import { goto } from '$app/navigation'; import { abbreviateNumber } from '$lib/utils'; import InfoModal from '$lib/components/InfoModal.svelte'; -import Lazy from 'svelte-lazy'; import { init, use } from 'echarts/core' import { PieChart } from 'echarts/charts' @@ -187,11 +186,9 @@ let charNumber = 20;
- -
- -
-
+
+ +
diff --git a/src/lib/components/ShareStatistics.svelte b/src/lib/components/ShareStatistics.svelte index 2d2530f7..87718157 100644 --- a/src/lib/components/ShareStatistics.svelte +++ b/src/lib/components/ShareStatistics.svelte @@ -5,7 +5,6 @@ import InfoModal from '$lib/components/InfoModal.svelte'; import { Chart } from 'svelte-echarts' import { abbreviateNumber } from "$lib/utils"; -import Lazy from 'svelte-lazy'; import { init, use } from 'echarts/core' @@ -91,14 +90,14 @@ function getPlotOptions() { data: floatShares, type: 'bar', itemStyle: { - color: '#5470C6' // Change bar color to white + color: '#3B82F6' // Change bar color to white } }, { data: outstandingShares, type: 'bar', itemStyle: { - color: '#C12F23' // Change bar color to white + color: '#E11D48' } }, ] @@ -188,11 +187,9 @@ $: {
- -
- -
-
+
+ +
diff --git a/src/lib/components/Swap.svelte b/src/lib/components/Swap.svelte index e05156fb..1d7a749b 100644 --- a/src/lib/components/Swap.svelte +++ b/src/lib/components/Swap.svelte @@ -9,9 +9,7 @@ import { init, use } from 'echarts/core' import { ScatterChart } from 'echarts/charts' import { GridComponent } from 'echarts/components' - import { CanvasRenderer } from 'echarts/renderers' - - import Lazy from 'svelte-lazy'; + import { CanvasRenderer } from 'echarts/renderers'; export let data; use([ScatterChart, GridComponent, CanvasRenderer]) @@ -277,11 +275,9 @@
-
-
diff --git a/src/lib/components/TARating.svelte b/src/lib/components/TARating.svelte index 8719ff99..941b74ab 100644 --- a/src/lib/components/TARating.svelte +++ b/src/lib/components/TARating.svelte @@ -2,7 +2,6 @@ import { taRatingComponent, stockTicker, etfTicker, cryptoTicker, assetType, getCache, setCache} from '$lib/store'; import SignalBar from '$lib/components/SignalBar.svelte' import InfoModal from '$lib/components/InfoModal.svelte'; - import Lazy from 'svelte-lazy'; export let data; @@ -151,7 +150,6 @@ $: if ($assetType || $stockTicker || $etfTicker || $cryptoTicker) {
- @@ -188,7 +186,6 @@ $: if ($assetType || $stockTicker || $etfTicker || $cryptoTicker) { -