change domain to mediahub.polri.go.id

This commit is contained in:
Sabda Yagra 2025-07-19 20:37:18 +07:00
parent 968f2642cc
commit 72099c35a6
26 changed files with 201 additions and 198 deletions

4
.env
View File

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

View File

@ -2,11 +2,11 @@ stages:
- build - build
- deploy - deploy
build-dev: build-prod:
stage: build stage: build
when: on_success when: on_success
only: only:
- main - prod
image: docker:stable image: docker:stable
services: services:
- name: docker:dind - name: docker:dind
@ -14,8 +14,8 @@ build-dev:
script: script:
- docker logout - docker logout
- docker login -u $DEPLOY_USERNAME -p $DEPLOY_TOKEN 103.82.242.92:8900 - docker login -u $DEPLOY_USERNAME -p $DEPLOY_TOKEN 103.82.242.92:8900
- docker build -t 103.82.242.92:8900/mediahub/new-mediahub-fe:dev . - docker build -t 103.82.242.92:8900/mediahub/new-mediahub-fe:prod .
- docker push 103.82.242.92:8900/mediahub/new-mediahub-fe:dev - docker push 103.82.242.92:8900/mediahub/new-mediahub-fe:prod
auto-deploy: auto-deploy:
stage: deploy stage: deploy

View File

@ -128,7 +128,7 @@ const useTableColumns = ({
try { try {
loading(); loading();
const response = await axios.get( const response = await axios.get(
`https://netidhub.com/api/media/report/download?id=${id}`, `https://mediahub.polri.go.id/api/media/report/download?id=${id}`,
{ {
responseType: "blob", responseType: "blob",
} }

View File

@ -108,7 +108,7 @@ const ReportTable = () => {
const [previewData, setPreviewData] = React.useState<any>(null); const [previewData, setPreviewData] = React.useState<any>(null);
const handlePreview = (id: string) => { const handlePreview = (id: string) => {
const url = `https://new.netidhub.com/api/media/report/view?id=${id}`; const url = `https://mediahub.polri.go.id/api/media/report/view?id=${id}`;
setPreviewData({ url }); setPreviewData({ url });
setOpenPreview(true); setOpenPreview(true);
}; };

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://netidhub.com/api/csrf"; // const url = "https://mediahub.polri.go.id/api/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://netidhub.com/api/csrf"; // const url = "https://mediahub.polri.go.id/api/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://netidhub.com/api/csrf"; const url = "https://mediahub.polri.go.id/api/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://netidhub.com/api/csrf"; // const url = "https://mediahub.polri.go.id/api/csrf";
// try { // try {
// const response = await fetch(url); // const response = await fetch(url);

View File

@ -226,7 +226,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]);
@ -526,7 +526,7 @@ export function TambahIklanDetail() {
</p> </p>
<Image <Image
src={`https://netidhub.com/api/advertisements/viewer/${id}`} src={`https://mediahub.polri.go.id/api/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

@ -229,7 +229,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());
formMedia.append("file", imageFiles[0]); formMedia.append("file", imageFiles[0]);
@ -510,7 +510,7 @@ export function TambahIklanUpdate() {
))} ))}
<Image <Image
src={`https://netidhub.com/api/advertisements/viewer/${id}`} src={`https://mediahub.polri.go.id/api/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

@ -190,7 +190,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

@ -39,7 +39,7 @@ const HeroModal = ({ onClose, group, poldaName, satkerName }: HeroModalProps) =>
useEffect(() => { useEffect(() => {
async function fetchCategories() { async function fetchCategories() {
const url = "https://netidhub.com/api/csrf"; const url = "https://mediahub.polri.go.id/api/csrf";
try { try {
const response = await fetch(url); const response = await fetch(url);

View File

@ -50,7 +50,7 @@ const HeroModal = ({ onClose }: { onClose: () => void }) => {
useEffect(() => { useEffect(() => {
async function fetchCategories() { async function fetchCategories() {
const url = "https://netidhub.com/api/csrf"; const url = "https://mediahub.polri.go.id/api/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://netidhub.com/api/csrf"; const url = "https://mediahub.polri.go.id/api/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://netidhub.com/api/csrf"; const url = "https://mediahub.polri.go.id/api/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://netidhub.com/api/csrf"; const url = "https://mediahub.polri.go.id/api/csrf";
try { try {
const response = await fetch(url); const response = await fetch(url);

View File

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

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://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

@ -42,7 +42,10 @@ const nextConfig = {
protocol: "https", protocol: "https",
hostname: "i.pravatar.cc", hostname: "i.pravatar.cc",
}, },
{ protocol: "https", hostname: "netidhub.com" }, {
protocol: "https",
hostname: "mediahub.polri.go.id",
},
{ {
protocol: "https", protocol: "https",
hostname: "netidhub.com", hostname: "netidhub.com",

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://netidhub.com/api/csrf'; // const url = 'https://mediahub.polri.go.id/api/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://netidhub.com/api/"; const baseURL = "https://mediahub.polri.go.id/api/";
const axiosBaseInstance = axios.create({ const axiosBaseInstance = 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://netidhub.com/api/"; const baseURL = "https://mediahub.polri.go.id/api/";
const refreshToken = Cookies.get("refresh_token"); const refreshToken = Cookies.get("refresh_token");

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://netidhub.com/api/csrf'; // const url = 'https://mediahub.polri.go.id/api/csrf';
// try { // try {
// const response = await fetch(url, { // const response = await fetch(url, {
// method: 'GET', // method: 'GET',