From 37350f2bed2d5ce4a2a2d2abcef181070c1248dc Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Sat, 25 Jan 2025 21:52:58 +0100 Subject: [PATCH] ui fix --- src/routes/+page.svelte | 60 ++++++----------------------------------- 1 file changed, 8 insertions(+), 52 deletions(-) diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 2bc918be..c1cf78a0 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -5,34 +5,22 @@ import * as Table from "$lib/components/shadcn/table/index.ts"; import ArrowUpRight from "lucide-svelte/icons/arrow-up-right"; import { abbreviateNumber } from "$lib/utils"; - import * as Tabs from "$lib/components/shadcn/tabs/index.js"; import HoverStockChart from "$lib/components/HoverStockChart.svelte"; - import { screenWidth, numberOfUnreadNotification } from "$lib/store"; + import { screenWidth } from "$lib/store"; import { compareTimes, formatTime, isPWAInstalled } from "$lib/utils"; import Infobox from "$lib/components/Infobox.svelte"; import { closedPWA } from "$lib/store"; import Feedback from "$lib/components/Feedback.svelte"; + import SEO from "$lib/components/SEO.svelte"; export let data; - let optionsMode = "openInterest"; - let optionsTable = data?.getDashboard?.optionsData?.openInterest || []; let gainersList = data?.getDashboard?.marketMovers?.gainers || []; let losersList = data?.getDashboard?.marketMovers?.losers || []; let marketStatus = data?.getDashboard?.marketStatus ?? 0; let analystReport = data?.getDashboard?.analystReport || {}; let recentWIIM = data?.getDashboard?.wiim || []; - function changeTable(state) { - optionsMode = state; - if (optionsMode === "premium") { - optionsTable = data?.getDashboard?.optionsData?.premium || []; - } else if (optionsMode === "ivRank") { - optionsTable = data?.getDashboard?.optionsData?.ivRank || []; - } else if (optionsMode === "openInterest") { - optionsTable = data?.getDashboard?.optionsData?.openInterest || []; - } - } let pwaInstalled = false; let AppInstalled = null; @@ -69,42 +57,10 @@ $: charNumber = $screenWidth < 640 ? 20 : 15; - - - - - {$numberOfUnreadNotification > 0 ? `(${$numberOfUnreadNotification})` : ""} Stocknear - - Free Online Stock Analysis for Investors - - - - - - - - - - - - - - - +