diff --git a/src/routes/hedge-funds/+page.server.ts b/src/routes/hedge-funds/+page.server.ts index bc83295c..b732ec7c 100644 --- a/src/routes/hedge-funds/+page.server.ts +++ b/src/routes/hedge-funds/+page.server.ts @@ -1,4 +1,4 @@ -export const load = async ({ locals, setHeaders }) => { +export const load = async ({ locals }) => { const getAllHedgeFunds = async () => { const { apiURL, apiKey } = locals; const response = await fetch(apiURL + "/all-hedge-funds", { @@ -10,7 +10,6 @@ export const load = async ({ locals, setHeaders }) => { }); const output = await response.json(); - setHeaders({ "cache-control": "public, max-age=3000" }); return output; }; diff --git a/src/routes/hedge-funds/+page.svelte b/src/routes/hedge-funds/+page.svelte index 18ca4f9f..ed1c6d0c 100644 --- a/src/routes/hedge-funds/+page.svelte +++ b/src/routes/hedge-funds/+page.svelte @@ -2,7 +2,7 @@ import cardBackground from "$lib/images/bg-hedge-funds.png"; import { numberOfUnreadNotification } from "$lib/store"; - import { abbreviateNumber } from "$lib/utils"; + import { abbreviateNumber, formatString } from "$lib/utils"; import { onMount } from "svelte"; // import * as XLSX from 'xlsx'; @@ -14,8 +14,6 @@ let displayList = rawData?.slice(0, 20) ?? []; let filterQuery = ""; - let isLoaded = true; - async function handleScroll() { const scrollThreshold = document.body.offsetHeight * 0.8; // 80% of the website height const isBottom = window.innerHeight + window.scrollY >= scrollThreshold; @@ -191,7 +189,7 @@ - {item?.name} + {formatString(item?.name)} AUM: {abbreviateNumber(item?.marketValue, true)} diff --git a/src/routes/hedge-funds/[slug]/+page.svelte b/src/routes/hedge-funds/[slug]/+page.svelte index e85b6381..399e721e 100644 --- a/src/routes/hedge-funds/[slug]/+page.svelte +++ b/src/routes/hedge-funds/[slug]/+page.svelte @@ -11,8 +11,6 @@ let stockList = rawData?.slice(0, 50) ?? []; let companyName = data?.getHedgeFundsData?.name ?? "Company Data"; - let analystName = hedgeFundStats?.analystName; - async function handleScroll() { const scrollThreshold = document.body.offsetHeight * 0.8; // 80% of the website height const isBottom = window.innerHeight + window.scrollY >= scrollThreshold; @@ -273,13 +271,33 @@ >
Main Sectors:
-
+
Top Industries:
-
+
+ {#each data?.getHedgeFundsData?.mainIndustries as item} + + {item} + + {/each} +