Fix tampilan admin dan notifikasi to admin
# fix - Notifikasi report posting _ Realtime notifikasi ## Issuee: Cooming soon saat report komentar langsung menuju tablenya
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
import { AdminForum_TableReportKomentar } from "@/app_modules/admin/forum";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<AdminForum_TableReportKomentar />
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
import { AdminForum_TableReportPosting } from "@/app_modules/admin/forum";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<AdminForum_TableReportPosting />
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,17 +1,25 @@
|
||||
import { AdminForum_LihatSemuaKomentar } from "@/app_modules/admin/forum";
|
||||
import adminForum_countKomentarByPostingId from "@/app_modules/admin/forum/fun/count/fun_count_komentar_by_id";
|
||||
import { adminForum_getListKomentarById } from "@/app_modules/admin/forum/fun/get/get_list_komentar_by_id";
|
||||
import { adminForum_getOnePostingById } from "@/app_modules/admin/forum/fun/get/get_one_posting_by_id";
|
||||
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
let postingId = params.id;
|
||||
const listKomentar = await adminForum_getListKomentarById(postingId);
|
||||
|
||||
const listKomentar = await adminForum_getListKomentarById({
|
||||
postingId: postingId,
|
||||
page: 1,
|
||||
});
|
||||
const dataPosting = await adminForum_getOnePostingById(postingId);
|
||||
const countKomentar = await adminForum_countKomentarByPostingId({postingId: postingId})
|
||||
|
||||
|
||||
return (
|
||||
<>
|
||||
<AdminForum_LihatSemuaKomentar
|
||||
listKomentar={listKomentar as any}
|
||||
dataPosting={dataPosting as any}
|
||||
countKomentar={countKomentar}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
@@ -1,13 +0,0 @@
|
||||
import { AdminForum_HasilReportKomentar } from "@/app_modules/admin/forum"
|
||||
import { adminForum_getListReportKomentarbyId } from "@/app_modules/admin/forum/fun/get/get_list_report_komentar_by_id";
|
||||
|
||||
export default async function Page({params}: {params: {id: string}}) {
|
||||
let komentarId = params.id
|
||||
const listReport = await adminForum_getListReportKomentarbyId(komentarId)
|
||||
|
||||
return (
|
||||
<>
|
||||
<AdminForum_HasilReportKomentar listReport={listReport} komentarId={komentarId} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
import { AdminForum_HasilReportKomentar } from "@/app_modules/admin/forum";
|
||||
import { adminForum_getListReportKomentarbyId } from "@/app_modules/admin/forum/fun/get/get_list_report_komentar_by_id";
|
||||
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
let komentarId = params.id;
|
||||
const listReport = await adminForum_getListReportKomentarbyId({komentarId: komentarId, page: 1});
|
||||
|
||||
return (
|
||||
<>
|
||||
<AdminForum_HasilReportKomentar
|
||||
listReport={listReport}
|
||||
komentarId={komentarId}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,14 +1,20 @@
|
||||
import { AdminForum_HasilReportPosting } from "@/app_modules/admin/forum";
|
||||
import { adminForum_getListReportPostingById } from "@/app_modules/admin/forum/fun/get/get_list_report_posting_by_id";
|
||||
import { adminForum_getOnePostingById } from "@/app_modules/admin/forum/fun/get/get_one_posting_by_id";
|
||||
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
let postingId = params.id;
|
||||
const listReport = await adminForum_getListReportPostingById(postingId);
|
||||
const listReport = await adminForum_getListReportPostingById({
|
||||
postingId: postingId,
|
||||
page: 1,
|
||||
});
|
||||
|
||||
const dataPosting = await adminForum_getOnePostingById(postingId);
|
||||
|
||||
return (
|
||||
<>
|
||||
<AdminForum_HasilReportPosting
|
||||
postingId={postingId}
|
||||
dataPosting={dataPosting as any}
|
||||
listReport={listReport}
|
||||
/>
|
||||
</>
|
||||
@@ -1,8 +1,8 @@
|
||||
import { AdminForum_TablePublish } from "@/app_modules/admin/forum";
|
||||
import { adminForum_getListPublish } from "@/app_modules/admin/forum/fun/get/get_list_publish";
|
||||
import { adminForum_getListPosting } from "@/app_modules/admin/forum/fun/get/get_list_publish";
|
||||
|
||||
export default async function Page() {
|
||||
const listPublish = await adminForum_getListPublish();
|
||||
const listPublish = await adminForum_getListPosting({page: 1});
|
||||
|
||||
return (
|
||||
<>
|
||||
12
src/app/dev/admin/forum/sub-menu/report-posting/page.tsx
Normal file
12
src/app/dev/admin/forum/sub-menu/report-posting/page.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import { AdminForum_TableReportPosting } from "@/app_modules/admin/forum";
|
||||
import adminForum_funGetAllReportPosting from "@/app_modules/admin/forum/fun/get/get_all_report_posting";
|
||||
|
||||
export default async function Page() {
|
||||
const listData = await adminForum_funGetAllReportPosting({ page: 1 });
|
||||
|
||||
return (
|
||||
<>
|
||||
<AdminForum_TableReportPosting listData={listData} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -6,5 +6,9 @@ export default async function Page() {
|
||||
const countUser = await AdminMainDashboard_CountUser();
|
||||
const countPorto = await AdminMainDashboard_CountPOrtofolio();
|
||||
|
||||
// await new Promise((a, b) => {
|
||||
// setTimeout(a, 4000);
|
||||
// });
|
||||
|
||||
return <AdminMain countUser={countUser} countPorto={countPorto} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user