From 80a41848fc5a20298727a38af94b812d1a39d5c1 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Sun, 3 Nov 2024 21:23:15 +0100 Subject: [PATCH] ui fixes --- src/lib/components/AnalystEstimate.svelte | 2 +- src/lib/components/DCF.svelte | 2 +- src/lib/components/InfoModal.svelte | 52 +- src/lib/components/OptionsData.svelte | 2 +- src/lib/components/ShareStatistics.svelte | 464 ++--- src/lib/components/WIIM.svelte | 46 +- .../shadcn/tabs/tabs-trigger.svelte | 32 +- src/routes/+page.svelte | 10 +- src/routes/analysts/top-stocks/+page.svelte | 2 +- .../community/post/[postId]/+page.svelte | 1625 ++++++++-------- src/routes/cramer-tracker/+page.svelte | 2 +- .../[tickerID]/congress-trading/+page.svelte | 2 +- .../crypto/[tickerID]/news/+page.svelte | 315 ++-- .../crypto/[tickerID]/stats/+page.svelte | 1658 +++++++++++++---- src/routes/dividends-calendar/+page.svelte | 21 +- src/routes/earnings-calendar/+page.svelte | 179 +- src/routes/economic-calendar/+page.svelte | 23 +- .../[tickerID]/congress-trading/+page.svelte | 2 +- .../etf/[tickerID]/dividends/+page.svelte | 2 +- .../etf/[tickerID]/holdings/+page.svelte | 2 +- src/routes/etf/[tickerID]/news/+page.svelte | 315 ++-- .../etf/[tickerID]/options/+page.svelte | 6 +- src/routes/etf/[tickerID]/stats/+page.svelte | 1649 ++++++++++++---- src/routes/etf/etf-providers/+page.svelte | 2 +- .../etf/etf-providers/[slug]/+page.svelte | 2 +- src/routes/fda-calendar/+page.svelte | 2 +- src/routes/heatmaps/+page.svelte | 1026 +++++----- src/routes/hedge-funds/[slug]/+page.svelte | 12 +- src/routes/industry/+page.svelte | 2 +- src/routes/insider-tracker/+page.svelte | 2 +- src/routes/ipos/+page.svelte | 2 +- src/routes/ipos/[slug]/+page.svelte | 4 +- src/routes/list/amex-stocks/+page.svelte | 2 +- src/routes/list/bitcoin-etfs/+page.svelte | 202 +- .../list/canadian-stocks-us/+page.svelte | 2 +- .../list/chinese-stocks-us/+page.svelte | 2 +- src/routes/list/delisted-stocks/+page.svelte | 271 +-- .../list/dividend-aristocrats/+page.svelte | 2 +- src/routes/list/dividend-kings/+page.svelte | 2 +- src/routes/list/dow-jones-stocks/+page.svelte | 2 +- src/routes/list/german-stocks-us/+page.svelte | 2 +- src/routes/list/indian-stocks-us/+page.svelte | 2 +- .../list/industrials-sector/+page.svelte | 2 +- src/routes/list/industry/[slug]/+page.svelte | 2 +- .../list/israeli-stocks-us/+page.svelte | 2 +- .../list/japanese-stocks-us/+page.svelte | 2 +- .../list/magnificent-seven/+page.svelte | 2 +- .../list/nasdaq-100-stocks/+page.svelte | 2 +- src/routes/list/nasdaq-stocks/+page.svelte | 2 +- src/routes/list/nyse-stocks/+page.svelte | 2 +- src/routes/list/reit-stocks/+page.svelte | 2 +- src/routes/list/sp-500-stocks/+page.svelte | 2 +- src/routes/list/uk-stocks-us/+page.svelte | 2 +- src/routes/list/xetra-stocks/+page.svelte | 2 +- src/routes/most-retail-volume/+page.svelte | 2 +- src/routes/options-flow/+page.svelte | 2 +- src/routes/politicians/[slug]/+page.svelte | 1474 ++++++++------- src/routes/sentiment-tracker/+page.svelte | 2 +- src/routes/stock-screener/+page.svelte | 2 +- src/routes/stock-splits-calendar/+page.svelte | 2 +- src/routes/stocks/[tickerID]/+layout.svelte | 2 +- .../stocks/[tickerID]/dividends/+page.svelte | 2 +- .../[tickerID]/financials/+layout.svelte | 2 +- .../stocks/[tickerID]/financials/+page.svelte | 2 +- .../financials/balance-sheet/+page.svelte | 2 +- .../financials/cash-flow/+page.svelte | 2 +- .../[tickerID]/financials/ratios/+page.svelte | 2 +- .../stocks/[tickerID]/forecast/+page.svelte | 2 +- .../[tickerID]/forecast/analyst/+page.svelte | 2 +- .../stocks/[tickerID]/insider/+layout.svelte | 2 +- .../stocks/[tickerID]/insider/+page.svelte | 2 +- .../stocks/[tickerID]/metrics/+page.svelte | 2 +- .../stocks/[tickerID]/options/+page.svelte | 6 +- .../statistics/employees/+page.svelte | 2 +- .../statistics/market-cap/+page.svelte | 2 +- 75 files changed, 5812 insertions(+), 3686 deletions(-) diff --git a/src/lib/components/AnalystEstimate.svelte b/src/lib/components/AnalystEstimate.svelte index ac0b7cef..e7f40af7 100644 --- a/src/lib/components/AnalystEstimate.svelte +++ b/src/lib/components/AnalystEstimate.svelte @@ -504,7 +504,7 @@ - + + - - - - - + + diff --git a/src/lib/components/OptionsData.svelte b/src/lib/components/OptionsData.svelte index 26abf787..ff24a825 100644 --- a/src/lib/components/OptionsData.svelte +++ b/src/lib/components/OptionsData.svelte @@ -257,7 +257,7 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" > diff --git a/src/lib/components/ShareStatistics.svelte b/src/lib/components/ShareStatistics.svelte index e0ac7110..f404b58e 100644 --- a/src/lib/components/ShareStatistics.svelte +++ b/src/lib/components/ShareStatistics.svelte @@ -1,300 +1,198 @@ + - - - - -
-
- -
- - + {#if isLoaded} + {#if Object?.keys(rawData)?.length !== 0} + {#if rawData?.historicalShares?.length !== 0} +
+
+
+ {$displayCompanyName}'s' has + {abbreviateNumber(rawData?.latestOutstandingShares)} + shares outstanding with + {abbreviateNumber(rawData?.latestFloatShares)} of those shares currently floating. +
- {#if isLoaded} - - {#if Object?.keys(rawData)?.length !== 0} +
+ +
- {#if rawData?.historicalShares?.length !== 0} -
- -
-
- {$displayCompanyName}'s' has {abbreviateNumber(rawData?.latestOutstandingShares)} shares outstanding with {abbreviateNumber(rawData?.latestFloatShares)} of those shares currently floating. -
-
- - -
- -
- - -
-
- - - - Floating Shares - -
-
- - - - Outstanding Shares - -
- -
-
- {:else} -
- - Historical Shares are not available yet for {$displayCompanyName} -
- {/if} +
+
+ + + + Floating Shares + +
+
+ + + + Outstanding Shares + +
+
+
+ {:else} +
+ + Historical Shares are not available yet for {$displayCompanyName} +
+ {/if} - {#if rawData?.sharesShort !== 0} -

- Short Selling Information -

- - The latest short interest is {abbreviateNumber(rawData?.sharesShort)}, so {rawData?.shortOutStandingPercent}% of the outstanding shares have been sold short. - + {#if rawData?.sharesShort !== 0} +

+ Short Selling Information +

+ + The latest short interest is + {abbreviateNumber(rawData?.sharesShort)}, so + {rawData?.shortOutStandingPercent}% of the outstanding shares have been sold short. + -
- - - - - - - - - - - - - - - - - - - - - - - +
+
- Short Interest - - {abbreviateNumber(rawData?.sharesShort)} -
- Short Previous Month - - {abbreviateNumber(rawData?.sharesShortPriorMonth)} -
- Short % of Shares Out - - {rawData?.shortOutStandingPercent}% -
- Short % of Float - - {rawData?.shortFloatPercent}% -
- Short Ratio (days to cover) - - {rawData?.shortRatio} -
+ + + + + + + + + + + + + + + + + + + + + +
+ Short Interest + + {abbreviateNumber(rawData?.sharesShort)} +
+ Short Previous Month + + {abbreviateNumber(rawData?.sharesShortPriorMonth)} +
+ Short % of Shares Out + + {rawData?.shortOutStandingPercent}% +
+ Short % of Float + + {rawData?.shortFloatPercent}% +
+ Short Ratio (days to cover) + + {rawData?.shortRatio} +
-
- {/if} - - - {/if} - - {:else} -
-
- -
-
- {/if} - - - -
-
- - - + + {/if} + {/if} + {:else} +
+
+ +
+
+ {/if} + + \ No newline at end of file + } + diff --git a/src/lib/components/WIIM.svelte b/src/lib/components/WIIM.svelte index e5f27aaa..b0d87ace 100644 --- a/src/lib/components/WIIM.svelte +++ b/src/lib/components/WIIM.svelte @@ -36,7 +36,7 @@ } -
+
+ +
diff --git a/src/routes/crypto/[tickerID]/stats/+page.svelte b/src/routes/crypto/[tickerID]/stats/+page.svelte index e4c4ab79..7836bd8a 100644 --- a/src/routes/crypto/[tickerID]/stats/+page.svelte +++ b/src/routes/crypto/[tickerID]/stats/+page.svelte @@ -1,14 +1,18 @@ - - - - - - - - {$numberOfUnreadNotification > 0 ? `(${$numberOfUnreadNotification})` : ''} {$displayCompanyName} ({$etfTicker}) latest Stock Market News and Breaking Stories · stocknear - - - - - - - - - - - - - - - - - - - - -
-
-
-
-
-

- News -

-
- - {#if newsList.length !== 0} -
- {#each newsList as item} -
- {#if videoId = checkIfYoutubeVideo(item.url)} - - {:else} - -
- news image -
-
- {/if} -
-

- {item?.site} · {formatDate(item?.publishedDate)} ago -

- - - {item?.title} -

- {item?.text} -

-
-
-
- -
- {/each} - -
- {#if newsList?.length !== rawNews?.length} - - {/if} - - - {:else} -
- - No news article published yet! -
- {/if} - - -
-
+ + + + + + + {$numberOfUnreadNotification > 0 ? `(${$numberOfUnreadNotification})` : ""} + {$displayCompanyName} ({$etfTicker}) latest Stock Market News and Breaking + Stories · stocknear + + + + + + + + + + + + + + + + +
+
+
+
+
+

News

+
+ + {#if newsList.length !== 0} +
+ {#each newsList as item} +
+ {#if (videoId = checkIfYoutubeVideo(item.url))} + + {:else} + +
+ news image +
+
+ {/if} +
+

+ {item?.site} · {formatDate(item?.publishedDate)} ago +

+ + + {item?.title} +

+ {item?.text} +

+
+
+
+ +
+ {/each} +
+ {#if newsList?.length !== rawNews?.length} + + {/if} + {:else} +
+ + No news article published yet! +
+ {/if}
-
\ No newline at end of file + +
+
diff --git a/src/routes/etf/[tickerID]/options/+page.svelte b/src/routes/etf/[tickerID]/options/+page.svelte index e03de4f1..6bdfb101 100644 --- a/src/routes/etf/[tickerID]/options/+page.svelte +++ b/src/routes/etf/[tickerID]/options/+page.svelte @@ -573,7 +573,7 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" > @@ -710,7 +710,7 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" > @@ -1118,7 +1118,7 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" > diff --git a/src/routes/etf/[tickerID]/stats/+page.svelte b/src/routes/etf/[tickerID]/stats/+page.svelte index e341d0db..3992df5e 100644 --- a/src/routes/etf/[tickerID]/stats/+page.svelte +++ b/src/routes/etf/[tickerID]/stats/+page.svelte @@ -1,14 +1,18 @@ - + }); + + options = { + silent: true, + tooltip: {}, + grid: { + left: "0%", + right: "0%", + top: "0%", + bottom: "0%", + containLabel: true, + }, + series: [ + { + breadcrumb: { show: false }, + type: "treemap", + roam: false, + width: "100%", + height: "100%", + visualMin: visualMin, + visualMax: visualMax, + visualDimension: 2, + label: { + show: true, + textStyle: { + color: "#fff", + fontSize: fontSize, + fontWeight: "bold", + }, + formatter: function (params) { + var changesPercentage = params.data.changesPercentage || 0; // Access changesPercentage from params.data + return params.name + "\n\n" + changesPercentage + "%"; + }, + }, + upperLabel: { + show: true, + textStyle: { + color: "#fff", + fontSize: fontSize, + }, + formatter: function (params) { + var sumChangesPercentage = 0; + if (params.data.children && params.data.children.length > 0) { + sumChangesPercentage = params.data.children.reduce( + (acc, child) => acc + (child.changesPercentage || 0), + 0, + ); + } + return params.name; + }, + height: 40, + }, + itemStyle: { + borderColor: "#2D313C", + color: function (params) { + return params.data.changesPercentage >= 0 ? "#30954F" : "#FF281E"; // Access changesPercentage from params.data + }, + }, + levels: getLevelOption(), + data: rawData.map((item) => ({ + ...item, + children: item.children.map((child) => ({ + ...child, + itemStyle: { + ...child.itemStyle, + color: child.changesPercentage < 0 ? "#7F4650" : "#396550", + }, + })), + })), + }, + ], + }; + } + + function changeIndex(indexName) { + displayIndex = indexName; + } + + function sectorSelector(sector) { + let path; + switch (sector) { + case "Financials": + path = "financial-sector"; + break; + case "Healthcare": + path = "healthcare-sector"; + break; + case "Information Technology": + path = "technology-sector"; + break; + case "Technology": + path = "technology-sector"; + break; + case "Financial Services": + path = "financial-sector"; + break; + case "Industrials": + path = "industrials-sector"; + break; + case "Energy": + path = "energy-sector"; + break; + case "Utilities": + path = "utilities-sector"; + break; + case "Consumer Cyclical": + path = "consumer-cyclical-sector"; + break; + case "Real Estate": + path = "real-estate-sector"; + break; + case "Basic Materials": + path = "basic-materials-sector"; + break; + case "Communication Services": + path = "communication-services-sector"; + break; + case "Consumer Defensive": + path = "consumer-defensive-sector"; + break; + default: + // Handle default case if needed + break; + } + goto("list/" + path); + } + + $: { + if (typeof window !== "undefined" && displayIndex) { + isLoaded = false; + + if (displayIndex === "S&P500") { + rawData = data?.getSP500HeatMap; + } else if (displayIndex === "Dow Jones") { + rawData = data?.getDowJonesHeatMap; + } else if (displayIndex === "Nasdaq") { + rawData = data?.getNasdaqHeatMap; + } + const fontSize = $screenWidth < 640 ? 12 : 16; + plotData(fontSize); + + isLoaded = true; + } + } + + let charNumber = 40; + $: { + if ($screenWidth < 640) { + charNumber = 20; + } else { + charNumber = 40; + } + } + + - {$numberOfUnreadNotification > 0 ? `(${$numberOfUnreadNotification})` : ''} Market Heatmaps · stocknear - - + + {$numberOfUnreadNotification > 0 ? `(${$numberOfUnreadNotification})` : ""} Market + Heatmaps · stocknear + + - - - - - - + + + + + + - - - - - + + + + + - - - - -
- -
-
- - -
-
-

- Market Heatmaps -

-
- -
-
- {:else} -
-
-
+
+ {:else} +
+
+ -
+
- - {/if} - - - - - - - - - - - - - - - - - + {/if} + + + + + + - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + diff --git a/src/routes/hedge-funds/[slug]/+page.svelte b/src/routes/hedge-funds/[slug]/+page.svelte index 3265d6f8..6bb90c74 100644 --- a/src/routes/hedge-funds/[slug]/+page.svelte +++ b/src/routes/hedge-funds/[slug]/+page.svelte @@ -339,12 +339,10 @@ async function getPerformancePlot() { // Initialize boughtList and soldList arrays - const data = rawData?.summary - ?.slice(0, 20) - ?.map((item) => ({ - date: item?.date, - performancePercentage: item?.performancePercentage, - })); + const data = rawData?.summary?.slice(0, 20)?.map((item) => ({ + date: item?.date, + performancePercentage: item?.performancePercentage, + })); data.sort((a, b) => new Date(a?.date) - new Date(b?.date)); @@ -1715,7 +1713,7 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" > diff --git a/src/routes/industry/+page.svelte b/src/routes/industry/+page.svelte index 5612c28b..507c1417 100644 --- a/src/routes/industry/+page.svelte +++ b/src/routes/industry/+page.svelte @@ -70,7 +70,7 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" > diff --git a/src/routes/insider-tracker/+page.svelte b/src/routes/insider-tracker/+page.svelte index 83542e80..00fe86f1 100644 --- a/src/routes/insider-tracker/+page.svelte +++ b/src/routes/insider-tracker/+page.svelte @@ -191,7 +191,7 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" > diff --git a/src/routes/ipos/+page.svelte b/src/routes/ipos/+page.svelte index 448413a6..7756ee3a 100644 --- a/src/routes/ipos/+page.svelte +++ b/src/routes/ipos/+page.svelte @@ -53,7 +53,7 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" > diff --git a/src/routes/ipos/[slug]/+page.svelte b/src/routes/ipos/[slug]/+page.svelte index e5fb1725..be2d174b 100644 --- a/src/routes/ipos/[slug]/+page.svelte +++ b/src/routes/ipos/[slug]/+page.svelte @@ -89,7 +89,7 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" > @@ -239,7 +239,7 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" > diff --git a/src/routes/list/amex-stocks/+page.svelte b/src/routes/list/amex-stocks/+page.svelte index 128f5cd1..08f27227 100644 --- a/src/routes/list/amex-stocks/+page.svelte +++ b/src/routes/list/amex-stocks/+page.svelte @@ -48,7 +48,7 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" > diff --git a/src/routes/list/bitcoin-etfs/+page.svelte b/src/routes/list/bitcoin-etfs/+page.svelte index 01d846a5..d9b998d9 100644 --- a/src/routes/list/bitcoin-etfs/+page.svelte +++ b/src/routes/list/bitcoin-etfs/+page.svelte @@ -1,105 +1,129 @@ - - +
- - -
- - - A list of all Bitcoin ETFs available for trading on the US stock market, offering investors exposure to the cryptocurrency's price. -
+
+ + + A list of all Bitcoin ETFs available for trading on the US stock market, + offering investors exposure to the cryptocurrency's price. +
- -
-
Total ETFs
-
{rawData?.length}
+
+
+ Total ETFs
- -
-
Total Assets
-
${abbreviateNumber(totalAssets)}
+
+ {rawData?.length}
- -
-
Avg. Cost
-
{avgExpenseRatio?.toFixed(2)}%
-
-
- - - -
- - - - -
- - - - - - - - - - - - {#each rawData as item,index} - - goto("/etf/"+item?.symbol)} class="sm:hover:bg-[#245073] sm:hover:bg-opacity-[0.2] odd:bg-[#27272A] border-b-[#09090B] shake-ticker cursor-pointer"> - - - - - - - - - - - - - - - {/each} - -
SymbolFund NameAssetsExpense Ratio
- {item?.symbol} - - {item?.name?.length > charNumber ? item?.name?.slice(0,charNumber) + "..." : item?.name} - - - {abbreviateNumber(item?.totalAssets, true)} - - {item?.expenseRatio}% -
- - +
+
+ Total Assets +
+
+ ${abbreviateNumber(totalAssets)} +
- +
+
+ Avg. Cost +
+
+ {avgExpenseRatio?.toFixed(2)}% +
+
+
+ +
+ +
+ + + + + + + + + + + {#each rawData as item, index} + + goto("/etf/" + item?.symbol)} + class="sm:hover:bg-[#245073] sm:hover:bg-opacity-[0.2] odd:bg-[#27272A] border-b-[#09090B] shake-ticker cursor-pointer" + > + + + + + + + + + {/each} + +
SymbolFund NameAssetsExpense Ratio
+ {item?.symbol} + + {item?.name?.length > charNumber + ? item?.name?.slice(0, charNumber) + "..." + : item?.name} + + {abbreviateNumber(item?.totalAssets, true)} + + {item?.expenseRatio}% +
+
+
- - - diff --git a/src/routes/list/canadian-stocks-us/+page.svelte b/src/routes/list/canadian-stocks-us/+page.svelte index eceda366..867e2177 100644 --- a/src/routes/list/canadian-stocks-us/+page.svelte +++ b/src/routes/list/canadian-stocks-us/+page.svelte @@ -48,7 +48,7 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" > diff --git a/src/routes/list/chinese-stocks-us/+page.svelte b/src/routes/list/chinese-stocks-us/+page.svelte index 554483a6..98ee55cf 100644 --- a/src/routes/list/chinese-stocks-us/+page.svelte +++ b/src/routes/list/chinese-stocks-us/+page.svelte @@ -48,7 +48,7 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" > diff --git a/src/routes/list/delisted-stocks/+page.svelte b/src/routes/list/delisted-stocks/+page.svelte index b7ae577f..2b7a70dc 100644 --- a/src/routes/list/delisted-stocks/+page.svelte +++ b/src/routes/list/delisted-stocks/+page.svelte @@ -1,135 +1,150 @@ - - -
- - -
- - - A list of companies delisted from the exchange and no longer publicly traded. - -
- -
- -
-
Total Stocks
-
{rawData?.length}
-
- -
-
Total Market Cap
-
---
-
- -
-
Total Revenue
-
---
-
- -
- - - - -
- - - - -
- - - - - - - - - - - - - - - {#each marketCapList as item,index} - - - - - - - - - - - - - - - - - - - - - {/each} - -
SymbolCompanyIPOExchangeDelisted
- {item?.symbol} - - {item?.companyName?.length > charNumber ? item?.companyName?.slice(0,charNumber) + "..." : item?.companyName} - - {new Date(item?.ipoDate).toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric' })} - - {item?.exchange} - - {new Date(item?.delistedDate).toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric' })} -
- - -
- - -
- - - - \ No newline at end of file +
+
+ + + A list of companies delisted from the exchange and no longer publicly + traded. +
+ +
+
+
+ Total Stocks +
+
+ {rawData?.length} +
+
+ +
+
+ Total Market Cap +
+
---
+
+ +
+
+ Total Revenue +
+
---
+
+
+ + +
+ +
+ + + + + + + + + + + + {#each marketCapList as item, index} + + + + + + + + + + + + + {/each} + +
SymbolCompanyIPOExchangeDelisted
+ {item?.symbol} + + {item?.companyName?.length > charNumber + ? item?.companyName?.slice(0, charNumber) + "..." + : item?.companyName} + + {new Date(item?.ipoDate).toLocaleDateString("en-US", { + month: "short", + day: "numeric", + year: "numeric", + })} + + {item?.exchange} + + {new Date(item?.delistedDate).toLocaleDateString("en-US", { + month: "short", + day: "numeric", + year: "numeric", + })} +
+
+
+
diff --git a/src/routes/list/dividend-aristocrats/+page.svelte b/src/routes/list/dividend-aristocrats/+page.svelte index a3288307..602a6d36 100644 --- a/src/routes/list/dividend-aristocrats/+page.svelte +++ b/src/routes/list/dividend-aristocrats/+page.svelte @@ -36,7 +36,7 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" > diff --git a/src/routes/list/dividend-kings/+page.svelte b/src/routes/list/dividend-kings/+page.svelte index be30fcaa..d9a19dcb 100644 --- a/src/routes/list/dividend-kings/+page.svelte +++ b/src/routes/list/dividend-kings/+page.svelte @@ -36,7 +36,7 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" > diff --git a/src/routes/list/dow-jones-stocks/+page.svelte b/src/routes/list/dow-jones-stocks/+page.svelte index 3325e8e1..34d31738 100644 --- a/src/routes/list/dow-jones-stocks/+page.svelte +++ b/src/routes/list/dow-jones-stocks/+page.svelte @@ -48,7 +48,7 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" > diff --git a/src/routes/list/german-stocks-us/+page.svelte b/src/routes/list/german-stocks-us/+page.svelte index 81af7019..137fb4d5 100644 --- a/src/routes/list/german-stocks-us/+page.svelte +++ b/src/routes/list/german-stocks-us/+page.svelte @@ -48,7 +48,7 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" > diff --git a/src/routes/list/indian-stocks-us/+page.svelte b/src/routes/list/indian-stocks-us/+page.svelte index c90c600b..620bf7cc 100644 --- a/src/routes/list/indian-stocks-us/+page.svelte +++ b/src/routes/list/indian-stocks-us/+page.svelte @@ -48,7 +48,7 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" > diff --git a/src/routes/list/industrials-sector/+page.svelte b/src/routes/list/industrials-sector/+page.svelte index b0763097..2699c58a 100644 --- a/src/routes/list/industrials-sector/+page.svelte +++ b/src/routes/list/industrials-sector/+page.svelte @@ -126,7 +126,7 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" > diff --git a/src/routes/list/industry/[slug]/+page.svelte b/src/routes/list/industry/[slug]/+page.svelte index a79fad0a..40fc3964 100644 --- a/src/routes/list/industry/[slug]/+page.svelte +++ b/src/routes/list/industry/[slug]/+page.svelte @@ -150,7 +150,7 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" > diff --git a/src/routes/list/israeli-stocks-us/+page.svelte b/src/routes/list/israeli-stocks-us/+page.svelte index 84d8e215..5c839aff 100644 --- a/src/routes/list/israeli-stocks-us/+page.svelte +++ b/src/routes/list/israeli-stocks-us/+page.svelte @@ -48,7 +48,7 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" > diff --git a/src/routes/list/japanese-stocks-us/+page.svelte b/src/routes/list/japanese-stocks-us/+page.svelte index 533d1906..3c808732 100644 --- a/src/routes/list/japanese-stocks-us/+page.svelte +++ b/src/routes/list/japanese-stocks-us/+page.svelte @@ -48,7 +48,7 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" > diff --git a/src/routes/list/magnificent-seven/+page.svelte b/src/routes/list/magnificent-seven/+page.svelte index e2e07780..025edab0 100644 --- a/src/routes/list/magnificent-seven/+page.svelte +++ b/src/routes/list/magnificent-seven/+page.svelte @@ -30,7 +30,7 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" > diff --git a/src/routes/list/nasdaq-100-stocks/+page.svelte b/src/routes/list/nasdaq-100-stocks/+page.svelte index 4ff374d9..711798fc 100644 --- a/src/routes/list/nasdaq-100-stocks/+page.svelte +++ b/src/routes/list/nasdaq-100-stocks/+page.svelte @@ -48,7 +48,7 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" > diff --git a/src/routes/list/nasdaq-stocks/+page.svelte b/src/routes/list/nasdaq-stocks/+page.svelte index fe6ce589..7b48b102 100644 --- a/src/routes/list/nasdaq-stocks/+page.svelte +++ b/src/routes/list/nasdaq-stocks/+page.svelte @@ -48,7 +48,7 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" > diff --git a/src/routes/list/nyse-stocks/+page.svelte b/src/routes/list/nyse-stocks/+page.svelte index 64fdce37..835690ab 100644 --- a/src/routes/list/nyse-stocks/+page.svelte +++ b/src/routes/list/nyse-stocks/+page.svelte @@ -48,7 +48,7 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" > diff --git a/src/routes/list/reit-stocks/+page.svelte b/src/routes/list/reit-stocks/+page.svelte index 9aa9a31c..7a0ab8c8 100644 --- a/src/routes/list/reit-stocks/+page.svelte +++ b/src/routes/list/reit-stocks/+page.svelte @@ -36,7 +36,7 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" > diff --git a/src/routes/list/sp-500-stocks/+page.svelte b/src/routes/list/sp-500-stocks/+page.svelte index 28257a5f..20cd6647 100644 --- a/src/routes/list/sp-500-stocks/+page.svelte +++ b/src/routes/list/sp-500-stocks/+page.svelte @@ -48,7 +48,7 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" > diff --git a/src/routes/list/uk-stocks-us/+page.svelte b/src/routes/list/uk-stocks-us/+page.svelte index 0fdf795a..73b37eab 100644 --- a/src/routes/list/uk-stocks-us/+page.svelte +++ b/src/routes/list/uk-stocks-us/+page.svelte @@ -48,7 +48,7 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" > diff --git a/src/routes/list/xetra-stocks/+page.svelte b/src/routes/list/xetra-stocks/+page.svelte index a425ed6b..3a24fd8f 100644 --- a/src/routes/list/xetra-stocks/+page.svelte +++ b/src/routes/list/xetra-stocks/+page.svelte @@ -48,7 +48,7 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" > diff --git a/src/routes/most-retail-volume/+page.svelte b/src/routes/most-retail-volume/+page.svelte index fa15d350..743fc90a 100644 --- a/src/routes/most-retail-volume/+page.svelte +++ b/src/routes/most-retail-volume/+page.svelte @@ -164,7 +164,7 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" > diff --git a/src/routes/options-flow/+page.svelte b/src/routes/options-flow/+page.svelte index bf1c236d..2dbeb676 100644 --- a/src/routes/options-flow/+page.svelte +++ b/src/routes/options-flow/+page.svelte @@ -2219,7 +2219,7 @@ function sendMessage(message) { xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" > diff --git a/src/routes/politicians/[slug]/+page.svelte b/src/routes/politicians/[slug]/+page.svelte index 45a66725..86dc88ec 100644 --- a/src/routes/politicians/[slug]/+page.svelte +++ b/src/routes/politicians/[slug]/+page.svelte @@ -1,723 +1,935 @@ - - - - + + + - {$numberOfUnreadNotification > 0 ? `(${$numberOfUnreadNotification})` : ''} Which stocks is {name} trading? · stocknear + {$numberOfUnreadNotification > 0 ? `(${$numberOfUnreadNotification})` : ""} Which + stocks is {name} trading? · stocknear - - + + - - - + + + - + - - - + + + - - - - - -
- - -
+ - - - -
-
- - + +
+ {#if isLoaded && Object?.keys(optionsData)?.length !== 0} +
+
+ + Trade Amount by Year +
+
+ +
+ +
+
+ + + + Bought + +
+
+ + + + Sold + +
+
+
+ {/if} +
+
+ {#if rawData?.history?.length !== 0} + + +
+ + {numOfAssets} Assets + + + +
+ + + + + + + + + + + {#each displayList as item} + + + goto( + `/${item?.assetType === "stock" ? "stocks" : item?.assetType === "etf" ? "etf" : "crypto"}/${item?.ticker}`, + )} + class="w-screen odd:bg-[#27272A] border-b-[#09090B]" + > + + + + + + + + + {/each} + +
+ Name + + Transaction + + Traded + + Filed +
+
+
+ {item?.ticker?.replace("_", " ")} + {item?.name?.length > 15 + ? item?.name?.slice(0, 15) + "..." + : item?.name} +
+
+ +
+
+ + {#if item?.type === "Bought"} + Purchase + {:else if item?.type === "Sold"} + Sale + {:else if item?.type === "Exchange"} + Exchange + {/if} + + + {item?.amount} + +
+
+ {new Date(item?.transactionDate)?.toLocaleString( + "en-US", + { + month: "short", + day: "numeric", + year: "numeric", + daySuffix: "2-digit", + }, + )} + + {new Date(item?.disclosureDate)?.toLocaleString( + "en-US", + { + month: "short", + day: "numeric", + year: "numeric", + daySuffix: "2-digit", + }, + )} +
+
+
+ + + {:else} +
+
+ + No Trading activity found +
+
+ {/if} +
+
+
- - - -
- - - - - \ No newline at end of file + diff --git a/src/routes/sentiment-tracker/+page.svelte b/src/routes/sentiment-tracker/+page.svelte index 6401bf84..e230dc65 100644 --- a/src/routes/sentiment-tracker/+page.svelte +++ b/src/routes/sentiment-tracker/+page.svelte @@ -180,7 +180,7 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" > diff --git a/src/routes/stock-screener/+page.svelte b/src/routes/stock-screener/+page.svelte index 4c8e74ed..00e3d798 100644 --- a/src/routes/stock-screener/+page.svelte +++ b/src/routes/stock-screener/+page.svelte @@ -3053,7 +3053,7 @@ const handleKeyDown = (event) => { xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" > diff --git a/src/routes/stock-splits-calendar/+page.svelte b/src/routes/stock-splits-calendar/+page.svelte index df3cb111..06117331 100644 --- a/src/routes/stock-splits-calendar/+page.svelte +++ b/src/routes/stock-splits-calendar/+page.svelte @@ -518,7 +518,7 @@ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" > diff --git a/src/routes/stocks/[tickerID]/+layout.svelte b/src/routes/stocks/[tickerID]/+layout.svelte index affade54..f9226eae 100644 --- a/src/routes/stocks/[tickerID]/+layout.svelte +++ b/src/routes/stocks/[tickerID]/+layout.svelte @@ -743,7 +743,7 @@ function handleTypeOfTrade(state:string)