accidentally devved on prod

This commit is contained in:
I-Have-An-Issue 2022-10-15 17:55:22 -04:00
parent 3546ad75f1
commit 46d852450d
No known key found for this signature in database
GPG Key ID: E55435DEA0825091
6 changed files with 16 additions and 9 deletions

View File

@ -3,9 +3,9 @@ import { getUserFromSession } from "$lib/database";
/** @type {import('@sveltejs/kit').Handle} */ /** @type {import('@sveltejs/kit').Handle} */
export async function handle({ event, resolve }) { export async function handle({ event, resolve }) {
//if (event.url.pathname !== "/maintenance" && process.env.MAINTENANCE) { if (event.url.pathname !== "/maintenance" && !event.routeId.startsWith("(api)") && process.env.PRODUCTION) {
// return new Response("", { status: 302, headers: { Location: "/maintenance" } }); return new Response("", { status: 302, headers: { Location: "/maintenance" } });
//} }
const cookie = event.cookies.get(COOKIE_NAME); const cookie = event.cookies.get(COOKIE_NAME);
if (!cookie) { if (!cookie) {

View File

@ -0,0 +1,7 @@
<div class="scrolling-background">
<div class="container flex flex-col h-screen">
<span class="flex-grow" />
<slot />
<span class="flex-grow" />
</div>
</div>

View File

@ -3,7 +3,7 @@ export function GET({ url }) {
return new Response("", { return new Response("", {
status: 302, status: 302,
headers: { headers: {
Location: `https://assetdelivery.roblox.com/v1/asset/?id=${url.searchParams.get("id")}` Location: `/asset?id=${url.searchParams.get("id")}`
} }
}); });
} }

View File

@ -3,7 +3,7 @@ export function GET({ url }) {
return new Response("", { return new Response("", {
status: 302, status: 302,
headers: { headers: {
Location: `https://assetdelivery.roblox.com/v1/asset/?id=${url.searchParams.get("id")}` Location: `https://assetdelivery.roblox.com/v1/asset?id=${url.searchParams.get("id")}`
} }
}); });
} }

View File

@ -10,14 +10,14 @@
<div class="flex flex-col place-content-between pt-2 pb-1.5"> <div class="flex flex-col place-content-between pt-2 pb-1.5">
<p class="text-3xl font-bold">{data.profile?.username}</p> <p class="text-3xl font-bold">{data.profile?.username}</p>
<div class="flex text-lg"> <div class="flex text-lg">
<p class="mr-4"><a class="font-bold" href="/users/id/friends">0</a> Friends</p> <p class="mr-4"><a class="font-bold" href="/users/{data.profile?._id}/friends">0</a> Friends</p>
<p class="mr-4"><a class="font-bold" href="/users/id/followers">0</a> Followers</p> <p class="mr-4"><a class="font-bold" href="/users/{data.profile?._id}/followers">0</a> Followers</p>
<p><a class="font-bold" href="/users/id/following">0</a> Following</p> <p><a class="font-bold" href="/users/{data.profile?._id}/following">0</a> Following</p>
</div> </div>
</div> </div>
<span class="flex-grow" /> <span class="flex-grow" />
<div class="flex place-content-between place-self-end py-1"> <div class="flex place-content-between place-self-end py-1">
<a class="mr-2 px-3 py-1 rounded border-2 border-gray-500 text-gray-500 shadow-lg hover:bg-gray-200" href="/users/id/message">Message</a> <a class="mr-2 px-3 py-1 rounded border-2 border-gray-500 text-gray-500 shadow-lg hover:bg-gray-200" href="/users/{data.profile?._id}/message">Message</a>
<button class="px-3 py-1 rounded border-2 border-blue-500 text-blue-500 shadow-lg hover:bg-blue-200">Add Friend</button> <button class="px-3 py-1 rounded border-2 border-blue-500 text-blue-500 shadow-lg hover:bg-blue-200">Add Friend</button>
</div> </div>
</div> </div>