Hold persiapan persentase pak fahmi
- Sudah bisa create - Sudah bisa join proyek - Tambahan untuk mengisi form jika ingin join ### No issue
This commit is contained in:
@@ -3,12 +3,17 @@ import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
children,
|
||||
params,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
params: { id: string };
|
||||
}) {
|
||||
const colabId = params.id;
|
||||
return (
|
||||
<>
|
||||
<LayoutColab_MainDetail>{children}</LayoutColab_MainDetail>
|
||||
<LayoutColab_MainDetail colabId={colabId}>
|
||||
{children}
|
||||
</LayoutColab_MainDetail>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,9 +1,18 @@
|
||||
import { Colab_DetailPartisipasiProyek } from "@/app_modules/colab";
|
||||
import colab_getListPartisipanById from "@/app_modules/colab/fun/get/get_list_partisipan_by_id";
|
||||
import colab_getOneCollaborationById from "@/app_modules/colab/fun/get/get_one_by_id";
|
||||
|
||||
export default async function Page({params}: {params: {id: string}}) {
|
||||
const colabId = params.id
|
||||
const dataColab = await colab_getOneCollaborationById(colabId)
|
||||
const listPartisipan = await colab_getListPartisipanById(colabId)
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<Colab_DetailPartisipasiProyek />
|
||||
<Colab_DetailPartisipasiProyek
|
||||
dataColab={dataColab as any}
|
||||
listPartisipan={listPartisipan as any}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
14
src/app/dev/colab/detail/proyek/saya/[id]/layout.tsx
Normal file
14
src/app/dev/colab/detail/proyek/saya/[id]/layout.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { LayoutColab_DetailProyekSaya } from "@/app_modules/colab";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<LayoutColab_DetailProyekSaya>{children}</LayoutColab_DetailProyekSaya>
|
||||
</>
|
||||
);
|
||||
}
|
||||
20
src/app/dev/colab/detail/proyek/saya/[id]/page.tsx
Normal file
20
src/app/dev/colab/detail/proyek/saya/[id]/page.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
import { Colab_DetailProyekSaya } from "@/app_modules/colab";
|
||||
import colab_getListPartisipanById from "@/app_modules/colab/fun/get/get_list_partisipan_by_id";
|
||||
import colab_getOneCollaborationById from "@/app_modules/colab/fun/get/get_one_by_id";
|
||||
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
const colabId = params.id
|
||||
const dataColab = await colab_getOneCollaborationById(colabId)
|
||||
const listPartisipan = await colab_getListPartisipanById(colabId);
|
||||
|
||||
|
||||
return (
|
||||
<>
|
||||
{/* <pre>{JSON.stringify(listPartisipan, null,2)}</pre> */}
|
||||
<Colab_DetailProyekSaya
|
||||
dataColab={dataColab as any}
|
||||
listPartisipan={listPartisipan as any}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,7 +1,21 @@
|
||||
import { Colab_Edit } from "@/app_modules/colab";
|
||||
import colab_getOneCollaborationById from "@/app_modules/colab/fun/get/get_one_by_id";
|
||||
import colab_funGetMasterIndustri from "@/app_modules/colab/fun/master/fun_get_master_industri";
|
||||
import _ from "lodash";
|
||||
|
||||
export default async function Page(){
|
||||
return<>
|
||||
<Colab_Edit/>
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
const colabId = params.id;
|
||||
const dataColab = await colab_getOneCollaborationById(colabId);
|
||||
const selectedData = _.omit(dataColab, [
|
||||
"ProjectCollaboration_Partisipasi",
|
||||
"Author",
|
||||
]);
|
||||
// console.log(selectedData);
|
||||
const listIndustri = await colab_funGetMasterIndustri()
|
||||
|
||||
return (
|
||||
<>
|
||||
<Colab_Edit selectedData={selectedData as any} listIndustri={listIndustri as any} />
|
||||
</>
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
import { Colab_Beranda } from "@/app_modules/colab";
|
||||
import colab_getListAllProyek from "@/app_modules/colab/fun/get/get_list_all_proyek";
|
||||
import { User_getUserId } from "@/app_modules/fun_global/get_user_token";
|
||||
|
||||
export default async function Page() {
|
||||
const listData = await colab_getListAllProyek()
|
||||
const listData = await colab_getListAllProyek();
|
||||
const userLoginId = await User_getUserId();
|
||||
|
||||
return (
|
||||
<>
|
||||
<Colab_Beranda listData={listData as any} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<>
|
||||
<Colab_Beranda listData={listData as any} userLoginId={userLoginId} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
9
src/app/dev/colab/main/notifikasi/page.tsx
Normal file
9
src/app/dev/colab/main/notifikasi/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Colab_NotifikasiView } from "@/app_modules/colab";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<Colab_NotifikasiView />
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,10 +1,17 @@
|
||||
import { Colab_Proyek } from "@/app_modules/colab";
|
||||
|
||||
import colab_getListPartisipasiByAuthorId from "@/app_modules/colab/fun/get/get_list_partisipasi_by_author_id";
|
||||
import colab_getListAllProyekByAuthorId from "@/app_modules/colab/fun/get/get_list_proyek_by_author_id";
|
||||
|
||||
export default async function Page() {
|
||||
const listPartisipasiUser = (await colab_getListPartisipasiByAuthorId()).data;
|
||||
const listProyekSaya = (await colab_getListAllProyekByAuthorId()).data;
|
||||
|
||||
return (
|
||||
<>
|
||||
<Colab_Proyek />
|
||||
<Colab_Proyek
|
||||
listPartisipasiUser={listPartisipasiUser as any}
|
||||
listProyekSaya={listProyekSaya as any}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,9 +1,19 @@
|
||||
import { Colab_Status } from "@/app_modules/colab";
|
||||
import colab_getListByStatusId from "@/app_modules/colab/fun/get/get_list_by_status_id";
|
||||
|
||||
export default async function Page() {
|
||||
const listPublish = (await colab_getListByStatusId(1)).data;
|
||||
const listReview = (await colab_getListByStatusId(2)).data;
|
||||
const listReject = (await colab_getListByStatusId(3)).data;
|
||||
|
||||
|
||||
return (
|
||||
<>
|
||||
<Colab_Status />
|
||||
<Colab_Status
|
||||
listPublish={listPublish as any}
|
||||
listReview={listReview as any}
|
||||
listReject={listReject as any}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user