From 19bbbba75b49f14aa48ca4e07ed60b98cd64c0fa Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Mon, 30 Sep 2024 19:23:47 +0200 Subject: [PATCH] bugfixing: redirect watchlist page --- src/lib/components/AIScore.svelte | 45 +++++++++++++++++++++++++++++ src/routes/list/+layout.svelte | 2 +- src/routes/price-alert/+page.svelte | 2 +- 3 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 src/lib/components/AIScore.svelte diff --git a/src/lib/components/AIScore.svelte b/src/lib/components/AIScore.svelte new file mode 100644 index 00000000..b6d1855e --- /dev/null +++ b/src/lib/components/AIScore.svelte @@ -0,0 +1,45 @@ + + + + + +
+
+ + + {#if Object?.keys(aiScoreDict)?.length !== 0} + + + +
+
+
+
+ + + + + + + + + +
+ + {score} + +
+
+ +
+
+
+ {/if} + +
+
\ No newline at end of file diff --git a/src/routes/list/+layout.svelte b/src/routes/list/+layout.svelte index c3b00bec..a5c19d15 100644 --- a/src/routes/list/+layout.svelte +++ b/src/routes/list/+layout.svelte @@ -275,7 +275,7 @@ const combinedNavigation = navigation?.concat(updatedNavigation); {/if} -
goto('/watchlist')} class="w-full bg-[#141417] duration-100 ease-out sm:hover:text-white text-gray-400 sm:hover:border-gray-700 border border-gray-800 rounded-lg h-fit pb-4 mt-4 cursor-pointer"> +
goto('/watchlist/stocks')} class="w-full bg-[#141417] duration-100 ease-out sm:hover:text-white text-gray-400 sm:hover:border-gray-700 border border-gray-800 rounded-lg h-fit pb-4 mt-4 cursor-pointer">

diff --git a/src/routes/price-alert/+page.svelte b/src/routes/price-alert/+page.svelte index 71f92847..73e81e5e 100644 --- a/src/routes/price-alert/+page.svelte +++ b/src/routes/price-alert/+page.svelte @@ -423,7 +423,7 @@ $: charNumber = $screenWidth < 640 ? 15 : 40;

{/if} -
goto('/watchlist')} class="w-full bg-[#141417] duration-100 ease-out sm:hover:text-white text-gray-400 sm:hover:border-gray-700 border border-gray-800 rounded-lg h-fit pb-4 mt-4 cursor-pointer"> +
goto('/watchlist/stocks')} class="w-full bg-[#141417] duration-100 ease-out sm:hover:text-white text-gray-400 sm:hover:border-gray-700 border border-gray-800 rounded-lg h-fit pb-4 mt-4 cursor-pointer">