From 5fc867dd12c28941ff70bba443e86c84ba8441df Mon Sep 17 00:00:00 2001 From: Sabda Yagra Date: Tue, 11 Feb 2025 18:16:07 +0700 Subject: [PATCH] fix: content-management --- .../content-management/download/page.tsx | 214 ++++++++++-------- .../content-management/galery/page.tsx | 211 +++++++++-------- .../content-management/rewrite/page.tsx | 8 +- .../content-management/users/page.tsx | 24 +- components/landing-page/header-management.tsx | 16 +- public/assets/gg-profile.png | Bin 0 -> 812 bytes 6 files changed, 250 insertions(+), 223 deletions(-) create mode 100644 public/assets/gg-profile.png diff --git a/app/[locale]/(public)/content-management/download/page.tsx b/app/[locale]/(public)/content-management/download/page.tsx index 729e70dc..7596e1fa 100644 --- a/app/[locale]/(public)/content-management/download/page.tsx +++ b/app/[locale]/(public)/content-management/download/page.tsx @@ -278,12 +278,13 @@ const Galery = (props: any) => {
-
-
-

Galeri Saya

-
-
+
+
+

+ Galeri + Saya +

{
+
{selectedTab == "video" ? ( contentVideo?.length > 0 ? ( -
+
{contentVideo?.map((video: any) => ( - - + +
- - {/* */} -
- -
- -
{video?.mediaUpload?.title}
- - - - - - - - - -

Content Rewrite

- -
- - - - - -
-

Share Ke Email

-
-

Email Tujuan :

- setEmailShareInput(event.target.value)} onKeyPress={handleEmailList} type="email" placeholder="Tekan Enter untuk input Email" /> +
+
+ +
+ +

{video?.mediaUpload?.title}

+ +

+ + + + + + + +

handleSaveWishlist(video?.mediaUpload?.id)} className="cursor-pointer flex flex-row gap-2 hover:text-red-800"> + +

Simpan

- -
- - + + +

Content Rewrite

+ +
+ + + + + +
+

Share Ke Email

+
+

Email Tujuan :

+ setEmailShareInput(event.target.value)} onKeyPress={handleEmailList} type="email" placeholder="Tekan Enter untuk input Email" /> +
+ +
+
+
+
+ + +

- handleDelete(video?.id)} className="flex items-center gap-3 hover:text-red-800 w-full rounded-lg"> - -

Hapus

-
- - +
+
@@ -464,58 +471,65 @@ const Galery = (props: any) => { contentImage?.length > 0 ? (
{contentImage?.map((image: any) => ( - - - - {/* */} -
- -
- -
{image?.mediaUpload?.title}
- - - - - - - - - -

Content Rewrite

- -
- - - - - -
-

Share Ke Email

-
-

Email Tujuan :

- setEmailShareInput(event.target.value)} onKeyPress={handleEmailList} type="email" placeholder="Tekan Enter untuk input Email" /> -
- -
-
-
+ + +
+
+
+ +
+ +

{image?.mediaUpload?.title}

+ +

+ + + + + + + +

handleSaveWishlist(image?.mediaUpload?.id)} className="cursor-pointer flex flex-row gap-2 hover:text-red-800"> + +

Simpan

+
+ + +

Content Rewrite

+ +
+ + + + + +
+

Share Ke Email

+
+

Email Tujuan :

+ setEmailShareInput(event.target.value)} onKeyPress={handleEmailList} type="email" placeholder="Tekan Enter untuk input Email" /> +
+ +
+
+
+
+ + +

+
- handleDelete(image?.id)} className="flex items-center gap-3 hover:text-red-800 w-full rounded-lg"> - -

Hapus

-
- - +
+
))} -
+
) : (

empty diff --git a/app/[locale]/(public)/content-management/galery/page.tsx b/app/[locale]/(public)/content-management/galery/page.tsx index adedbe35..3b65bd3f 100644 --- a/app/[locale]/(public)/content-management/galery/page.tsx +++ b/app/[locale]/(public)/content-management/galery/page.tsx @@ -21,6 +21,7 @@ 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"; +import { formatDateToIndonesian } from "@/utils/globals"; const Galery = (props: any) => { const [profile, setProfile] = useState(); @@ -284,12 +285,13 @@ const Galery = (props: any) => {

-
-
-

Galeri {profile?.institute?.name}

-
+
+

+ Galeri + {profile?.institute?.name} +

{
+
{selectedTab == "video" ? ( contentVideo?.length > 0 ? ( -
+
{contentVideo?.map((video: any) => ( - - + +
- - {/* */} -
- -
- -
{video?.mediaUpload?.title}
- - - - - - - -
handleSaveWishlist(video?.mediaUpload?.id)} className="cursor-pointer flex flex-row gap-2 hover:text-red-800"> - -

Simpan

-
- - -

Content Rewrite

- -
- - - - - -
-

Share Ke Email

-
-

Email Tujuan :

- setEmailShareInput(event.target.value)} onKeyPress={handleEmailList} type="email" placeholder="Tekan Enter untuk input Email" /> +
+
+ +
+ +

{video?.mediaUpload?.title}

+ +

+ + + + + + + +

handleSaveWishlist(video?.mediaUpload?.id)} className="cursor-pointer flex flex-row gap-2 hover:text-red-800"> + +

Simpan

- -
- - + + +

Content Rewrite

+ +
+ + + + + +
+

Share Ke Email

+
+

Email Tujuan :

+ setEmailShareInput(event.target.value)} onKeyPress={handleEmailList} type="email" placeholder="Tekan Enter untuk input Email" /> +
+ +
+
+
+
+ + +

- - +
+
@@ -468,54 +476,61 @@ const Galery = (props: any) => { contentImage?.length > 0 ? (
{contentImage?.map((image: any) => ( - - - - {/* */} -
- + + +
+
+
+ +
+ +

{image?.mediaUpload?.title}

+ +

+ + + + + + + +

handleSaveWishlist(image?.mediaUpload?.id)} className="cursor-pointer flex flex-row gap-2 hover:text-red-800"> + +

Simpan

+
+ + +

Content Rewrite

+ +
+ + + + + +
+

Share Ke Email

+
+

Email Tujuan :

+ setEmailShareInput(event.target.value)} onKeyPress={handleEmailList} type="email" placeholder="Tekan Enter untuk input Email" /> +
+ +
+
+
+
+ + +

+
+
- -
{image?.mediaUpload?.title}
- - - - - - - -
handleSaveWishlist(image?.mediaUpload?.id)} className="cursor-pointer flex flex-row gap-2 hover:text-red-800"> - -

Simpan

-
- - -

Content Rewrite

- -
- - - - - -
-

Share Ke Email

-
-

Email Tujuan :

- setEmailShareInput(event.target.value)} onKeyPress={handleEmailList} type="email" placeholder="Tekan Enter untuk input Email" /> -
- -
-
-
-
-
-
+
))} diff --git a/app/[locale]/(public)/content-management/rewrite/page.tsx b/app/[locale]/(public)/content-management/rewrite/page.tsx index 74230f44..2895572b 100644 --- a/app/[locale]/(public)/content-management/rewrite/page.tsx +++ b/app/[locale]/(public)/content-management/rewrite/page.tsx @@ -200,10 +200,10 @@ const page = () => {
-
-
-

Galeri Content Rewrite

-
+
+

+ Galeri Content Rewrite +

{contentImage?.length > 0 ? (
diff --git a/app/[locale]/(public)/content-management/users/page.tsx b/app/[locale]/(public)/content-management/users/page.tsx index b46bea79..1315ac4f 100644 --- a/app/[locale]/(public)/content-management/users/page.tsx +++ b/app/[locale]/(public)/content-management/users/page.tsx @@ -13,6 +13,7 @@ import { Button } from "@/components/ui/button"; import toast from "react-hot-toast"; import { useToast } from "@/components/ui/use-toast"; import { ToastAction } from "@/components/ui/toast"; +import Image from "next/image"; const page = () => { const [user, setUser] = useState(); @@ -118,25 +119,22 @@ const page = () => {
-

Tim {profile?.institute?.name}

-

{user?.length} Anggota

+

+ Tim + {profile?.institute?.name} +

+

+ {user?.length} Anggota Tim {profile?.institute?.name} +

{user?.map((row: any) => (
-
- - - - -

{row?.fullname}

+
+ +

{row?.fullname}

{row?.username || "username"}

diff --git a/components/landing-page/header-management.tsx b/components/landing-page/header-management.tsx index 1a837457..0311b874 100644 --- a/components/landing-page/header-management.tsx +++ b/components/landing-page/header-management.tsx @@ -67,14 +67,14 @@ const HeaderManagement = () => { return (
{/* Header */} -
+
- avatar + avatar
-

{profile?.fullname}

-

{profile?.username}

-

+

{profile?.fullname}

+

{profile?.username}

+

Aktif Sejak  {`${new Date(profile?.createdAt).getDate()}/${new Date(profile?.createdAt).getMonth() + 1}/${new Date(profile?.createdAt).getFullYear()} ${new Date(profile?.createdAt).getHours()}:${new Date( profile?.createdAt @@ -82,9 +82,9 @@ const HeaderManagement = () => {

- - -

Pengaturan

+ +

Lihat Profil Lengkap

+
diff --git a/public/assets/gg-profile.png b/public/assets/gg-profile.png new file mode 100644 index 0000000000000000000000000000000000000000..0241f48f97d9d4d7616951811acecb9922019a55 GIT binary patch literal 812 zcmV+{1JnG8P)Mc{K~#7F-B^o} z6EO^Z+)%)F5OqMP08;_!fKUPHAnxGO!G;RLRj}#cpn`-74k`$%i9P3)Wv};hpSd@q zi8r>NWyz91z$?c)%mWJKZy>+$LZDW*tu(DXv~tM^x7oNpPY&Y-yo{8_am)_FG{vOU zn9-sJx*H$x=)PquRnVt${kZOsQ1aBu3KQ`?p_mm4^?_WUlft*fNNg3d-9W`OMfVEt z1_QAgNMc-l?ZhI##x@GSK_LjSE7pm&Y|Ydf>kEc8;-!;n+d+*o%MtW7r3FK3Sx8GZ z=z&3OfzpYv1rE@Y_aVcx!vI$|=+2xH?MRT`qiZE{|CJ2P{lW<)tw@5ikovC%de%<`WHIR-dN2Mv~LFk%yiRXvWbO zjS`K|5mnL2`?D3-Tm{auDK!sdr_K z%nqWVL2Rj<>xW>4d|=fjB$Oesm=1&KTcS$RU_NL!!NIQ#+TE31Kp2lynz9%P3*8ml zfr?hHkG6C+n1~h9`Hx+-#&t=^$D^eiyg~Z$$zUcB^f#5U(%^|6G!0(q1EvJw(S13E q{58O0q{ZfXME4JvUe1BMZTtrY%=BUo7AQ*q0000