From 67db994f130b5f525499d05192a301d5afc7987e Mon Sep 17 00:00:00 2001 From: amel Date: Mon, 30 Sep 2024 11:16:29 +0800 Subject: [PATCH] upd: project Deskripsi: - cleanup folder project No Issues --- src/app/(application)/project/[id]/page.tsx | 2 +- src/app/(application)/project/page.tsx | 2 +- .../detail_create_user_project.tsx | 115 ------- .../detail_project/detail_date_end_task.tsx | 187 ------------ .../detail_project/detail_file_save.tsx | 9 - .../detail_project/detail_project.tsx | 235 --------------- .../detail_project/file_upload_progres.tsx | 88 ------ .../detail_project/update_progres.tsx | 283 ------------------ src/module/project/components/file_save.tsx | 88 ------ .../project/components/project_cencel.tsx | 157 ---------- .../project/components/project_done.tsx | 157 ---------- .../project/components/project_process.tsx | 158 ---------- .../project/components/ui/drawer_project.tsx | 37 --- .../project/components/ui/navbar_project.tsx | 102 ------- src/module/project/index.ts | 16 - .../project/view/view_detail_project.tsx | 6 - src/module/project/view/view_file_save.tsx | 9 - src/module/project/view/view_project.tsx | 11 - .../project/view/view_update_progres.tsx | 9 - 19 files changed, 2 insertions(+), 1669 deletions(-) delete mode 100644 src/module/project/components/detail_project/detail_create_user_project.tsx delete mode 100644 src/module/project/components/detail_project/detail_date_end_task.tsx delete mode 100644 src/module/project/components/detail_project/detail_file_save.tsx delete mode 100644 src/module/project/components/detail_project/detail_project.tsx delete mode 100644 src/module/project/components/detail_project/file_upload_progres.tsx delete mode 100644 src/module/project/components/detail_project/update_progres.tsx delete mode 100644 src/module/project/components/file_save.tsx delete mode 100644 src/module/project/components/project_cencel.tsx delete mode 100644 src/module/project/components/project_done.tsx delete mode 100644 src/module/project/components/project_process.tsx delete mode 100644 src/module/project/components/ui/drawer_project.tsx delete mode 100644 src/module/project/components/ui/navbar_project.tsx delete mode 100644 src/module/project/view/view_detail_project.tsx delete mode 100644 src/module/project/view/view_file_save.tsx delete mode 100644 src/module/project/view/view_project.tsx delete mode 100644 src/module/project/view/view_update_progres.tsx diff --git a/src/app/(application)/project/[id]/page.tsx b/src/app/(application)/project/[id]/page.tsx index 1153f0c..26dfc03 100644 --- a/src/app/(application)/project/[id]/page.tsx +++ b/src/app/(application)/project/[id]/page.tsx @@ -1,4 +1,4 @@ -import { ListAnggotaDetailProject, ListFileDetailProject, ListTugasDetailProject, NavbarDetailProject, ProgressDetailProject, ViewDetailProject } from '@/module/project'; +import { ListAnggotaDetailProject, ListFileDetailProject, ListTugasDetailProject, NavbarDetailProject, ProgressDetailProject } from '@/module/project'; import { Box } from '@mantine/core'; import React from 'react'; diff --git a/src/app/(application)/project/page.tsx b/src/app/(application)/project/page.tsx index 65738c4..f4bccb4 100644 --- a/src/app/(application)/project/page.tsx +++ b/src/app/(application)/project/page.tsx @@ -1,5 +1,5 @@ import { ViewFilter } from '@/module/_global'; -import { TabProject, ViewProject } from '@/module/project'; +import { TabProject } from '@/module/project'; import React from 'react'; function Page({ searchParams }: { searchParams: { page: string } }) { diff --git a/src/module/project/components/detail_project/detail_create_user_project.tsx b/src/module/project/components/detail_project/detail_create_user_project.tsx deleted file mode 100644 index f31f282..0000000 --- a/src/module/project/components/detail_project/detail_create_user_project.tsx +++ /dev/null @@ -1,115 +0,0 @@ -"use client"; -import { LayoutNavbarNew, WARNA } from "@/module/_global"; -import { - Anchor, - Avatar, - Box, - Button, - Checkbox, - Divider, - Flex, - Group, - Text, - TextInput, -} from "@mantine/core"; -import { useRouter } from "next/navigation"; -import React from "react"; -import { HiMagnifyingGlass } from "react-icons/hi2"; -const DateUsers = [ - { - id: 1, - name: "Iqbal Ramadan", - image: "https://i.pravatar.cc/1000?img=5", - }, - { - id: 2, - name: "Doni Setiawan", - image: "https://i.pravatar.cc/1000?img=10", - }, - { - id: 3, - name: "Rangga Agung", - image: "https://i.pravatar.cc/1000?img=51", - }, - { - id: 4, - name: "Ramadan Sananta", - image: "https://i.pravatar.cc/1000?img=15", - }, - { - id: 5, - name: "Imam Baroni", - image: "https://i.pravatar.cc/1000?img=22", - }, -]; - -export default function DetailCreateUserProject({ kategori }: { kategori: string }) { - const router = useRouter(); - - return ( - - - - } - placeholder="Pencarian" - /> - - - Pilih Semua Divisi - - - - - - Divisi Kerohanian - - Pilih Semua - - - {DateUsers.map((v, i) => { - return ( - - - - - - {v.name} - - - - - - - ); - })} - - - - - - - ); -} diff --git a/src/module/project/components/detail_project/detail_date_end_task.tsx b/src/module/project/components/detail_project/detail_date_end_task.tsx deleted file mode 100644 index 3a33740..0000000 --- a/src/module/project/components/detail_project/detail_date_end_task.tsx +++ /dev/null @@ -1,187 +0,0 @@ -"use client"; -import { LayoutNavbarNew, WARNA } from "@/module/_global"; -import { - Avatar, - Box, - Button, - Flex, - Group, - Input, - SimpleGrid, - Stack, - Text, -} from "@mantine/core"; -import React, { useState } from "react"; -import { DatePicker } from "@mantine/dates"; -import moment from "moment"; -import { IoIosArrowDropright } from "react-icons/io"; -import { useRouter } from "next/navigation"; - -const dataTugas = [ - { - id: 1, - name: "Iqbal Ramadan", - image: "https://i.pravatar.cc/1000?img=5", - email: "iqbal.ramadan@gmail.com", - }, - { - id: 2, - name: "Doni Setiawan", - image: "https://i.pravatar.cc/1000?img=10", - email: "doni.setiawan@gmail.com", - }, - { - id: 3, - name: "Rangga Agung", - image: "https://i.pravatar.cc/1000?img=51", - email: "rangga.agung@gmail.com", - }, - { - id: 4, - name: "Ramadan Sananta", - image: "https://i.pravatar.cc/1000?img=15", - email: "ramadan@gmail.com", - }, - { - id: 5, - name: "Imam Baroni", - image: "https://i.pravatar.cc/1000?img=22", - email: "imam.baroni@gmail.com", - }, -]; - -export default function DetailDateEndTask({ kategori }: { kategori: string }) { - const [value, setValue] = useState<[Date | null, Date | null]>([null, null]); - const router = useRouter() - return ( - - - - - - - - - Tanggal Mulai - - {value[0] ? `${value[0].toLocaleDateString()}` : ""} - - - - Tanggal Berakhir - - {value[1] ? `${value[1].toLocaleDateString()}` : ""} - - - - - - router.push(`/${kategori}/update/1?page=detail-create-user`)}> - - Tambah Anggota - - - - - - - Anggota Terpilih - Total 10 Anggota - - - - - - Divisi Kerohanian - - {dataTugas.map((v, i) => { - return ( - - - - - - {v.name} - - - {v.email} - - - - - Anggota - - - ); - })} - - - - - - - - - - ); -} - diff --git a/src/module/project/components/detail_project/detail_file_save.tsx b/src/module/project/components/detail_project/detail_file_save.tsx deleted file mode 100644 index a6573a1..0000000 --- a/src/module/project/components/detail_project/detail_file_save.tsx +++ /dev/null @@ -1,9 +0,0 @@ -import React from 'react'; - -export default function DetailFileSave() { - return ( -
- DetailFileSave -
- ); -} diff --git a/src/module/project/components/detail_project/detail_project.tsx b/src/module/project/components/detail_project/detail_project.tsx deleted file mode 100644 index 12de88c..0000000 --- a/src/module/project/components/detail_project/detail_project.tsx +++ /dev/null @@ -1,235 +0,0 @@ -"use client"; -import { LayoutNavbarNew, WARNA } from "@/module/_global"; -import { - ActionIcon, - Avatar, - Box, - Center, - Checkbox, - Flex, - Grid, - Group, - Progress, - SimpleGrid, - Text, -} from "@mantine/core"; -import React from "react"; -import { HiMiniPresentationChartBar } from "react-icons/hi2"; -import { IoIosArrowDropright } from "react-icons/io"; -import ResultsDateAndTask from "../../ui/results_date-and_task"; -import ResultsFile from "../../ui/results_file"; -import { AiOutlineFileSync } from "react-icons/ai"; -import { useRouter } from "next/navigation"; -import { LuClipboardEdit } from "react-icons/lu"; - -const dataTugas = [ - { - id: 1, - name: "Iqbal Ramadan", - image: "https://i.pravatar.cc/1000?img=5", - email: "iqbal.ramadan@gmail.com", - }, - { - id: 2, - name: "Doni Setiawan", - image: "https://i.pravatar.cc/1000?img=10", - email: "doni.setiawan@gmail.com", - }, - { - id: 3, - name: "Rangga Agung", - image: "https://i.pravatar.cc/1000?img=51", - email: "rangga.agung@gmail.com", - }, - { - id: 4, - name: "Ramadan Sananta", - image: "https://i.pravatar.cc/1000?img=15", - email: "ramadan@gmail.com", - }, - { - id: 5, - name: "Imam Baroni", - image: "https://i.pravatar.cc/1000?img=22", - email: "imam.baroni@gmail.com", - }, -]; - -export default function DetailProject() { - const router = useRouter(); - return ( - - router.push("/project/update/1")} - > - - - } - /> - - - - - - - - - - - - Kemajuan Kegiatan 60% - - - - - - - - - Tanggal & Tugas - - - - -
- -
-
- - - - - Laporan Permasyarakatan - - - - - - Tanggal Mulai - - 16 Juni 2024 - - - - Tanggal Berakhir - - 20 Juni 2024 - - - - - -
-
-
- {/* */} - - - Anggota Terpilih - Total 10 Anggota - - - - - - Divisi Kerohanian - - {dataTugas.map((v, i) => { - return ( - - - - - - {v.name} - - - {v.email} - - - - - Anggota - - - ); - })} - - - - -
-
- ); -} diff --git a/src/module/project/components/detail_project/file_upload_progres.tsx b/src/module/project/components/detail_project/file_upload_progres.tsx deleted file mode 100644 index 7732344..0000000 --- a/src/module/project/components/detail_project/file_upload_progres.tsx +++ /dev/null @@ -1,88 +0,0 @@ -'use client' -import { LayoutNavbarNew, WARNA } from "@/module/_global"; -import { Box, Button, Center, SimpleGrid, Text } from "@mantine/core"; -import { useRouter } from "next/navigation"; -import React, { useState } from "react"; -import { BsFiletypeCsv } from "react-icons/bs"; - -const dataFile = [ - { - id: 1, - name: "Semua_Proyek.csv", - }, - { - id: 2, - name: "Proyek_Dinas.csv", - }, - { - id: 3, - name: "Proyek_Lpd.csv", - }, - { - id: 4, - name: "Proyek_Lembaga1.csv", - }, - { - id: 5, - name: "Proyek_Lembaga2.csv", - }, - { - id: 6, - name: "Proyek_Lembaga3.csv", - }, -]; - - -export default function FileUploadProgres({ kategori }: { kategori: string }) { - const router = useRouter() - const [selectedFiles, setSelectedFiles] = useState>({}); - - const handleFileClick = (index: number) => { - setSelectedFiles((prevSelectedFiles) => ({ - ...prevSelectedFiles, - [index]: !prevSelectedFiles[index], - })); - }; - - return ( - - - - - {dataFile.map((file, index) => { - const isSelected = selectedFiles[index]; - return ( - - handleFileClick(index)} - > -
- -
-
- - {file.name} - -
- ); - })} -
- - - -
-
- ); -} diff --git a/src/module/project/components/detail_project/update_progres.tsx b/src/module/project/components/detail_project/update_progres.tsx deleted file mode 100644 index 81d77e5..0000000 --- a/src/module/project/components/detail_project/update_progres.tsx +++ /dev/null @@ -1,283 +0,0 @@ -"use client"; -import { LayoutDrawer, LayoutNavbarNew, WARNA } from "@/module/_global"; -import { - Box, - Button, - Center, - Checkbox, - Flex, - Grid, - Group, - SimpleGrid, - Text, -} from "@mantine/core"; -import { useRouter } from "next/navigation"; -import React, { useState } from "react"; -import { AiOutlineFileSync } from "react-icons/ai"; -import { BsFiletypeCsv } from "react-icons/bs"; -import { IoIosArrowDropright } from "react-icons/io"; - -export default function UpdateProgres({ searchParams }: { searchParams: any }) { - const router = useRouter(); - const [openDrawer, setOpenDrawer] = useState(false); - return ( - - - - - setOpenDrawer(true)} - > - Upload File - - - - - - router.push("/project/update/1?page=detail-date-task") - } - > - Tambah Tanggal & Tugas - - - - - Tanggal & Tugas - - - - -
- -
-
- - - - - Laporan Permasyarakatan - - - - - - Tanggal Mulai - - 16 Juni 2024 - - - - Tanggal Berakhir - - 20 Juni 2024 - - - - - -
- {searchParams.tugas == "yes" && ( - <> - - -
- -
-
- - - - - Laporan Dua - - - - - - Tanggal Mulai - - 21 Juni 2024 - - - - Tanggal Berakhir - - 30 Juni 2024 - - - - - -
- - )} -
- - - File - - - - - - Kegiatan Laporan Permasyarakatan - - - - - - Kegiatan Laporan Permasyarakatan - - - - - - - -
- setOpenDrawer(false)} - title={"Pilih File"} - > - - ""}> - -
- -
-
- - Pilih file - - diperangkat -
- - router.push("/project/update/1?page=upload-progres") - } - > - -
- -
-
- - Pilih file yang - - sudah ada -
-
-
-
- ); -} diff --git a/src/module/project/components/file_save.tsx b/src/module/project/components/file_save.tsx deleted file mode 100644 index 741061c..0000000 --- a/src/module/project/components/file_save.tsx +++ /dev/null @@ -1,88 +0,0 @@ -'use client' -import { LayoutNavbarNew, WARNA } from "@/module/_global"; -import { Box, Button, Center, SimpleGrid, Text } from "@mantine/core"; -import { useRouter } from "next/navigation"; -import React, { useState } from "react"; -import { BsFiletypeCsv } from "react-icons/bs"; - -const dataFile = [ - { - id: 1, - name: "Semua_Proyek.csv", - }, - { - id: 2, - name: "Proyek_Dinas.csv", - }, - { - id: 3, - name: "Proyek_Lpd.csv", - }, - { - id: 4, - name: "Proyek_Lembaga1.csv", - }, - { - id: 5, - name: "Proyek_Lembaga2.csv", - }, - { - id: 6, - name: "Proyek_Lembaga3.csv", - }, -]; - - -export default function FileSave({ kategori }: { kategori: string }) { - const router = useRouter() - const [selectedFiles, setSelectedFiles] = useState>({}); - - const handleFileClick = (index: number) => { - setSelectedFiles((prevSelectedFiles) => ({ - ...prevSelectedFiles, - [index]: !prevSelectedFiles[index], - })); - }; - - return ( - - - - - {dataFile.map((file, index) => { - const isSelected = selectedFiles[index]; - return ( - - handleFileClick(index)} - > -
- -
-
- - {file.name} - -
- ); - })} -
- - - -
-
- ); -} diff --git a/src/module/project/components/project_cencel.tsx b/src/module/project/components/project_cencel.tsx deleted file mode 100644 index 58d0ce9..0000000 --- a/src/module/project/components/project_cencel.tsx +++ /dev/null @@ -1,157 +0,0 @@ -"use client" -import { WARNA } from '@/module/_global'; -import { ActionIcon, Avatar, Badge, Box, Card, Center, Divider, Flex, Grid, Group, Text, TextInput, Title } from '@mantine/core'; -import { useRouter } from 'next/navigation'; -import React, { useState } from 'react'; -import { HiMagnifyingGlass, HiMiniPresentationChartBar, HiOutlineListBullet, HiSquares2X2 } from 'react-icons/hi2'; -import { MdAccountCircle } from 'react-icons/md'; -import { RiCircleFill } from 'react-icons/ri'; - -const dataProject = [ - { - id: 1, - title: 'Project 1', - description: 'Tempat berkumpul semua anggota / staff perbekal darmasaba', - status: 'PROJECT BATAL', - }, - { - id: 2, - title: 'Project 2', - description: 'Tempat berkumpul semua anggota / staff perbekal darmasaba', - status: 'PROJECT BATAL', - }, - { - id: 3, - title: 'Project 3', - description: 'Tempat berkumpul semua anggota / staff perbekal darmasaba', - status: 'PROJECT BATAL', - }, - { - id: 4, - title: 'Project 4', - description: 'Tempat berkumpul semua anggota / staff perbekal darmasaba', - status: 'PROJECT BATAL', - }, - { - id: 5, - title: 'Project 5', - description: 'Tempat berkumpul semua anggota / staff perbekal darmasaba', - status: 'PROJECT BATAL', - }, - { - id: 6, - title: 'Project 6', - description: 'Tempat berkumpul semua anggota / staff perbekal darmasaba', - status: 'PROJECT BATAL', - }, -] -export default function ProjectCencel() { - const [isList, setIsList] = useState(false) - const router = useRouter() - - const handleList = () => { - setIsList(!isList) - } - return ( - - - - } - placeholder="Pencarian" - /> - - - - {isList ? ( - - ) : ( - - )} - - - - - - Total Kegiatan - - 35 - - - {isList ? ( - - {dataProject.map((v, i) => { - return ( - - router.push(`/project/${v.id}`)}> - -
- - - -
- {v.title} -
- - - -
- -
- ); - })} -
- ) : ( - - {dataProject.map((v, i) => { - return ( - - router.push(`/project/${v.id}`)}> - - - - {v.title} - - - - - {v.description} - - {v.status} - - - - - +5 - - - - - - ); - })} - - )} -
-
- ); -} diff --git a/src/module/project/components/project_done.tsx b/src/module/project/components/project_done.tsx deleted file mode 100644 index b643528..0000000 --- a/src/module/project/components/project_done.tsx +++ /dev/null @@ -1,157 +0,0 @@ -"use client" -import { WARNA } from '@/module/_global'; -import { ActionIcon, Avatar, Badge, Box, Card, Center, Divider, Flex, Grid, Group, Text, TextInput, Title } from '@mantine/core'; -import { useRouter } from 'next/navigation'; -import React, { useState } from 'react'; -import { HiMagnifyingGlass, HiMiniPresentationChartBar, HiOutlineListBullet, HiSquares2X2 } from 'react-icons/hi2'; -import { MdAccountCircle } from 'react-icons/md'; -import { RiCircleFill } from 'react-icons/ri'; - -const dataProject = [ - { - id: 1, - title: 'Project 1', - description: 'Tempat berkumpul semua anggota / staff perbekal darmasaba', - status: 'PROJECT SELESAI', - }, - { - id: 2, - title: 'Project 2', - description: 'Tempat berkumpul semua anggota / staff perbekal darmasaba', - status: 'PROJECT SELESAI', - }, - { - id: 3, - title: 'Project 3', - description: 'Tempat berkumpul semua anggota / staff perbekal darmasaba', - status: 'PROJECT SELESAI', - }, - { - id: 4, - title: 'Project 4', - description: 'Tempat berkumpul semua anggota / staff perbekal darmasaba', - status: 'PROJECT SELESAI', - }, - { - id: 5, - title: 'Project 5', - description: 'Tempat berkumpul semua anggota / staff perbekal darmasaba', - status: 'PROJECT SELESAI', - }, - { - id: 6, - title: 'Project 6', - description: 'Tempat berkumpul semua anggota / staff perbekal darmasaba', - status: 'PROJECT SELESAI', - }, -] -export default function ProjectDone() { - const [isList, setIsList] = useState(false) - const router = useRouter() - - const handleList = () => { - setIsList(!isList) - } - return ( - - - - } - placeholder="Pencarian" - /> - - - - {isList ? ( - - ) : ( - - )} - - - - - - Total Kegiatan - - 35 - - - {isList ? ( - - {dataProject.map((v, i) => { - return ( - - router.push(`/project/${v.id}`)}> - -
- - - -
- {v.title} -
- - - -
- -
- ); - })} -
- ) : ( - - {dataProject.map((v, i) => { - return ( - - router.push(`/project/${v.id}`)}> - - - - {v.title} - - - - - {v.description} - - {v.status} - - - - - +5 - - - - - - ); - })} - - )} -
-
- ); -} diff --git a/src/module/project/components/project_process.tsx b/src/module/project/components/project_process.tsx deleted file mode 100644 index 08e1fe4..0000000 --- a/src/module/project/components/project_process.tsx +++ /dev/null @@ -1,158 +0,0 @@ -"use client" -import { WARNA } from '@/module/_global'; -import { ActionIcon, Avatar, Badge, Box, Card, Center, Divider, Flex, Grid, Group, Text, TextInput, Title } from '@mantine/core'; -import { useRouter } from 'next/navigation'; -import React, { useState } from 'react'; -import { HiMagnifyingGlass, HiMiniPresentationChartBar, HiOutlineListBullet, HiSquares2X2 } from 'react-icons/hi2'; -import { MdAccountCircle } from 'react-icons/md'; -import { RiCircleFill } from 'react-icons/ri'; - -const dataProject = [ - { - id: 1, - title: 'Project 1', - description: 'Tempat berkumpul semua anggota / staff perbekal darmasaba', - status: 'PROJECT PROSES', - }, - { - id: 2, - title: 'Project 2', - description: 'Tempat berkumpul semua anggota / staff perbekal darmasaba', - status: 'PROJECT PROSES', - }, - { - id: 3, - title: 'Project 3', - description: 'Tempat berkumpul semua anggota / staff perbekal darmasaba', - status: 'PROJECT PROSES', - }, - { - id: 4, - title: 'Project 4', - description: 'Tempat berkumpul semua anggota / staff perbekal darmasaba', - status: 'PROJECT PROSES', - }, - { - id: 5, - title: 'Project 5', - description: 'Tempat berkumpul semua anggota / staff perbekal darmasaba', - status: 'PROJECT PROSES', - }, - { - id: 6, - title: 'Project 6', - description: 'Tempat berkumpul semua anggota / staff perbekal darmasaba', - status: 'PROJECT PROSES', - }, -] -export default function ProjectProcess() { - const [isList, setIsList] = useState(false) - const router = useRouter() - - const handleList = () => { - setIsList(!isList) - } - return ( - - - - } - placeholder="Pencarian" - /> - - - - {isList ? ( - - ) : ( - - )} - - - - - - Total Kegiatan - - 35 - - - {isList ? ( - - {dataProject.map((v, i) => { - return ( - - router.push(`/project/${v.id}`)}> - -
- - - -
- {v.title} -
- - - -
- -
- ); - })} -
- ) : ( - - {dataProject.map((v, i) => { - return ( - - router.push(`/project/${v.id}`)}> - - - - {v.title} - - - - - {v.description} - - {v.status} - - - - - +5 - - - - - - ); - })} - - )} -
-
- ); -} - diff --git a/src/module/project/components/ui/drawer_project.tsx b/src/module/project/components/ui/drawer_project.tsx deleted file mode 100644 index 1bda69c..0000000 --- a/src/module/project/components/ui/drawer_project.tsx +++ /dev/null @@ -1,37 +0,0 @@ -import { WARNA } from '@/module/_global'; -import { Box, Flex, SimpleGrid, Stack, Text } from '@mantine/core'; -import { useSearchParams } from 'next/navigation'; -import React, { useState } from 'react'; -import { HiOutlineFilter } from 'react-icons/hi'; -import { IoAddCircle } from 'react-icons/io5'; - -export default function DrawerProject() { - const searchParams = useSearchParams() - const group = searchParams.get('group') - return ( - - - - window.location.href = "/project/create"} justify={'center'} align={'center'} direction={'column'} > - - - - - Tambah Kegiatan - - - window.location.href = "/project?page=filter&group=" + group} justify={'center'} align={'center'} direction={'column'} > - - - - - Filter - - - - - - ); -} diff --git a/src/module/project/components/ui/navbar_project.tsx b/src/module/project/components/ui/navbar_project.tsx deleted file mode 100644 index 457bda4..0000000 --- a/src/module/project/components/ui/navbar_project.tsx +++ /dev/null @@ -1,102 +0,0 @@ -"use client" -import { LayoutDrawer, LayoutNavbarNew, WARNA } from '@/module/_global'; -import { ActionIcon, Avatar, Badge, Box, Card, Center, Divider, Flex, Grid, Group, rem, Tabs, Text, TextInput, Title } from '@mantine/core'; -import React, { useEffect, useState } from 'react'; -import { HiMenu } from 'react-icons/hi'; -import { HiMagnifyingGlass, HiMiniPresentationChartBar, HiOutlineListBullet, HiSquares2X2 } from 'react-icons/hi2'; -import { MdAccountCircle } from 'react-icons/md'; -import { RiCircleFill } from "react-icons/ri"; -import DrawerProject from './drawer_project'; -import { useRouter } from 'next/navigation'; -import { TbClockPause } from 'react-icons/tb'; -import { IoIosCheckmarkCircleOutline } from 'react-icons/io'; -import { IoCloseCircleOutline } from 'react-icons/io5'; -import ProjectProcess from '../project_process'; -import ProjectDone from '../project_done'; -import ProjectCencel from '../project_cencel'; - -export default function NavbarProject() { - const [openDrawer, setOpenDrawer] = useState(false) - - const iconStyle = { width: rem(20), height: rem(20) }; - - const tabsData = [ - { - value: 'segera', - label: 'Proyek Proses', - mobileLabel: 'Proses', - icon: , - }, - { - value: 'selesai', - label: 'Proyek Selesai', - mobileLabel: 'Selesai', - icon: , - }, - { - value: 'batal', - label: 'Proyek Batal', - mobileLabel: ' Batal', - icon: , - }, - ]; - const [isMobile, setIsMobile] = useState(false); - - useEffect(() => { - const handleResize = () => { - if (window.innerWidth < 495) { - setIsMobile(true); - } else { - setIsMobile(false); - } - }; - window.addEventListener('resize', handleResize); - handleResize(); - return () => { - window.removeEventListener('resize', handleResize); - }; - }, []); - - return ( - - setOpenDrawer(true)} bg={WARNA.bgIcon} size="lg" radius="lg" aria-label="Settings"> - - } /> - - - - - {tabsData.map((tab) => ( - - {isMobile ? tab.mobileLabel : tab.label} - - ))} - - - - - - - - - - - - - - - - - setOpenDrawer(false)}> - - - - ); -} - diff --git a/src/module/project/index.ts b/src/module/project/index.ts index 8ea7aa8..090f969 100644 --- a/src/module/project/index.ts +++ b/src/module/project/index.ts @@ -1,13 +1,5 @@ import ViewDateEndTask from "./ui/create_date_end_task"; -import ViewProject from "./view/view_project"; import CreateUsersProject from "./ui/create_users_project"; -import ViewFileSave from "./view/view_file_save"; -import ViewDetailProject from "./view/view_detail_project"; -import ViewUpdateProgres from "./view/view_update_progres"; -import DetailCreateUserProject from "./components/detail_project/detail_create_user_project"; -import DetailDateEndTask from "./components/detail_project/detail_date_end_task"; -import DetailFileSave from "./components/detail_project/detail_file_save"; -import FileUploadProgres from "./components/detail_project/file_upload_progres"; import TabProject from "./ui/tab_project"; import NavbarDetailProject from "./ui/navbar_detail_project"; import ProgressDetailProject from "./ui/progress_detail_project"; @@ -23,16 +15,8 @@ import AddMemberDetailProject from "./ui/add_member_detail_project"; import CreateProject from "./ui/create_project"; import AddFileDetailProject from "./ui/add_file_detail_project"; -export { ViewProject } export { ViewDateEndTask } export { CreateUsersProject } -export { ViewFileSave } -export { ViewDetailProject } -export { ViewUpdateProgres } -export { DetailCreateUserProject } -export { DetailDateEndTask } -export { DetailFileSave } -export { FileUploadProgres } export { TabProject } export { NavbarDetailProject } export { ProgressDetailProject } diff --git a/src/module/project/view/view_detail_project.tsx b/src/module/project/view/view_detail_project.tsx deleted file mode 100644 index eb65846..0000000 --- a/src/module/project/view/view_detail_project.tsx +++ /dev/null @@ -1,6 +0,0 @@ -import React from "react"; -import DetailProject from "../components/detail_project/detail_project"; - -export default function ViewDetailProject() { - return ; -} diff --git a/src/module/project/view/view_file_save.tsx b/src/module/project/view/view_file_save.tsx deleted file mode 100644 index a9f58aa..0000000 --- a/src/module/project/view/view_file_save.tsx +++ /dev/null @@ -1,9 +0,0 @@ -import React from 'react'; -import FileSave from '../components/file_save'; - -export default function ViewFileSave({ kategori }: { kategori: string }) { - return ( - - ); -} - diff --git a/src/module/project/view/view_project.tsx b/src/module/project/view/view_project.tsx deleted file mode 100644 index e947a75..0000000 --- a/src/module/project/view/view_project.tsx +++ /dev/null @@ -1,11 +0,0 @@ -import React from 'react'; -import NavbarProject from '../components/ui/navbar_project'; - -export default function ViewProject() { - return ( -
- -
- ); -} - diff --git a/src/module/project/view/view_update_progres.tsx b/src/module/project/view/view_update_progres.tsx deleted file mode 100644 index bf4ed13..0000000 --- a/src/module/project/view/view_update_progres.tsx +++ /dev/null @@ -1,9 +0,0 @@ -import React from 'react'; -import UpdateProgres from '../components/detail_project/update_progres'; - -export default function ViewUpdateProgres({searchParams}: {searchParams: any}) { - return ( - - ); -} -