diff --git a/app/[locale]/(public)/content-management/download/page.tsx b/app/[locale]/(public)/content-management/download/page.tsx index d13b7b27..729e70dc 100644 --- a/app/[locale]/(public)/content-management/download/page.tsx +++ b/app/[locale]/(public)/content-management/download/page.tsx @@ -18,6 +18,7 @@ import { Input } from "@/components/ui/input"; import { Button } from "@/components/ui/button"; import { sendMediaUploadToEmail } from "@/service/media-tracking/media-tracking"; import ImageBlurry from "@/components/ui/image-blurry"; +import Image from "next/image"; const Galery = (props: any) => { const [profile, setProfile] = useState(); @@ -376,7 +377,7 @@ const Galery = (props: any) => { ) : (

- empty + empty

) ) : selectedTab == "audio" ? ( @@ -456,7 +457,7 @@ const Galery = (props: any) => { ) : (

- empty + empty

) ) : selectedTab == "image" ? ( @@ -517,7 +518,7 @@ const Galery = (props: any) => { ) : (

- empty + empty

) ) : contentDocument.length > 0 ? ( @@ -588,7 +589,7 @@ const Galery = (props: any) => { ) : (

- empty + empty

)} diff --git a/app/[locale]/(public)/content-management/galery/page.tsx b/app/[locale]/(public)/content-management/galery/page.tsx index 774adc29..adedbe35 100644 --- a/app/[locale]/(public)/content-management/galery/page.tsx +++ b/app/[locale]/(public)/content-management/galery/page.tsx @@ -20,6 +20,7 @@ import { Input } from "@/components/ui/input"; import { Button } from "@/components/ui/button"; import { sendMediaUploadToEmail } from "@/service/media-tracking/media-tracking"; import ImageBlurry from "@/components/ui/image-blurry"; +import Image from "next/image"; const Galery = (props: any) => { const [profile, setProfile] = useState(); @@ -382,7 +383,7 @@ const Galery = (props: any) => { ) : (

- empty + empty

) ) : selectedTab == "audio" ? ( @@ -460,7 +461,7 @@ const Galery = (props: any) => { ) : (

- empty + empty

) ) : selectedTab == "image" ? ( @@ -521,7 +522,7 @@ const Galery = (props: any) => { ) : (

- empty + empty

) ) : contentDocument.length > 0 ? ( @@ -592,7 +593,7 @@ const Galery = (props: any) => { ) : (

- empty + empty

)} diff --git a/app/[locale]/(public)/content-management/rewrite/page.tsx b/app/[locale]/(public)/content-management/rewrite/page.tsx index c599c737..74230f44 100644 --- a/app/[locale]/(public)/content-management/rewrite/page.tsx +++ b/app/[locale]/(public)/content-management/rewrite/page.tsx @@ -17,6 +17,7 @@ import { Input } from "@/components/ui/input"; import { Button } from "@/components/ui/button"; import { sendMediaUploadToEmail } from "@/service/media-tracking/media-tracking"; import ImageBlurry from "@/components/ui/image-blurry"; +import Image from "next/image"; const page = () => { const [, setProfile] = useState(); @@ -259,7 +260,7 @@ const page = () => { ) : (

- empty + empty

)} diff --git a/app/[locale]/(public)/image/detail/[slug]/page.tsx b/app/[locale]/(public)/image/detail/[slug]/page.tsx index 9a119d3e..15442eff 100644 --- a/app/[locale]/(public)/image/detail/[slug]/page.tsx +++ b/app/[locale]/(public)/image/detail/[slug]/page.tsx @@ -20,6 +20,7 @@ import Swal from "sweetalert2"; import parse from "html-react-parser"; import { Skeleton } from "@/components/ui/skeleton"; import { useTranslations } from "next-intl"; +import Image from "next/image"; const DetailInfo = () => { const MySwal = withReactContent(Swal); @@ -444,7 +445,7 @@ const DetailInfo = () => { ) : (
- Main + Main
)} @@ -460,7 +461,7 @@ const DetailInfo = () => {
{detailDataImage?.files?.map((file: any, index: number) => ( setSelectedImage(index)} key={file?.id}> - + image-small ))}
@@ -614,7 +615,7 @@ const DetailInfo = () => { {listSuggestion?.map((data: any) => (
- +

{Number(data.suggestionFrom?.roleId) == 2 || Number(data.suggestionFrom?.roleId) == 3 || Number(data.suggestionFrom?.roleId) == 4 ? "HUMAS POLRI" : data.suggestionFrom?.fullname} @@ -663,7 +664,7 @@ const DetailInfo = () => { ? data.children?.map((child1: any) => (

- +

{" "} @@ -718,7 +719,7 @@ const DetailInfo = () => { ? child1.children?.map((child2: any) => (

- +

{" "} diff --git a/app/[locale]/(public)/image/filter/page.tsx b/app/[locale]/(public)/image/filter/page.tsx index 50723aef..4e4e24b9 100644 --- a/app/[locale]/(public)/image/filter/page.tsx +++ b/app/[locale]/(public)/image/filter/page.tsx @@ -17,6 +17,7 @@ import { close, loading } from "@/config/swal"; import { useTranslations } from "next-intl"; import ImageBlurry from "@/components/ui/image-blurry"; import { Skeleton } from "@/components/ui/skeleton"; +import Image from "next/image"; const columns: ColumnDef[] = [ { @@ -537,7 +538,7 @@ const FilterPage = () => {

) : (

- empty + empty

)} diff --git a/app/[locale]/(public)/indeks/detail/[slug]/page.tsx b/app/[locale]/(public)/indeks/detail/[slug]/page.tsx index af0d0358..4cc35e68 100644 --- a/app/[locale]/(public)/indeks/detail/[slug]/page.tsx +++ b/app/[locale]/(public)/indeks/detail/[slug]/page.tsx @@ -11,6 +11,7 @@ import { getCookiesDecrypt } from "@/lib/utils"; import { close, loading } from "@/config/swal"; import { Input } from "@/components/ui/input"; import { useTranslations } from "next-intl"; +import Image from "next/image"; const IndeksDetail = () => { const searchParams = useSearchParams(); @@ -161,7 +162,7 @@ const IndeksDetail = () => {
{/* Gambar Utama */}
- Main + Main
{/* Footer Informasi */}
@@ -195,7 +196,7 @@ const IndeksDetail = () => { {listComments?.map((data: any) => (
- # + #

{Number(data.commentFrom?.roleId) == 2 || Number(data.commentFrom?.roleId) == 3 || Number(data.commentFrom?.roleId) == 4 ? "HUMAS POLRI" : data.commentFrom?.fullname} @@ -233,7 +234,7 @@ const IndeksDetail = () => { ? data.children?.map((child1: any) => (

- # + #

{Number(child1.commentFrom?.roleId) == 2 || Number(child1.commentFrom?.roleId) == 3 || Number(child1.commentFrom?.roleId) == 4 ? "HUMAS POLRI" : child1.commentFrom?.fullname} @@ -273,7 +274,7 @@ const IndeksDetail = () => { ? child1.children?.map((child2: any) => (

- # + #

{Number(child2.commentFrom?.roleId) == 2 || Number(child2.commentFrom?.roleId) == 3 || Number(child2.commentFrom?.roleId) == 4 ? "HUMAS POLRI" : child2.commentFrom?.fullname} @@ -328,7 +329,7 @@ const IndeksDetail = () => { {indexData?.map((relate: any) => ( - +

{relate?.categoryName}

{relate?.title}

diff --git a/app/[locale]/(public)/indeks/page.tsx b/app/[locale]/(public)/indeks/page.tsx index 596c1401..2e471bdc 100644 --- a/app/[locale]/(public)/indeks/page.tsx +++ b/app/[locale]/(public)/indeks/page.tsx @@ -4,6 +4,7 @@ import { Skeleton } from "@/components/ui/skeleton"; import { Link } from "@/i18n/routing"; import { getIndeksData } from "@/service/landing/landing"; import { formatDateToIndonesian } from "@/utils/globals"; +import Image from "next/image"; import { usePathname } from "next/navigation"; import React, { useEffect, useState } from "react"; @@ -53,14 +54,14 @@ const Indeks: React.FC = () => { (indeks: any, index: number) => index == count && (
- image + image
{indeks?.categoryName}

{indeks?.title}

-

- {formatDateToIndonesian(new Date(indeks?.createdAt))} {indeks?.timezone ? indeks?.timezone : "WIB"}|{" "} +

+ {formatDateToIndonesian(new Date(indeks?.createdAt))} {indeks?.timezone ? indeks?.timezone : "WIB"} | {" "} { (indeksRight: any, index: number) => (index == count + 1 || index == count + 2) && (

- image + image
{indeksRight?.categoryName} @@ -148,7 +149,7 @@ const Indeks: React.FC = () => { (indeksBottom: any, index: number) => index < 3 && (
- +

{indeksBottom?.date}

diff --git a/app/[locale]/(public)/profile/change-profile/page.tsx b/app/[locale]/(public)/profile/change-profile/page.tsx index f5c8688f..a546960b 100644 --- a/app/[locale]/(public)/profile/change-profile/page.tsx +++ b/app/[locale]/(public)/profile/change-profile/page.tsx @@ -1,5 +1,6 @@ "use client"; import { Link } from "@/components/navigation"; +import Image from "next/image"; import React, { useState } from "react"; const ChangeProfile: React.FC = () => { @@ -36,55 +37,29 @@ const ChangeProfile: React.FC = () => {
- + - + - +
- {selectedImage ? ( - Preview - ) : ( - No Image - )} + {selectedImage ? Preview : No Image}
- -
diff --git a/app/[locale]/(public)/video/detail/[slug]/page.tsx b/app/[locale]/(public)/video/detail/[slug]/page.tsx index f0f17197..da19244c 100644 --- a/app/[locale]/(public)/video/detail/[slug]/page.tsx +++ b/app/[locale]/(public)/video/detail/[slug]/page.tsx @@ -20,6 +20,7 @@ import withReactContent from "sweetalert2-react-content"; import Swal from "sweetalert2"; import parse from "html-react-parser"; import { useTranslations } from "next-intl"; +import Image from "next/image"; const DetailVideo = () => { const [selectedSize, setSelectedSize] = useState("L"); @@ -586,7 +587,7 @@ const DetailVideo = () => { {listSuggestion?.map((data: any) => (
- +

{Number(data.suggestionFrom?.roleId) == 2 || Number(data.suggestionFrom?.roleId) == 3 || Number(data.suggestionFrom?.roleId) == 4 ? "HUMAS POLRI" : data.suggestionFrom?.fullname} @@ -635,7 +636,7 @@ const DetailVideo = () => { ? data.children?.map((child1: any) => (

- +

{" "} @@ -689,7 +690,7 @@ const DetailVideo = () => { ? child1.children?.map((child2: any) => (

- +

{" "} diff --git a/app/[locale]/(public)/video/filter/page.tsx b/app/[locale]/(public)/video/filter/page.tsx index 1552cc5a..2d711740 100644 --- a/app/[locale]/(public)/video/filter/page.tsx +++ b/app/[locale]/(public)/video/filter/page.tsx @@ -17,6 +17,7 @@ import { close, loading } from "@/config/swal"; import { useTranslations } from "next-intl"; import ImageBlurry from "@/components/ui/image-blurry"; import { Skeleton } from "@/components/ui/skeleton"; +import Image from "next/image"; const columns: ColumnDef[] = [ { @@ -562,7 +563,7 @@ const FilterPage = () => {

) : (

- empty + empty

)} diff --git a/components/landing-page/content-category.tsx b/components/landing-page/content-category.tsx index f764863a..61dc8707 100644 --- a/components/landing-page/content-category.tsx +++ b/components/landing-page/content-category.tsx @@ -6,6 +6,7 @@ import { Reveal } from "./Reveal"; import { useTranslations } from "next-intl"; import { usePathname } from "next/navigation"; import { useParams } from "next/navigation"; +import Image from "next/image"; const ContentCategory = (props: { group?: string }) => { const [categories, setCategories] = useState(); @@ -55,7 +56,7 @@ const ContentCategory = (props: { group?: string }) => { !seeAllValue ? ( index < 4 ? ( - + category

{category?.name}

@@ -65,7 +66,7 @@ const ContentCategory = (props: { group?: string }) => { ) ) : ( - + category

{category?.name}

diff --git a/components/landing-page/hero.tsx b/components/landing-page/hero.tsx index 76f5d65c..301da675 100644 --- a/components/landing-page/hero.tsx +++ b/components/landing-page/hero.tsx @@ -7,6 +7,7 @@ import Link from "next/link"; import { useParams, usePathname, useRouter } from "next/navigation"; import { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious } from "@/components/ui/carousel"; import { Skeleton } from "../ui/skeleton"; +import Image from "next/image"; const Hero: React.FC = () => { const router = useRouter(); @@ -67,7 +68,7 @@ const Hero: React.FC = () => { {heroData?.map((list: any) => (
- Gambar Utama + gambar-utama
{list?.categoryName} @@ -138,7 +139,7 @@ const Hero: React.FC = () => { {heroData?.map((item: any) => (
  • - {item?.title} + {item?.title}
    {item?.categoryName} diff --git a/components/landing-page/navbar.tsx b/components/landing-page/navbar.tsx index 669c007a..f42dd6e6 100644 --- a/components/landing-page/navbar.tsx +++ b/components/landing-page/navbar.tsx @@ -146,7 +146,7 @@ const Navbar = () => {
    {/* Logo */} - Media Hub Logo + Media Hub Logo {/* Mobile Menu Toggle */} @@ -294,7 +294,7 @@ const Navbar = () => { */} @@ -417,7 +417,7 @@ const Navbar = () => { {notifications?.map((list: any) => (
    - ... + avatar
    {list?.message}
    @@ -441,7 +441,7 @@ const Navbar = () => { {notificationsUpdate?.map((list: any) => (
    - ... + ...
    {list?.message}
    @@ -563,7 +563,7 @@ const Navbar = () => { {notifications?.map((list: any) => (
    - ... + ...
    {list?.message}
    @@ -587,7 +587,7 @@ const Navbar = () => { {notificationsUpdate?.map((list: any) => (
    - ... + ...
    {list?.message}
    @@ -834,7 +834,7 @@ const Navbar = () => {
    */}
    @@ -989,7 +989,7 @@ const Navbar = () => { {notifications?.map((list: any) => (
    - ... + ...
    {list?.message}
    @@ -1013,7 +1013,7 @@ const Navbar = () => { {notificationsUpdate?.map((list: any) => (
    - ... + ...
    {list?.message}
    @@ -1135,7 +1135,7 @@ const Navbar = () => { {notifications?.map((list: any) => (
    - ... + ...
    {list?.message}
    @@ -1159,7 +1159,7 @@ const Navbar = () => { {notificationsUpdate?.map((list: any) => (
    - ... + ...
    {list?.message}
    diff --git a/components/landing-page/new-content.tsx b/components/landing-page/new-content.tsx index 1192ba7e..3301eecf 100644 --- a/components/landing-page/new-content.tsx +++ b/components/landing-page/new-content.tsx @@ -11,6 +11,7 @@ import { Link } from "@/i18n/routing"; import { Reveal } from "./Reveal"; import { useTranslations } from "next-intl"; import { Skeleton } from "../ui/skeleton"; +import Image from "next/image"; const NewContent = (props: { group: string; type: string }) => { const [newContent, setNewContent] = useState(); @@ -117,9 +118,9 @@ const NewContent = (props: { group: string; type: string }) => { {newContent?.map((image: any) => ( - + image
    -

    {image?.title}

    +

    {image?.title}

    {formatDateToIndonesian(new Date(image?.createdAt))} {image?.timezone ? image?.timezone : "WIB"} | {image.clickCount}{" "}

    @@ -133,7 +134,7 @@ const NewContent = (props: { group: string; type: string }) => { ) : (

    - empty + empty

    ) ) : selectedTab == "audio" ? ( @@ -171,7 +172,7 @@ const NewContent = (props: { group: string; type: string }) => { ) : (

    - empty + empty

    ) ) : selectedTab == "video" ? ( @@ -181,9 +182,9 @@ const NewContent = (props: { group: string; type: string }) => { {newContent?.map((video: any) => ( - + video
    -

    {video?.title}

    +

    {video?.title}

    {formatDateToIndonesian(new Date(video?.createdAt))} {video?.timezone ? video?.timezone : "WIB"}| {video?.clickCount}{" "}

    @@ -197,7 +198,7 @@ const NewContent = (props: { group: string; type: string }) => { ) : (

    - empty + empty

    ) ) : newContent.length > 0 ? ( @@ -241,7 +242,7 @@ const NewContent = (props: { group: string; type: string }) => { ) : (

    - empty + empty

    )}