@@ -15,6 +15,7 @@
|
||||
"@mantine/core": "^6.0.17",
|
||||
"@mantine/dates": "^6.0.17",
|
||||
"@mantine/dropzone": "^7.1.3",
|
||||
"@mantine/form": "^7.6.1",
|
||||
"@mantine/hooks": "^6.0.17",
|
||||
"@mantine/next": "^6.0.17",
|
||||
"@mantine/notifications": "^6.0.17",
|
||||
@@ -47,12 +48,15 @@
|
||||
"lodash": "^4.17.21",
|
||||
"midtrans-client": "^1.3.1",
|
||||
"moment": "^2.29.4",
|
||||
"mqtt": "^5.5.0",
|
||||
"next": "^13.5.4-canary.8",
|
||||
"postcss": "8.4.27",
|
||||
"react": "18.2.0",
|
||||
"react-countdown": "^2.3.5",
|
||||
"react-dom": "18.2.0",
|
||||
"react-fast-marquee": "^1.6.4",
|
||||
"react-icons": "^5.0.1",
|
||||
"react-international-phone": "^4.2.6",
|
||||
"react-quill": "^2.0.0",
|
||||
"react-responsive-carousel": "^3.2.23",
|
||||
"react-simple-toasts": "^5.10.0",
|
||||
|
||||
@@ -12,26 +12,30 @@ datasource db {
|
||||
}
|
||||
|
||||
model User {
|
||||
id String @id @default(cuid())
|
||||
username String @unique
|
||||
nomor String @unique
|
||||
active Boolean @default(true)
|
||||
createdAt DateTime? @default(now())
|
||||
updatedAt DateTime? @updatedAt
|
||||
MasterUserRole MasterUserRole @relation(fields: [masterUserRoleId], references: [id])
|
||||
masterUserRoleId String @default("1")
|
||||
UserSession UserSession?
|
||||
Profile Profile?
|
||||
Investasi Investasi[]
|
||||
TransaksiInvestasi TransaksiInvestasi[]
|
||||
Donasi Donasi[]
|
||||
Donasi_Invoice Donasi_Invoice[]
|
||||
Donasi_Notif Donasi_Notif[]
|
||||
Event Event[]
|
||||
Event_Peserta Event_Peserta[]
|
||||
Voting Voting[]
|
||||
Voting_Kontributor Voting_Kontributor[]
|
||||
Job Job[]
|
||||
id String @id @default(cuid())
|
||||
username String @unique
|
||||
nomor String @unique
|
||||
active Boolean @default(true)
|
||||
createdAt DateTime? @default(now())
|
||||
updatedAt DateTime? @updatedAt
|
||||
MasterUserRole MasterUserRole @relation(fields: [masterUserRoleId], references: [id])
|
||||
masterUserRoleId String @default("1")
|
||||
UserSession UserSession?
|
||||
Profile Profile?
|
||||
Investasi Investasi[]
|
||||
TransaksiInvestasi TransaksiInvestasi[]
|
||||
Donasi Donasi[]
|
||||
Donasi_Invoice Donasi_Invoice[]
|
||||
Donasi_Notif Donasi_Notif[]
|
||||
Event Event[]
|
||||
Event_Peserta Event_Peserta[]
|
||||
Voting Voting[]
|
||||
Voting_Kontributor Voting_Kontributor[]
|
||||
Job Job[]
|
||||
Forum_Posting Forum_Posting[]
|
||||
Forum_Komentar Forum_Komentar[]
|
||||
Forum_ReportPosting Forum_ReportPosting[]
|
||||
Forum_ReportKomentar Forum_ReportKomentar[]
|
||||
}
|
||||
|
||||
model MasterUserRole {
|
||||
@@ -54,6 +58,15 @@ model UserSession {
|
||||
userId String @unique
|
||||
}
|
||||
|
||||
model KodeOtp {
|
||||
id String @id @default(cuid())
|
||||
isActive Boolean @default(true)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
nomor String
|
||||
otp Int
|
||||
}
|
||||
|
||||
model Profile {
|
||||
id String @id @default(cuid())
|
||||
name String
|
||||
@@ -104,6 +117,7 @@ model ImagesBackground {
|
||||
|
||||
model Portofolio {
|
||||
id String @id @default(cuid())
|
||||
id_Portofolio String @unique
|
||||
namaBisnis String
|
||||
alamatKantor String
|
||||
tlpn String
|
||||
@@ -625,3 +639,83 @@ model Job {
|
||||
MasterStatus MasterStatus? @relation(fields: [masterStatusId], references: [id])
|
||||
masterStatusId String? @default("2")
|
||||
}
|
||||
|
||||
// ========================================= FORUM ========================================= //
|
||||
|
||||
model ForumMaster_StatusPosting {
|
||||
id Int @id @default(autoincrement())
|
||||
isActive Boolean @default(true)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
status String
|
||||
Forum_Posting Forum_Posting[]
|
||||
}
|
||||
|
||||
model Forum_Posting {
|
||||
id String @id @default(cuid())
|
||||
isActive Boolean @default(true)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
publishAt DateTime?
|
||||
diskusi String @db.Text
|
||||
Forum_Komentar Forum_Komentar[]
|
||||
Forum_ReportPosting Forum_ReportPosting[]
|
||||
Author User? @relation(fields: [authorId], references: [id])
|
||||
authorId String?
|
||||
ForumMaster_StatusPosting ForumMaster_StatusPosting? @relation(fields: [forumMaster_StatusPostingId], references: [id])
|
||||
forumMaster_StatusPostingId Int?
|
||||
}
|
||||
|
||||
model Forum_Komentar {
|
||||
id String @id @default(cuid())
|
||||
isActive Boolean @default(true)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
komentar String @db.Text
|
||||
Forum_Posting Forum_Posting? @relation(fields: [forum_PostingId], references: [id])
|
||||
forum_PostingId String?
|
||||
Forum_ReportKomentar Forum_ReportKomentar[]
|
||||
Author User? @relation(fields: [authorId], references: [id])
|
||||
authorId String?
|
||||
}
|
||||
|
||||
model ForumMaster_KategoriReport {
|
||||
id Int @id @default(autoincrement())
|
||||
isActive Boolean @default(true)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
title String
|
||||
deskripsi String @db.Text
|
||||
Forum_ReportPosting Forum_ReportPosting[]
|
||||
Forum_ReportKomentar Forum_ReportKomentar[]
|
||||
}
|
||||
|
||||
model Forum_ReportPosting {
|
||||
id String @id @default(cuid())
|
||||
isActive Boolean @default(true)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
deskripsi String? @db.Text
|
||||
|
||||
ForumMaster_KategoriReport ForumMaster_KategoriReport? @relation(fields: [forumMaster_KategoriReportId], references: [id])
|
||||
forumMaster_KategoriReportId Int?
|
||||
Forum_Posting Forum_Posting? @relation(fields: [forum_PostingId], references: [id])
|
||||
forum_PostingId String?
|
||||
User User? @relation(fields: [userId], references: [id])
|
||||
userId String?
|
||||
}
|
||||
|
||||
model Forum_ReportKomentar {
|
||||
id String @id @default(cuid())
|
||||
isActive Boolean @default(true)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
deskripsi String? @db.Text
|
||||
|
||||
ForumMaster_KategoriReport ForumMaster_KategoriReport? @relation(fields: [forumMaster_KategoriReportId], references: [id])
|
||||
forumMaster_KategoriReportId Int?
|
||||
Forum_Komentar Forum_Komentar? @relation(fields: [forum_KomentarId], references: [id])
|
||||
forum_KomentarId String?
|
||||
User User? @relation(fields: [userId], references: [id])
|
||||
userId String?
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 49 KiB |
BIN
public/aset/forum/logo.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 291 KiB After Width: | Height: | Size: 291 KiB |
BIN
public/donasi/image/58ac41fd-8f34-460c-83e2-3c12fba9f659.jpeg
Normal file
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 136 KiB |
BIN
public/file/3e554564-51d3-436e-b763-a06c9b1653fa.pdf
Normal file
BIN
public/investasi/dd6a6ed4-ca5c-46b5-b12e-c314420077ae.jpeg
Normal file
|
After Width: | Height: | Size: 274 KiB |
|
After Width: | Height: | Size: 7.4 KiB |
|
After Width: | Height: | Size: 94 KiB |
|
After Width: | Height: | Size: 7.6 KiB |
|
After Width: | Height: | Size: 7.4 KiB |
|
After Width: | Height: | Size: 7.6 KiB |
|
After Width: | Height: | Size: 57 KiB |
BIN
public/profile/foto/0d7763e6-6a57-4521-8ac6-2784e4241cd2.jpeg
Normal file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
public/profile/foto/186134d1-1ed2-4521-a696-82a8f0c924c8.jpeg
Normal file
|
After Width: | Height: | Size: 6.1 KiB |
BIN
public/profile/foto/1c0cf07a-1ada-4a50-a88e-af5675d6d541.png
Normal file
|
After Width: | Height: | Size: 103 KiB |
BIN
public/profile/foto/31510ea9-13ee-47b1-84f8-4ebd1413f9be.jpeg
Normal file
|
After Width: | Height: | Size: 6.1 KiB |
BIN
public/profile/foto/46c2413f-7b3d-4e55-b82f-31bab6d063b5.jpeg
Normal file
|
After Width: | Height: | Size: 9.7 KiB |
BIN
public/profile/foto/7cfc36fd-239e-48eb-80fc-3558c5169f5d.jpeg
Normal file
|
After Width: | Height: | Size: 6.1 KiB |
BIN
public/profile/foto/9e8d7468-ca2a-4d64-bf10-abfe4f31c660.jpeg
Normal file
|
After Width: | Height: | Size: 5.0 KiB |
BIN
public/profile/foto/dda719a4-b392-4c4d-90c5-5607a12eb51b.jpeg
Normal file
|
After Width: | Height: | Size: 5.0 KiB |
@@ -4,9 +4,9 @@ import { NextResponse } from "next/server";
|
||||
import { cookies } from "next/headers";
|
||||
import { sealData, unsealData } from "iron-session";
|
||||
import { getConfig } from "@/bin/config";
|
||||
import yaml from "yaml";
|
||||
import fs from "fs";
|
||||
import { revalidatePath } from "next/cache";
|
||||
import fs from "fs";
|
||||
import yaml from "yaml";
|
||||
const config = yaml.parse(fs.readFileSync("config.yaml").toString());
|
||||
|
||||
export async function POST(req: Request) {
|
||||
|
||||
@@ -19,6 +19,8 @@ import event_status from "../../../bin/seeder/event/master_status.json";
|
||||
import event_tipe_acara from "../../../bin/seeder/event/master_tipe_acara.json";
|
||||
import voting_status from "../../../bin/seeder/voting/master_status.json";
|
||||
import master_status from "../../../bin/seeder/master_status.json";
|
||||
import forum_kategori_report from "../../../bin/seeder/forum/master_report.json";
|
||||
import forum_status_posting from "../../../bin/seeder/forum/master_status.json";
|
||||
|
||||
export async function GET(req: Request) {
|
||||
const dev = new URL(req.url).searchParams.get("dev");
|
||||
@@ -39,23 +41,23 @@ export async function GET(req: Request) {
|
||||
});
|
||||
}
|
||||
|
||||
for (let i of userSeeder) {
|
||||
await prisma.user.upsert({
|
||||
where: {
|
||||
nomor: i.nomor,
|
||||
},
|
||||
create: {
|
||||
nomor: i.nomor,
|
||||
username: i.name,
|
||||
masterUserRoleId: i.masterUserRoleId,
|
||||
},
|
||||
update: {
|
||||
nomor: i.nomor,
|
||||
username: i.name,
|
||||
masterUserRoleId: i.masterUserRoleId,
|
||||
},
|
||||
});
|
||||
}
|
||||
// for (let i of userSeeder) {
|
||||
// await prisma.user.upsert({
|
||||
// where: {
|
||||
// nomor: i.nomor,
|
||||
// },
|
||||
// create: {
|
||||
// nomor: i.nomor,
|
||||
// username: i.name,
|
||||
// masterUserRoleId: i.masterUserRoleId,
|
||||
// },
|
||||
// update: {
|
||||
// nomor: i.nomor,
|
||||
// username: i.name,
|
||||
// masterUserRoleId: i.masterUserRoleId,
|
||||
// },
|
||||
// });
|
||||
// }
|
||||
|
||||
for (let i of bidangBisnis) {
|
||||
await prisma.masterBidangBisnis.upsert({
|
||||
@@ -328,6 +330,36 @@ export async function GET(req: Request) {
|
||||
});
|
||||
}
|
||||
|
||||
for (let m of forum_kategori_report) {
|
||||
await prisma.forumMaster_KategoriReport.upsert({
|
||||
where: {
|
||||
id: m.id as number,
|
||||
},
|
||||
create: {
|
||||
title: m.title,
|
||||
deskripsi: m.deskripsi,
|
||||
},
|
||||
update: {
|
||||
title: m.title,
|
||||
deskripsi: m.deskripsi,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
for (let s of forum_status_posting) {
|
||||
await prisma.forumMaster_StatusPosting.upsert({
|
||||
where: {
|
||||
id: s.id,
|
||||
},
|
||||
create: {
|
||||
status: s.status,
|
||||
},
|
||||
update: {
|
||||
status: s.status,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
return NextResponse.json({ success: true });
|
||||
}
|
||||
|
||||
|
||||
9
src/app/dev/admin/donasi/main/loading.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import ComponentAdminGlobal_LoadingPage from "@/app_modules/admin/component/loading_admin_page";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<ComponentAdminGlobal_LoadingPage />
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/admin/event/main/loading.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import ComponentAdminGlobal_LoadingPage from "@/app_modules/admin/component/loading_admin_page";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<ComponentAdminGlobal_LoadingPage />
|
||||
</>
|
||||
);
|
||||
}
|
||||
12
src/app/dev/admin/forum/child/publish/page.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import { AdminForum_TablePublish } from "@/app_modules/admin/forum";
|
||||
import { adminForum_getListPublish } from "@/app_modules/admin/forum/fun/get/get_list_publish";
|
||||
|
||||
export default async function Page() {
|
||||
const listPublish = await adminForum_getListPublish();
|
||||
|
||||
return (
|
||||
<>
|
||||
<AdminForum_TablePublish listPublish={listPublish as any} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/admin/forum/child/report-komentar/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { AdminForum_TableReportKomentar } from "@/app_modules/admin/forum";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<AdminForum_TableReportKomentar />
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/admin/forum/child/report-posting/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { AdminForum_TableReportPosting } from "@/app_modules/admin/forum";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<AdminForum_TableReportPosting />
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
import { AdminForum_LihatSemuaKomentar } from "@/app_modules/admin/forum";
|
||||
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 dataPosting = await adminForum_getOnePostingById(postingId);
|
||||
|
||||
return (
|
||||
<>
|
||||
<AdminForum_LihatSemuaKomentar
|
||||
listKomentar={listKomentar as any}
|
||||
dataPosting={dataPosting as any}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
13
src/app/dev/admin/forum/hasil-report/komentar/[id]/page.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
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} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
16
src/app/dev/admin/forum/hasil-report/posting/[id]/page.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import { AdminForum_HasilReportPosting } from "@/app_modules/admin/forum";
|
||||
import { adminForum_getListReportPostingById } from "@/app_modules/admin/forum/fun/get/get_list_report_posting_by_id";
|
||||
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
let postingId = params.id;
|
||||
const listReport = await adminForum_getListReportPostingById(postingId);
|
||||
|
||||
return (
|
||||
<>
|
||||
<AdminForum_HasilReportPosting
|
||||
postingId={postingId}
|
||||
listReport={listReport}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/admin/forum/main/loading.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import ComponentAdminGlobal_LoadingPage from "@/app_modules/admin/component/loading_admin_page";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<ComponentAdminGlobal_LoadingPage />
|
||||
</>
|
||||
);
|
||||
}
|
||||
23
src/app/dev/admin/forum/main/page.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
import { AdminForum_Main } from "@/app_modules/admin/forum";
|
||||
import { adminForum_countLaporanKomentar } from "@/app_modules/admin/forum/fun/count/fun_count_laporan_komentar";
|
||||
import { adminForum_countLaporanPosting } from "@/app_modules/admin/forum/fun/count/fun_count_laporan_posting";
|
||||
import { adminForum_countPublish } from "@/app_modules/admin/forum/fun/count/fun_count_publish";
|
||||
|
||||
export default async function Page() {
|
||||
// await new Promise((a, b) => {
|
||||
// setTimeout(a, 4000);
|
||||
// });
|
||||
const countPublish = await adminForum_countPublish();
|
||||
const countLaporanPosting = await adminForum_countLaporanPosting()
|
||||
const countLaporanKomentar = await adminForum_countLaporanKomentar();
|
||||
|
||||
return (
|
||||
<>
|
||||
<AdminForum_Main
|
||||
countPublish={countPublish}
|
||||
countLaporanPosting={countLaporanPosting}
|
||||
countLaporanKomentar={countLaporanKomentar}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/admin/job/main/loading.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import ComponentAdminGlobal_LoadingPage from "@/app_modules/admin/component/loading_admin_page";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<ComponentAdminGlobal_LoadingPage />
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/admin/main/dashboard/loading.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import ComponentAdminGlobal_LoadingPage from "@/app_modules/admin/component/loading_admin_page";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<ComponentAdminGlobal_LoadingPage />
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/admin/vote/main/loading.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import ComponentAdminGlobal_LoadingPage from "@/app_modules/admin/component/loading_admin_page";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<ComponentAdminGlobal_LoadingPage />
|
||||
</>
|
||||
);
|
||||
}
|
||||
14
src/app/dev/auth/login/layout.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { LayoutLogin } from "@/app_modules/auth";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<LayoutLogin>{children}</LayoutLogin>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -3,12 +3,10 @@ import { cookies } from "next/headers";
|
||||
|
||||
export default function Page() {
|
||||
const c = cookies().getAll();
|
||||
const tkn = c;
|
||||
|
||||
return (
|
||||
<>
|
||||
{/* {JSON.stringify(tkn)} */}
|
||||
<Login />;
|
||||
<Login />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
8
src/app/dev/auth/register/[id]/page.tsx
Normal file
@@ -0,0 +1,8 @@
|
||||
import { Register } from "@/app_modules/auth";
|
||||
import { auth_getKodeOtpById } from "@/app_modules/auth/fun/get_kode_otp_by_id";
|
||||
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
let otpId = params.id
|
||||
const dataOtp = await auth_getKodeOtpById(otpId)
|
||||
return <Register dataOtp={dataOtp} />;
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
import { Register } from "@/app_modules/auth";
|
||||
|
||||
export default function Page() {
|
||||
return <Register />;
|
||||
}
|
||||
9
src/app/dev/auth/validasi/[id]/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Validasi } from "@/app_modules/auth";
|
||||
import { auth_getKodeOtpById } from "@/app_modules/auth/fun/get_kode_otp_by_id";
|
||||
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
let kodeOtpId = params.id;
|
||||
const dataOtp = await auth_getKodeOtpById(kodeOtpId);
|
||||
|
||||
return <Validasi dataOtp={dataOtp} />;
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
import { Validasi } from "@/app_modules/auth";
|
||||
|
||||
|
||||
export default function Page() {
|
||||
|
||||
return <Validasi />;
|
||||
}
|
||||
14
src/app/dev/colab/create/layout.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { LayoutColab_Create } from "@/app_modules/colab";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<LayoutColab_Create>{children}</LayoutColab_Create>
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/colab/create/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Colab_Create } from "@/app_modules/colab";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<Colab_Create />
|
||||
</>
|
||||
);
|
||||
}
|
||||
14
src/app/dev/colab/detail/grup/[id]/layout.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { LayoutColab_DetailGrupDiskusi } from "@/app_modules/colab";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<LayoutColab_DetailGrupDiskusi>{children}</LayoutColab_DetailGrupDiskusi>
|
||||
</>
|
||||
);
|
||||
}
|
||||
7
src/app/dev/colab/detail/grup/[id]/page.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import { Colab_DetailGrupDiskusi } from "@/app_modules/colab";
|
||||
|
||||
export default async function Page() {
|
||||
return<>
|
||||
<Colab_DetailGrupDiskusi/>
|
||||
</>
|
||||
}
|
||||
14
src/app/dev/colab/detail/main_detail/[id]/layout.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { LayoutColab_MainDetail } from "@/app_modules/colab";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<LayoutColab_MainDetail>{children}</LayoutColab_MainDetail>
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/colab/detail/main_detail/[id]/loading.tsx
Normal 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 />
|
||||
</>
|
||||
);
|
||||
}
|
||||
13
src/app/dev/colab/detail/main_detail/[id]/page.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Colab_MainDetail } from "@/app_modules/colab";
|
||||
import { User_getUserId } from "@/app_modules/fun_global/get_user_token";
|
||||
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
let colabId = params.id
|
||||
const userLoginId = await User_getUserId()
|
||||
|
||||
return (
|
||||
<>
|
||||
<Colab_MainDetail />
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import { LayoutColab_DetailPartisipasiProyek } from "@/app_modules/colab";
|
||||
|
||||
export default async function Layout({ children }: { children: any }) {
|
||||
return (
|
||||
<>
|
||||
<LayoutColab_DetailPartisipasiProyek>{children}</LayoutColab_DetailPartisipasiProyek>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import { Colab_DetailPartisipasiProyek } from "@/app_modules/colab";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<Colab_DetailPartisipasiProyek />
|
||||
</>
|
||||
);
|
||||
}
|
||||
15
src/app/dev/colab/detail/status/publish/[id]/layout.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
import { LayoutColab_DetailStatusPublish } from "@/app_modules/colab";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<LayoutColab_DetailStatusPublish>{children}</LayoutColab_DetailStatusPublish>
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/colab/detail/status/publish/[id]/loading.tsx
Normal 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 />
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/colab/detail/status/publish/[id]/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Colab_DetailStatusPublish } from "@/app_modules/colab";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<Colab_DetailStatusPublish />
|
||||
</>
|
||||
);
|
||||
}
|
||||
16
src/app/dev/colab/detail/status/reject/[id]/layout.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import { LayoutColab_DetailStatusReject } from "@/app_modules/colab";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<LayoutColab_DetailStatusReject>
|
||||
{children}
|
||||
</LayoutColab_DetailStatusReject>
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/colab/detail/status/reject/[id]/loading.tsx
Normal 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 />
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/colab/detail/status/reject/[id]/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Colab_DetailStatusReject } from "@/app_modules/colab";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<Colab_DetailStatusReject />
|
||||
</>
|
||||
);
|
||||
}
|
||||
16
src/app/dev/colab/detail/status/review/[id]/layout.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import { LayoutColab_DetailStatusReview } from "@/app_modules/colab";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<LayoutColab_DetailStatusReview>
|
||||
{children}
|
||||
</LayoutColab_DetailStatusReview>
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/colab/detail/status/review/[id]/loading.tsx
Normal 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 />
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/colab/detail/status/review/[id]/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Colab_DetailStatusReview } from "@/app_modules/colab";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<Colab_DetailStatusReview />
|
||||
</>
|
||||
);
|
||||
}
|
||||
14
src/app/dev/colab/edit/[id]/layout.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { LayoutColab_Edit } from "@/app_modules/colab";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<LayoutColab_Edit>{children}</LayoutColab_Edit>
|
||||
</>
|
||||
);
|
||||
}
|
||||
7
src/app/dev/colab/edit/[id]/page.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import { Colab_Edit } from "@/app_modules/colab";
|
||||
|
||||
export default async function Page(){
|
||||
return<>
|
||||
<Colab_Edit/>
|
||||
</>
|
||||
}
|
||||
9
src/app/dev/colab/main/beranda/loading.tsx
Normal 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 />
|
||||
</>
|
||||
);
|
||||
}
|
||||
7
src/app/dev/colab/main/beranda/page.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import { Colab_Beranda } from "@/app_modules/colab";
|
||||
|
||||
export default async function Page() {
|
||||
return<>
|
||||
<Colab_Beranda/>
|
||||
</>
|
||||
}
|
||||
9
src/app/dev/colab/main/grup/loading.tsx
Normal 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 />
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/colab/main/grup/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import Colab_GrupDiskus from "@/app_modules/colab/main/grup";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<Colab_GrupDiskus />
|
||||
</>
|
||||
);
|
||||
}
|
||||
14
src/app/dev/colab/main/layout.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { LayoutColab_Main } from "@/app_modules/colab";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<LayoutColab_Main>{children}</LayoutColab_Main>
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/colab/main/proyek/loading.tsx
Normal 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 />
|
||||
</>
|
||||
);
|
||||
}
|
||||
10
src/app/dev/colab/main/proyek/page.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import { Colab_Proyek } from "@/app_modules/colab";
|
||||
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<Colab_Proyek />
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/colab/main/status/loading.tsx
Normal 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 />
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/colab/main/status/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Colab_Status } from "@/app_modules/colab";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<Colab_Status />
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/colab/splash/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Colab_Splash } from "@/app_modules/colab";
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<Colab_Splash />
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/event/main/loading.tsx
Normal 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 />
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/event/splash/loading.tsx
Normal 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 />
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,5 +1,8 @@
|
||||
import { Event_SplashScreen } from "@/app_modules/event";
|
||||
|
||||
export default async function Page() {
|
||||
// await new Promise((a, b) => {
|
||||
// setTimeout(a, 1000);
|
||||
// });
|
||||
return <Event_SplashScreen />;
|
||||
}
|
||||
|
||||
14
src/app/dev/forum/create/layout.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { LayoutForum_Create } from "@/app_modules/forum";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<LayoutForum_Create>{children}</LayoutForum_Create>
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/forum/create/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Forum_Create } from "@/app_modules/forum";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<Forum_Create />
|
||||
</>
|
||||
);
|
||||
}
|
||||
14
src/app/dev/forum/detail/[id]/layout.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import LayoutForum_Detail from "@/app_modules/forum/detail/layout";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<LayoutForum_Detail>{children}</LayoutForum_Detail>
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/forum/detail/[id]/loading.tsx
Normal 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 />
|
||||
</>
|
||||
);
|
||||
}
|
||||
26
src/app/dev/forum/detail/[id]/page.tsx
Normal file
@@ -0,0 +1,26 @@
|
||||
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)
|
||||
|
||||
|
||||
return (
|
||||
<>
|
||||
<Forum_Detail
|
||||
dataPosting={dataPosting as any}
|
||||
listKomentar={listKomentar as any}
|
||||
totalKomentar={totalKomentar}
|
||||
userLoginId={userLoginId}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
14
src/app/dev/forum/edit/komentar/[id]/layout.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { LaoyoutForum_EditKomentar } from "@/app_modules/forum";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<LaoyoutForum_EditKomentar>{children}</LaoyoutForum_EditKomentar>
|
||||
</>
|
||||
);
|
||||
}
|
||||
10
src/app/dev/forum/edit/komentar/[id]/page.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import { Forum_EditKomentar } from "@/app_modules/forum";
|
||||
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
let komentarId = params.id;
|
||||
return (
|
||||
<>
|
||||
<Forum_EditKomentar />
|
||||
</>
|
||||
);
|
||||
}
|
||||
15
src/app/dev/forum/edit/posting/[id]/layout.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
import { LayoutForum_EditPosting } from "@/app_modules/forum";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<LayoutForum_EditPosting>{children}</LayoutForum_EditPosting>
|
||||
</>
|
||||
);
|
||||
}
|
||||
13
src/app/dev/forum/edit/posting/[id]/page.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Forum_EditPosting } from "@/app_modules/forum";
|
||||
import { forum_getOnePostingById } from "@/app_modules/forum/fun/get/get_one_posting_by_id";
|
||||
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
let postingId = params.id;
|
||||
const dataPosting = await forum_getOnePostingById(postingId)
|
||||
|
||||
return (
|
||||
<>
|
||||
<Forum_EditPosting dataPosting={dataPosting as any} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
23
src/app/dev/forum/forumku/[id]/layout.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
import { LayoutForum_Forumku } from "@/app_modules/forum";
|
||||
import { User_getUserId } from "@/app_modules/fun_global/get_user_token";
|
||||
import { user_getOneById } from "@/app_modules/home/fun/get/get_one_user_by_id";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
children,
|
||||
params,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
params: { id: string };
|
||||
}) {
|
||||
const authorId = params.id;
|
||||
const dataAuthor = await user_getOneById(authorId);
|
||||
|
||||
return (
|
||||
<>
|
||||
<LayoutForum_Forumku username={dataAuthor?.username as any}>
|
||||
{children}
|
||||
</LayoutForum_Forumku>
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/forum/forumku/[id]/loading.tsx
Normal 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 />
|
||||
</>
|
||||
);
|
||||
}
|
||||
44
src/app/dev/forum/forumku/[id]/page.tsx
Normal file
@@ -0,0 +1,44 @@
|
||||
import { Forum_Forumku } from "@/app_modules/forum";
|
||||
import { forum_getListPostingByAuhtorId } 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_getUserId } from "@/app_modules/fun_global/get_user_token";
|
||||
import { user_getOneById } from "@/app_modules/home/fun/get/get_one_user_by_id";
|
||||
import _ from "lodash";
|
||||
import { forum_countPostingByAuthorId } from "@/app_modules/forum/fun/count/count_posting_by_author_id";
|
||||
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
const authorId = params.id;
|
||||
const userLoginId = await User_getUserId()
|
||||
const dataAuthor = await user_getOneById(authorId);
|
||||
const auhtorSelectedData = _.omit(dataAuthor, [
|
||||
"Profile.email",
|
||||
"Profile.alamat",
|
||||
"Profile.jenisKelamin",
|
||||
"Profile.createdAt",
|
||||
"Profile.updatedAt",
|
||||
"Profile.imagesBackgroundId",
|
||||
]);
|
||||
// console.log(dataAuthor)
|
||||
// console.log(auhtorSelectedData)
|
||||
|
||||
// await new Promise((a, b) => {
|
||||
// setTimeout(a, 1000);
|
||||
// });
|
||||
|
||||
|
||||
|
||||
const dataPosting = await forum_getListPostingByAuhtorId(authorId);
|
||||
const totalPosting = await forum_countPostingByAuthorId(authorId);
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
<Forum_Forumku
|
||||
auhtorSelectedData={auhtorSelectedData as any}
|
||||
dataPosting={dataPosting as any}
|
||||
totalPosting={totalPosting}
|
||||
userLoginId={userLoginId as any}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
8
src/app/dev/forum/komentar/[id]/layout.tsx
Normal file
@@ -0,0 +1,8 @@
|
||||
import { LayoutForum_Komentar } from "@/app_modules/forum";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({children}: {children: React.ReactNode}) {
|
||||
return<>
|
||||
<LayoutForum_Komentar>{children}</LayoutForum_Komentar>
|
||||
</>
|
||||
}
|
||||
18
src/app/dev/forum/komentar/[id]/page.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Forum_Komentar } from "@/app_modules/forum";
|
||||
import { forum_getOnePostingById } from "@/app_modules/forum/fun/get/get_one_posting_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 dataPosting = await forum_getOnePostingById(postingId);
|
||||
const userLoginId = await User_getUserId()
|
||||
|
||||
return (
|
||||
<>
|
||||
<Forum_Komentar
|
||||
dataPosting={dataPosting as any}
|
||||
userLoginId={userLoginId}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
19
src/app/dev/forum/main/layout.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import { LayoutForum_Main } from "@/app_modules/forum";
|
||||
import { User_getUserId } from "@/app_modules/fun_global/get_user_token";
|
||||
import { user_getOneById } from "@/app_modules/home/fun/get/get_one_user_by_id";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
const authorId = await User_getUserId();
|
||||
const dataAuthor = await user_getOneById(authorId);
|
||||
|
||||
return (
|
||||
<>
|
||||
<LayoutForum_Main dataAuthor={dataAuthor as any}>{children}</LayoutForum_Main>
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/forum/main/loading.tsx
Normal 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/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
17
src/app/dev/forum/main/page.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
import { Forum_Beranda } from "@/app_modules/forum";
|
||||
import { forum_getListAllPosting } from "@/app_modules/forum/fun/get/get_list_all_posting";
|
||||
import { User_getUserId } from "@/app_modules/fun_global/get_user_token";
|
||||
|
||||
export default async function Page() {
|
||||
const listForum = await forum_getListAllPosting();
|
||||
const userLoginId = await User_getUserId();
|
||||
return (
|
||||
<>
|
||||
<Forum_Beranda
|
||||
listForum={listForum as any}
|
||||
userLoginId={userLoginId}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
19
src/app/dev/forum/proyek/layout.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import ComponentColab_HeaderTamplate from "@/app_modules/colab/component/header_tamplate";
|
||||
import { AppShell } from "@mantine/core";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<AppShell
|
||||
header={<ComponentColab_HeaderTamplate title="Partisipasi Proyek" />}
|
||||
>
|
||||
{children}
|
||||
</AppShell>
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/forum/proyek/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Colab_PartisipasiProyek } from "@/app_modules/colab";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<Colab_PartisipasiProyek />
|
||||
</>
|
||||
);
|
||||
}
|
||||
14
src/app/dev/forum/report/komentar-lainnya/[id]/layout.tsx
Normal 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>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -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 />
|
||||
</>
|
||||
);
|
||||
}
|
||||
11
src/app/dev/forum/report/komentar-lainnya/[id]/page.tsx
Normal 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} />
|
||||
</>
|
||||
);
|
||||
}
|
||||