# Forum Report

## feat
- Repot posting
- Report komentar
### No issuee
This commit is contained in:
2024-03-18 14:02:01 +08:00
parent a77d728a5f
commit de0790aade
33 changed files with 605 additions and 49 deletions

View File

@@ -2,9 +2,12 @@ import Forum_Detail from "@/app_modules/forum/detail";
import { forum_getKomentarById } from "@/app_modules/forum/fun/get/get_komentar_by_id";
import { forum_getOnePostingById } from "@/app_modules/forum/fun/get/get_one_posting_by_id";
import { forum_countOneTotalKomentarById } from "@/app_modules/forum/fun/count/count_one_total_komentar_by_id";
import { User_getUserId } from "@/app_modules/fun_global/get_user_token";
export default async function Page({ params }: { params: { id: string } }) {
let postingId = params.id;
const userLoginId = await User_getUserId()
const dataPosting = await forum_getOnePostingById(postingId);
const listKomentar = await forum_getKomentarById(postingId);
const totalKomentar = await forum_countOneTotalKomentarById(postingId)
@@ -16,6 +19,7 @@ export default async function Page({ params }: { params: { id: string } }) {
dataPosting={dataPosting as any}
listKomentar={listKomentar as any}
totalKomentar={totalKomentar}
userLoginId={userLoginId}
/>
</>
);

View File

@@ -0,0 +1,14 @@
import { LayoutForum_ReportKomentar } from "@/app_modules/forum";
import React from "react";
export default async function Layout({
children,
}: {
children: React.ReactNode;
}) {
return (
<>
<LayoutForum_ReportKomentar>{children}</LayoutForum_ReportKomentar>
</>
);
}

View File

@@ -0,0 +1,9 @@
import ComponentGlobal_V2_LoadingPage from "@/app_modules/component_global/loading_page_v2";
export default async function Page() {
return (
<>
<ComponentGlobal_V2_LoadingPage />
</>
);
}

View File

@@ -0,0 +1,11 @@
import { Forum_ReportKomentarLainnya } from "@/app_modules/forum";
export default async function Page({ params }: { params: { id: string } }) {
let komentarId = params.id;
return (
<>
<Forum_ReportKomentarLainnya komentarId={komentarId} />
</>
);
}

View File

@@ -1,8 +1,16 @@
import { Forum_ReportKomentar } from "@/app_modules/forum";
import { forum_getMasterKategoriReport } from "@/app_modules/forum/fun/master/get_master_kategori_report";
export default async function Page({params}: {params: {id: string}}) {
let komentarId = params.id
return<>
<Forum_ReportKomentar id={komentarId}/>
export default async function Page({ params }: { params: { id: string } }) {
let komentarId = params.id;
const listReport = await forum_getMasterKategoriReport();
return (
<>
<Forum_ReportKomentar
komentarId={komentarId}
listReport={listReport as any}
/>
</>
}
);
}

View File

@@ -0,0 +1,14 @@
import { LayoutForum_ReportPosting } from "@/app_modules/forum";
import React from "react";
export default async function Layout({
children,
}: {
children: React.ReactNode;
}) {
return (
<>
<LayoutForum_ReportPosting>{children}</LayoutForum_ReportPosting>
</>
);
}

View File

@@ -0,0 +1,9 @@
import ComponentGlobal_V2_LoadingPage from "@/app_modules/component_global/loading_page_v2";
export default async function Page() {
return (
<>
<ComponentGlobal_V2_LoadingPage />
</>
);
}

View File

@@ -0,0 +1,11 @@
import { Forum_ReportPostingLainnya } from "@/app_modules/forum";
export default async function Page({ params }: { params: { id: string } }) {
let postingIg = params.id;
return (
<>
<Forum_ReportPostingLainnya postingIg={postingIg} />
</>
);
}

View File

@@ -1,11 +1,16 @@
import { Forum_ReportPosting } from "@/app_modules/forum";
import { forum_getMasterKategoriReport } from "@/app_modules/forum/fun/master/get_master_kategori_report";
export default async function Page({ params }: { params: { id: string } }) {
let id = params.id;
let postingId = params.id;
const listReport = await forum_getMasterKategoriReport();
return (
<>
<Forum_ReportPosting id={id} />
<Forum_ReportPosting
postingId={postingId}
listReport={listReport as any}
/>
</>
);
}