Checkpont 1
This commit is contained in:
@@ -22,12 +22,9 @@ export default function Event_SplashScreen() {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Center h={"100vh"}>
|
<Center h={"100vh"}>
|
||||||
<Stack align="center" justify="center" p={"md"}>
|
<Paper p={{ base: 50, md: 60, lg: 80 }}>
|
||||||
<Title c={"#002e59"}>Welcome to</Title>
|
<Image alt="event" src={"/aset/event/splash-event.png"} />
|
||||||
<Paper p={{ base: 50, md: 60, lg: 80 }}>
|
</Paper>
|
||||||
<Image alt="event" src={"/aset/event/splash-event.png"} />
|
|
||||||
</Paper>
|
|
||||||
</Stack>
|
|
||||||
</Center>
|
</Center>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ export default function Job_Splash() {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Center h={"100vh"}>
|
<Center h={"100vh"}>
|
||||||
<Paper>
|
<Paper p={{ base: 50, md: 60, lg: 80 }}>
|
||||||
<Image alt="logo" src={"/aset/job/logo.png"} />
|
<Image alt="logo" src={"/aset/job/logo.png"} />
|
||||||
</Paper>
|
</Paper>
|
||||||
</Center>
|
</Center>
|
||||||
|
|||||||
@@ -25,6 +25,8 @@ import { useRouter } from "next/navigation";
|
|||||||
import ComponentVote_CardViewPublish from "../component/card_view_publish";
|
import ComponentVote_CardViewPublish from "../component/card_view_publish";
|
||||||
import { MODEL_VOTING } from "../model/interface";
|
import { MODEL_VOTING } from "../model/interface";
|
||||||
import ComponentGlobal_AuthorNameOnHeader from "@/app_modules/component_global/author_name_on_header";
|
import ComponentGlobal_AuthorNameOnHeader from "@/app_modules/component_global/author_name_on_header";
|
||||||
|
import _ from "lodash";
|
||||||
|
import ComponentVote_IsEmptyData from "../component/is_empty_data";
|
||||||
|
|
||||||
export default function Vote_Beranda({
|
export default function Vote_Beranda({
|
||||||
dataVote,
|
dataVote,
|
||||||
@@ -49,17 +51,21 @@ export default function Vote_Beranda({
|
|||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
</Affix>
|
</Affix>
|
||||||
|
|
||||||
<Stack>
|
{_.isEmpty(dataVote) ? (
|
||||||
{dataVote.map((e, i) => (
|
<ComponentVote_IsEmptyData text="Tidak ada data"/>
|
||||||
<Box key={i}>
|
) : (
|
||||||
<ComponentVote_CardViewPublish
|
<Stack>
|
||||||
path={RouterVote.main_detail}
|
{dataVote.map((e, i) => (
|
||||||
data={e}
|
<Box key={i}>
|
||||||
authorName={true}
|
<ComponentVote_CardViewPublish
|
||||||
/>
|
path={RouterVote.main_detail}
|
||||||
</Box>
|
data={e}
|
||||||
))}
|
authorName={true}
|
||||||
</Stack>
|
/>
|
||||||
|
</Box>
|
||||||
|
))}
|
||||||
|
</Stack>
|
||||||
|
)}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,8 @@ import moment from "moment";
|
|||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
import ComponentVote_CardViewPublish from "../component/card_view_publish";
|
import ComponentVote_CardViewPublish from "../component/card_view_publish";
|
||||||
import { MODEL_VOTE_KONTRIBUTOR } from "../model/interface";
|
import { MODEL_VOTE_KONTRIBUTOR } from "../model/interface";
|
||||||
|
import _ from "lodash";
|
||||||
|
import ComponentVote_IsEmptyData from "../component/is_empty_data";
|
||||||
|
|
||||||
export default function Vote_Kontribusi({
|
export default function Vote_Kontribusi({
|
||||||
dataKontribusi,
|
dataKontribusi,
|
||||||
@@ -28,19 +30,23 @@ export default function Vote_Kontribusi({
|
|||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Stack>
|
{_.isEmpty(dataKontribusi) ? (
|
||||||
{dataKontribusi.map((e, i) => (
|
<ComponentVote_IsEmptyData text="Tidak ada data" />
|
||||||
<Box key={i}>
|
) : (
|
||||||
<ComponentVote_CardViewPublish
|
<Stack>
|
||||||
path={RouterVote.detail_kontribusi}
|
{dataKontribusi.map((e, i) => (
|
||||||
pilihanSaya={true}
|
<Box key={i}>
|
||||||
data={e.Voting}
|
<ComponentVote_CardViewPublish
|
||||||
authorName={true}
|
path={RouterVote.detail_kontribusi}
|
||||||
namaPilihan={e.Voting_DaftarNamaVote.value}
|
pilihanSaya={true}
|
||||||
/>
|
data={e.Voting}
|
||||||
</Box>
|
authorName={true}
|
||||||
))}
|
namaPilihan={e.Voting_DaftarNamaVote.value}
|
||||||
</Stack>
|
/>
|
||||||
|
</Box>
|
||||||
|
))}
|
||||||
|
</Stack>
|
||||||
|
)}
|
||||||
{/* <pre>{JSON.stringify(dataKontribusi, null, 2)}</pre> */}
|
{/* <pre>{JSON.stringify(dataKontribusi, null, 2)}</pre> */}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -19,6 +19,8 @@ import moment from "moment";
|
|||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
import ComponentVote_CardViewPublish from "../../component/card_view_publish";
|
import ComponentVote_CardViewPublish from "../../component/card_view_publish";
|
||||||
import { MODEL_VOTING } from "../../model/interface";
|
import { MODEL_VOTING } from "../../model/interface";
|
||||||
|
import _ from "lodash";
|
||||||
|
import ComponentVote_IsEmptyData from "../../component/is_empty_data";
|
||||||
|
|
||||||
export default function Vote_RiwayatSaya({
|
export default function Vote_RiwayatSaya({
|
||||||
listRiwayatSaya,
|
listRiwayatSaya,
|
||||||
@@ -28,6 +30,9 @@ export default function Vote_RiwayatSaya({
|
|||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
{_.isEmpty(listRiwayatSaya) ? (
|
||||||
|
<ComponentVote_IsEmptyData text="Tidak ada data"/>
|
||||||
|
) : (
|
||||||
<Stack>
|
<Stack>
|
||||||
{listRiwayatSaya.map((e, i) => (
|
{listRiwayatSaya.map((e, i) => (
|
||||||
<Box key={i}>
|
<Box key={i}>
|
||||||
@@ -39,6 +44,7 @@ export default function Vote_RiwayatSaya({
|
|||||||
</Box>
|
</Box>
|
||||||
))}
|
))}
|
||||||
</Stack>
|
</Stack>
|
||||||
|
)}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,8 @@ import moment from "moment";
|
|||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
import ComponentVote_CardViewPublish from "../../component/card_view_publish";
|
import ComponentVote_CardViewPublish from "../../component/card_view_publish";
|
||||||
import { MODEL_VOTING } from "../../model/interface";
|
import { MODEL_VOTING } from "../../model/interface";
|
||||||
|
import _ from "lodash";
|
||||||
|
import ComponentVote_IsEmptyData from "../../component/is_empty_data";
|
||||||
|
|
||||||
export default function Vote_SemuaRiwayat({
|
export default function Vote_SemuaRiwayat({
|
||||||
listRiwayat,
|
listRiwayat,
|
||||||
@@ -28,17 +30,21 @@ export default function Vote_SemuaRiwayat({
|
|||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Stack>
|
{_.isEmpty(listRiwayat) ? (
|
||||||
{listRiwayat.map((e, i) => (
|
<ComponentVote_IsEmptyData text="Tidak ada data" />
|
||||||
<Box key={i}>
|
) : (
|
||||||
<ComponentVote_CardViewPublish
|
<Stack>
|
||||||
path={RouterVote.detail_semua_riwayat}
|
{listRiwayat.map((e, i) => (
|
||||||
data={e}
|
<Box key={i}>
|
||||||
authorName={true}
|
<ComponentVote_CardViewPublish
|
||||||
/>
|
path={RouterVote.detail_semua_riwayat}
|
||||||
</Box>
|
data={e}
|
||||||
))}
|
authorName={true}
|
||||||
</Stack>
|
/>
|
||||||
|
</Box>
|
||||||
|
))}
|
||||||
|
</Stack>
|
||||||
|
)}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,8 @@ export default function Vote_StatusDraft({
|
|||||||
listDraft: MODEL_VOTING[];
|
listDraft: MODEL_VOTING[];
|
||||||
}) {
|
}) {
|
||||||
if (_.isEmpty(listDraft))
|
if (_.isEmpty(listDraft))
|
||||||
return <ComponentVote_IsEmptyData text="Tidak ada draft" />;
|
return <ComponentVote_IsEmptyData text="Tidak ada data" />;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Stack>
|
<Stack>
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ export default function Vote_StatusPublish({
|
|||||||
if (_.isEmpty(listPublish))
|
if (_.isEmpty(listPublish))
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<ComponentVote_IsEmptyData text="Tidak ada voting" />
|
<ComponentVote_IsEmptyData text="Tidak ada data" />
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,8 @@ export default function Vote_StatusReject({
|
|||||||
listReject: MODEL_VOTING[];
|
listReject: MODEL_VOTING[];
|
||||||
}) {
|
}) {
|
||||||
if (_.isEmpty(listReject))
|
if (_.isEmpty(listReject))
|
||||||
return <ComponentVote_IsEmptyData text="Tidak ada review" />;
|
return <ComponentVote_IsEmptyData text="Tidak ada data" />;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Stack>
|
<Stack>
|
||||||
|
|||||||
@@ -13,7 +13,8 @@ export default function Vote_StatusReview({
|
|||||||
listReview: MODEL_VOTING[];
|
listReview: MODEL_VOTING[];
|
||||||
}) {
|
}) {
|
||||||
if (_.isEmpty(listReview))
|
if (_.isEmpty(listReview))
|
||||||
return <ComponentVote_IsEmptyData text="Tidak ada review" />;
|
return <ComponentVote_IsEmptyData text="Tidak ada data" />;
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ export default function Vote_Splash() {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Center h={"100vh"}>
|
<Center h={"100vh"}>
|
||||||
<Paper>
|
<Paper p={{ base: 50, md: 60, lg: 80 }}>
|
||||||
<Image alt="logo" src={"/aset/vote/logo.png"} />
|
<Image alt="logo" src={"/aset/vote/logo.png"} />
|
||||||
</Paper>
|
</Paper>
|
||||||
</Center>
|
</Center>
|
||||||
|
|||||||
Reference in New Issue
Block a user