fix: reconfig from dev

This commit is contained in:
hanif salafi 2025-12-10 05:02:45 +07:00
parent 9a065c89f1
commit 4a6973cb96
40 changed files with 224 additions and 224 deletions

4
.env
View File

@ -1,3 +1,3 @@
NEXT_PUBLIC_API=https://new.netidhub.com/api/v2 NEXT_PUBLIC_API=https://mediahub.polri.go.id/api/v2
NEXT_PUBLIC=https://new.netidhub.com NEXT_PUBLIC=https://mediahub.polri.go.id
NEXT_PUBLIC_TINYMCE_API_KEY=bhteuja26yz5p0aubxry9b95hs33amgn65kjv5km0fd5iuev NEXT_PUBLIC_TINYMCE_API_KEY=bhteuja26yz5p0aubxry9b95hs33amgn65kjv5km0fd5iuev

View File

@ -170,7 +170,7 @@ const ReportTable = () => {
}; };
const handlePreview = (id: string) => { const handlePreview = (id: string) => {
const url = `https://new.netidhub.com/api/v2/media/report/view?id=${id}`; const url = `https://mediahub.polri.go.id/api/v2/media/report/view?id=${id}`;
setPreviewData({ url }); setPreviewData({ url });
setOpenPreview(true); setOpenPreview(true);
}; };

View File

