change domain to mediahub.polri.go.id
This commit is contained in:
parent
968f2642cc
commit
72099c35a6
4
.env
4
.env
|
|
@ -1,3 +1,3 @@
|
|||
NEXT_PUBLIC_API=https://netidhub.com/api
|
||||
NEXT_PUBLIC=https://netidhub.com
|
||||
NEXT_PUBLIC_API=https://mediahub.polri.go.id/api
|
||||
NEXT_PUBLIC=https://mediahub.polri.go.id
|
||||
NEXT_PUBLIC_TINYMCE_API_KEY=bhteuja26yz5p0aubxry9b95hs33amgn65kjv5km0fd5iuev
|
||||
|
|
@ -2,11 +2,11 @@ stages:
|
|||
- build
|
||||
- deploy
|
||||
|
||||
build-dev:
|
||||
build-prod:
|
||||
stage: build
|
||||
when: on_success
|
||||
only:
|
||||
- main
|
||||
- prod
|
||||
image: docker:stable
|
||||
services:
|
||||
- name: docker:dind
|
||||
|
|
@ -14,8 +14,8 @@ build-dev:
|
|||
script:
|
||||
- docker logout
|
||||
- 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 push 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:prod
|
||||
|
||||
auto-deploy:
|
||||
stage: deploy
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ const useTableColumns = ({
|
|||
try {
|
||||
loading();
|
||||
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",
|
||||
}
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ const ReportTable = () => {
|
|||
const [previewData, setPreviewData] = React.useState<any>(null);
|
||||
|
||||
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 });
|
||||
setOpenPreview(true);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ const ContactUs = () => {
|
|||
</svg>
|
||||
Pedoman Media Siber
|
||||
</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">
|
||||
<path
|
||||
fill="#000"
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ const LatestNews = (props: { type: string }) => {
|
|||
|
||||
// useEffect(() => {
|
||||
// async function fetchCategories() {
|
||||
// const url = "https://netidhub.com/api/csrf";
|
||||
// const url = "https://mediahub.polri.go.id/api/csrf";
|
||||
|
||||
// try {
|
||||
// const response = await fetch(url);
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ const NationalNews = () => {
|
|||
|
||||
// useEffect(() => {
|
||||
// async function fetchCategories() {
|
||||
// const url = "https://netidhub.com/api/csrf";
|
||||
// const url = "https://mediahub.polri.go.id/api/csrf";
|
||||
|
||||
// try {
|
||||
// const response = await fetch(url);
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ const categoryLinks: any = {
|
|||
Kesehatan: "https://tribratanews.kaltara.polri.go.id/category/kesehatan/",
|
||||
Olahraga: "https://tribratanews.kaltara.polri.go.id/category/olahraga/",
|
||||
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 = () => {
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ const PopularNews = () => {
|
|||
|
||||
useEffect(() => {
|
||||
async function fetchCategories() {
|
||||
const url = "https://netidhub.com/api/csrf";
|
||||
const url = "https://mediahub.polri.go.id/api/csrf";
|
||||
|
||||
try {
|
||||
const response = await fetch(url);
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ const RegionalNews = () => {
|
|||
|
||||
// useEffect(() => {
|
||||
// async function fetchCategories() {
|
||||
// const url = "https://netidhub.com/api/csrf";
|
||||
// const url = "https://mediahub.polri.go.id/api/csrf";
|
||||
|
||||
// try {
|
||||
// const response = await fetch(url);
|
||||
|
|
|
|||
|
|
@ -226,7 +226,7 @@ export function TambahIklanDetail() {
|
|||
formMedia.append("title", data.title);
|
||||
formMedia.append("placements", selectedPlacement);
|
||||
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("file", imageFiles[0]);
|
||||
|
||||
|
|
@ -526,7 +526,7 @@ export function TambahIklanDetail() {
|
|||
</p>
|
||||
|
||||
<Image
|
||||
src={`https://netidhub.com/api/advertisements/viewer/${id}`}
|
||||
src={`https://mediahub.polri.go.id/api/advertisements/viewer/${id}`}
|
||||
alt="Thumbnail Gambar Utama"
|
||||
className=" rounded-md my-3"
|
||||
width={300}
|
||||
|
|
|
|||
|
|
@ -229,7 +229,7 @@ export function TambahIklanUpdate() {
|
|||
formMedia.append("title", data.title);
|
||||
formMedia.append("placements", selectedPlacement);
|
||||
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("file", imageFiles[0]);
|
||||
|
||||
|
|
@ -510,7 +510,7 @@ export function TambahIklanUpdate() {
|
|||
))}
|
||||
|
||||
<Image
|
||||
src={`https://netidhub.com/api/advertisements/viewer/${id}`}
|
||||
src={`https://mediahub.polri.go.id/api/advertisements/viewer/${id}`}
|
||||
alt="Thumbnail Gambar Utama"
|
||||
className=" rounded-md my-3"
|
||||
width={300}
|
||||
|
|
|
|||
|
|
@ -190,7 +190,7 @@ export function TambahIklanModal() {
|
|||
formMedia.append("title", data.title);
|
||||
formMedia.append("placements", selectedPlacement);
|
||||
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("file", imageFiles[0]);
|
||||
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ const HeroModal = ({ onClose, group, poldaName, satkerName }: HeroModalProps) =>
|
|||
|
||||
useEffect(() => {
|
||||
async function fetchCategories() {
|
||||
const url = "https://netidhub.com/api/csrf";
|
||||
const url = "https://mediahub.polri.go.id/api/csrf";
|
||||
|
||||
try {
|
||||
const response = await fetch(url);
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ const HeroModal = ({ onClose }: { onClose: () => void }) => {
|
|||
|
||||
useEffect(() => {
|
||||
async function fetchCategories() {
|
||||
const url = "https://netidhub.com/api/csrf";
|
||||
const url = "https://mediahub.polri.go.id/api/csrf";
|
||||
|
||||
try {
|
||||
const response = await fetch(url);
|
||||
|
|
@ -268,7 +268,7 @@ const Hero = (props: { group?: string }) => {
|
|||
|
||||
useEffect(() => {
|
||||
async function fetchCategories() {
|
||||
const url = "https://netidhub.com/api/csrf";
|
||||
const url = "https://mediahub.polri.go.id/api/csrf";
|
||||
|
||||
try {
|
||||
const response = await fetch(url);
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ const ContactUsKaltara = () => {
|
|||
</svg>
|
||||
Pedoman Media Siber
|
||||
</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">
|
||||
<path
|
||||
fill="#000"
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ const ScrollableContentPolda = () => {
|
|||
|
||||
useEffect(() => {
|
||||
async function fetchCategories() {
|
||||
const url = "https://netidhub.com/api/csrf";
|
||||
const url = "https://mediahub.polri.go.id/api/csrf";
|
||||
|
||||
try {
|
||||
const response = await fetch(url);
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ const ScrollableContentSatker = () => {
|
|||
: "";
|
||||
useEffect(() => {
|
||||
async function fetchCategories() {
|
||||
const url = "https://netidhub.com/api/csrf";
|
||||
const url = "https://mediahub.polri.go.id/api/csrf";
|
||||
|
||||
try {
|
||||
const response = await fetch(url);
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ const ScrollableContent = () => {
|
|||
|
||||
useEffect(() => {
|
||||
async function fetchCategories() {
|
||||
const url = "https://netidhub.com/api/csrf";
|
||||
const url = "https://mediahub.polri.go.id/api/csrf";
|
||||
|
||||
try {
|
||||
const response = await fetch(url);
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ const DashCodeFooter = () => {
|
|||
>
|
||||
<div className="h-[50px] w-[50px] rounded-full relative left-[0px] top-[0px] custom-dropshadow">
|
||||
<Image
|
||||
src={"https://netidhub.com/assets/img/user-avatar.png"}
|
||||
src={"https://mediahub.polri.go.id/assets/img/user-avatar.png"}
|
||||
alt={"Image"}
|
||||
width={50}
|
||||
height={50}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -42,7 +42,10 @@ const nextConfig = {
|
|||
protocol: "https",
|
||||
hostname: "i.pravatar.cc",
|
||||
},
|
||||
{ protocol: "https", hostname: "netidhub.com" },
|
||||
{
|
||||
protocol: "https",
|
||||
hostname: "mediahub.polri.go.id",
|
||||
},
|
||||
{
|
||||
protocol: "https",
|
||||
hostname: "netidhub.com",
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ export async function getCsrfToken() {
|
|||
"content-type": "application/json",
|
||||
};
|
||||
return httpGet(pathUrl, headers);
|
||||
// const url = 'https://netidhub.com/api/csrf';
|
||||
// const url = 'https://mediahub.polri.go.id/api/csrf';
|
||||
// try {
|
||||
// const response = await fetch(url, {
|
||||
// method: 'GET',
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import axios from "axios";
|
||||
|
||||
const baseURL = "https://netidhub.com/api/";
|
||||
const baseURL = "https://mediahub.polri.go.id/api/";
|
||||
|
||||
const axiosBaseInstance = axios.create({
|
||||
baseURL,
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import axios from "axios";
|
|||
import Cookies from "js-cookie";
|
||||
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");
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ export async function getCsrfToken() {
|
|||
"content-type": "application/json",
|
||||
};
|
||||
return httpGet(pathUrl, headers);
|
||||
// const url = 'https://netidhub.com/api/csrf';
|
||||
// const url = 'https://mediahub.polri.go.id/api/csrf';
|
||||
// try {
|
||||
// const response = await fetch(url, {
|
||||
// method: 'GET',
|
||||
|
|
|
|||
Loading…
Reference in New Issue