feat:
- Fitur hot menu ditambah - Fitur portofolio khusus status investasi - Fitur halaman transaksi ### No Issue #fix: - Perubahan minor
This commit is contained in:
@@ -5,6 +5,7 @@ import bidangBisnis from "../../../bin/seeder/bidang_bisnis.json";
|
||||
import pencarianInvestor from "./../../../bin/seeder/investasi/pencarian_investor.json";
|
||||
import periodeDeviden from "./../../../bin/seeder/investasi/periode_deviden.json";
|
||||
import pembagianDeviden from "./../../../bin/seeder/investasi/pembagian_deviden.json";
|
||||
import statusInvestasi from "./../../../bin/seeder/investasi/status_investasi.json";
|
||||
|
||||
export async function GET(req: Request) {
|
||||
const dev = new URL(req.url).searchParams.get("dev");
|
||||
@@ -89,6 +90,24 @@ export async function GET(req: Request) {
|
||||
});
|
||||
}
|
||||
|
||||
// for (let i of statusInvestasi) {
|
||||
// await prisma.masterStatusInvestasi.upsert({
|
||||
// where: {
|
||||
// id: i.id,
|
||||
// },
|
||||
// create: {
|
||||
// id: i.id,
|
||||
// name: i.name,
|
||||
// color: i.color,
|
||||
// },
|
||||
// update: {
|
||||
// id: i.id,
|
||||
// name: i.name,
|
||||
// color: i.color,
|
||||
// },
|
||||
// });
|
||||
// }
|
||||
|
||||
return NextResponse.json({ success: true });
|
||||
}
|
||||
|
||||
|
||||
8
src/app/dev/investasi/detail_portofolio/draft/layout.tsx
Normal file
8
src/app/dev/investasi/detail_portofolio/draft/layout.tsx
Normal file
@@ -0,0 +1,8 @@
|
||||
import { LayoutDetailDraftInvestasi } from "@/app_modules/investasi";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({children}: {children: React.ReactNode}) {
|
||||
return<>
|
||||
<LayoutDetailDraftInvestasi>{children}</LayoutDetailDraftInvestasi>
|
||||
</>
|
||||
}
|
||||
8
src/app/dev/investasi/detail_portofolio/draft/page.tsx
Normal file
8
src/app/dev/investasi/detail_portofolio/draft/page.tsx
Normal file
@@ -0,0 +1,8 @@
|
||||
import { DetailDraftInvestasi } from "@/app_modules/investasi";
|
||||
|
||||
export default async function Page() {
|
||||
return<>
|
||||
<DetailDraftInvestasi/>
|
||||
|
||||
</>
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import { LayoutDetailPublishInvestasi } from "@/app_modules/investasi";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({children}: {children: React.ReactNode}) {
|
||||
return<>
|
||||
<LayoutDetailPublishInvestasi>{children}</LayoutDetailPublishInvestasi>
|
||||
|
||||
</>
|
||||
}
|
||||
7
src/app/dev/investasi/detail_portofolio/publish/page.tsx
Normal file
7
src/app/dev/investasi/detail_portofolio/publish/page.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import { DetailPublishInvestasi } from "@/app_modules/investasi";
|
||||
|
||||
export default async function Page() {
|
||||
return<>
|
||||
<DetailPublishInvestasi/>
|
||||
</>
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import { LayoutDetailRejectInvestasi } from "@/app_modules/investasi";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({children}: {children: React.ReactNode}) {
|
||||
return<>
|
||||
<LayoutDetailRejectInvestasi>{children}</LayoutDetailRejectInvestasi>
|
||||
</>
|
||||
}
|
||||
7
src/app/dev/investasi/detail_portofolio/reject/page.tsx
Normal file
7
src/app/dev/investasi/detail_portofolio/reject/page.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import { DetailRejectInvestasi } from "@/app_modules/investasi";
|
||||
|
||||
export default async function Page() {
|
||||
return<>
|
||||
<DetailRejectInvestasi/>
|
||||
</>
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import { LayoutDetailReviewInvestasi } from "@/app_modules/investasi";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({children}: {children: React.ReactNode}) {
|
||||
return<>
|
||||
<LayoutDetailReviewInvestasi>{children}</LayoutDetailReviewInvestasi>
|
||||
</>
|
||||
}
|
||||
7
src/app/dev/investasi/detail_portofolio/review/page.tsx
Normal file
7
src/app/dev/investasi/detail_portofolio/review/page.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import { DetailReviewInvestasi } from "@/app_modules/investasi";
|
||||
|
||||
export default async function Page() {
|
||||
return<>
|
||||
<DetailReviewInvestasi/>
|
||||
</>
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
import { PortofolioInvestasi } from "@/app_modules/investasi";
|
||||
|
||||
export default async function Page() {
|
||||
export default async function Page({params}: {params: {id: string}}) {
|
||||
return<>
|
||||
<PortofolioInvestasi/>
|
||||
</>
|
||||
|
||||
9
src/app/dev/investasi/main/saham_saya/page.tsx
Normal file
9
src/app/dev/investasi/main/saham_saya/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { InvestasiSahamTerbeli } from "@/app_modules/investasi";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<InvestasiSahamTerbeli />
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/investasi/main/transaksi/page.tsx
Normal file
9
src/app/dev/investasi/main/transaksi/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { TransaksiInvestasi } from "@/app_modules/investasi";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<TransaksiInvestasi />
|
||||
</>
|
||||
);
|
||||
}
|
||||
16
src/app/dev/investasi/status_transaksi/gagal/layout.tsx
Normal file
16
src/app/dev/investasi/status_transaksi/gagal/layout.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import { LayoutStatusTransaksiInvestasi_Gagal } from "@/app_modules/investasi";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<LayoutStatusTransaksiInvestasi_Gagal>
|
||||
{children}
|
||||
</LayoutStatusTransaksiInvestasi_Gagal>
|
||||
</>
|
||||
);
|
||||
}
|
||||
7
src/app/dev/investasi/status_transaksi/gagal/page.tsx
Normal file
7
src/app/dev/investasi/status_transaksi/gagal/page.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import { StatusTransaksiInvestasi_Gagal } from "@/app_modules/investasi";
|
||||
|
||||
export default async function Page() {
|
||||
return <>
|
||||
<StatusTransaksiInvestasi_Gagal/>
|
||||
</>
|
||||
}
|
||||
@@ -1,12 +1,19 @@
|
||||
export const RouterInvestasi = {
|
||||
//INVESTASI
|
||||
main: "/dev/investasi/main",
|
||||
main_porto: "/dev/investasi/main/portofolio",
|
||||
main_investasi: "/dev/investasi/main/saham_saya",
|
||||
main_transaksi: "/dev/investasi/main/transaksi",
|
||||
transfer: "/dev/investasi/transfer",
|
||||
dialog_transaksi: "/dev/investasi/dialog_page/transaksi_saham",
|
||||
dialog_create: "/dev/investasi/dialog_page/create",
|
||||
|
||||
// portofolio
|
||||
portofolio: "/dev/investasi/main/portofolio",
|
||||
|
||||
// proses beli saham
|
||||
status_transaksi: "/dev/investasi/status_transaksi",
|
||||
status_transaksi: "/dev/investasi/status_transaksi/berhasil",
|
||||
status_transaksi_gagal: "/dev/investasi/status_transaksi/gagal",
|
||||
metode_transfer: "/dev/investasi/metode_transfer",
|
||||
// edit //
|
||||
edit_intro: "/dev/investasi/edit_intro/",
|
||||
@@ -18,8 +25,13 @@ export const RouterInvestasi = {
|
||||
detail_prospektus: "/dev/investasi/detail_prospektus/",
|
||||
detail_dokumen: "/dev/investasi/detail_dokumen/",
|
||||
detail_berita: "/dev/investasi/detail_berita/",
|
||||
detail_draft: "/dev/investasi/detail_portofolio/draft",
|
||||
detail_publish: "/dev/investasi/detail_portofolio/publish",
|
||||
detail_review: "/dev/investasi/detail_portofolio/review",
|
||||
detail_reject: "/dev/investasi/detail_portofolio/reject",
|
||||
|
||||
// berita
|
||||
berita: "/dev/investasi/berita/",
|
||||
create_berita: "/dev/investasi/create_berita",
|
||||
list_edit_berita: "/dev/investasi/list_edit_berita/"
|
||||
list_edit_berita: "/dev/investasi/list_edit_berita/",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user