This commit is contained in:
Korbs 2024-08-21 17:06:56 -04:00
parent fa352ba512
commit e2566cce31
4 changed files with 6 additions and 5 deletions

BIN
bun.lockb

Binary file not shown.

View file

@ -37,7 +37,8 @@ export default defineConfig({
// Experimental
experimental: {
directRenderScript: true,
clientPrerender: true
clientPrerender: true,
serverIslands: true
},
prefetch: {
prefetchAll: true,

View file

@ -10,8 +10,8 @@ else if (Astro.cookies.get("Telemtry").value === "Disabled") {
}
---
{UserIsOptedIn ?
{UserIsOptedIn ?
<a style="color: white;text-decoration: none;margin-bottom: 6px;border-radius: 6px;padding: 8px 24px;background: #1a1a1a;font-size: 14px;border: 2px rgba(255, 255, 255, 0.25) solid;" href="/api/telemtry/disable">{t("TELEMTRY.OPTOUT")}</a>
:
<a style="color: white;text-decoration: none;margin-bottom: 6px;border-radius: 6px;padding: 8px 24px;background: #1a1a1a;font-size: 14px;border: 2px rgba(255, 255, 255, 0.25) solid;" href="/api/telemtry/enable">{t("TELEMTRY.OPTIN")}</a>
}
}

View file

@ -56,7 +56,7 @@ else if (Astro.url.href.includes('?platform=twitch')) {
<div class="video-grid">
{PlatformYouTube ?
YouTubeData.map((video) =>
<Video
<Video server:defer
ID={video.videoId}
Title={video.title}
Creator={video.author}
@ -70,7 +70,7 @@ else if (Astro.url.href.includes('?platform=twitch')) {
}
{PlatformTwitch ?
TwitchData.data.streams.map((channel) =>
<Stream
<Stream server:defer
Title={channel.title}
Creator={channel.username}
Avatar={channel.streamer.pfp}