# fix
- Create dan edit
- Bagikam WA
- Loading
## No isssue
This commit is contained in:
2024-05-22 14:08:17 +08:00
parent ce35aa8f51
commit 68e0a9a237
20 changed files with 2967 additions and 227 deletions

View File

@@ -1,6 +1,8 @@
import { Admin_Award } from "@/app_modules/admin/award";
import { gen_api } from "../../../../../../gen_api";
export default async function Page() {
return (
<>
<Admin_Award />

View File

@@ -1,13 +1,15 @@
"use server";
import { Job_MainDetail } from "@/app_modules/job";
import { Job_getOneById } from "@/app_modules/job/fun/get/get_one_by_id";
import app_config from "@/util/app_config";
export default async function Page({ params }: { params: { id: string } }) {
const jobId = params.id;
const dataJob = await Job_getOneById(jobId)
const idJob = params.id;
const dataJob = await Job_getOneById(idJob);
return (
<>
<Job_MainDetail dataJob={dataJob as any} />
<Job_MainDetail dataJob={dataJob as any} hostName={app_config.host} />
</>
);
}

View File

@@ -1,10 +1,16 @@
"use server";
import { Job_NonUserView } from "@/app_modules/job";
import { Job_getOneById } from "@/app_modules/job/fun/get/get_one_by_id";
import os from "os";
export default async function Page({ params }: { params: { id: string } }) {
let jobId = params.id;
const dataJob = await Job_getOneById(jobId);
// const platform = os.platform();
// const hostName =
// platform === "darwin"
// ? "http://localhost:3000"
// : "https://test-hipmi.wibudev.com";
return (
<>
<Job_NonUserView data={dataJob as any} />