# Voting
## feat - Create function - Get list by status id - Get one vote by id ### No issuue
This commit is contained in:
9
src/app/dev/admin/vote/child/riwayat/page.tsx
Normal file
9
src/app/dev/admin/vote/child/riwayat/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { AdminVote_Riwayat } from "@/app_modules/admin/voting";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<AdminVote_Riwayat />
|
||||
</>
|
||||
);
|
||||
}
|
||||
7
src/app/dev/admin/vote/child/table_publish/page.tsx
Normal file
7
src/app/dev/admin/vote/child/table_publish/page.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import { AdminVote_TablePublish } from "@/app_modules/admin/voting";
|
||||
|
||||
export default async function Page() {
|
||||
return<>
|
||||
<AdminVote_TablePublish/>
|
||||
</>
|
||||
}
|
||||
8
src/app/dev/admin/vote/child/table_reject/page.tsx
Normal file
8
src/app/dev/admin/vote/child/table_reject/page.tsx
Normal file
@@ -0,0 +1,8 @@
|
||||
import { AdminVote_TableReject } from "@/app_modules/admin/voting";
|
||||
|
||||
|
||||
export default async function Page() {
|
||||
return<>
|
||||
<AdminVote_TableReject/>
|
||||
</>
|
||||
}
|
||||
9
src/app/dev/admin/vote/child/table_review/page.tsx
Normal file
9
src/app/dev/admin/vote/child/table_review/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { AdminVote_TableReview } from "@/app_modules/admin/voting";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<AdminVote_TableReview />
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/admin/vote/main/page.tsx
Normal file
9
src/app/dev/admin/vote/main/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { AdminVote_Main } from "@/app_modules/admin/voting";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<AdminVote_Main />
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
import { LayoutVote_Create } from "@/app_modules/vote";
|
||||
import { LayoutVote_Create } from "@/app_modules/voting";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Vote_Create } from "@/app_modules/vote";
|
||||
import { Vote_Create } from "@/app_modules/voting";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { LayoutVote_DetailDraft } from "@/app_modules/vote";
|
||||
import { LayoutVote_DetailDraft } from "@/app_modules/voting";
|
||||
import React from "react";
|
||||
|
||||
export default function Layout({ children }: { children: React.ReactNode }) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Vote_DetailDraft } from "@/app_modules/vote";
|
||||
import { Vote_DetailDraft } from "@/app_modules/voting";
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { LayoutVote_DetailKontribusi } from "@/app_modules/vote";
|
||||
import { LayoutVote_DetailKontribusi } from "@/app_modules/voting";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Vote_DetailKontribusi } from "@/app_modules/vote";
|
||||
import { Vote_DetailKontribusi } from "@/app_modules/voting";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { LayoutVote_MainDetail } from "@/app_modules/vote";
|
||||
import { LayoutVote_MainDetail } from "@/app_modules/voting";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Vote_MainDetail } from "@/app_modules/vote";
|
||||
import { Vote_MainDetail } from "@/app_modules/voting";
|
||||
|
||||
export default async function Page(){
|
||||
return<>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { LayoutVote_DetailPublish } from "@/app_modules/vote";
|
||||
import { LayoutVote_DetailPublish } from "@/app_modules/voting";
|
||||
import React from "react";
|
||||
|
||||
export default function Layout({ children }: { children: React.ReactNode }) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Vote_DetailPublish } from "@/app_modules/vote";
|
||||
import { Vote_DetailPublish } from "@/app_modules/voting";
|
||||
|
||||
export default function Page(){
|
||||
return <>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { LayoutVote_DetailReject } from "@/app_modules/vote";
|
||||
import { LayoutVote_DetailReject } from "@/app_modules/voting";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({children}: {children: React.ReactNode}) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Vote_DetailReject } from "@/app_modules/vote";
|
||||
import { Vote_DetailReject } from "@/app_modules/voting";
|
||||
|
||||
export default async function Page() {
|
||||
return <>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { LayoutVote_DetailReview } from "@/app_modules/vote";
|
||||
import { LayoutVote_DetailReview } from "@/app_modules/voting";
|
||||
import React from "react";
|
||||
|
||||
export default function Layout({ children }: { children: React.ReactNode }) {
|
||||
13
src/app/dev/vote/detail/review/[id]/page.tsx
Normal file
13
src/app/dev/vote/detail/review/[id]/page.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Vote_DetailReview } from "@/app_modules/voting";
|
||||
import { Vote_getOnebyId } from "@/app_modules/voting/fun/get/get_one_by_id";
|
||||
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
let voteId = params.id;
|
||||
const dataVote = await Vote_getOnebyId(voteId);
|
||||
|
||||
return (
|
||||
<>
|
||||
<Vote_DetailReview dataVote={dataVote as any} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
import { Vote_DetailReview } from "@/app_modules/vote";
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<Vote_DetailReview />
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
import { LayoutVote_DetailRiwayatSaya } from "@/app_modules/vote";
|
||||
import { LayoutVote_DetailRiwayatSaya } from "@/app_modules/voting";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Vote_DetailRiwayatSaya } from "@/app_modules/vote";
|
||||
import { Vote_DetailRiwayatSaya } from "@/app_modules/voting";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { LayoutVote_DetailSemuaRiwayat } from "@/app_modules/vote";
|
||||
import { LayoutVote_DetailSemuaRiwayat } from "@/app_modules/voting";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Vote_DetailSemuaRiwayat } from "@/app_modules/vote";
|
||||
import { Vote_DetailSemuaRiwayat } from "@/app_modules/voting";
|
||||
|
||||
|
||||
export default async function Page() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { LayoutVote_Edit } from "@/app_modules/vote";
|
||||
import { LayoutVote_Edit } from "@/app_modules/voting";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Vote_Edit } from "@/app_modules/vote";
|
||||
import { Vote_Edit } from "@/app_modules/voting";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Vote_Beranda } from "@/app_modules/vote";
|
||||
import { Vote_Beranda } from "@/app_modules/voting";
|
||||
|
||||
export default async function Page() {
|
||||
return<>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Vote_Kontribusi } from "@/app_modules/vote";
|
||||
import { Vote_Kontribusi } from "@/app_modules/voting";
|
||||
|
||||
|
||||
export default async function Page() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { LayoutVote_Main } from "@/app_modules/vote";
|
||||
import { LayoutVote_Main } from "@/app_modules/voting";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Vote_Riwayat } from "@/app_modules/vote";
|
||||
import { Vote_Riwayat } from "@/app_modules/voting";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
|
||||
@@ -1,9 +1,20 @@
|
||||
import { Vote_Status } from "@/app_modules/vote";
|
||||
import { Vote_Status } from "@/app_modules/voting";
|
||||
import { Vote_getListByStatusId } from "@/app_modules/voting/fun/get/get_list_status_by_status_id";
|
||||
|
||||
export default async function Page() {
|
||||
const listPublish = await Vote_getListByStatusId("1");
|
||||
const listReview = await Vote_getListByStatusId("2");
|
||||
const listDraft = await Vote_getListByStatusId("3");
|
||||
const listReject = await Vote_getListByStatusId("4");
|
||||
|
||||
return (
|
||||
<>
|
||||
<Vote_Status />
|
||||
<Vote_Status
|
||||
listPublish={listPublish as any}
|
||||
listReview={listReview as any}
|
||||
listDraft={listDraft as any}
|
||||
listReject={listReject as any}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Vote_Splash } from "@/app_modules/vote";
|
||||
import { Vote_Splash } from "@/app_modules/voting";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user