diff --git a/src/components/base.tsx b/src/components/base.tsx index 9f3db2e..57ef09d 100644 --- a/src/components/base.tsx +++ b/src/components/base.tsx @@ -1,40 +1,58 @@ -import { Html } from "@elysiajs/html"; - -export const BaseHtml = ({ - children, - title = "ConvertX", - webroot = "", -}: { - children: JSX.Element; - title?: string; - webroot?: string; -}) => ( - - - - - - {title} - - - - - - - {children} - -); +import { Html } from "@elysiajs/html"; +import { version } from "../../package.json"; + +export const BaseHtml = ({ + children, + title = "ConvertX", + webroot = "", +}: { + children: JSX.Element; + title?: string; + webroot?: string; +}) => ( + + + + + + {title} + + + + + + + + {children} + + + +); diff --git a/src/index.tsx b/src/index.tsx index 8ac227a..c311d66 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -135,18 +135,6 @@ const app = new Elysia({ prefix: "", }), ) - .get("/test", () => { - return ( - - - Hello World - - -

Hello

- - - ); - }) .get("/setup", ({ redirect }) => { if (!FIRST_RUN) { return redirect(`${WEBROOT}/login`, 302); @@ -156,7 +144,7 @@ const app = new Elysia({
@@ -222,10 +210,11 @@ const app = new Elysia({ webroot={WEBROOT} accountRegistration={ACCOUNT_REGISTRATION} allowUnauthenticated={ALLOW_UNAUTHENTICATED} + hideHistory={HIDE_HISTORY} />
@@ -357,7 +346,7 @@ const app = new Elysia({ />
@@ -502,10 +491,11 @@ const app = new Elysia({ accountRegistration={ACCOUNT_REGISTRATION} allowUnauthenticated={ALLOW_UNAUTHENTICATED} hideHistory={HIDE_HISTORY} + loggedIn />
@@ -727,12 +717,14 @@ const app = new Elysia({ <>
@@ -1155,7 +1147,7 @@ const app = new Elysia({ />
@@ -1289,7 +1281,7 @@ const app = new Elysia({ />
@@ -1604,7 +1596,7 @@ const app = new Elysia({ />