fix: Upload image

Deskripsi:
- Upload image job di arahkan ke storage server
## No Issue
This commit is contained in:
2024-09-13 16:12:42 +08:00
parent 3b7e9977f6
commit 370e3ec4e4
55 changed files with 1326 additions and 877 deletions

View File

@@ -2,7 +2,7 @@ import { Login } from "@/app_modules/auth";
import { cookies } from "next/headers";
export default function Page() {
const c = cookies().getAll();
const c: any = cookies().getAll();
return (
<>

View File

@@ -7,22 +7,16 @@ import { unsealData } from "iron-session";
import { getConfig } from "@/bin/config";
import yaml from "yaml";
import fs from "fs";
import { user_funGetOneUserId } from "@/app_modules/fun_global";
const config = yaml.parse(fs.readFileSync("config.yaml").toString());
export default async function PageSplash() {
const c = cookies().get("ssn");
const tkn = !c
? null
: JSON.parse(
await unsealData(c.value as string, {
password: (await getConfig()).server.password,
})
);
const userLoginId = await user_funGetOneUserId();
return (
<>
<SplashScreen data={tkn} />
<SplashScreen userLoginId={userLoginId} />
</>
);
}