This commit is contained in:
Benjamin Toby 2026-03-30 05:57:36 +01:00
parent 711e989ecd
commit 0c18649c1d
8 changed files with 938 additions and 8 deletions

View File

@ -1,4 +1,4 @@
FROM oven/bun:1.3-debian
FROM oven/bun:1.2-debian
RUN apt update
RUN apt install -y curl bash nano wget zip unzip

View File

@ -1 +1,3 @@
# Welcome to Tben
This site is powered using Bunext.

911
bun.lock Normal file

File diff suppressed because it is too large Load Diff

BIN
bun.lockb

Binary file not shown.

View File

@ -10,8 +10,8 @@
},
"dependencies": {
"@moduletrace/buncid": "^1.0.7",
"@moduletrace/bunext": "^1.0.40",
"@moduletrace/datasquirel": "^5.7.51",
"@moduletrace/bunext": "^1.0.42",
"@moduletrace/datasquirel": "^5.7.57",
"gray-matter": "^4.0.3",
"html-to-react": "^1.7.0",
"lodash": "^4.17.21",

View File

@ -2,7 +2,6 @@ import Button from "@/src/components/lib/layout/Button";
import Divider from "@/src/components/lib/layout/Divider";
import H1 from "@/src/components/lib/layout/H1";
import H2 from "@/src/components/lib/layout/H2";
import Link from "@/src/components/lib/layout/Link";
import P from "@/src/components/lib/layout/P";
import Row from "@/src/components/lib/layout/Row";
import Section from "@/src/components/lib/layout/Section";

View File

@ -1,3 +1,4 @@
import Row from "@/src/components/lib/layout/Row";
import Span from "@/src/components/lib/layout/Span";
import { PropsWithChildren } from "react";
import { twMerge } from "tailwind-merge";
@ -14,9 +15,21 @@ export default function Footer({}: Props) {
"w-full flex flex-row items-center px-6 mt-auto",
)}
>
<Span className="text-sm opacity-40">
Copyright © {date.getFullYear()} Tben.me. All Rights Reserved.
<Row className="w-full justify-between">
<Span className="text-sm opacity-70">
Copyright © {date.getFullYear()} Tben.me. All Rights
Reserved.
</Span>
<Span className="text-sm opacity-70">
Made with{" "}
<a
href="https://github.com/Moduletrace/bunext"
target="_blank"
>
Bunext
</a>
</Span>
</Row>
</footer>
);
}

View File

@ -1,5 +1,7 @@
import { SQL } from "bun";
let sql_object: any;
const sql = new SQL({
adapter: "mariadb",
hostname: process.env.DSQL_DB_HOST,
@ -12,7 +14,10 @@ const sql = new SQL({
idleTimeout: 30000,
maxLifetime: 60 * 60 * 1000,
onclose(err) {
sql.connect();
sql_object?.connect();
},
onconnect(err) {
sql_object = sql;
},
});