Updates
This commit is contained in:
parent
711e989ecd
commit
0c18649c1d
@ -1,4 +1,4 @@
|
|||||||
FROM oven/bun:1.3-debian
|
FROM oven/bun:1.2-debian
|
||||||
|
|
||||||
RUN apt update
|
RUN apt update
|
||||||
RUN apt install -y curl bash nano wget zip unzip
|
RUN apt install -y curl bash nano wget zip unzip
|
||||||
|
|||||||
@ -1 +1,3 @@
|
|||||||
# Welcome to Tben
|
# Welcome to Tben
|
||||||
|
|
||||||
|
This site is powered using Bunext.
|
||||||
|
|||||||
@ -10,8 +10,8 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@moduletrace/buncid": "^1.0.7",
|
"@moduletrace/buncid": "^1.0.7",
|
||||||
"@moduletrace/bunext": "^1.0.40",
|
"@moduletrace/bunext": "^1.0.42",
|
||||||
"@moduletrace/datasquirel": "^5.7.51",
|
"@moduletrace/datasquirel": "^5.7.57",
|
||||||
"gray-matter": "^4.0.3",
|
"gray-matter": "^4.0.3",
|
||||||
"html-to-react": "^1.7.0",
|
"html-to-react": "^1.7.0",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
|
|||||||
@ -2,7 +2,6 @@ import Button from "@/src/components/lib/layout/Button";
|
|||||||
import Divider from "@/src/components/lib/layout/Divider";
|
import Divider from "@/src/components/lib/layout/Divider";
|
||||||
import H1 from "@/src/components/lib/layout/H1";
|
import H1 from "@/src/components/lib/layout/H1";
|
||||||
import H2 from "@/src/components/lib/layout/H2";
|
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 P from "@/src/components/lib/layout/P";
|
||||||
import Row from "@/src/components/lib/layout/Row";
|
import Row from "@/src/components/lib/layout/Row";
|
||||||
import Section from "@/src/components/lib/layout/Section";
|
import Section from "@/src/components/lib/layout/Section";
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
import Row from "@/src/components/lib/layout/Row";
|
||||||
import Span from "@/src/components/lib/layout/Span";
|
import Span from "@/src/components/lib/layout/Span";
|
||||||
import { PropsWithChildren } from "react";
|
import { PropsWithChildren } from "react";
|
||||||
import { twMerge } from "tailwind-merge";
|
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",
|
"w-full flex flex-row items-center px-6 mt-auto",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<Span className="text-sm opacity-40">
|
<Row className="w-full justify-between">
|
||||||
Copyright © {date.getFullYear()} Tben.me. All Rights Reserved.
|
<Span className="text-sm opacity-70">
|
||||||
|
Copyright © {date.getFullYear()} Tben.me. All Rights
|
||||||
|
Reserved.
|
||||||
</Span>
|
</Span>
|
||||||
|
<Span className="text-sm opacity-70">
|
||||||
|
Made with{" "}
|
||||||
|
<a
|
||||||
|
href="https://github.com/Moduletrace/bunext"
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
|
Bunext
|
||||||
|
</a>
|
||||||
|
</Span>
|
||||||
|
</Row>
|
||||||
</footer>
|
</footer>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
import { SQL } from "bun";
|
import { SQL } from "bun";
|
||||||
|
|
||||||
|
let sql_object: any;
|
||||||
|
|
||||||
const sql = new SQL({
|
const sql = new SQL({
|
||||||
adapter: "mariadb",
|
adapter: "mariadb",
|
||||||
hostname: process.env.DSQL_DB_HOST,
|
hostname: process.env.DSQL_DB_HOST,
|
||||||
@ -12,7 +14,10 @@ const sql = new SQL({
|
|||||||
idleTimeout: 30000,
|
idleTimeout: 30000,
|
||||||
maxLifetime: 60 * 60 * 1000,
|
maxLifetime: 60 * 60 * 1000,
|
||||||
onclose(err) {
|
onclose(err) {
|
||||||
sql.connect();
|
sql_object?.connect();
|
||||||
|
},
|
||||||
|
onconnect(err) {
|
||||||
|
sql_object = sql;
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user