Compare commits

...

10 Commits

Author SHA1 Message Date
I-Have-An-Issue 65432b9863
Merge branch 'sitetest' of calones.xyz:Rowblox/rowblox 2022-10-21 18:00:58 -04:00
I-Have-An-Issue a827c8fbb0
Dont throw db error on dev 2022-10-21 18:00:36 -04:00
ROEvGABE 0eba4edb0e finished catalog 2022-10-21 11:48:43 -04:00
ROEvGABE 978b94be26 working on item page 2022-10-19 21:40:32 -04:00
ROEvGABE 9c41f85871 catalogsheckt 2022-10-19 19:25:44 -04:00
I-Have-An-Issue ed0b23f112
Revert asset funnines 2022-10-16 01:09:55 -04:00
I-Have-An-Issue f035cd8ffe
404 InsertAsset 2022-10-16 00:53:57 -04:00
I-Have-An-Issue a5ed648e69
lole 2022-10-16 00:45:51 -04:00
I-Have-An-Issue ed62edcc50
FIX QUERY 2022-10-15 23:28:54 -04:00
I-Have-An-Issue 41f1815c98
InsertAsset 2022-10-15 23:26:29 -04:00
7 changed files with 153 additions and 4 deletions

View File

@ -4,7 +4,7 @@ import { prerendering } from "$app/environment";
import { randomBytes, randomUUID } from "crypto";
import { INVITE_KEY_PREFIX, SESSION_EXPIRE } from "$lib/constants";
if (!process.env.MONGO_URL) throw new Error("Missing MONGO_URL env variable!");
if (process.env.PRODUCTION && !process.env.MONGO_URL) throw new Error("Missing MONGO_URL env variable!");
const client = new MongoClient(process.env.MONGO_URL);
if (!prerendering) await client.connect();

View File

@ -4,6 +4,6 @@ import joinscript from "$lib/joinscript.js";
export function GET({ url }) {
return new Response("", {
status: 302,
headers: { location: `https://assetdelivery.roblox.com/v1/asset?id=${url.query.get("id")}` }
headers: { location: `https://assetdelivery.roblox.com/v1/asset?id=${url.searchParams.get("id")}` }
});
}

View File

@ -3,7 +3,6 @@ import joinscript from "$lib/joinscript.js";
/** @type {import('./$types').RequestHandler} */
export function GET({ url }) {
return new Response("", {
status: 302,
headers: { location: `https://assetdelivery.roblox.com/v1/asset?id=${url.query.get("id")}` }
status: 404
});
}

View File

@ -0,0 +1,9 @@
import joinscript from "$lib/joinscript.js";
/** @type {import('./$types').RequestHandler} */
export function GET({ url }) {
return new Response("", {
status: 302,
headers: { location: `https://assetdelivery.roblox.com/v1/asset?id=${url.searchParams.get("id")}` }
});
}

View File

@ -0,0 +1,82 @@
<svelte:head>
<title>Catalog - Rowblox</title>
</svelte:head>
<div class="row-auto">
<div class="float-left my-16 border-2 rounded-lg">
<div class="card card-body p-3 shadow-lg">
<h4>
<b>Catergories</b>
</h4>
<div class="form-check">
<input class="form-check-input" type="radio" id="hats" name="category">
<label class="form-check-label"for="hats">Hats</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" id="hats" name="category">
<label class="form-check-label"for="hats">Shirts</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" id="hats" name="category">
<label class="form-check-label"for="hats">Pants</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" id="hats" name="category">
<label class="form-check-label"for="hats">T-Shirts</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" id="hats" name="category">
<label class="form-check-label"for="hats">Faces</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" id="hats" name="category">
<label class="form-check-label"for="hats">Heads</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" id="hats" name="category">
<label class="form-check-label"for="hats">Gears</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" id="hats" name="category">
<label class="form-check-label"for="hats">Packages</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" id="hats" name="category">
<label class="form-check-label"for="hats">Models</label>
</div>
</div>
</div>
<div class="flex items-center">
<p class="font-bold text-3xl my-1">Catalog</p>
<span class="flex-grow" />
<input class="rounded px-2 border-2 border-grey-300 text-black mr-2 py-1" type="text" name="search" id="search" placeholder="Search" />
<button class="text-lg px-3 py-0.5 rounded border-2 border-blue-500 shadow-lg cursor-pointer hover:bg-blue-200 text-blue-500 mr-2">Search</button>
<a class="text-lg px-3 py-0.5 rounded border-2 border-blue-500 shadow-lg cursor-pointer hover:bg-blue-200 text-blue-500" href="/Create/Asset">Create Asset</a>
</div>
<div class="mx-48 pb-3 px-2 py-6">
<div class="card card-body shadow-lg p-2 rounded-lg w-40 border-2 py-2">
<a href="/catalog/items">
<!-- svelte-ignore a11y-missing-attribute -->
<img src="/img/hatrowblox.png">
<div class="mt-1 text-truncate">Traffic Cone</div>
</a>
<hr class="my-2">
<div class="text-s mt-1 mb-1">
<small>
<img src="/img/rowbux.png" width="20" height="50" style="float:left">
<p class="text-xs font-bold"> -21</p>
<p class="text-xs font-bold"> By: Row</p>
</small>
</div>
</div>
</div>
</div>

View File

@ -0,0 +1,59 @@
<svelte:head>
<title>Catalog - Rowblox</title>
</svelte:head>
<div class="container-lg">
<div class="row justify-content-center">
<div class="shadow-lg rounded-lg float-left px-48 border-2">
<div class="card-body text-center text-2xl font-bold h-72">
<h2>Rowblox Cone</h2>
<div id="thumbnail-container" class="my-2 position-relative">
<!-- svelte-ignore a11y-missing-attribute -->
<img src="/img/hatrowblox.png" style="object-fit: contain;" alt="Rowblox Hat" width="250" height="250" class="mx-auto">
</div>
</div>
<hr>
<span class="text-bold font-bold mx-28">
<small>Description:</small>
</span>
<br>
<span class="text-xs mx-28">Very Coney!</span>
</div>
<div class="col-md-12 rounded-lg shadow-lg float-right my-10 border-2 mt-8">
<div class="card shadow-lg">
<div class="card-header text-center font-bold text-bold h-6">Details</div>
<div class="card-body text-center">
<a href="/users/2/profile">
<!-- svelte-ignore a11y-missing-attribute -->
<img src="/img/derpecated.png" width="100" height="100" class="mx-24">
</a>
<p class="text-bold mt-0 pd-0 font-bold">
<small>
Creator:
<a href="/users/2/profile">row</a>
<br>
Sales: 238
<br>
Created: 10/20/22
<br>
Updated: 10/20/22
</small>
</p>
<hr>
<div class="py-2">
<button class="my-auto px-3 py-1 rounded border-2 border-green-500 text-green-500 shadow-lg hover:bg-green-200 w-48">
21
</button>
</div>
</div>
</div>
</div>
</div>
</div>

BIN
static/img/hatrowblox.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB