Merge branch 'main' of https://gitlab.com/hanifsalafi/mediahub_redesign into prod
This commit is contained in:
commit
27098b5373
|
|
@ -35,10 +35,32 @@ export async function generateMetadata({ params }: any): Promise<Metadata> {
|
||||||
return {
|
return {
|
||||||
title: video.title,
|
title: video.title,
|
||||||
description: video.description,
|
description: video.description,
|
||||||
|
// openGraph: {
|
||||||
|
// title: video?.title,
|
||||||
|
// description: video?.description,
|
||||||
|
// videos: [`${video?.smallThumbnailLink}`],
|
||||||
|
// },
|
||||||
openGraph: {
|
openGraph: {
|
||||||
title: video?.title,
|
title: video?.title,
|
||||||
description: video?.description,
|
description: video?.description,
|
||||||
videos: [`${video?.smallThumbnailLink}`],
|
url: `https://mediahub.polri.go.id/in/video/detail/${slug}`,
|
||||||
|
type: "video.other",
|
||||||
|
images: [
|
||||||
|
{
|
||||||
|
url: video?.thumbnailLink,
|
||||||
|
width: 1280,
|
||||||
|
height: 720,
|
||||||
|
alt: video?.title || "Thumbnail Mediahub Polri",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
twitter: {
|
||||||
|
card: "summary_large_image",
|
||||||
|
title: video?.title,
|
||||||
|
description: video?.description,
|
||||||
|
images: [
|
||||||
|
video?.thumbnailLink,
|
||||||
|
],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ export async function getMediaTracking(
|
||||||
size: any
|
size: any
|
||||||
) {
|
) {
|
||||||
return httpGetInterceptor(
|
return httpGetInterceptor(
|
||||||
`/media/tracking/monitoring/pagination?enablePagination=1&size=${size}&page=${page}&title=${title}`
|
`/media/tracking/monitoring/pagination?enablePagination=1&size=${size}&page=${page}&title=${title}&sortBy=id&sort=desc`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue