mirror of
				https://github.com/C4illin/ConvertX.git
				synced 2025-11-04 14:03:32 +00:00 
			
		
		
		
	chore(deps): update @elysiajs/html to version 1.1.1
This commit is contained in:
		@@ -13,7 +13,7 @@
 | 
				
			|||||||
  },
 | 
					  },
 | 
				
			||||||
  "dependencies": {
 | 
					  "dependencies": {
 | 
				
			||||||
    "@elysiajs/cookie": "^0.8.0",
 | 
					    "@elysiajs/cookie": "^0.8.0",
 | 
				
			||||||
    "@elysiajs/html": "1.0.2",
 | 
					    "@elysiajs/html": "^1.1.1",
 | 
				
			||||||
    "@elysiajs/jwt": "^1.1.1",
 | 
					    "@elysiajs/jwt": "^1.1.1",
 | 
				
			||||||
    "@elysiajs/static": "1.0.3",
 | 
					    "@elysiajs/static": "1.0.3",
 | 
				
			||||||
    "elysia": "^1.1.22"
 | 
					    "elysia": "^1.1.22"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,7 +1,12 @@
 | 
				
			|||||||
 | 
					import { Html } from "@elysiajs/html";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const BaseHtml = ({
 | 
					export const BaseHtml = ({
 | 
				
			||||||
  children,
 | 
					  children,
 | 
				
			||||||
  title = "ConvertX",
 | 
					  title = "ConvertX",
 | 
				
			||||||
}: { children: JSX.Element; title?: string }) => (
 | 
					}: {
 | 
				
			||||||
 | 
					  children: JSX.Element;
 | 
				
			||||||
 | 
					  title?: string;
 | 
				
			||||||
 | 
					}) => (
 | 
				
			||||||
  <html lang="en">
 | 
					  <html lang="en">
 | 
				
			||||||
    <head>
 | 
					    <head>
 | 
				
			||||||
      <meta charset="UTF-8" />
 | 
					      <meta charset="UTF-8" />
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,7 +1,12 @@
 | 
				
			|||||||
 | 
					import { Html } from "@kitajs/html";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const Header = ({
 | 
					export const Header = ({
 | 
				
			||||||
  loggedIn,
 | 
					  loggedIn,
 | 
				
			||||||
  accountRegistration,
 | 
					  accountRegistration,
 | 
				
			||||||
}: { loggedIn?: boolean; accountRegistration?: boolean }) => {
 | 
					}: {
 | 
				
			||||||
 | 
					  loggedIn?: boolean;
 | 
				
			||||||
 | 
					  accountRegistration?: boolean;
 | 
				
			||||||
 | 
					}) => {
 | 
				
			||||||
  let rightNav: JSX.Element;
 | 
					  let rightNav: JSX.Element;
 | 
				
			||||||
  if (loggedIn) {
 | 
					  if (loggedIn) {
 | 
				
			||||||
    rightNav = (
 | 
					    rightNav = (
 | 
				
			||||||
@@ -12,7 +17,8 @@ export const Header = ({
 | 
				
			|||||||
              text-accent-600 transition-all
 | 
					              text-accent-600 transition-all
 | 
				
			||||||
              hover:text-accent-500 hover:underline
 | 
					              hover:text-accent-500 hover:underline
 | 
				
			||||||
            `}
 | 
					            `}
 | 
				
			||||||
            href="/history">
 | 
					            href="/history"
 | 
				
			||||||
 | 
					          >
 | 
				
			||||||
            History
 | 
					            History
 | 
				
			||||||
          </a>
 | 
					          </a>
 | 
				
			||||||
        </li>
 | 
					        </li>
 | 
				
			||||||
@@ -22,7 +28,8 @@ export const Header = ({
 | 
				
			|||||||
              text-accent-600 transition-all
 | 
					              text-accent-600 transition-all
 | 
				
			||||||
              hover:text-accent-500 hover:underline
 | 
					              hover:text-accent-500 hover:underline
 | 
				
			||||||
            `}
 | 
					            `}
 | 
				
			||||||
            href="/logoff">
 | 
					            href="/logoff"
 | 
				
			||||||
 | 
					          >
 | 
				
			||||||
            Logout
 | 
					            Logout
 | 
				
			||||||
          </a>
 | 
					          </a>
 | 
				
			||||||
        </li>
 | 
					        </li>
 | 
				
			||||||
@@ -37,7 +44,8 @@ export const Header = ({
 | 
				
			|||||||
              text-accent-600 transition-all
 | 
					              text-accent-600 transition-all
 | 
				
			||||||
              hover:text-accent-500 hover:underline
 | 
					              hover:text-accent-500 hover:underline
 | 
				
			||||||
            `}
 | 
					            `}
 | 
				
			||||||
            href="/login">
 | 
					            href="/login"
 | 
				
			||||||
 | 
					          >
 | 
				
			||||||
            Login
 | 
					            Login
 | 
				
			||||||
          </a>
 | 
					          </a>
 | 
				
			||||||
        </li>
 | 
					        </li>
 | 
				
			||||||
@@ -48,7 +56,8 @@ export const Header = ({
 | 
				
			|||||||
                text-accent-600 transition-all
 | 
					                text-accent-600 transition-all
 | 
				
			||||||
                hover:text-accent-500 hover:underline
 | 
					                hover:text-accent-500 hover:underline
 | 
				
			||||||
              `}
 | 
					              `}
 | 
				
			||||||
              href="/register">
 | 
					              href="/register"
 | 
				
			||||||
 | 
					            >
 | 
				
			||||||
              Register
 | 
					              Register
 | 
				
			||||||
            </a>
 | 
					            </a>
 | 
				
			||||||
          </li>
 | 
					          </li>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,7 +2,7 @@ import { randomInt, randomUUID } from "node:crypto";
 | 
				
			|||||||
import { rmSync } from "node:fs";
 | 
					import { rmSync } from "node:fs";
 | 
				
			||||||
import { mkdir, unlink } from "node:fs/promises";
 | 
					import { mkdir, unlink } from "node:fs/promises";
 | 
				
			||||||
import cookie from "@elysiajs/cookie";
 | 
					import cookie from "@elysiajs/cookie";
 | 
				
			||||||
import { html } from "@elysiajs/html";
 | 
					import { html, Html } from "@elysiajs/html";
 | 
				
			||||||
import { jwt, type JWTPayloadSpec } from "@elysiajs/jwt";
 | 
					import { jwt, type JWTPayloadSpec } from "@elysiajs/jwt";
 | 
				
			||||||
import { staticPlugin } from "@elysiajs/static";
 | 
					import { staticPlugin } from "@elysiajs/static";
 | 
				
			||||||
import { Database } from "bun:sqlite";
 | 
					import { Database } from "bun:sqlite";
 | 
				
			||||||
@@ -131,6 +131,18 @@ const app = new Elysia({
 | 
				
			|||||||
      prefix: "/",
 | 
					      prefix: "/",
 | 
				
			||||||
    }),
 | 
					    }),
 | 
				
			||||||
  )
 | 
					  )
 | 
				
			||||||
 | 
					  .get("/test", () => {
 | 
				
			||||||
 | 
					    return (
 | 
				
			||||||
 | 
					      <html lang="en">
 | 
				
			||||||
 | 
					        <head>
 | 
				
			||||||
 | 
					          <title>Hello World</title>
 | 
				
			||||||
 | 
					        </head>
 | 
				
			||||||
 | 
					        <body>
 | 
				
			||||||
 | 
					          <h1>Hello</h1>
 | 
				
			||||||
 | 
					        </body>
 | 
				
			||||||
 | 
					      </html>
 | 
				
			||||||
 | 
					    );
 | 
				
			||||||
 | 
					  })
 | 
				
			||||||
  .get("/setup", ({ redirect }) => {
 | 
					  .get("/setup", ({ redirect }) => {
 | 
				
			||||||
    if (!FIRST_RUN) {
 | 
					    if (!FIRST_RUN) {
 | 
				
			||||||
      return redirect("/login", 302);
 | 
					      return redirect("/login", 302);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user