From 4f5e366373ec3376ac7a2fbccd0acc54e66331b1 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Fri, 18 Oct 2024 09:01:40 +0200 Subject: [PATCH] update sentiment tracker page --- src/lib/components/shadcn/label/index.ts | 7 + src/lib/components/shadcn/label/label.svelte | 21 + src/lib/components/shadcn/switch/index.ts | 7 + .../components/shadcn/switch/switch.svelte | 28 + src/routes/most-shorted-stocks/+page.svelte | 501 +++++++------ src/routes/options-flow/+page.svelte | 12 +- src/routes/sentiment-tracker/+page.svelte | 703 ++++++++++-------- 7 files changed, 735 insertions(+), 544 deletions(-) create mode 100644 src/lib/components/shadcn/label/index.ts create mode 100644 src/lib/components/shadcn/label/label.svelte create mode 100644 src/lib/components/shadcn/switch/index.ts create mode 100644 src/lib/components/shadcn/switch/switch.svelte diff --git a/src/lib/components/shadcn/label/index.ts b/src/lib/components/shadcn/label/index.ts new file mode 100644 index 00000000..215bb724 --- /dev/null +++ b/src/lib/components/shadcn/label/index.ts @@ -0,0 +1,7 @@ +import Root from "./label.svelte"; + +export { + Root, + // + Root as Label, +}; diff --git a/src/lib/components/shadcn/label/label.svelte b/src/lib/components/shadcn/label/label.svelte new file mode 100644 index 00000000..1b42f263 --- /dev/null +++ b/src/lib/components/shadcn/label/label.svelte @@ -0,0 +1,21 @@ + + + + + \ No newline at end of file diff --git a/src/lib/components/shadcn/switch/index.ts b/src/lib/components/shadcn/switch/index.ts new file mode 100644 index 00000000..abb4b617 --- /dev/null +++ b/src/lib/components/shadcn/switch/index.ts @@ -0,0 +1,7 @@ +import Root from "./switch.svelte"; + +export { + Root, + // + Root as Switch, +}; diff --git a/src/lib/components/shadcn/switch/switch.svelte b/src/lib/components/shadcn/switch/switch.svelte new file mode 100644 index 00000000..e3ce6416 --- /dev/null +++ b/src/lib/components/shadcn/switch/switch.svelte @@ -0,0 +1,28 @@ + + + + + \ No newline at end of file diff --git a/src/routes/most-shorted-stocks/+page.svelte b/src/routes/most-shorted-stocks/+page.svelte index 4b9e775f..52fd8bd4 100644 --- a/src/routes/most-shorted-stocks/+page.svelte +++ b/src/routes/most-shorted-stocks/+page.svelte @@ -1,51 +1,52 @@ - - - - - + - {$numberOfUnreadNotification > 0 ? `(${$numberOfUnreadNotification})` : ''} High Short Interest Stocks · stocknear + {$numberOfUnreadNotification > 0 ? `(${$numberOfUnreadNotification})` : ""} High + Short Interest Stocks · stocknear - - + + - - - + + + - + - - - + + + - - - - - -
- - - -
- -
-
+ +
+ -
- -
-
- - -
-
-

- Shorted Stocks -

-
- - - High short interest stocks are often volatile, known for sudden price surges called short squeezes. - - - -
- - - - - -
- - - - +
+
+
+
+
+
+ +
+
+

+ Shorted Stocks +

- {#if isLoaded} -
- -
- - - - - - {#each stockList as item, index} - - goto(`/stocks/${item?.symbol}`)} class="border-b border-[#27272A] sm:hover:bg-[#245073] sm:hover:bg-opacity-[0.2] odd:bg-[#27272A] {index+1 === stockList?.length && data?.user?.tier !== 'Pro' ? 'opacity-[0.1]' : ''}"> - - - - - - - - - + + High short interest stocks are often volatile, known for + sudden price surges called short squeezes. + + + + + - - - - - - {/each} - -
- {item?.rank} - - - {item?.symbol} - - - - {item?.name?.length > charNumber ? item?.name?.slice(0,charNumber) + "..." : item?.name} - - {item?.shortRatio} - - {abbreviateNumber(item?.sharesShort)} - - {item?.shortFloatPercent}% - - {item?.shortOutStandingPercent}% -
-
- - +
+ logo
+
+ +
+
- {:else} -
-
- -
-
- {/if} + {#if isLoaded} +
+
+ + + + + + {#each stockList as item, index} + goto(`/stocks/${item?.symbol}`)} + class="border-b border-[#27272A] sm:hover:bg-[#245073] sm:hover:bg-opacity-[0.2] odd:bg-[#27272A] {index + + 1 === + stockList?.length && data?.user?.tier !== 'Pro' + ? 'opacity-[0.1]' + : ''}" + > + - - - + + + + + + + + + + + + {/each} + +
+ {item?.rank} + + + {item?.symbol} + + + {item?.name?.length > charNumber + ? item?.name?.slice(0, charNumber) + "..." + : item?.name} + + {item?.shortRatio} + + {abbreviateNumber(item?.sharesShort)} + + {item?.shortFloatPercent}% + + {item?.shortOutStandingPercent}% +
+
+ +
+ {:else} +
+
+ +
+
+ {/if} +
+ - -
+
goto("/analysts/top-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" + > +
+
+

+ Top Stocks Picks ⭐ +

+ +
+ + Get the latest top Wall Street analyst ratings. + +
+
+
- -
- - - -
- \ No newline at end of file +
+
diff --git a/src/routes/options-flow/+page.svelte b/src/routes/options-flow/+page.svelte index c4420a1c..78a2e500 100644 --- a/src/routes/options-flow/+page.svelte +++ b/src/routes/options-flow/+page.svelte @@ -1005,8 +1005,16 @@ function sortData(key) { {$isOpen ? 'Paused' : 'Market Closed'} -