From 558e42e499e0e7049b3e41c2e54ea77787cef9cf Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Sat, 17 Aug 2024 00:42:07 +0200 Subject: [PATCH] ui fix --- src/lib/components/InfoModal.svelte | 1 - .../etf/[tickerID]/options/+page.svelte | 98 +++++++----------- .../stocks/[tickerID]/analyst/+page.svelte | 99 +++++++------------ .../stocks/[tickerID]/insider/+page.svelte | 7 +- .../stocks/[tickerID]/options/+page.svelte | 98 +++++++----------- 5 files changed, 107 insertions(+), 196 deletions(-) diff --git a/src/lib/components/InfoModal.svelte b/src/lib/components/InfoModal.svelte index 4aa2dc29..b00b973b 100644 --- a/src/lib/components/InfoModal.svelte +++ b/src/lib/components/InfoModal.svelte @@ -4,7 +4,6 @@ export let title; export let content; export let id; -export let hide = false; diff --git a/src/routes/etf/[tickerID]/options/+page.svelte b/src/routes/etf/[tickerID]/options/+page.svelte index 7b06d7d5..d86218a4 100644 --- a/src/routes/etf/[tickerID]/options/+page.svelte +++ b/src/routes/etf/[tickerID]/options/+page.svelte @@ -389,85 +389,55 @@ $: {
-
- Total Volume - - - - -
+ +
{displayTotalVolume}
-
- Total OI - - - - -
+
{displayTotalOpenInterest}
-
- P/C Ratio - - - - -
+
{putCallRatio !== 'Infinity' ? putCallRatio : '> 1'}
-
- OI P/C Ratio - - - - -
+ +
{putCallOpenInterestRatio !== 'Infinity' ? putCallOpenInterestRatio : '> 1'}
diff --git a/src/routes/stocks/[tickerID]/analyst/+page.svelte b/src/routes/stocks/[tickerID]/analyst/+page.svelte index 94a346a9..523790de 100644 --- a/src/routes/stocks/[tickerID]/analyst/+page.svelte +++ b/src/routes/stocks/[tickerID]/analyst/+page.svelte @@ -132,85 +132,56 @@ changeTab(0)
-
- Total Analysts - - - - -
+
{numOfAnalyst}
-
- Consensus Rating - - - - -
+ +
{consensusRating}
-
- Price Target - - - - -
+ +
${priceTarget}
-
- Upside - - - - -
+ +
{#if changesPercentage >=0} +{changesPercentage}% diff --git a/src/routes/stocks/[tickerID]/insider/+page.svelte b/src/routes/stocks/[tickerID]/insider/+page.svelte index 8bc6c11f..94fcf998 100644 --- a/src/routes/stocks/[tickerID]/insider/+page.svelte +++ b/src/routes/stocks/[tickerID]/insider/+page.svelte @@ -337,7 +337,8 @@ onMount(async() => { We can divide four types of insider transactions:
- Buy, Sell, + Buy, Sell, + @@ -345,8 +346,8 @@ onMount(async() => { title={"Stock Grant"} content={"A stock grant occurs when a company compensates an employee by offering them equity, or when an insider gifts shares. In essence, the company grants ownership of shares, or an insider transfers shares. These grants may involve common stock shares, preferred shares, or another class of shares."} id={"grantInfo"} - />, -