# Voting prototype
- feat - Tampilan beranda - Tampilan status - Tampilan kontribusi - Tampilan riwayat ## No Issue
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
import { AdminMain_Layout } from "@/app_modules_admin/main";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({children}: {children: React.ReactNode}) {
|
||||
return <AdminMain_Layout>{children}</AdminMain_Layout>
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
import { AdminMain_Dashboard } from "@/app_modules_admin/main";
|
||||
|
||||
export default async function Page() {
|
||||
return <AdminMain_Dashboard/>
|
||||
}
|
||||
14
src/app/dev/vote/create/layout.tsx
Normal file
14
src/app/dev/vote/create/layout.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { LayoutVote_Create } from "@/app_modules/vote";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<LayoutVote_Create>{children}</LayoutVote_Create>
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/vote/create/page.tsx
Normal file
9
src/app/dev/vote/create/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Vote_Create } from "@/app_modules/vote";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<Vote_Create />
|
||||
</>
|
||||
);
|
||||
}
|
||||
10
src/app/dev/vote/detail/draft/layout.tsx
Normal file
10
src/app/dev/vote/detail/draft/layout.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import { LayoutVote_DetailDraft } from "@/app_modules/vote";
|
||||
import React from "react";
|
||||
|
||||
export default function Layout({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<>
|
||||
<LayoutVote_DetailDraft>{children}</LayoutVote_DetailDraft>
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/vote/detail/draft/page.tsx
Normal file
9
src/app/dev/vote/detail/draft/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Vote_DetailDraft } from "@/app_modules/vote";
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<Vote_DetailDraft />
|
||||
</>
|
||||
);
|
||||
}
|
||||
14
src/app/dev/vote/detail/kontribusi/layout.tsx
Normal file
14
src/app/dev/vote/detail/kontribusi/layout.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { LayoutVote_DetailKontribusi } from "@/app_modules/vote";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<LayoutVote_DetailKontribusi>{children}</LayoutVote_DetailKontribusi>
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/vote/detail/kontribusi/page.tsx
Normal file
9
src/app/dev/vote/detail/kontribusi/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Vote_DetailKontribusi } from "@/app_modules/vote";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<Vote_DetailKontribusi />
|
||||
</>
|
||||
);
|
||||
}
|
||||
14
src/app/dev/vote/detail/main/layout.tsx
Normal file
14
src/app/dev/vote/detail/main/layout.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { LayoutVote_MainDetail } from "@/app_modules/vote";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<LayoutVote_MainDetail>{children}</LayoutVote_MainDetail>
|
||||
</>
|
||||
);
|
||||
}
|
||||
7
src/app/dev/vote/detail/main/page.tsx
Normal file
7
src/app/dev/vote/detail/main/page.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import { Vote_MainDetail } from "@/app_modules/vote";
|
||||
|
||||
export default async function Page(){
|
||||
return<>
|
||||
<Vote_MainDetail/>
|
||||
</>
|
||||
}
|
||||
10
src/app/dev/vote/detail/publish/layout.tsx
Normal file
10
src/app/dev/vote/detail/publish/layout.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import { LayoutVote_DetailPublish } from "@/app_modules/vote";
|
||||
import React from "react";
|
||||
|
||||
export default function Layout({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<>
|
||||
<LayoutVote_DetailPublish>{children}</LayoutVote_DetailPublish>
|
||||
</>
|
||||
);
|
||||
}
|
||||
7
src/app/dev/vote/detail/publish/page.tsx
Normal file
7
src/app/dev/vote/detail/publish/page.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import { Vote_DetailPublish } from "@/app_modules/vote";
|
||||
|
||||
export default function Page(){
|
||||
return <>
|
||||
<Vote_DetailPublish/>
|
||||
</>
|
||||
}
|
||||
8
src/app/dev/vote/detail/reject/layout.tsx
Normal file
8
src/app/dev/vote/detail/reject/layout.tsx
Normal file
@@ -0,0 +1,8 @@
|
||||
import { LayoutVote_DetailReject } from "@/app_modules/vote";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({children}: {children: React.ReactNode}) {
|
||||
return<>
|
||||
<LayoutVote_DetailReject>{children}</LayoutVote_DetailReject>
|
||||
</>
|
||||
}
|
||||
7
src/app/dev/vote/detail/reject/page.tsx
Normal file
7
src/app/dev/vote/detail/reject/page.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import { Vote_DetailReject } from "@/app_modules/vote";
|
||||
|
||||
export default async function Page() {
|
||||
return <>
|
||||
<Vote_DetailReject/>
|
||||
</>
|
||||
}
|
||||
10
src/app/dev/vote/detail/review/layout.tsx
Normal file
10
src/app/dev/vote/detail/review/layout.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import { LayoutVote_DetailReview } from "@/app_modules/vote";
|
||||
import React from "react";
|
||||
|
||||
export default function Layout({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<>
|
||||
<LayoutVote_DetailReview>{children}</LayoutVote_DetailReview>
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/vote/detail/review/page.tsx
Normal file
9
src/app/dev/vote/detail/review/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Vote_DetailReview } from "@/app_modules/vote";
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<Vote_DetailReview />
|
||||
</>
|
||||
);
|
||||
}
|
||||
14
src/app/dev/vote/detail/riwayat_saya/layout.tsx
Normal file
14
src/app/dev/vote/detail/riwayat_saya/layout.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { LayoutVote_DetailRiwayatSaya } from "@/app_modules/vote";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<LayoutVote_DetailRiwayatSaya>{children}</LayoutVote_DetailRiwayatSaya>
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/vote/detail/riwayat_saya/page.tsx
Normal file
9
src/app/dev/vote/detail/riwayat_saya/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Vote_DetailRiwayatSaya } from "@/app_modules/vote";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<Vote_DetailRiwayatSaya />
|
||||
</>
|
||||
);
|
||||
}
|
||||
14
src/app/dev/vote/detail/semua_riwayat/layout.tsx
Normal file
14
src/app/dev/vote/detail/semua_riwayat/layout.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { LayoutVote_DetailSemuaRiwayat } from "@/app_modules/vote";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<LayoutVote_DetailSemuaRiwayat>{children}</LayoutVote_DetailSemuaRiwayat>
|
||||
</>
|
||||
);
|
||||
}
|
||||
10
src/app/dev/vote/detail/semua_riwayat/page.tsx
Normal file
10
src/app/dev/vote/detail/semua_riwayat/page.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import { Vote_DetailSemuaRiwayat } from "@/app_modules/vote";
|
||||
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<Vote_DetailSemuaRiwayat />
|
||||
</>
|
||||
);
|
||||
}
|
||||
14
src/app/dev/vote/edit/layout.tsx
Normal file
14
src/app/dev/vote/edit/layout.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { LayoutVote_Edit } from "@/app_modules/vote";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<LayoutVote_Edit>{children}</LayoutVote_Edit>
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/vote/edit/page.tsx
Normal file
9
src/app/dev/vote/edit/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Vote_Edit } from "@/app_modules/vote";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<Vote_Edit />
|
||||
</>
|
||||
);
|
||||
}
|
||||
7
src/app/dev/vote/main/beranda/page.tsx
Normal file
7
src/app/dev/vote/main/beranda/page.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import { Vote_Beranda } from "@/app_modules/vote";
|
||||
|
||||
export default async function Page() {
|
||||
return<>
|
||||
<Vote_Beranda/>
|
||||
</>
|
||||
}
|
||||
10
src/app/dev/vote/main/kontribusi/page.tsx
Normal file
10
src/app/dev/vote/main/kontribusi/page.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import { Vote_Kontribusi } from "@/app_modules/vote";
|
||||
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<Vote_Kontribusi />
|
||||
</>
|
||||
);
|
||||
}
|
||||
14
src/app/dev/vote/main/layout.tsx
Normal file
14
src/app/dev/vote/main/layout.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { LayoutVote_Main } from "@/app_modules/vote";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<LayoutVote_Main>{children}</LayoutVote_Main>
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/vote/main/riwayat/page.tsx
Normal file
9
src/app/dev/vote/main/riwayat/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Vote_Riwayat } from "@/app_modules/vote";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<Vote_Riwayat />
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/vote/main/status/page.tsx
Normal file
9
src/app/dev/vote/main/status/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Vote_Status } from "@/app_modules/vote";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<Vote_Status />
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/vote/splash/page.tsx
Normal file
9
src/app/dev/vote/splash/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Vote_Splash } from "@/app_modules/vote";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<Vote_Splash />
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
import AppNotif from "@/app_modules/notif";
|
||||
// import './globals.css'
|
||||
import { CacheProvider } from "@emotion/react";
|
||||
import { MantineProvider, useEmotionCache } from "@mantine/core";
|
||||
import { Image, MantineProvider, useEmotionCache } from "@mantine/core";
|
||||
import { Notifications } from "@mantine/notifications";
|
||||
import { useServerInsertedHTML } from "next/navigation";
|
||||
import { ToastContainer, toast } from "react-toastify";
|
||||
@@ -27,10 +27,13 @@ export default function RootStyleRegistry({
|
||||
|
||||
return (
|
||||
<html lang="en" data-theme="light">
|
||||
<head>
|
||||
<title>HIPMI</title>
|
||||
</head>
|
||||
<body suppressHydrationWarning={true}>
|
||||
<CacheProvider value={cache}>
|
||||
<MantineProvider withGlobalStyles withNormalizeCSS>
|
||||
<Notifications position="top-center" containerWidth="250px" />
|
||||
<Notifications position="top-center" containerWidth="250px" />
|
||||
{children}
|
||||
{/* <ToastContainer position="bottom-center" />
|
||||
<AppNotif /> */}
|
||||
|
||||
24
src/app/lib/router_hipmi/router_vote.ts
Normal file
24
src/app/lib/router_hipmi/router_vote.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
export const RouterVote = {
|
||||
// main
|
||||
splash: "/dev/vote/splash",
|
||||
beranda: "/dev/vote/main/beranda",
|
||||
status: "/dev/vote/main/status",
|
||||
kontribusi: "/dev/vote/main/kontribusi",
|
||||
riwayat: "/dev/vote/main/riwayat",
|
||||
|
||||
// create
|
||||
create: "/dev/vote/create",
|
||||
|
||||
//
|
||||
edit: "/dev/vote/edit",
|
||||
|
||||
//detail
|
||||
main_detail: "/dev/vote/detail/main",
|
||||
detail_publish: "/dev/vote/detail/publish",
|
||||
detail_review: "/dev/vote/detail/review",
|
||||
detail_draft: "/dev/vote/detail/draft",
|
||||
detail_reject: "/dev/vote/detail/reject",
|
||||
detail_kontribusi: "/dev/vote/detail/kontribusi",
|
||||
detail_semua_riwayat: "/dev/vote/detail/semua_riwayat",
|
||||
detail_riwayat_saya: "/dev/vote/detail/riwayat_saya",
|
||||
};
|
||||
Reference in New Issue
Block a user