From 6792b740842c5fcd4631c2bba4f2af42af58f322 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Mon, 10 Mar 2025 22:57:44 +0100 Subject: [PATCH] ui fix --- src/lib/components/AIScore.svelte | 2 +- src/lib/components/DCF.svelte | 4 +- .../DarkPool/HistoricalVolume.svelte | 4 +- .../components/DividendAnnouncement.svelte | 2 +- src/lib/components/HoverStockChart.svelte | 2 +- src/lib/components/IndustryTable.svelte | 6 +- .../components/Options/GreekByExpiry.svelte | 4 +- .../components/Options/GreekByStrike.svelte | 4 +- .../components/Options/GreekExposure.svelte | 4 +- .../Options/HottestContracts.svelte | 12 +- .../Options/OpenInterestByExpiry.svelte | 4 +- .../Options/OpenInterestByStrike.svelte | 4 +- src/lib/components/Options/TickerFlow.svelte | 2 +- .../components/Options/UnusualActivity.svelte | 10 +- src/lib/components/Options/Volatility.svelte | 6 +- src/lib/components/OptionsData.svelte | 2 +- src/lib/components/PriceAnalysis.svelte | 4 +- src/lib/components/RatingsChart.svelte | 55 +++++---- src/lib/components/SentimentAnalysis.svelte | 4 +- src/lib/components/ShareHolders.svelte | 2 +- src/lib/components/Sidecard.svelte | 4 +- src/lib/components/UpgradeToPro.svelte | 8 +- src/lib/components/VaR.svelte | 2 +- src/lib/components/WatchListCard.svelte | 4 +- src/routes/+layout.svelte | 2 +- src/routes/+page.svelte | 2 +- src/routes/analysts/+page.svelte | 87 ++++++-------- src/routes/analysts/[slug]/+page.svelte | 111 +++++++++--------- src/routes/analysts/top-stocks/+page.svelte | 48 +++----- .../corporate-lobbying-tracker/+page.svelte | 8 +- src/routes/dark-pool-flow/+page.svelte | 8 +- src/routes/dividends-calendar/+page.svelte | 6 +- src/routes/earnings-calendar/+page.svelte | 6 +- src/routes/economic-calendar/+page.svelte | 6 +- src/routes/economic-indicator/+page.svelte | 6 +- src/routes/etf/[tickerID]/+layout.svelte | 6 +- src/routes/etf/[tickerID]/+page.svelte | 2 +- .../etf/[tickerID]/dividends/+layout.svelte | 2 +- .../etf/[tickerID]/insider/+layout.svelte | 2 +- .../etf/[tickerID]/insider/+page.svelte | 8 +- .../etf/[tickerID]/options/+page.svelte | 8 +- src/routes/heatmap/+page.svelte | 4 +- src/routes/hedge-funds/+page.svelte | 41 +++---- src/routes/hedge-funds/[slug]/+page.svelte | 68 +++++++---- src/routes/index/[tickerID]/+layout.svelte | 6 +- src/routes/index/[tickerID]/+page.svelte | 2 +- .../index/[tickerID]/options/+page.svelte | 8 +- src/routes/industry/+layout.svelte | 4 +- src/routes/industry/all/+page.svelte | 4 +- src/routes/industry/sectors/+page.svelte | 4 +- src/routes/insider-tracker/+page.svelte | 62 ++++------ src/routes/ipos/+layout.svelte | 4 +- src/routes/ipos/+page.svelte | 2 +- src/routes/ipos/[slug]/+page.svelte | 6 +- src/routes/ipos/news/+page.svelte | 2 +- .../article/[slug]/+page.svelte | 6 +- src/routes/list/+page.svelte | 2 +- src/routes/markdown-guide/+page.svelte | 4 +- src/routes/options-flow/+page.svelte | 8 +- src/routes/politicians/+page.svelte | 4 +- src/routes/politicians/[slug]/+page.svelte | 13 +- src/routes/politicians/flow-data/+page.svelte | 11 +- src/routes/profile/+page.svelte | 10 +- src/routes/sentiment-tracker/+page.svelte | 4 +- src/routes/stock-screener/+page.svelte | 26 ++-- src/routes/stocks/[tickerID]/+page.svelte | 2 +- .../[tickerID]/dividends/+layout.svelte | 2 +- .../stocks/[tickerID]/forecast/+page.svelte | 26 ++-- .../[tickerID]/forecast/ai/+page.svelte | 12 +- .../[tickerID]/forecast/analyst/+page.svelte | 34 ++---- .../stocks/[tickerID]/insider/+layout.svelte | 2 +- .../insider/congress-trading/+page.svelte | 8 +- .../insider/transcripts/+page.svelte | 19 ++- .../stocks/[tickerID]/metrics/+page.svelte | 6 +- .../[tickerID]/metrics/[slug]/+page.svelte | 2 +- .../stocks/[tickerID]/options/+page.svelte | 8 +- .../stocks/[tickerID]/profile/+page.svelte | 2 +- .../profile/employees/+layout.svelte | 2 +- .../[tickerID]/profile/employees/+page.svelte | 4 +- .../stocks/[tickerID]/statistics/+page.svelte | 6 +- src/routes/watchlist/options/+page.svelte | 4 +- src/routes/watchlist/stocks/+page.svelte | 6 +- 82 files changed, 439 insertions(+), 484 deletions(-) diff --git a/src/lib/components/AIScore.svelte b/src/lib/components/AIScore.svelte index 09230b29..f0dcd152 100644 --- a/src/lib/components/AIScore.svelte +++ b/src/lib/components/AIScore.svelte @@ -80,7 +80,7 @@ {:else} XX diff --git a/src/lib/components/DCF.svelte b/src/lib/components/DCF.svelte index 0bf3ec97..37ed6f84 100644 --- a/src/lib/components/DCF.svelte +++ b/src/lib/components/DCF.svelte @@ -252,7 +252,7 @@ The DCF model signals a {#if change < -3} - + The Stock Price is - {Math?.abs(change)}% undervalued. diff --git a/src/lib/components/DarkPool/HistoricalVolume.svelte b/src/lib/components/DarkPool/HistoricalVolume.svelte index 5575efad..8eee55cc 100644 --- a/src/lib/components/DarkPool/HistoricalVolume.svelte +++ b/src/lib/components/DarkPool/HistoricalVolume.svelte @@ -357,7 +357,7 @@ {#each tableList as item, index} {new Date(item?.date)?.toLocaleDateString("en-US", { @@ -385,7 +385,7 @@ {#if index === tableList?.length - 1} n/a {:else if item?.shortVolume > tableList[index + 1]?.shortVolume} - + +{( ((item?.shortVolume - tableList[index + 1]?.shortVolume) / diff --git a/src/lib/components/DividendAnnouncement.svelte b/src/lib/components/DividendAnnouncement.svelte index 0399e202..4a88be41 100644 --- a/src/lib/components/DividendAnnouncement.svelte +++ b/src/lib/components/DividendAnnouncement.svelte @@ -83,7 +83,7 @@ rawData?.dividendPrior - 1 > 0 - ? "before:content-['+'] text-[#00FC50]" + ? "before:content-['+'] text-green-500 dark:text-[#00FC50]" : 'text-[#FF2F1F]'}" > {( diff --git a/src/lib/components/HoverStockChart.svelte b/src/lib/components/HoverStockChart.svelte index f5d58fc7..4a345a10 100644 --- a/src/lib/components/HoverStockChart.svelte +++ b/src/lib/components/HoverStockChart.svelte @@ -207,7 +207,7 @@

Current Price: {stockChartData?.price?.toFixed(2)} ({change?.toFixed(2)})

diff --git a/src/lib/components/IndustryTable.svelte b/src/lib/components/IndustryTable.svelte index 9397917b..c7a08651 100644 --- a/src/lib/components/IndustryTable.svelte +++ b/src/lib/components/IndustryTable.svelte @@ -99,7 +99,7 @@ {#each displayList as item}
{abbreviateNumber(item?.profitMargin)}% @@ -146,7 +146,7 @@ {item?.avgChange1D?.toFixed(2) ?? "n/a"}% diff --git a/src/lib/components/Options/GreekByExpiry.svelte b/src/lib/components/Options/GreekByExpiry.svelte index 7efaa200..5df8f402 100644 --- a/src/lib/components/Options/GreekByExpiry.svelte +++ b/src/lib/components/Options/GreekByExpiry.svelte @@ -343,7 +343,7 @@ {#each data?.user?.tier === "Pro" ? displayList : displayList?.slice(0, 3) as item, index} {#if item?.put_call_ratio <= 1 && item?.put_call_ratio !== null} - {item?.put_call_ratio?.toFixed(2)} {:else if item?.put_call_ratio > 1 && item?.put_call_ratio !== null} diff --git a/src/lib/components/Options/GreekByStrike.svelte b/src/lib/components/Options/GreekByStrike.svelte index 94d01d8b..767d435a 100644 --- a/src/lib/components/Options/GreekByStrike.svelte +++ b/src/lib/components/Options/GreekByStrike.svelte @@ -319,7 +319,7 @@ {#each data?.user?.tier === "Pro" ? displayList : displayList?.slice(0, 3) as item, index} {#if item?.put_call_ratio <= 1 && item?.put_call_ratio !== null} - {item?.put_call_ratio?.toFixed(2)} {:else if item?.put_call_ratio > 1 && item?.put_call_ratio !== null} diff --git a/src/lib/components/Options/GreekExposure.svelte b/src/lib/components/Options/GreekExposure.svelte index 2765b750..c6eb202e 100644 --- a/src/lib/components/Options/GreekExposure.svelte +++ b/src/lib/components/Options/GreekExposure.svelte @@ -436,7 +436,7 @@ {#each data?.user?.tier === "Pro" ? displayList : displayList?.slice(0, 3) as item, index} {#if item?.putCallRatio <= 1 && item?.putCallRatio !== null} - {item?.putCallRatio?.toFixed(2)} {:else if item?.putCallRatio >= 0 && item?.putCallRatio !== null} diff --git a/src/lib/components/Options/HottestContracts.svelte b/src/lib/components/Options/HottestContracts.svelte index a8a9ab2f..35375ab1 100644 --- a/src/lib/components/Options/HottestContracts.svelte +++ b/src/lib/components/Options/HottestContracts.svelte @@ -592,7 +592,7 @@ {#each volumeList as item, index} {#if item?.changeOI >= 0} - +{item?.changeOI?.toLocaleString("en-US")} {:else if item?.changeOI < 0} @@ -712,7 +712,7 @@ {#each openInterestList as item, index} {#if item?.changeOI >= 0} - +{item?.changeOI?.toLocaleString("en-US")} {:else if item?.changeOI < 0} @@ -971,7 +971,7 @@ {#if item?.changeOI >= 0 && item?.changeOI !== null} - +{item?.changeOI?.toLocaleString("en-US")} {:else if item?.changeOI < 0 && item?.changeOI !== null} @@ -985,7 +985,7 @@ {#if item?.changesPercentageOI > 0 && item?.changesPercentageOI !== undefined} - +{item?.changesPercentageOI + "%"} {:else if item?.changesPercentageOI < 0 && item?.changesPercentageOI !== undefined} diff --git a/src/lib/components/Options/OpenInterestByExpiry.svelte b/src/lib/components/Options/OpenInterestByExpiry.svelte index d8ccd5e1..3b528942 100644 --- a/src/lib/components/Options/OpenInterestByExpiry.svelte +++ b/src/lib/components/Options/OpenInterestByExpiry.svelte @@ -301,7 +301,7 @@ {#each data?.user?.tier === "Pro" ? displayList : displayList?.slice(0, 3) as item, index} {#if item?.put_call_ratio <= 1 && item?.put_call_ratio !== null} - {item?.put_call_ratio?.toFixed(2)} {:else if item?.put_call_ratio > 1 && item?.put_call_ratio !== null} diff --git a/src/lib/components/Options/OpenInterestByStrike.svelte b/src/lib/components/Options/OpenInterestByStrike.svelte index c5ceba56..a3b58c5e 100644 --- a/src/lib/components/Options/OpenInterestByStrike.svelte +++ b/src/lib/components/Options/OpenInterestByStrike.svelte @@ -274,7 +274,7 @@ {#each data?.user?.tier === "Pro" ? displayList : displayList?.slice(0, 3) as item, index} {#if item?.put_call_ratio <= 1 && item?.put_call_ratio !== null} - {item?.put_call_ratio?.toFixed(2)} {:else if item?.put_call_ratio > 1 && item?.put_call_ratio !== null} diff --git a/src/lib/components/Options/TickerFlow.svelte b/src/lib/components/Options/TickerFlow.svelte index d90585cc..d8de80a6 100644 --- a/src/lib/components/Options/TickerFlow.svelte +++ b/src/lib/components/Options/TickerFlow.svelte @@ -103,7 +103,7 @@ >
Net Call Prem - +
{#each data?.user?.tier !== "Pro" ? displayList?.slice(0, 3) : displayList as item, index} {item?.optionType} @@ -815,7 +815,7 @@ {#if item?.changeOI >= 0 && item?.changeOI !== null} - +{item?.changeOI?.toLocaleString("en-US")} {:else if item?.changeOI < 0 && item?.changeOI !== null} @@ -1016,7 +1016,7 @@ {#if item?.changesPercentageOI > 0 && item?.changesPercentageOI !== undefined} - +{item?.changesPercentageOI + "%"} {:else if item?.changesPercentageOI < 0 && item?.changesPercentageOI !== undefined} diff --git a/src/lib/components/Options/Volatility.svelte b/src/lib/components/Options/Volatility.svelte index 20189f34..13f4cb29 100644 --- a/src/lib/components/Options/Volatility.svelte +++ b/src/lib/components/Options/Volatility.svelte @@ -479,7 +479,7 @@ {#each data?.user?.tier === "Pro" ? displayList : displayList?.slice(0, 3) as item, index} {#if item?.changesPercentage >= 0 && item?.changesPercentage !== null} - +{item?.changesPercentage >= 1000 ? abbreviateNumberWithColor(item?.changesPercentage) : item?.changesPercentage?.toFixed(2)}% {#if item?.changesPercentageOI >= 0 && item?.changesPercentageOI !== null} - +{item?.changesPercentageOI >= 1000 ? abbreviateNumberWithColor(item?.changesPercentageOI) : item?.changesPercentageOI?.toFixed(2)}% The Options activity signals a {#if signal === "Bullish"} - + import { setCache, getCache } from "$lib/store"; - import { monthNames } from "$lib/utils"; import highcharts from "$lib/highcharts.ts"; + import { abbreviateNumber } from "$lib/utils"; + import { mode } from "mode-watcher"; export let data; export let symbol; @@ -140,13 +141,13 @@ radius: 6, fillColor: markerColor, lineWidth: 2, - lineColor: "#FFFFFF", + lineColor: $mode === "light" ? "black" : "white", }, dataLabels: { enabled: true, format: formattedType, style: { - color: "#FFFFFF", + color: $mode === "light" ? "black" : "white", fontWeight: "bold", fontSize: "14px", }, @@ -159,7 +160,7 @@ // Create Highcharts options const options = { chart: { - backgroundColor: "#09090B", + backgroundColor: $mode === "light" ? "#fff" : "#09090B", height: 360, }, credits: { enabled: false }, @@ -167,20 +168,20 @@ title: { text: `

${symbol} - ${numOfRatings} Transaction

`, useHTML: true, - style: { color: "white" }, + style: { color: $mode === "light" ? "black" : "white" }, }, xAxis: { type: "datetime", endOnTick: false, categories: dates, crosshair: { - color: "#fff", // Set the color of the crosshair line + color: $mode === "light" ? "black" : "white", // Set the color of the crosshair line width: 1, // Adjust the line width as needed dashStyle: "Solid", }, labels: { style: { - color: "#fff", + color: $mode === "light" ? "black" : "white", }, distance: 20, // Increases space between label and axis formatter: function () { @@ -206,9 +207,9 @@ }, yAxis: { gridLineWidth: 1, - gridLineColor: "#111827", + gridLineColor: $mode === "light" ? "#d1d5dc" : "#111827", labels: { - style: { color: "white" }, + style: { color: $mode === "light" ? "black" : "white" }, }, title: { text: null }, opposite: true, @@ -220,21 +221,27 @@ borderColor: "rgba(255, 255, 255, 0.2)", // Slightly visible white border borderWidth: 1, style: { - color: "#fff", + color: "white", fontSize: "16px", padding: "10px", }, borderRadius: 4, formatter: function () { // Format the x value to display time in hh:mm format - let tooltipContent = `${this?.x}
`; + let tooltipContent = `${new Date( + this?.x, + ).toLocaleDateString("en-US", { + year: "numeric", + month: "short", + day: "numeric", + })}
`; // Loop through each point in the shared tooltip this.points.forEach((point) => { - tooltipContent += `${point.series.name}: - ${ - point.y - }
`; + tooltipContent += `${point.series.name}: + ${abbreviateNumber( + point.y, + )}
`; }); return tooltipContent; @@ -242,7 +249,7 @@ }, plotOptions: { series: { - color: "white", + color: $mode === "light" ? "black" : "white", animation: false, // Disable series animation states: { hover: { @@ -261,7 +268,7 @@ : value; }), type: "area", - color: "#FFFFFF", + color: $mode === "light" ? "#2C6288" : "white", lineWidth: 1, animation: false, zIndex: 10, @@ -290,7 +297,7 @@ } $: { - if (symbol && timePeriod) { + if ((symbol && timePeriod) || $mode) { isLoaded = false; config = null; historicalData = []; @@ -313,8 +320,8 @@ @@ -322,8 +329,8 @@
{item}
{:else}
No chart data available for {symbol} diff --git a/src/lib/components/SentimentAnalysis.svelte b/src/lib/components/SentimentAnalysis.svelte index 53b7703a..4120703b 100644 --- a/src/lib/components/SentimentAnalysis.svelte +++ b/src/lib/components/SentimentAnalysis.svelte @@ -77,7 +77,7 @@ r="16" fill="none" class="stroke-current {oneYearResult > 5 - ? 'text-[#00FC50]' + ? 'text-green-600 dark:text-[#00FC50]' : oneYearResult < 5 ? 'text-[#FF2F1F]' : 'text-white'} text-opacity-[0.7]" @@ -114,7 +114,7 @@ r="16" fill="none" class="stroke-current {oneMonthResult > 5 - ? 'text-[#00FC50]' + ? 'text-green-600 dark:text-[#00FC50]' : oneMonthResult < 5 ? 'text-[#FF2F1F]' : 'text-white'} " diff --git a/src/lib/components/ShareHolders.svelte b/src/lib/components/ShareHolders.svelte index d12a516d..6f5c521b 100644 --- a/src/lib/components/ShareHolders.svelte +++ b/src/lib/components/ShareHolders.svelte @@ -553,7 +553,7 @@ class="text-white text-end text-sm sm:text-[1rem] whitespace-nowrap" > {#if item?.changeInSharesNumberPercentage >= 0} - +{abbreviateNumber( item?.changeInSharesNumberPercentage?.toFixed(2), )}%Price Target: $${priceTarget}
+ text: `
Price Target: $${priceTarget}
(${changesPercentage}% ${changesPercentage >= 0 ? "upside" : "downside"})
-
Analyst Consensus: ${consensusRating ?? "n/a"}
`, +
Analyst Consensus: ${consensusRating ?? "n/a"}
`, style: { color: "white", // Using inline CSS for margin-top and margin-bottom diff --git a/src/lib/components/UpgradeToPro.svelte b/src/lib/components/UpgradeToPro.svelte index f39fabbd..afd47a4f 100644 --- a/src/lib/components/UpgradeToPro.svelte +++ b/src/lib/components/UpgradeToPro.svelte @@ -44,7 +44,7 @@
Unlimited access to all data and tools -
+
Unlimited access to all data and tools, giving you the edge over everyone else in the market.
@@ -72,7 +72,7 @@
Realtime Options & Dark Pool Data -
+
Instant access to live options & dark pool data to spot opportunities and trade with precision before the market moves.
@@ -106,7 +106,7 @@ Top Wallstreet Analyst Ratings -
+
Follow ratings from the best analysts on Wall Street to stay ahead.
@@ -135,7 +135,7 @@ Up to 30 years financial history -
+
We deliver premium Wall Street data with top-tier accuracy and up to 30 years of history.
diff --git a/src/lib/components/VaR.svelte b/src/lib/components/VaR.svelte index d3791a11..7085b2b6 100644 --- a/src/lib/components/VaR.svelte +++ b/src/lib/components/VaR.svelte @@ -166,7 +166,7 @@ r="16" fill="none" class="stroke-current {rating > 5 - ? 'text-[#00FC50]' + ? 'text-green-600 dark:text-[#00FC50]' : rating < 5 ? 'text-[#FF2F1F]' : 'text-white'} " diff --git a/src/lib/components/WatchListCard.svelte b/src/lib/components/WatchListCard.svelte index 8ad074cf..f8b46fe5 100644 --- a/src/lib/components/WatchListCard.svelte +++ b/src/lib/components/WatchListCard.svelte @@ -73,7 +73,7 @@ {#each watchList as item} {#if item?.changesPercentage >= 0} - +{item?.changesPercentage?.toFixed(2)}% {:else} diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 64f6351e..c14fb139 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -922,7 +922,7 @@ >
- +
@@ -153,10 +153,10 @@ >
-

+

Top Wall Street Analysts

-

+

A list of Wall Street Analysts, ranked by their performance

@@ -167,7 +167,7 @@ class="w-full m-auto rounded-none sm:rounded-md mb-4 overflow-x-auto sm:overflow-hidden" >
@@ -175,16 +175,14 @@ {#each analystList as item, index} - @@ -194,10 +192,10 @@
{item?.analystName} - +
{#each Array.from({ length: 5 }) as _, i} {#if i < Math.floor(item?.analystScore)} @@ -214,7 +212,7 @@ {:else} ({item?.analystScore !== null ? item?.analystScore : 0}) @@ -237,43 +235,46 @@
{#each data?.user?.tier === "Pro" ? optionList : optionList?.slice(0, 3) as item, index} {#if item?.changesPercentage >= 0 && item?.changesPercentage !== null} - +{item?.changesPercentage >= 1000 ? abbreviateNumberWithColor( item?.changesPercentage, @@ -552,7 +552,7 @@
+ {item?.rank} {#if Number(item?.successRate) >= 0} - +{Number(item?.successRate)?.toFixed(2)}% {/if} {#if Number(item?.avgReturn) >= 0} - +{Number(item?.avgReturn)?.toFixed(2)}% {:else} - {Number(item?.avgReturn)?.toFixed(2)}% {/if} {item?.totalRatings} {item?.lastRating !== null ? new Date(item?.lastRating)?.toLocaleString( @@ -314,12 +315,12 @@

Analyst Star Rankings

Our analyst star rankings are based on these four factors

@@ -329,9 +330,7 @@ class="grid grid-cols-1 gap-x-8 gap-y-10 md:grid-cols-2 lg:max-w-none lg:grid-cols-4 lg:gap-y-16" >
-
+
@@ -351,16 +350,12 @@
Success Rate
-
+
The percentage of ratings that are profitable.
-
+
@@ -380,17 +375,13 @@
Average Return
-
+
The average percentage return within one year of the rating.
-
+
@@ -410,17 +401,13 @@
Rating Count
-
+
The more ratings the analyst has provided, the higher the score.
-
+
@@ -440,9 +427,7 @@
Recency
-
+
Ratings provided within the past year contribute to a higher score.
@@ -465,9 +450,7 @@

Top Stocks Picks

- +
Get the latest top Wall Street analyst ratings. @@ -486,9 +469,7 @@

Top Shorted Stocks

- +
Never miss out another short squeeze diff --git a/src/routes/analysts/[slug]/+page.svelte b/src/routes/analysts/[slug]/+page.svelte index 7fe45e4c..b17f4659 100644 --- a/src/routes/analysts/[slug]/+page.svelte +++ b/src/routes/analysts/[slug]/+page.svelte @@ -1,5 +1,5 @@ - - -
@@ -217,7 +214,7 @@
- + {item?.name}
@@ -247,7 +244,7 @@
- + {item?.name}
@@ -281,9 +278,9 @@ Back to top {:else} - + {/if} {:else}
diff --git a/src/routes/stocks/[tickerID]/metrics/+page.svelte b/src/routes/stocks/[tickerID]/metrics/+page.svelte index b2279867..f76bc8df 100644 --- a/src/routes/stocks/[tickerID]/metrics/+page.svelte +++ b/src/routes/stocks/[tickerID]/metrics/+page.svelte @@ -139,7 +139,7 @@ {#each growthValues[index] as growthValue}
{#if item?.valueGrowth > 0} - + +{item?.valueGrowth?.toFixed(2)}% {:else if item?.valueGrowth < 0} diff --git a/src/routes/stocks/[tickerID]/options/+page.svelte b/src/routes/stocks/[tickerID]/options/+page.svelte index 0315f954..753d9d78 100644 --- a/src/routes/stocks/[tickerID]/options/+page.svelte +++ b/src/routes/stocks/[tickerID]/options/+page.svelte @@ -411,7 +411,7 @@
{#if item?.changeOI >= 0} - +{item?.changeOI?.toLocaleString("en-US")} {:else if item?.changeOI < 0} @@ -566,7 +566,7 @@ {#if item?.changesPercentageOI >= 0} - +{item?.changesPercentageOI >= 1000 ? abbreviateNumberWithColor( item?.changesPercentageOI, diff --git a/src/routes/stocks/[tickerID]/profile/+page.svelte b/src/routes/stocks/[tickerID]/profile/+page.svelte index c6f57545..a09c6ee3 100644 --- a/src/routes/stocks/[tickerID]/profile/+page.svelte +++ b/src/routes/stocks/[tickerID]/profile/+page.svelte @@ -294,7 +294,7 @@ ${paragraphs.join("\n")} Key Executives {#if rawData?.executives?.length > 0} - +
{formatDate(item?.publishedDate)} ago - {item?.title} @@ -581,7 +581,7 @@ {#if index === historyList?.length - 1} n/a {:else if item?.employeeCount > historyList[index + 1]?.employeeCount} - + +{( ((item?.employeeCount - historyList[index + 1]?.employeeCount) / diff --git a/src/routes/stocks/[tickerID]/statistics/+page.svelte b/src/routes/stocks/[tickerID]/statistics/+page.svelte index 1259d005..84b56c08 100644 --- a/src/routes/stocks/[tickerID]/statistics/+page.svelte +++ b/src/routes/stocks/[tickerID]/statistics/+page.svelte @@ -921,7 +921,7 @@ Dividends & Yields

{#if rawData?.annualDividend !== null && rawData?.dividendYield !== null} {$stockTicker} pays an annual dividend of ${rawData?.annualDividend}, @@ -1011,7 +1011,7 @@

Analyst Forecast

{#if rawData?.priceTarget && rawData?.upside && rawData?.analystRating} @@ -1083,7 +1083,7 @@

Stock Splits

The last stock split was on {new Date( diff --git a/src/routes/watchlist/options/+page.svelte b/src/routes/watchlist/options/+page.svelte index 584a1a2b..42b4bb27 100644 --- a/src/routes/watchlist/options/+page.svelte +++ b/src/routes/watchlist/options/+page.svelte @@ -319,7 +319,7 @@

{item?.put_call} @@ -328,7 +328,7 @@ = 0} - +{item[row?.rule]?.toFixed(2)}% {:else} @@ -1618,7 +1619,8 @@ {/if} {:else if row?.type === "rating"} {#if ["Strong Buy", "Buy"].includes(item[row?.rule])} - {item[row?.rule]} {:else if ["Strong Sell", "Sell"].includes(item[row?.rule])}