210
gen_api.ts
Normal file
@@ -0,0 +1,210 @@
|
||||
import app_config from "@/util/app_config";
|
||||
|
||||
export const gen_api = {
|
||||
/**
|
||||
* [/Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/test-scroll/route.ts](file:///Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/test-scroll/route.ts)
|
||||
*/
|
||||
testScroll : async ({isServer}: {isServer?: boolean}) => {
|
||||
|
||||
return fetch(`${isServer && app_config.host || ''}/api/test-scroll/`, { method: 'GET', cache: 'no-cache' })
|
||||
.then(res => res.json());
|
||||
}
|
||||
,
|
||||
/**
|
||||
* [/Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/seeder/route.ts](file:///Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/seeder/route.ts)
|
||||
*/
|
||||
seeder : async ({isServer}: {isServer?: boolean}) => {
|
||||
|
||||
return fetch(`${isServer && app_config.host || ''}/api/seeder/`, { method: 'GET', cache: 'no-cache' })
|
||||
.then(res => res.json());
|
||||
}
|
||||
,
|
||||
/**
|
||||
* [/Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/profile/url_foto/[url]/route.ts](file:///Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/profile/url_foto/[url]/route.ts)
|
||||
*/
|
||||
profileUrl_fotoUrlByUrl : async ({url, isServer}: {url: string, isServer?: boolean}) => {
|
||||
|
||||
return fetch(`${isServer && app_config.host || ''}/api/profile/url_foto/${url}/`, { method: 'GET', cache: 'no-cache' })
|
||||
.then(res => res.json());
|
||||
}
|
||||
,
|
||||
/**
|
||||
* [/Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/profile/url_background/[url]/route.ts](file:///Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/profile/url_background/[url]/route.ts)
|
||||
*/
|
||||
profileUrl_backgroundUrlByUrl : async ({url, isServer}: {url: string, isServer?: boolean}) => {
|
||||
|
||||
return fetch(`${isServer && app_config.host || ''}/api/profile/url_background/${url}/`, { method: 'GET', cache: 'no-cache' })
|
||||
.then(res => res.json());
|
||||
}
|
||||
,
|
||||
/**
|
||||
* [/Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/profile/foto/[id]/route.ts](file:///Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/profile/foto/[id]/route.ts)
|
||||
*/
|
||||
profileFotoIdById : async ({id, isServer}: {id: string, isServer?: boolean}) => {
|
||||
|
||||
return fetch(`${isServer && app_config.host || ''}/api/profile/foto/${id}/`, { method: 'GET', cache: 'no-cache' })
|
||||
.then(res => res.json());
|
||||
}
|
||||
,
|
||||
/**
|
||||
* [/Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/profile/background/[id]/route.ts](file:///Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/profile/background/[id]/route.ts)
|
||||
*/
|
||||
profileBackgroundIdById : async ({id, isServer}: {id: string, isServer?: boolean}) => {
|
||||
|
||||
return fetch(`${isServer && app_config.host || ''}/api/profile/background/${id}/`, { method: 'GET', cache: 'no-cache' })
|
||||
.then(res => res.json());
|
||||
}
|
||||
,
|
||||
/**
|
||||
* [/Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/portofolio/logo/[id]/route.ts](file:///Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/portofolio/logo/[id]/route.ts)
|
||||
*/
|
||||
portofolioLogoIdById : async ({id, isServer}: {id: string, isServer?: boolean}) => {
|
||||
|
||||
return fetch(`${isServer && app_config.host || ''}/api/portofolio/logo/${id}/`, { method: 'GET', cache: 'no-cache' })
|
||||
.then(res => res.json());
|
||||
}
|
||||
,
|
||||
/**
|
||||
* [/Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/job/gambar/[id]/route.ts](file:///Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/job/gambar/[id]/route.ts)
|
||||
*/
|
||||
jobGambarIdById : async ({id, isServer}: {id: string, isServer?: boolean}) => {
|
||||
|
||||
return fetch(`${isServer && app_config.host || ''}/api/job/gambar/${id}/`, { method: 'GET', cache: 'no-cache' })
|
||||
.then(res => res.json());
|
||||
}
|
||||
,
|
||||
/**
|
||||
* [/Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/investasi/prospektus/[id]/route.ts](file:///Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/investasi/prospektus/[id]/route.ts)
|
||||
*/
|
||||
investasiProspektusIdById : async ({id, isServer}: {id: string, isServer?: boolean}) => {
|
||||
|
||||
return fetch(`${isServer && app_config.host || ''}/api/investasi/prospektus/${id}/`, { method: 'GET', cache: 'no-cache' })
|
||||
.then(res => res.json());
|
||||
}
|
||||
,
|
||||
/**
|
||||
* [/Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/investasi/midtrans/[id]/route.ts](file:///Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/investasi/midtrans/[id]/route.ts)
|
||||
*/
|
||||
investasiMidtransIdById : async ({id, isServer}: {id: string, isServer?: boolean}) => {
|
||||
|
||||
return fetch(`${isServer && app_config.host || ''}/api/investasi/midtrans/${id}/`, { method: 'POST', cache: 'no-cache' })
|
||||
.then(res => res.json());
|
||||
}
|
||||
,
|
||||
/**
|
||||
* [/Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/investasi/gambar/[id]/route.ts](file:///Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/investasi/gambar/[id]/route.ts)
|
||||
*/
|
||||
investasiGambarIdById : async ({id, isServer}: {id: string, isServer?: boolean}) => {
|
||||
|
||||
return fetch(`${isServer && app_config.host || ''}/api/investasi/gambar/${id}/`, { method: 'GET', cache: 'no-cache' })
|
||||
.then(res => res.json());
|
||||
}
|
||||
,
|
||||
/**
|
||||
* [/Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/investasi/dokumen/[id]/route.ts](file:///Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/investasi/dokumen/[id]/route.ts)
|
||||
*/
|
||||
investasiDokumenIdById : async ({id, isServer}: {id: string, isServer?: boolean}) => {
|
||||
|
||||
return fetch(`${isServer && app_config.host || ''}/api/investasi/dokumen/${id}/`, { method: 'GET', cache: 'no-cache' })
|
||||
.then(res => res.json());
|
||||
}
|
||||
,
|
||||
/**
|
||||
* [/Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/donasi/image_cerita/[url]/route.ts](file:///Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/donasi/image_cerita/[url]/route.ts)
|
||||
*/
|
||||
donasiImage_ceritaUrlByUrl : async ({url, isServer}: {url: string, isServer?: boolean}) => {
|
||||
|
||||
return fetch(`${isServer && app_config.host || ''}/api/donasi/image_cerita/${url}/`, { method: 'GET', cache: 'no-cache' })
|
||||
.then(res => res.json());
|
||||
}
|
||||
,
|
||||
/**
|
||||
* [/Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/donasi/image/[url]/route.ts](file:///Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/donasi/image/[url]/route.ts)
|
||||
*/
|
||||
donasiImageUrlByUrl : async ({url, isServer}: {url: string, isServer?: boolean}) => {
|
||||
|
||||
return fetch(`${isServer && app_config.host || ''}/api/donasi/image/${url}/`, { method: 'GET', cache: 'no-cache' })
|
||||
.then(res => res.json());
|
||||
}
|
||||
,
|
||||
/**
|
||||
* [/Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/donasi/gambar_pencairan/[id]/route.ts](file:///Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/donasi/gambar_pencairan/[id]/route.ts)
|
||||
*/
|
||||
donasiGambar_pencairanIdById : async ({id, isServer}: {id: string, isServer?: boolean}) => {
|
||||
|
||||
return fetch(`${isServer && app_config.host || ''}/api/donasi/gambar_pencairan/${id}/`, { method: 'GET', cache: 'no-cache' })
|
||||
.then(res => res.json());
|
||||
}
|
||||
,
|
||||
/**
|
||||
* [/Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/donasi/gambar_kabar/[id]/route.ts](file:///Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/donasi/gambar_kabar/[id]/route.ts)
|
||||
*/
|
||||
donasiGambar_kabarIdById : async ({id, isServer}: {id: string, isServer?: boolean}) => {
|
||||
|
||||
return fetch(`${isServer && app_config.host || ''}/api/donasi/gambar_kabar/${id}/`, { method: 'GET', cache: 'no-cache' })
|
||||
.then(res => res.json());
|
||||
}
|
||||
,
|
||||
/**
|
||||
* [/Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/donasi/gambar_cerita/[id]/route.ts](file:///Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/donasi/gambar_cerita/[id]/route.ts)
|
||||
*/
|
||||
donasiGambar_ceritaIdById : async ({id, isServer}: {id: string, isServer?: boolean}) => {
|
||||
|
||||
return fetch(`${isServer && app_config.host || ''}/api/donasi/gambar_cerita/${id}/`, { method: 'GET', cache: 'no-cache' })
|
||||
.then(res => res.json());
|
||||
}
|
||||
,
|
||||
/**
|
||||
* [/Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/donasi/gambar_bukti_transfer/[id]/route.ts](file:///Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/donasi/gambar_bukti_transfer/[id]/route.ts)
|
||||
*/
|
||||
donasiGambar_bukti_transferIdById : async ({id, isServer}: {id: string, isServer?: boolean}) => {
|
||||
|
||||
return fetch(`${isServer && app_config.host || ''}/api/donasi/gambar_bukti_transfer/${id}/`, { method: 'GET', cache: 'no-cache' })
|
||||
.then(res => res.json());
|
||||
}
|
||||
,
|
||||
/**
|
||||
* [/Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/donasi/gambar/[id]/route.ts](file:///Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/donasi/gambar/[id]/route.ts)
|
||||
*/
|
||||
donasiGambarIdById : async ({id, isServer}: {id: string, isServer?: boolean}) => {
|
||||
|
||||
return fetch(`${isServer && app_config.host || ''}/api/donasi/gambar/${id}/`, { method: 'GET', cache: 'no-cache' })
|
||||
.then(res => res.json());
|
||||
}
|
||||
,
|
||||
/**
|
||||
* [/Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/auth/validasi/route.ts](file:///Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/auth/validasi/route.ts)
|
||||
*/
|
||||
authValidasi : async ({isServer}: {isServer?: boolean}) => {
|
||||
|
||||
return fetch(`${isServer && app_config.host || ''}/api/auth/validasi/`, { method: 'POST', cache: 'no-cache' })
|
||||
.then(res => res.json());
|
||||
}
|
||||
,
|
||||
/**
|
||||
* [/Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/auth/register/route.ts](file:///Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/auth/register/route.ts)
|
||||
*/
|
||||
authRegister : async ({isServer}: {isServer?: boolean}) => {
|
||||
|
||||
return fetch(`${isServer && app_config.host || ''}/api/auth/register/`, { method: 'POST', cache: 'no-cache' })
|
||||
.then(res => res.json());
|
||||
}
|
||||
,
|
||||
/**
|
||||
* [/Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/auth/logout/route.ts](file:///Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/auth/logout/route.ts)
|
||||
*/
|
||||
authLogout : async ({isServer}: {isServer?: boolean}) => {
|
||||
|
||||
return fetch(`${isServer && app_config.host || ''}/api/auth/logout/`, { method: 'GET', cache: 'no-cache' })
|
||||
.then(res => res.json());
|
||||
}
|
||||
,
|
||||
/**
|
||||
* [/Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/auth/login/route.ts](file:///Users/bagasbanuna/Documents/BIP/hipmi/src/app/api/auth/login/route.ts)
|
||||
*/
|
||||
authLogin : async ({isServer}: {isServer?: boolean}) => {
|
||||
|
||||
return fetch(`${isServer && app_config.host || ''}/api/auth/login/`, { method: 'POST', cache: 'no-cache' })
|
||||
.then(res => res.json());
|
||||
}
|
||||
};
|
||||
2431
gen_page.tsx
Normal file
12
package.json
@@ -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",
|
||||
@@ -30,12 +31,14 @@
|
||||
"@tiptap/pm": "^2.2.3",
|
||||
"@tiptap/react": "^2.2.3",
|
||||
"@tiptap/starter-kit": "^2.2.3",
|
||||
"@types/lodash": "^4.14.199",
|
||||
"@types/lodash": "^4.17.4",
|
||||
"@types/node": "20.4.5",
|
||||
"@types/react": "18.2.17",
|
||||
"@types/react-dom": "18.2.7",
|
||||
"@types/react-virtualized": "^9.21.30",
|
||||
"@types/uuid": "^9.0.4",
|
||||
"autoprefixer": "10.4.14",
|
||||
"bufferutil": "^4.0.8",
|
||||
"dayjs": "^1.11.10",
|
||||
"echarts": "^5.4.3",
|
||||
"echarts-for-react": "^3.0.2",
|
||||
@@ -47,19 +50,26 @@
|
||||
"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-easy-infinite-scroll-hook": "^2.1.4",
|
||||
"react-fast-marquee": "^1.6.4",
|
||||
"react-icons": "^5.0.1",
|
||||
"react-infinite-scroll-component": "^6.1.0",
|
||||
"react-international-phone": "^4.2.6",
|
||||
"react-quill": "^2.0.0",
|
||||
"react-responsive-carousel": "^3.2.23",
|
||||
"react-simple-toasts": "^5.10.0",
|
||||
"react-toastify": "^9.1.3",
|
||||
"react-virtualized": "^9.22.5",
|
||||
"socket.io-client": "^4.7.2",
|
||||
"tailwindcss": "3.3.3",
|
||||
"typescript": "5.1.6",
|
||||
"utf-8-validate": "^6.0.3",
|
||||
"uuid": "^9.0.1",
|
||||
"yaml": "^2.3.2"
|
||||
}
|
||||
|
||||
@@ -12,26 +12,37 @@ 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[]
|
||||
ProjectCollaboration ProjectCollaboration[]
|
||||
ProjectCollaboration_Partisipasi ProjectCollaboration_Partisipasi[]
|
||||
ProjectCollaboration_RoomChat ProjectCollaboration_RoomChat[]
|
||||
ProjectCollaboration_AnggotaRoomChat ProjectCollaboration_AnggotaRoomChat[]
|
||||
ProjectCollaboration_Message ProjectCollaboration_Message[]
|
||||
AdminProjectCollaboration_Notifikasi ProjectCollaboration_Notifikasi[] @relation("AdminNotifProjectToUser")
|
||||
UserProjectCollaboration_Notifikasi ProjectCollaboration_Notifikasi[] @relation("UserNotifProjectToUser")
|
||||
}
|
||||
|
||||
model MasterUserRole {
|
||||
@@ -54,6 +65,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 +124,7 @@ model ImagesBackground {
|
||||
|
||||
model Portofolio {
|
||||
id String @id @default(cuid())
|
||||
id_Portofolio String @unique
|
||||
namaBisnis String
|
||||
alamatKantor String
|
||||
tlpn String
|
||||
@@ -625,3 +646,195 @@ 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?
|
||||
}
|
||||
|
||||
// ========================================= PROJECT COLLABORATION ========================================= //
|
||||
|
||||
model ProjectCollaboration {
|
||||
id String @id @default(cuid())
|
||||
isActive Boolean @default(true)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
title String
|
||||
lokasi String
|
||||
purpose String @db.Text
|
||||
benefit String? @db.Text
|
||||
isReject Boolean? @default(false)
|
||||
report String?
|
||||
// jumlah_partisipan Int @default(0)
|
||||
|
||||
ProjectCollaborationMaster_Industri ProjectCollaborationMaster_Industri? @relation(fields: [projectCollaborationMaster_IndustriId], references: [id])
|
||||
projectCollaborationMaster_IndustriId Int?
|
||||
Author User? @relation(fields: [userId], references: [id])
|
||||
userId String?
|
||||
ProjectCollaborationMaster_Status ProjectCollaborationMaster_Status? @relation(fields: [projectCollaborationMaster_StatusId], references: [id])
|
||||
projectCollaborationMaster_StatusId Int? @default(1)
|
||||
ProjectCollaboration_Partisipasi ProjectCollaboration_Partisipasi[]
|
||||
ProjectCollaboration_RoomChat ProjectCollaboration_RoomChat[]
|
||||
ProjectCollaboration_Notifikasi ProjectCollaboration_Notifikasi[]
|
||||
}
|
||||
|
||||
model ProjectCollaborationMaster_Industri {
|
||||
id Int @id @default(autoincrement())
|
||||
isActive Boolean @default(true)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
name String
|
||||
|
||||
ProjectCollaboration ProjectCollaboration[]
|
||||
}
|
||||
|
||||
model ProjectCollaborationMaster_Status {
|
||||
id Int @id @default(autoincrement())
|
||||
name String
|
||||
isActive Boolean @default(true)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
ProjectCollaboration ProjectCollaboration[]
|
||||
}
|
||||
|
||||
model ProjectCollaboration_Partisipasi {
|
||||
id String @id @default(cuid())
|
||||
isActive Boolean @default(true)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
User User? @relation(fields: [userId], references: [id])
|
||||
userId String?
|
||||
ProjectCollaboration ProjectCollaboration? @relation(fields: [projectCollaborationId], references: [id])
|
||||
projectCollaborationId String?
|
||||
deskripsi_diri String
|
||||
}
|
||||
|
||||
model ProjectCollaboration_RoomChat {
|
||||
id String @id @default(cuid())
|
||||
name String
|
||||
isActive Boolean @default(true)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
Author User? @relation(fields: [userId], references: [id])
|
||||
userId String?
|
||||
|
||||
ProjectCollaboration ProjectCollaboration? @relation(fields: [projectCollaborationId], references: [id])
|
||||
projectCollaborationId String?
|
||||
ProjectCollaboration_AnggotaRoomChat ProjectCollaboration_AnggotaRoomChat[]
|
||||
ProjectCollaboration_Message ProjectCollaboration_Message[]
|
||||
}
|
||||
|
||||
model ProjectCollaboration_AnggotaRoomChat {
|
||||
id String @id @default(cuid())
|
||||
isActive Boolean @default(true)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
User User @relation(fields: [userId], references: [id])
|
||||
userId String
|
||||
ProjectCollaboration_RoomChat ProjectCollaboration_RoomChat? @relation(fields: [projectCollaboration_RoomChatId], references: [id])
|
||||
projectCollaboration_RoomChatId String?
|
||||
}
|
||||
|
||||
model ProjectCollaboration_Message {
|
||||
id String @id @default(cuid())
|
||||
isActive Boolean @default(true)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
message String
|
||||
isFile Boolean? @default(false)
|
||||
User User? @relation(fields: [userId], references: [id])
|
||||
userId String?
|
||||
ProjectCollaboration_RoomChat ProjectCollaboration_RoomChat? @relation(fields: [projectCollaboration_RoomChatId], references: [id])
|
||||
projectCollaboration_RoomChatId String?
|
||||
}
|
||||
|
||||
model ProjectCollaboration_Notifikasi {
|
||||
id String @id @default(cuid())
|
||||
isActive Boolean @default(true)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
isRead Boolean @default(false)
|
||||
note String?
|
||||
ProjectCollaboration ProjectCollaboration? @relation(fields: [projectCollaborationId], references: [id])
|
||||
projectCollaborationId String
|
||||
AdminId User @relation("AdminNotifProjectToUser", fields: [adminId], references: [id], map: "AdminNotifProjectUser")
|
||||
adminId String
|
||||
User User @relation("UserNotifProjectToUser", fields: [userId], references: [id], map: "UserNotifProjectUser")
|
||||
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 |
BIN
public/donasi/image/a709e395-d56e-4101-bae4-9d535c8464b9.jpg
Normal file
|
After Width: | Height: | Size: 136 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 136 KiB |
BIN
public/file/3b4b9575-b5c9-422a-b1cc-605ed6ce61a3.pdf
Normal file
BIN
public/file/3e554564-51d3-436e-b763-a06c9b1653fa.pdf
Normal file
BIN
public/file/7be86df1-64ec-457f-b6dd-4768262ade8f.pdf
Normal file
BIN
public/investasi/9ba9ec4d-f287-40e7-9163-af306ce97188.jpeg
Normal file
|
After Width: | Height: | Size: 9.2 KiB |
BIN
public/investasi/dd6a6ed4-ca5c-46b5-b12e-c314420077ae.jpeg
Normal file
|
After Width: | Height: | Size: 274 KiB |
BIN
public/investasi/e00ed6c8-d61c-4fb9-9488-cea776702644.jpeg
Normal file
|
After Width: | Height: | Size: 7.1 KiB |
BIN
public/job/0b5b73b1-9eef-46e2-9e68-3912b8560365.jpg
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
BIN
public/job/8fbf6297-3671-4d2e-baf1-54b3a1fcc95f.jpg
Normal file
|
After Width: | Height: | Size: 110 KiB |
BIN
public/job/df04072d-fac0-4551-9ee1-da8105fa4901.png
Normal file
|
After Width: | Height: | Size: 6.4 KiB |
BIN
public/portofolio/logo/27f1b4f7-0574-472f-97cf-91aeb038c938.png
Normal file
|
After Width: | Height: | Size: 5.1 KiB |
BIN
public/portofolio/logo/28044834-3da4-4e83-a6dc-e012e5f23c8f.png
Normal file
|
After Width: | Height: | Size: 5.1 KiB |
BIN
public/portofolio/logo/3eee1fdc-7d42-4478-842c-2a386ce40be4.png
Normal file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
public/portofolio/logo/5fc311b4-8a01-4385-a87d-87d1a3953d88.png
Normal file
|
After Width: | Height: | Size: 5.1 KiB |
BIN
public/portofolio/logo/869458f1-44ce-4075-a7c8-4c85f85c4664.png
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
BIN
public/portofolio/logo/a8b687db-75f3-4087-bf8a-b8e4c9f0a748.jpg
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
BIN
public/portofolio/logo/bd2c3ce3-e94d-4309-ac48-6fbaa2f72c66.png
Normal file
|
After Width: | Height: | Size: 5.1 KiB |
BIN
public/portofolio/logo/ddb0dced-949e-4601-9e35-45dce4a801c6.png
Normal file
|
After Width: | Height: | Size: 5.1 KiB |
BIN
public/portofolio/logo/e3a15736-527c-4b3c-a730-074fa44a48ed.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
public/portofolio/logo/fb7ee37b-6407-46a7-8691-92b24694edb0.png
Normal file
|
After Width: | Height: | Size: 6.4 KiB |
|
After Width: | Height: | Size: 7.4 KiB |
|
After Width: | Height: | Size: 5.5 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: 7.5 KiB |
|
After Width: | Height: | Size: 5.5 KiB |
|
After Width: | Height: | Size: 7.4 KiB |
|
After Width: | Height: | Size: 7.6 KiB |
|
After Width: | Height: | Size: 7.5 KiB |
|
After Width: | Height: | Size: 94 KiB |
|
After Width: | Height: | Size: 7.7 KiB |
|
After Width: | Height: | Size: 7.6 KiB |
|
After Width: | Height: | Size: 7.7 KiB |
|
After Width: | Height: | Size: 7.4 KiB |
|
After Width: | Height: | Size: 7.4 KiB |
|
After Width: | Height: | Size: 9.0 KiB |
|
After Width: | Height: | Size: 7.6 KiB |
|
After Width: | Height: | Size: 7.5 KiB |
|
After Width: | Height: | Size: 7.7 KiB |
|
After Width: | Height: | Size: 7.5 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/0ebe8c38-ded7-4faa-b944-769e6bb254a6.jpeg
Normal file
|
After Width: | Height: | Size: 6.1 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/2ab67615-039d-4ef2-98ad-f1573eaf9125.jpeg
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
BIN
public/profile/foto/2b25412b-0bcd-4608-aa48-ed0eb34a1dc1.jpeg
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
BIN
public/profile/foto/2c10a620-4222-43bc-886e-2f317de4711c.jpeg
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
BIN
public/profile/foto/2d677fbd-29dd-4930-a112-82c4e111e5dc.jpeg
Normal file
|
After Width: | Height: | Size: 4.7 KiB |
BIN
public/profile/foto/31510ea9-13ee-47b1-84f8-4ebd1413f9be.jpeg
Normal file
|
After Width: | Height: | Size: 6.1 KiB |
BIN
public/profile/foto/36449b63-8e7d-4c01-9d61-031ff38650f4.jpeg
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
BIN
public/profile/foto/46c2413f-7b3d-4e55-b82f-31bab6d063b5.jpeg
Normal file
|
After Width: | Height: | Size: 9.7 KiB |
BIN
public/profile/foto/51b1addd-2e15-409e-8f72-388dc1cc1c2e.jpeg
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
BIN
public/profile/foto/556f1bcf-7c36-4f57-b840-838c5ceca4fb.jpeg
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
BIN
public/profile/foto/577ce4f3-ab43-4264-bbf5-2552bc22ae45.jpeg
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
BIN
public/profile/foto/5bb79d2d-c5bc-4886-af9c-90546edcd944.jpeg
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
BIN
public/profile/foto/6d96d9c1-c5fd-452a-96ad-ff626918460b.jpeg
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
BIN
public/profile/foto/7cfc36fd-239e-48eb-80fc-3558c5169f5d.jpeg
Normal file
|
After Width: | Height: | Size: 6.1 KiB |
BIN
public/profile/foto/86585f77-3e32-417f-a414-22ea6858e3fd.jpeg
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
BIN
public/profile/foto/89e12784-3361-4033-9212-ec8758c30032.jpeg
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
BIN
public/profile/foto/994ecb8e-59f6-43b7-a4ea-e14d8e441200.jpeg
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
BIN
public/profile/foto/9d993366-a1d1-4de6-a54d-c6b6e57c2eb3.jpeg
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
BIN
public/profile/foto/9e8d7468-ca2a-4d64-bf10-abfe4f31c660.jpeg
Normal file
|
After Width: | Height: | Size: 5.0 KiB |
BIN
public/profile/foto/ae45dd05-9851-44bc-9ea8-c305b4b731da.jpeg
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
BIN
public/profile/foto/b70e11f8-4f49-4f54-a2c6-b8752800fcba.jpeg
Normal file
|
After Width: | Height: | Size: 4.7 KiB |
BIN
public/profile/foto/bfd2132b-493e-4d1e-bc4b-808937ac4b7e.jpeg
Normal file
|
After Width: | Height: | Size: 4.7 KiB |
BIN
public/profile/foto/cdd53255-0937-41c4-a47e-bc60b8a873ce.jpeg
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
BIN
public/profile/foto/d40b5363-d94b-4cf0-8190-2426124a694f.jpeg
Normal file
|
After Width: | Height: | Size: 9.7 KiB |
BIN
public/profile/foto/d9e798e1-be4c-446b-8c82-1cabf8662bc8.jpeg
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
BIN
public/profile/foto/dda719a4-b392-4c4d-90c5-5607a12eb51b.jpeg
Normal file
|
After Width: | Height: | Size: 5.0 KiB |
BIN
public/profile/foto/ffdbacbe-131a-4790-b500-9cf256452083.jpeg
Normal file
|
After Width: | Height: | Size: 6.3 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,12 @@ 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";
|
||||
import collaboration_industri from "../../../bin/seeder/colab/master_industri.json";
|
||||
import collaboration_status from "../../../bin/seeder/colab/master_status.json";
|
||||
import collaboration_jumlah_minimal_room from "../../../bin/seeder/colab/jumlah_minimal_room.json";
|
||||
import { randomId } from "@mantine/hooks";
|
||||
|
||||
export async function GET(req: Request) {
|
||||
const dev = new URL(req.url).searchParams.get("dev");
|
||||
@@ -328,6 +334,64 @@ 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,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
for (let p of collaboration_industri) {
|
||||
await prisma.projectCollaborationMaster_Industri.upsert({
|
||||
where: {
|
||||
id: p.id,
|
||||
},
|
||||
create: {
|
||||
name: p.name,
|
||||
},
|
||||
update: {
|
||||
name: p.name,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
for (let p of collaboration_status) {
|
||||
await prisma.projectCollaborationMaster_Status.upsert({
|
||||
where: {
|
||||
id: p.id,
|
||||
},
|
||||
create: {
|
||||
name: p.name,
|
||||
},
|
||||
update: {
|
||||
name: p.name,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
return NextResponse.json({ success: true });
|
||||
}
|
||||
|
||||
|
||||
12
src/app/api/test-scroll/route.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import prisma from "@/app/lib/prisma";
|
||||
|
||||
export async function GET(req: Request) {
|
||||
const page = new URL(req.url).searchParams.get("page");
|
||||
if (!page) return new Response("page require", { status: 400 });
|
||||
const res = await prisma.projectCollaboration_Message.findMany({
|
||||
take: 5,
|
||||
skip: +page * 5 - 5,
|
||||
});
|
||||
|
||||
// return Response.json(res);
|
||||
}
|
||||
@@ -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 />
|
||||
|
||||
9
src/app/dev/admin/colab/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 />
|
||||
</>
|
||||
);
|
||||
}
|
||||
20
src/app/dev/admin/colab/dashboard/page.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
import { AdminColab_Dashboard } from "@/app_modules/admin/colab";
|
||||
import adminColab_countGroupChat from "@/app_modules/admin/colab/fun/count/count_group_chat";
|
||||
import adminColab_countIsPublish from "@/app_modules/admin/colab/fun/count/count_publish";
|
||||
import adminColab_countIsReject from "@/app_modules/admin/colab/fun/count/count_reject";
|
||||
|
||||
export default async function Page() {
|
||||
const countPublish = await adminColab_countIsPublish();
|
||||
const countRoom = await adminColab_countGroupChat();
|
||||
const countReject = await adminColab_countIsReject()
|
||||
|
||||
return (
|
||||
<>
|
||||
<AdminColab_Dashboard
|
||||
countPublish={countPublish}
|
||||
countRoom={countRoom}
|
||||
countReject={countReject}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
12
src/app/dev/admin/colab/sub-menu/group/page.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import { AdminColab_TableGroup } from "@/app_modules/admin/colab";
|
||||
import adminColab_getListAllGroupChat from "@/app_modules/admin/colab/fun/get/get_list_all_group_chat";
|
||||
|
||||
export default async function Page() {
|
||||
const listGroup = await adminColab_getListAllGroupChat({page: 1})
|
||||
|
||||
return (
|
||||
<>
|
||||
<AdminColab_TableGroup listGroup={listGroup as any} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/admin/colab/sub-menu/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/colab/sub-menu/publish/page.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import { AdminColab_TablePublish } from "@/app_modules/admin/colab";
|
||||
import adminColab_getListAllPublish from "@/app_modules/admin/colab/fun/get/get_list_all_publish";
|
||||
|
||||
export default async function Page() {
|
||||
const listData = await adminColab_getListAllPublish({ page: 1 });
|
||||
|
||||
return (
|
||||
<>
|
||||
<AdminColab_TablePublish listData={listData} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
12
src/app/dev/admin/colab/sub-menu/reject/page.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import { AdminColab_TableRejected } from "@/app_modules/admin/colab";
|
||||
import adminColab_getListAllRejected from "@/app_modules/admin/colab/fun/get/get_list_all_reject";
|
||||
|
||||
export default async function Page() {
|
||||
const listReject = await adminColab_getListAllRejected({page: 1})
|
||||
|
||||
return (
|
||||
<>
|
||||
<AdminColab_TableRejected listReject={listReject as any} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/admin/developer/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 />
|
||||
</>
|
||||
);
|
||||
}
|
||||
15
src/app/dev/admin/developer/page.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import AdminDeveloper from "@/app_modules/admin/developer";
|
||||
import adminDeveloper_funGetListAllAdmin from "@/app_modules/admin/developer/fun/get/fun_get_list_all_admin";
|
||||
import adminDeveloper_funGetListAllUser from "@/app_modules/admin/developer/fun/get/fun_get_list_all_user";
|
||||
import _ from "lodash";
|
||||
|
||||
export default async function Page() {
|
||||
const listUser = await adminDeveloper_funGetListAllUser();
|
||||
const listAdmin = await adminDeveloper_funGetListAllAdmin();
|
||||
|
||||
return (
|
||||
<>
|
||||
<AdminDeveloper listUser={listUser as any} listAdmin={listAdmin as any} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
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 />
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
import { AdminDonasi_TableReview } from "@/app_modules/admin/donasi";
|
||||
import { AdminDonasi_getByStatus } from "@/app_modules/admin/donasi/fun/get/get_list_donasi_by_status";
|
||||
import { User_getUserId } from "@/app_modules/fun_global/get_user_token";
|
||||
import { user_getOneUserId } from "@/app_modules/fun_global/get_user_token";
|
||||
|
||||
export default async function Page() {
|
||||
const listReview = await AdminDonasi_getByStatus("2");
|
||||
|
||||
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 />
|
||||
</>
|
||||
);
|
||||
}
|
||||