-
bhop_quaternions
+
{stats.name}
@@ -99,7 +97,9 @@ function TitleAndComments(stats: CreatorAndReviewStatus) {
by {stats.creator}
- {stats.comments.length===0 && There are no comments.
|| stats.comments.map(comment => (
+ {stats.comments.length===0
+ && There are no comments.
+ || stats.comments.map(comment => (
))}
@@ -111,11 +111,35 @@ function TitleAndComments(stats: CreatorAndReviewStatus) {
)
}
-export default function MapInfoPage(info: MapInfo) {
- return (
-
+// const placeholder_Comments = [
+// {
+// comment: "This map has been accepted and is in the game.",
+// date: "on Dec 8 '24 at 18:46",
+// name: "BhopMaptest"
+// },
+// {
+// comment: "This map is so mid...",
+// date: "on Dec 8 '24 at 18:46",
+// name: "vmsize"
+// },
+// {
+// comment: "I prefer strafe client",
+// date: "on Dec 8 '24 at 18:46",
+// name: "Quaternions"
+// }
+// ]
+
+export default function SubmissionInfoPage() {
+ const params = useParams<{submissionId: string}>()
+
+ return (
+
+
+
+
+
)
}
\ No newline at end of file
diff --git a/web/src/app/submissions/[submission_id]/layout.tsx b/web/src/app/submissions/[submission_id]/layout.tsx
deleted file mode 100644
index b08281d..0000000
--- a/web/src/app/submissions/[submission_id]/layout.tsx
+++ /dev/null
@@ -1,34 +0,0 @@
-import { SubmissionStatus } from "@/app/ts/Submission";
-import MapInfoPage from "./page";
-import Header from "@/app/_components/header";
-
-import "./styles/layout.scss";
-
-export default function MapPage() {
- // const placeholder_Comments = [
- // {
- // comment: "This map has been accepted and is in the game.",
- // date: "on Dec 8 '24 at 18:46",
- // name: "BhopMaptest"
- // },
- // {
- // comment: "This map is so mid...",
- // date: "on Dec 8 '24 at 18:46",
- // name: "vmsize"
- // },
- // {
- // comment: "I prefer strafe client",
- // date: "on Dec 8 '24 at 18:46",
- // name: "Quaternions"
- // }
- // ]
-
- return (
- <>
-
-
-
-
- >
- )
-}
\ No newline at end of file
diff --git a/web/src/app/submissions/[submission_id]/styles/layout.scss b/web/src/app/submissions/[submission_id]/styles/layout.scss
deleted file mode 100644
index bcdb4bb..0000000
--- a/web/src/app/submissions/[submission_id]/styles/layout.scss
+++ /dev/null
@@ -1,5 +0,0 @@
-.map-page-main {
- display: flex;
- justify-content: center;
- width: 100vw;
-}
\ No newline at end of file
diff --git a/web/src/app/ts/Roblox.ts b/web/src/app/ts/Roblox.ts
index 0551f8a..bdc9304 100644
--- a/web/src/app/ts/Roblox.ts
+++ b/web/src/app/ts/Roblox.ts
@@ -2,8 +2,17 @@ const FALLBACK_IMAGE = ""
type thumbsizes = "420" | "720"
type thumbsize
= `${S}x${S}`
+type ParsedJson = {
+ errors: A,
+ data: {
+ [0]: {
+ state: string,
+ imageUrl: string,
+ }
+ }
+}
-function Parse(json: any): string {
+function Parse(json: ParsedJson): string {
if (json.errors) {
console.warn(json.errors)
return FALLBACK_IMAGE
diff --git a/web/tsconfig.json b/web/tsconfig.json
index d0a9bc2..47909a7 100644
--- a/web/tsconfig.json
+++ b/web/tsconfig.json
@@ -1,7 +1,11 @@
{
"compilerOptions": {
"target": "ES2017",
- "lib": ["dom", "dom.iterable", "esnext"],
+ "lib": [
+ "dom",
+ "dom.iterable",
+ "esnext"
+ ],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
@@ -20,9 +24,19 @@
}
],
"paths": {
- "@/*": ["./src/*"]
+ "@/*": [
+ "./src/*"
+ ]
}
},
- "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
- "exclude": ["node_modules"]
+ "include": [
+ "**/*.ts",
+ "**/*.tsx",
+ ".next/types/**/*.ts",
+ "next-env.d.ts",
+ "build/types/**/*.ts"
+ ],
+ "exclude": [
+ "node_modules"
+ ]
}