diff --git a/app/(admin)/admin/article/create/page.tsx b/app/(admin)/admin/article/create/page.tsx index a12f045..836116f 100644 --- a/app/(admin)/admin/article/create/page.tsx +++ b/app/(admin)/admin/article/create/page.tsx @@ -4,7 +4,7 @@ import { Card } from "@nextui-org/react"; export default function CreateArticle() { return ( -
+
{/* */}
diff --git a/app/(admin)/admin/article/detail/[id]/page.tsx b/app/(admin)/admin/article/detail/[id]/page.tsx index 9b5cbcd..d3b68e0 100644 --- a/app/(admin)/admin/article/detail/[id]/page.tsx +++ b/app/(admin)/admin/article/detail/[id]/page.tsx @@ -2,7 +2,7 @@ import EditArticleForm from "@/components/form/article/edit-article-form"; export default function DetailArticlePage() { return ( -
+
{/* */}
diff --git a/app/(admin)/admin/article/edit/[id]/page.tsx b/app/(admin)/admin/article/edit/[id]/page.tsx index 3586d72..93ffc72 100644 --- a/app/(admin)/admin/article/edit/[id]/page.tsx +++ b/app/(admin)/admin/article/edit/[id]/page.tsx @@ -2,7 +2,7 @@ import EditArticleForm from "@/components/form/article/edit-article-form"; export default function UpdateArticlePage() { return ( -
+
); diff --git a/app/(admin)/admin/article/page.tsx b/app/(admin)/admin/article/page.tsx index c8c8fbd..935f32b 100644 --- a/app/(admin)/admin/article/page.tsx +++ b/app/(admin)/admin/article/page.tsx @@ -10,9 +10,12 @@ export default function BasicPage() { return (
-
- - diff --git a/app/(admin)/admin/dashboard/page.tsx b/app/(admin)/admin/dashboard/page.tsx index acba2e7..3be562d 100644 --- a/app/(admin)/admin/dashboard/page.tsx +++ b/app/(admin)/admin/dashboard/page.tsx @@ -3,7 +3,7 @@ import DashboardContainer from "@/components/main/dashboard/dashboard-container" export default function AdminPage() { return (
-
+
diff --git a/app/(admin)/admin/magazine/create/page.tsx b/app/(admin)/admin/magazine/create/page.tsx index a5f5009..9ad1486 100644 --- a/app/(admin)/admin/magazine/create/page.tsx +++ b/app/(admin)/admin/magazine/create/page.tsx @@ -4,7 +4,7 @@ import React from "react"; const AdminMagazineCreate = () => { return ( -
+
); diff --git a/app/(admin)/admin/magazine/detail/[id]/page.tsx b/app/(admin)/admin/magazine/detail/[id]/page.tsx index 058b325..a948b2e 100644 --- a/app/(admin)/admin/magazine/detail/[id]/page.tsx +++ b/app/(admin)/admin/magazine/detail/[id]/page.tsx @@ -2,7 +2,7 @@ import EditMagazineForm from "@/components/form/magazine/edit-magazine-form"; export default function DetailArticlePage() { return ( -
+
); diff --git a/app/(admin)/admin/magazine/edit/[id]/page.tsx b/app/(admin)/admin/magazine/edit/[id]/page.tsx index d956702..dd20cc7 100644 --- a/app/(admin)/admin/magazine/edit/[id]/page.tsx +++ b/app/(admin)/admin/magazine/edit/[id]/page.tsx @@ -2,7 +2,7 @@ import EditMagazineForm from "@/components/form/magazine/edit-magazine-form"; export default function EditArticlePage() { return ( -
+
); diff --git a/app/(admin)/admin/magazine/page.tsx b/app/(admin)/admin/magazine/page.tsx index cf6a5d1..1bee7e5 100644 --- a/app/(admin)/admin/magazine/page.tsx +++ b/app/(admin)/admin/magazine/page.tsx @@ -8,9 +8,12 @@ export default function MagazineTablePage() { return (
-
- - diff --git a/app/(admin)/admin/master-category/page.tsx b/app/(admin)/admin/master-category/page.tsx index 250292f..b79b23b 100644 --- a/app/(admin)/admin/master-category/page.tsx +++ b/app/(admin)/admin/master-category/page.tsx @@ -164,10 +164,10 @@ export default function MasterCategoryTable() { return (
-
+
+
+ )} +
+ + + {/* {isOpen && ACME} */} + + {isOpen && ( + + )} +
+ + + {sideBarDummyData + ? sideBarDummyData?.map((list: any, index: number) => + list.isGroup ? ( +

+ {isOpen ? list.name : "..."} +

+ ) : list.childMenu?.length < 1 ? ( + <> + {isOpen ? ( + + {/*
*/} +
+ {list.icon} {isOpen && list.name} +
+ + ) : ( + + +
+ {list.icon} {isOpen && list.name} +
+ +
+ )} + + ) : ( + ( + + )), + ]} + /> + ) + ) + : ""} + +
+
+
+
+ + {isOpen && "Theme"} +
+ {isOpen ? ( + +
+ {isOpen && "Settings"} +
+ + ) : ( + + +
+ {isOpen && "Settings"} +
+ +
+ )} + {isOpen ? ( + + ) : ( + + + + + + )} +
+
+
+
+ ); +}; + +export default SidebarMobile; diff --git a/components/main/dashboard/dashboard-container.tsx b/components/main/dashboard/dashboard-container.tsx index 9e95a7d..cae54d1 100644 --- a/components/main/dashboard/dashboard-container.tsx +++ b/components/main/dashboard/dashboard-container.tsx @@ -90,10 +90,10 @@ export default function DashboardContainer() { }; return ( -
+
-
-
+
+

{fullname}

@@ -111,28 +111,28 @@ export default function DashboardContainer() {
-
+
Total post
121
-
+
Total views
154
-
+
Total share
154
-
+
@@ -140,17 +140,35 @@ export default function DashboardContainer() {
530
-
-
+
+
Analytics
+ + + Visit + + + View + + + Share + + Visit @@ -164,11 +182,12 @@ export default function DashboardContainer() {
-
+
@@ -176,23 +195,24 @@ export default function DashboardContainer() { color="primary" onClick={() => setTypeDate("weekly")} variant={typeDate === "weekly" ? "solid" : "bordered"} + className="w-[140px] text-xs lg:text-sm h-[30px] lg:h-[40px] rounded-sm lg:rounded-lg" > Mingguan -
+
setStartDateValue(e)} - inputClassName="z-50 w-full text-sm bg-transparent border-1 border-gray-200 px-2 py-[6px] rounded-xl h-[40px] text-gray-600 dark:text-gray-300" + inputClassName="z-50 w-full text-xs lg:text-sm bg-transparent border-1 border-gray-200 px-2 py-[6px] rounded-sm lg:rounded-lg h-[30px] lg:h-[40px] text-gray-600 dark:text-gray-300" />
-
+
-
+

Recent Article

@@ -220,7 +240,7 @@ export default function DashboardContainer() { className="h-[70px] w-[70px] object-cover rounded-lg" />
-

{textEllipsis(list?.title, 40)}

+

{textEllipsis(list?.title, 58)}

{convertDateFormat(list?.createdAt)}

diff --git a/components/main/detail/comment.tsx b/components/main/detail/comment.tsx index fff98b7..a406521 100644 --- a/components/main/detail/comment.tsx +++ b/components/main/detail/comment.tsx @@ -6,6 +6,11 @@ import * as z from "zod"; import { zodResolver } from "@hookform/resolvers/zod"; import { otpRequest, otpValidation } from "@/service/master-user"; import { error } from "@/config/swal"; +import { UserProfileIcon } from "@/components/icons/globals"; +import { convertDateFormat } from "@/utils/global"; +import Cookies from "js-cookie"; + +const userId = Cookies.get("uie"); const commentSchema = z.object({ name: z.string().min(1, { @@ -24,6 +29,23 @@ const commentSchema = z.object({ }), }); +const dummyData = [ + { + id: 1, + createdByName: "User 2", + comment: "test comment", + createdAt: "2025-01-30T00:09:39.352384Z", + createdById: 32, + }, + { + id: 2, + createdByName: "User 2", + comment: "test comment 22", + createdAt: "2025-01-31T00:10:50.352384Z", + createdById: 23, + }, +]; + export default function Comment() { const [needOtp, setNeedOtp] = useState(false); const [otpValue, setOtpValue] = useState(""); @@ -61,130 +83,159 @@ export default function Comment() { } }; return ( - - Tinggalkan balasan -

- Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai{" "} - * -

-
-

Komentar

- ( -