@ -33,7 +33,7 @@ const responseFacebook = (response: FacebookLoginResponse) => {
const clientId = const clientId =
"515231445138-5ius52rjsqucc6petfpv1d42v1lj778o.apps.googleusercontent.com"; "515231445138-5ius52rjsqucc6petfpv1d42v1lj778o.apps.googleusercontent.com";
const feedbackUrl = "https://new.netidhub.com/admin/settings/socmed"; const feedbackUrl = "https://mediahub.polri.go.id/admin/settings/socmed";
async function sendFbToken(token: string) { async function sendFbToken(token: string) {
const res = await saveFbToken(token); const res = await saveFbToken(token);

View File

@ -88,7 +88,7 @@ const ContactUs = () => {
</svg> </svg>
Pedoman Media Siber Pedoman Media Siber
</Link> </Link>
<Link href="https://new.netidhub.com/" className="flex items-center mt-2 text-sm gap-2"> <Link href="https://mediahub.polri.go.id/" className="flex items-center mt-2 text-sm gap-2">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 32 32"> <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 32 32">
<path <path
fill="#000" fill="#000"

View File

@ -85,7 +85,7 @@ const LatestNews = (props: { type: string }) => {
// useEffect(() => { // useEffect(() => {
// async function fetchCategories() { // async function fetchCategories() {
// const url = "https://new.netidhub.com/api/v2/csrf"; // const url = "https://mediahub.polri.go.id/api/v2/csrf";
// try { // try {
// const response = await fetch(url); // const response = await fetch(url);

View File

@ -82,7 +82,7 @@ const NationalNews = () => {
// useEffect(() => { // useEffect(() => {
// async function fetchCategories() { // async function fetchCategories() {
// const url = "https://new.netidhub.com/api/v2/csrf"; // const url = "https://mediahub.polri.go.id/api/v2/csrf";
// try { // try {
// const response = await fetch(url); // const response = await fetch(url);

View File

@ -44,7 +44,7 @@ const categoryLinks: any = {
Kesehatan: "https://tribratanews.kaltara.polri.go.id/category/kesehatan/", Kesehatan: "https://tribratanews.kaltara.polri.go.id/category/kesehatan/",
Olahraga: "https://tribratanews.kaltara.polri.go.id/category/olahraga/", Olahraga: "https://tribratanews.kaltara.polri.go.id/category/olahraga/",
PPA: "https://tribratanews.kaltara.polri.go.id/category/ppa/", PPA: "https://tribratanews.kaltara.polri.go.id/category/ppa/",
MediaHub: "https://new.netidhub.com/in/polda/kaltara", MediaHub: "https://mediahub.polri.go.id/in/polda/kaltara",
}; };
const NavbarKaltaraTbnews = () => { const NavbarKaltaraTbnews = () => {

View File

@ -23,7 +23,7 @@ const PopularNews = () => {
useEffect(() => { useEffect(() => {
async function fetchCategories() { async function fetchCategories() {
const url = "https://new.netidhub.com/api/v2/csrf"; const url = "https://mediahub.polri.go.id/api/v2/csrf";
try { try {
const response = await fetch(url); const response = await fetch(url);

View File

@ -75,7 +75,7 @@ const RegionalNews = () => {
// useEffect(() => { // useEffect(() => {
// async function fetchCategories() { // async function fetchCategories() {
// const url = "https://new.netidhub.com/api/v2/csrf"; // const url = "https://mediahub.polri.go.id/api/v2/csrf";
// try { // try {
// const response = await fetch(url); // const response = await fetch(url);

View File

@ -868,7 +868,7 @@ const DetailInfo = () => {
onClick={() => onClick={() =>
handleShare( handleShare(
"fb", "fb",
`https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}&quote=${content?.title}` `https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}&quote=${content?.title}`
) )
} }
> >
@ -883,7 +883,7 @@ const DetailInfo = () => {
onClick={() => onClick={() =>
handleShare( handleShare(
"tw", "tw",
`https://twitter.com/share?url=https%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}&text=${content?.title}` `https://twitter.com/share?url=https%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}&text=${content?.title}`
) )
} }
> >
@ -898,7 +898,7 @@ const DetailInfo = () => {
onClick={() => onClick={() =>
handleShare( handleShare(
"wa", "wa",
`text=${content?.title}%0D%0A%0D%0Ahttps%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}` `text=${content?.title}%0D%0A%0D%0Ahttps%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}`
) )
} }
> >

View File

@ -576,7 +576,7 @@ const DetailInfo = () => {
onClick={() => onClick={() =>
handleShare( handleShare(
"fb", "fb",
`https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}&quote=${content?.title}` `https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}&quote=${content?.title}`
) )
} }
> >
@ -591,7 +591,7 @@ const DetailInfo = () => {
onClick={() => onClick={() =>
handleShare( handleShare(
"tw", "tw",
`https://twitter.com/share?url=https%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}&text=${content?.title}` `https://twitter.com/share?url=https%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}&text=${content?.title}`
) )
} }
> >
@ -606,7 +606,7 @@ const DetailInfo = () => {
onClick={() => onClick={() =>
handleShare( handleShare(
"wa", "wa",
`text=${content?.title}%0D%0A%0D%0Ahttps%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}` `text=${content?.title}%0D%0A%0D%0Ahttps%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}`
) )
} }
> >

View File

@ -666,7 +666,7 @@ const DetailVideo = () => {
onClick={() => onClick={() =>
handleShare( handleShare(
"fb", "fb",
`https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}&quote=${content?.title}` `https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}&quote=${content?.title}`
) )
} }
> >
@ -681,7 +681,7 @@ const DetailVideo = () => {
onClick={() => onClick={() =>
handleShare( handleShare(
"tw", "tw",
`https://twitter.com/share?url=https%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}&text=${content?.title}` `https://twitter.com/share?url=https%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}&text=${content?.title}`
) )
} }
> >
@ -696,7 +696,7 @@ const DetailVideo = () => {
onClick={() => onClick={() =>
handleShare( handleShare(
"wa", "wa",
`text=${content?.title}%0D%0A%0D%0Ahttps%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}` `text=${content?.title}%0D%0A%0D%0Ahttps%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}`
) )
} }
> >

View File

@ -284,7 +284,7 @@ const Galery = (props: any) => {
const copyToClip = async (url: any) => { const copyToClip = async (url: any) => {
await navigator.clipboard.writeText( await navigator.clipboard.writeText(
`https://new.netidhub.com/video/detail/${url}` `https://mediahub.polri.go.id/video/detail/${url}`
); );
setCopySuccess("Copied"); setCopySuccess("Copied");
// toast.success("Link Berhasil Di Copy"); // toast.success("Link Berhasil Di Copy");

View File

@ -291,7 +291,7 @@ const Galery = (props: any) => {
const copyToClip = async (url: any) => { const copyToClip = async (url: any) => {
await navigator.clipboard.writeText( await navigator.clipboard.writeText(
`https://new.netidhub.com/video/detail/${url}` `https://mediahub.polri.go.id/video/detail/${url}`
); );
setCopySuccess("Copied"); setCopySuccess("Copied");
// toast.success("Link Berhasil Di Copy"); // toast.success("Link Berhasil Di Copy");

View File

@ -134,7 +134,7 @@ const page = () => {
const copyToClip = async (url: any) => { const copyToClip = async (url: any) => {
await navigator.clipboard.writeText( await navigator.clipboard.writeText(
`https://new.netidhub.com/image/detail/${url}` `https://mediahub.polri.go.id/image/detail/${url}`
); );
setCopySuccess("Copied"); setCopySuccess("Copied");
// toast.success("Link Berhasil Di Copy"); // toast.success("Link Berhasil Di Copy");

View File

@ -43,7 +43,7 @@ export async function generateMetadata({ params }: any): Promise<Metadata> {
openGraph: { openGraph: {
title: video?.title, title: video?.title,
description: video?.description, description: video?.description,
url: `https://new.netidhub.com/in/video/detail/${slug}`, url: `https://mediahub.polri.go.id/in/video/detail/${slug}`,
type: "video.other", type: "video.other",
images: [ images: [
{ {

View File

@ -24,7 +24,7 @@ import ChunkLoadErrorHandler from "@/components/chunk-load-error-handler";
export const metadata: Metadata = { export const metadata: Metadata = {
title: "Media Hub | POLRI", title: "Media Hub | POLRI",
description: "Media Hub Platform for POLRI", description: "Media Hub Platform for POLRI",
metadataBase: new URL(process.env.NEXT_PUBLIC_SITE_URL || 'https://new.netidhub.com'), metadataBase: new URL(process.env.NEXT_PUBLIC_SITE_URL || 'https://mediahub.polri.go.id'),
openGraph: { openGraph: {
title: "Media Hub | POLRI", title: "Media Hub | POLRI",
description: "Media Hub Platform for POLRI", description: "Media Hub Platform for POLRI",

View File

@ -4,7 +4,7 @@ import { NextResponse } from "next/server";
export async function GET() { export async function GET() {
try { try {
const baseUrl = "https://new.netidhub.com/in"; const baseUrl = "https://mediahub.polri.go.id/in";
const response = await getListContent({ const response = await getListContent({
page: 1, page: 1,

View File

@ -564,7 +564,7 @@ export default function ContentBlast() {
// form.setValue("title", `${details?.title}`); // form.setValue("title", `${details?.title}`);
// form.setValue( // form.setValue(
// "url", // "url",
// details?.pageUrl || "https://new.netidhub.com" // details?.pageUrl || "https://mediahub.polri.go.id"
// ); // );
// if (type == "wa") { // if (type == "wa") {
// body = `${textEllipsis(details?.description, 150)}`; // body = `${textEllipsis(details?.description, 150)}`;

View File

@ -228,7 +228,7 @@ export function TambahIklanDetail() {
formMedia.append("title", data.title); formMedia.append("title", data.title);
formMedia.append("placements", selectedPlacement); formMedia.append("placements", selectedPlacement);
formMedia.append("description", data.description); formMedia.append("description", data.description);
formMedia.append("redirectLink", "https://new.netidhub.com"); formMedia.append("redirectLink", "https://mediahub.polri.go.id");
formMedia.append("assignedToLevel", handlePoldaPolresChange()); formMedia.append("assignedToLevel", handlePoldaPolresChange());
formMedia.append("file", imageFiles[0]); formMedia.append("file", imageFiles[0]);
@ -530,7 +530,7 @@ export function TambahIklanDetail() {
</p> </p>
<Image <Image
src={`https://new.netidhub.com/api/v2/advertisements/viewer/${id}`} src={`https://mediahub.polri.go.id/api/v2/advertisements/viewer/${id}`}
alt="Thumbnail Gambar Utama" alt="Thumbnail Gambar Utama"
className=" rounded-md my-3" className=" rounded-md my-3"
width={300} width={300}

View File

@ -246,7 +246,7 @@ export function TambahIklanUpdate() {
// formMedia.append("title", data.title); // formMedia.append("title", data.title);
// formMedia.append("placements", selectedPlacement); // formMedia.append("placements", selectedPlacement);
// formMedia.append("description", data.description); // formMedia.append("description", data.description);
// formMedia.append("redirectLink", "https://new.netidhub.com"); // formMedia.append("redirectLink", "https://mediahub.polri.go.id");
// formMedia.append("assignedToLevel", handlePoldaPolresChange()); // formMedia.append("assignedToLevel", handlePoldaPolresChange());
// if (imageFiles.length > 0) { // if (imageFiles.length > 0) {
// formMedia.append("file", imageFiles[0]); // formMedia.append("file", imageFiles[0]);
@ -289,7 +289,7 @@ export function TambahIklanUpdate() {
formMedia.append("title", data.title); formMedia.append("title", data.title);
formMedia.append("placements", selectedPlacement); formMedia.append("placements", selectedPlacement);
formMedia.append("description", data.description); formMedia.append("description", data.description);
formMedia.append("redirectLink", "https://new.netidhub.com"); formMedia.append("redirectLink", "https://mediahub.polri.go.id");
formMedia.append("assignedToLevel", handlePoldaPolresChange()); formMedia.append("assignedToLevel", handlePoldaPolresChange());
if (imageFiles.length > 0) { if (imageFiles.length > 0) {
@ -631,7 +631,7 @@ export function TambahIklanUpdate() {
))} ))}
<Image <Image
src={`https://new.netidhub.com/api/v2/advertisements/viewer/${id}`} src={`https://mediahub.polri.go.id/api/v2/advertisements/viewer/${id}`}
alt="Thumbnail Gambar Utama" alt="Thumbnail Gambar Utama"
className=" rounded-md my-3" className=" rounded-md my-3"
width={300} width={300}

View File

@ -204,7 +204,7 @@ export function TambahIklanModal() {
formMedia.append("title", data.title); formMedia.append("title", data.title);
formMedia.append("placements", selectedPlacement); formMedia.append("placements", selectedPlacement);
formMedia.append("description", data.description); formMedia.append("description", data.description);
formMedia.append("redirectLink", "https://new.netidhub.com"); formMedia.append("redirectLink", "https://mediahub.polri.go.id");
formMedia.append("assignedToLevel", handlePoldaPolresChange()); formMedia.append("assignedToLevel", handlePoldaPolresChange());
formMedia.append("file", imageFiles[0]); formMedia.append("file", imageFiles[0]);

View File

@ -1304,7 +1304,7 @@ export default function FormTaskTaDetail() {
className="flex gap-3 items-center cursor-pointer" className="flex gap-3 items-center cursor-pointer"
onClick={() => onClick={() =>
setSelectedVideo( setSelectedVideo(
`https://new.netidhub.com/api/v2/assignment-expert/file/viewer?id=${file.id}` `https://mediahub.polri.go.id/api/v2/assignment-expert/file/viewer?id=${file.id}`
) )
} }
> >

View File

@ -50,7 +50,7 @@ const HeroModal = ({ onClose }: { onClose: () => void }) => {
useEffect(() => { useEffect(() => {
async function fetchCategories() { async function fetchCategories() {
const url = "https://new.netidhub.com/api/v2/csrf"; const url = "https://mediahub.polri.go.id/api/v2/csrf";
try { try {
const response = await fetch(url); const response = await fetch(url);
@ -268,7 +268,7 @@ const Hero = (props: { group?: string }) => {
useEffect(() => { useEffect(() => {
async function fetchCategories() { async function fetchCategories() {
const url = "https://new.netidhub.com/api/v2/csrf"; const url = "https://mediahub.polri.go.id/api/v2/csrf";
try { try {
const response = await fetch(url); const response = await fetch(url);

View File

@ -146,7 +146,7 @@ const ContactUsKaltara = () => {
</svg> </svg>
Pedoman Media Siber Pedoman Media Siber
</Link> </Link>
<Link href="https://new.netidhub.com/" className="flex items-center mt-2 text-sm gap-2 font-sans"> <Link href="https://mediahub.polri.go.id/" className="flex items-center mt-2 text-sm gap-2 font-sans">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 32 32"> <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 32 32">
<path <path
fill="#000" fill="#000"

View File

@ -36,7 +36,7 @@ const ScrollableContentPolda = () => {
useEffect(() => { useEffect(() => {
async function fetchCategories() { async function fetchCategories() {
const url = "https://new.netidhub.com/api/v2/csrf"; const url = "https://mediahub.polri.go.id/api/v2/csrf";
try { try {
const response = await fetch(url); const response = await fetch(url);

View File

@ -35,7 +35,7 @@ const ScrollableContentSatker = () => {
: ""; : "";
useEffect(() => { useEffect(() => {
async function fetchCategories() { async function fetchCategories() {
const url = "https://new.netidhub.com/api/v2/csrf"; const url = "https://mediahub.polri.go.id/api/v2/csrf";
try { try {
const response = await fetch(url); const response = await fetch(url);

View File

@ -39,7 +39,7 @@ const ScrollableContent = () => {
useEffect(() => { useEffect(() => {
async function fetchCategories() { async function fetchCategories() {
const url = "https://new.netidhub.com/api/v2/csrf"; const url = "https://mediahub.polri.go.id/api/v2/csrf";
try { try {
const response = await fetch(url); const response = await fetch(url);

View File

@ -892,7 +892,7 @@ const DetailAudio = () => {
onClick={() => onClick={() =>
handleShare( handleShare(
"fb", "fb",
`https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}&quote=${content?.title}` `https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}&quote=${content?.title}`
) )
} }
> >
@ -907,7 +907,7 @@ const DetailAudio = () => {
onClick={() => onClick={() =>
handleShare( handleShare(
"tw", "tw",
`https://twitter.com/share?url=https%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}&text=${content?.title}` `https://twitter.com/share?url=https%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}&text=${content?.title}`
) )
} }
> >
@ -922,7 +922,7 @@ const DetailAudio = () => {
onClick={() => onClick={() =>
handleShare( handleShare(
"wa", "wa",
`text=${content?.title}%0D%0A%0D%0Ahttps%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}` `text=${content?.title}%0D%0A%0D%0Ahttps%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}`
) )
} }
> >

View File

@ -742,7 +742,7 @@ const DetailDocument = () => {
onClick={() => onClick={() =>
handleShare( handleShare(
"fb", "fb",
`https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}&quote=${content?.title}` `https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}&quote=${content?.title}`
) )
} }
> >
@ -757,7 +757,7 @@ const DetailDocument = () => {
onClick={() => onClick={() =>
handleShare( handleShare(
"tw", "tw",
`https://twitter.com/share?url=https%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}&text=${content?.title}` `https://twitter.com/share?url=https%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}&text=${content?.title}`
) )
} }
> >
@ -772,7 +772,7 @@ const DetailDocument = () => {
onClick={() => onClick={() =>
handleShare( handleShare(
"wa", "wa",
`text=${content?.title}%0D%0A%0D%0Ahttps%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}` `text=${content?.title}%0D%0A%0D%0Ahttps%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}`
) )
} }
> >

View File

@ -891,7 +891,7 @@ const DetailImage = (data: any) => {
onClick={() => onClick={() =>
handleShare( handleShare(
"fb", "fb",
`https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}&quote=${content?.title}` `https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}&quote=${content?.title}`
) )
} }
> >
@ -906,7 +906,7 @@ const DetailImage = (data: any) => {
onClick={() => onClick={() =>
handleShare( handleShare(
"tw", "tw",
`https://twitter.com/share?url=https%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}&text=${content?.title}` `https://twitter.com/share?url=https%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}&text=${content?.title}`
) )
} }
> >
@ -921,7 +921,7 @@ const DetailImage = (data: any) => {
onClick={() => onClick={() =>
handleShare( handleShare(
"wa", "wa",
`text=${content?.title}%0D%0A%0D%0Ahttps%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}` `text=${content?.title}%0D%0A%0D%0Ahttps%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}`
) )
} }
> >

View File

@ -711,7 +711,7 @@ const DetailVideo = () => {
onClick={() => onClick={() =>
handleShare( handleShare(
"fb", "fb",
`https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}&quote=${content?.title}` `https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}&quote=${content?.title}`
) )
} }
> >
@ -726,7 +726,7 @@ const DetailVideo = () => {
onClick={() => onClick={() =>
handleShare( handleShare(
"tw", "tw",
`https://twitter.com/share?url=https%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}&text=${content?.title}` `https://twitter.com/share?url=https%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}&text=${content?.title}`
) )
} }
> >
@ -741,7 +741,7 @@ const DetailVideo = () => {
onClick={() => onClick={() =>
handleShare( handleShare(
"wa", "wa",
`text=${content?.title}%0D%0A%0D%0Ahttps%3A%2F%2Fnew.netidhub.com%2F${typeString}%2Fdetail%2F${content?.id}` `text=${content?.title}%0D%0A%0D%0Ahttps%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}`
) )
} }
> >

View File

@ -31,7 +31,7 @@ const DashCodeFooter = () => {
> >
<div className="h-[50px] w-[50px] rounded-full relative left-[0px] top-[0px] custom-dropshadow"> <div className="h-[50px] w-[50px] rounded-full relative left-[0px] top-[0px] custom-dropshadow">
<Image <Image
src={"https://new.netidhub.com/assets/img/user-avatar.png"} src={"https://mediahub.polri.go.id/assets/img/user-avatar.png"}
alt={"Image"} alt={"Image"}
width={50} width={50}
height={50} height={50}

File diff suppressed because it is too large Load Diff

View File

@ -45,7 +45,7 @@ export async function getCsrfToken() {
"content-type": "application/json", "content-type": "application/json",
}; };
return httpGet(pathUrl, headers); return httpGet(pathUrl, headers);
// const url = 'https://new.netidhub.com/api/v2/csrf'; // const url = 'https://mediahub.polri.go.id/api/v2/csrf';
// try { // try {
// const response = await fetch(url, { // const response = await fetch(url, {
// method: 'GET', // method: 'GET',

View File

@ -1,6 +1,6 @@
import axios from "axios"; import axios from "axios";
const baseURL = "https://new.netidhub.com/api/v2/"; const baseURL = "https://mediahub.polri.go.id/api/v2/";
const axiosBaseInstance = axios.create({ const axiosBaseInstance = axios.create({
baseURL, baseURL,

View File

@ -1,6 +1,6 @@
import axios from "axios"; import axios from "axios";
const baseURL = "https://new.netidhub.com/api/v2/"; const baseURL = "https://mediahub.polri.go.id/api/v2/";
const axiosBaseProdInstance = axios.create({ const axiosBaseProdInstance = axios.create({
baseURL, baseURL,

View File

@ -2,7 +2,7 @@ import axios from "axios";
import Cookies from "js-cookie"; import Cookies from "js-cookie";
import { getCsrfToken, login } from "../auth"; import { getCsrfToken, login } from "../auth";
const baseURL = "https://new.netidhub.com/api/v2/"; const baseURL = "https://mediahub.polri.go.id/api/v2/";
const refreshToken = Cookies.get("refresh_token"); const refreshToken = Cookies.get("refresh_token");

View File

@ -1,6 +1,6 @@
import axios from "axios"; import axios from "axios";
const baseURL = "https://new.netidhub.com/api/v2/"; const baseURL = "https://mediahub.polri.go.id/api/v2/";
const axiosInstanceJson = axios.create({ const axiosInstanceJson = axios.create({
baseURL, baseURL,

View File

@ -12,7 +12,7 @@ export async function getCsrfToken() {
"content-type": "application/json", "content-type": "application/json",
}; };
return httpGet(pathUrl, headers); return httpGet(pathUrl, headers);
// const url = 'https://new.netidhub.com/api/v2/csrf'; // const url = 'https://mediahub.polri.go.id/api/v2/csrf';
// try { // try {
// const response = await fetch(url, { // const response = await fetch(url, {
// method: 'GET', // method: 'GET',