add reverse to list

This commit is contained in:
MuslemRahimi 2024-09-29 21:04:31 +02:00
parent ed66cc9883
commit 0b907e6a8f
2 changed files with 5 additions and 3 deletions

View File

@ -14,10 +14,12 @@ export const load = async ({ locals, setHeaders }) => {
let output = await response.json();
output.twitter =
user?.tier !== "Pro" ? output?.twitter?.slice(0, 6) : output?.twitter;
user?.tier !== "Pro"
? output?.twitter?.reverse()?.slice(0, 6)
: output?.twitter;
output.stocktwits =
user?.tier !== "Pro"
? output?.stocktwits?.slice(0, 6)
? output?.stocktwits?.reverse()?.slice(0, 6)
: output?.stocktwits;
setHeaders({ "cache-control": "public, max-age=3000" });

View File

@ -163,7 +163,7 @@ async function handleScroll() {
<div class="mb-8 w-full text-center sm:text-start sm:flex sm:flex-row sm:items-center m-auto text-gray-100 border border-gray-800 sm:rounded-lg h-auto p-5 ">
<svg class="w-5 h-5 inline-block sm:mr-2 flex-shrink-0" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="#a474f6" d="M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m-4 48a12 12 0 1 1-12 12a12 12 0 0 1 12-12m12 112a16 16 0 0 1-16-16v-40a8 8 0 0 1 0-16a16 16 0 0 1 16 16v40a8 8 0 0 1 0 16"/></svg>
We update our data every 5 minutes to provide you with the latest trends and the most bullish stocks being discussed on Twitter and StockTwits
We update our data in realtime to provide you with the latest trends and the most bullish stocks being discussed on Twitter and StockTwits
</div>