Perbaikan UI pada Forum
# style: - Tampilan keseluruhan forum di ganti menguikuti UI ## No Issue
This commit is contained in:
@@ -1,15 +1,23 @@
|
||||
import { AdminForum_HasilReportKomentar } from "@/app_modules/admin/forum";
|
||||
import { adminForum_getListReportKomentarbyId } from "@/app_modules/admin/forum/fun/get/get_list_report_komentar_by_id";
|
||||
import adminForum_funGetOneKomentarById from "@/app_modules/admin/forum/fun/get/get_one_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});
|
||||
const listReport = await adminForum_getListReportKomentarbyId({
|
||||
komentarId: komentarId,
|
||||
page: 1,
|
||||
});
|
||||
const dataKomentar = await adminForum_funGetOneKomentarById({
|
||||
komentarId: komentarId,
|
||||
});
|
||||
|
||||
return (
|
||||
<>
|
||||
<AdminForum_HasilReportKomentar
|
||||
listReport={listReport}
|
||||
komentarId={komentarId}
|
||||
dataKomentar={dataKomentar as any}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
||||
12
src/app/dev/admin/forum/sub-menu/report-komentar/page.tsx
Normal file
12
src/app/dev/admin/forum/sub-menu/report-komentar/page.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import adminForum_funGetAllReportKomentar from "@/app_modules/admin/forum/fun/get/get_all_report_komentar";
|
||||
import AdminForum_TableReportKomentar from "@/app_modules/admin/forum/sub_menu/table_report_komentar";
|
||||
|
||||
export default async function Page() {
|
||||
const listData = await adminForum_funGetAllReportKomentar({ page: 1 });
|
||||
|
||||
return (
|
||||
<>
|
||||
<AdminForum_TableReportKomentar listData={listData} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
import Forum_Detail from "@/app_modules/forum/detail";
|
||||
import { forum_getKomentarById } from "@/app_modules/forum/fun/get/get_komentar_by_id";
|
||||
import Forum_MainDetail from "@/app_modules/forum/detail/main_detail";
|
||||
import { forum_funGetAllKomentarById } from "@/app_modules/forum/fun/get/get_all_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_getOneUserId } from "@/app_modules/fun_global/get_user_token";
|
||||
@@ -11,13 +11,13 @@ export default async function Page({ params }: { params: { id: string } }) {
|
||||
|
||||
const userLoginId = await user_getOneUserId();
|
||||
const dataPosting = await forum_getOnePostingById(postingId);
|
||||
const listKomentar = await forum_getKomentarById(postingId);
|
||||
const listKomentar = await forum_funGetAllKomentarById(postingId);
|
||||
|
||||
dataPosting?.isActive === false && redirect(RouterForum.beranda);
|
||||
|
||||
return (
|
||||
<>
|
||||
<Forum_Detail
|
||||
<Forum_MainDetail
|
||||
dataPosting={dataPosting as any}
|
||||
listKomentar={listKomentar as any}
|
||||
userLoginId={userLoginId}
|
||||
13
src/app/dev/forum/detail/report-komentar/[id]/page.tsx
Normal file
13
src/app/dev/forum/detail/report-komentar/[id]/page.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Forum_DetailReportKomentar } from "@/app_modules/forum";
|
||||
import forum_funGetOneReportKomentarById from "@/app_modules/forum/fun/get/get_one_report_komentar_by_id";
|
||||
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
const komentarId = params.id;
|
||||
const dataKomentar = await forum_funGetOneReportKomentarById({ komentarId: komentarId });
|
||||
|
||||
return (
|
||||
<>
|
||||
<Forum_DetailReportKomentar dataKomentar={dataKomentar as any} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
12
src/app/dev/forum/detail/report-posting/[id]/page.tsx
Normal file
12
src/app/dev/forum/detail/report-posting/[id]/page.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import { Forum_DetailReportPosting } from "@/app_modules/forum";
|
||||
import forum_funGetOneReportedPostingById from "@/app_modules/forum/fun/get/get_one_posting_reported_by_id";
|
||||
|
||||
export default async function Page({params}: {params: {id: string}}) {
|
||||
const postingId = params.id
|
||||
const dataPosting = await forum_funGetOneReportedPostingById({postingId: postingId})
|
||||
return (
|
||||
<>
|
||||
<Forum_DetailReportPosting dataPosting={dataPosting} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Forum_Forumku } from "@/app_modules/forum";
|
||||
import { forum_getListPostingByAuhtorId } from "@/app_modules/forum/fun/get/get_list_posting_by_author_id";
|
||||
import { forum_getAllPostingByAuhtorId } from "@/app_modules/forum/fun/get/get_list_posting_by_author_id";
|
||||
import { forum_countOneTotalKomentarById } from "@/app_modules/forum/fun/count/count_one_total_komentar_by_id";
|
||||
import { user_getOneUserId } from "@/app_modules/fun_global/get_user_token";
|
||||
import { user_getOneByUserId } from "@/app_modules/home/fun/get/get_one_user_by_id";
|
||||
@@ -25,7 +25,7 @@ export default async function Page({ params }: { params: { id: string } }) {
|
||||
// setTimeout(a, 1000);
|
||||
// });
|
||||
|
||||
const dataPosting = await forum_getListPostingByAuhtorId(authorId);
|
||||
const dataPosting = await forum_getAllPostingByAuhtorId({authorId: authorId, page: 1});
|
||||
const totalPosting = await forum_countPostingByAuthorId(authorId);
|
||||
|
||||
return (
|
||||
|
||||
@@ -1,15 +1,19 @@
|
||||
import { Forum_ReportKomentar } from "@/app_modules/forum";
|
||||
import { forum_getMasterKategoriReport } from "@/app_modules/forum/fun/master/get_master_kategori_report";
|
||||
import { user_getOneUserId } from "@/app_modules/fun_global/get_user_token";
|
||||
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
let komentarId = params.id;
|
||||
const listReport = await forum_getMasterKategoriReport();
|
||||
const userLoginId = await user_getOneUserId();
|
||||
|
||||
|
||||
return (
|
||||
<>
|
||||
<Forum_ReportKomentar
|
||||
komentarId={komentarId}
|
||||
listReport={listReport as any}
|
||||
userLoginId={userLoginId as any}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -1,11 +1,16 @@
|
||||
import { Forum_ReportPostingLainnya } from "@/app_modules/forum";
|
||||
import { user_getOneUserId } from "@/app_modules/fun_global/get_user_token";
|
||||
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
let postingIg = params.id;
|
||||
let postingId = params.id;
|
||||
const userLoginId = await user_getOneUserId()
|
||||
|
||||
return (
|
||||
<>
|
||||
<Forum_ReportPostingLainnya postingIg={postingIg} />
|
||||
<Forum_ReportPostingLainnya
|
||||
postingId={postingId}
|
||||
userLoginId={userLoginId}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
import { Forum_ReportPosting } from "@/app_modules/forum";
|
||||
import { forum_getOnePostingById } from "@/app_modules/forum/fun/get/get_one_posting_by_id";
|
||||
import { forum_getMasterKategoriReport } from "@/app_modules/forum/fun/master/get_master_kategori_report";
|
||||
import { user_getOneUserId } from "@/app_modules/fun_global/get_user_token";
|
||||
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
let postingId = params.id;
|
||||
const listReport = await forum_getMasterKategoriReport();
|
||||
const userLoginId = await user_getOneUserId()
|
||||
const dataPosting = await forum_getOnePostingById(postingId)
|
||||
const userLoginId = await user_getOneUserId();
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
import ComponentGlobal_V2_LoadingPage from "@/app_modules/component_global/loading_page_v2";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<ComponentGlobal_V2_LoadingPage />
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -26,7 +26,7 @@ export default async function Page() {
|
||||
|
||||
return (
|
||||
<>
|
||||
<HomeView dataUser={dataUser as any} dataJob={[]} />
|
||||
<HomeView dataUser={dataUser as any} dataJob={dataJob as any} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user