feat: change domain to prod fqdn
This commit is contained in:
parent
854994e2c8
commit
aca5e5e119
|
|
@ -95,7 +95,7 @@ export default function Login() {
|
||||||
const resActivity = await saveActivity(
|
const resActivity = await saveActivity(
|
||||||
{
|
{
|
||||||
activityTypeId: 1,
|
activityTypeId: 1,
|
||||||
url: "https://kontenhumas.com/auth",
|
url: "https://new-humas.polri.go.id/auth",
|
||||||
userId: profile?.data?.data?.id,
|
userId: profile?.data?.data?.id,
|
||||||
},
|
},
|
||||||
accessData?.id_token
|
accessData?.id_token
|
||||||
|
|
@ -218,7 +218,7 @@ export default function Login() {
|
||||||
const resActivity = await saveActivity(
|
const resActivity = await saveActivity(
|
||||||
{
|
{
|
||||||
activityTypeId: 1,
|
activityTypeId: 1,
|
||||||
url: "https://kontenhumas.com/auth",
|
url: "https://new-humas.polri.go.id/auth",
|
||||||
userId: profile?.data?.data?.id,
|
userId: profile?.data?.data?.id,
|
||||||
},
|
},
|
||||||
accessData?.id_token
|
accessData?.id_token
|
||||||
|
|
|
||||||
|
|
@ -133,7 +133,7 @@ export default function AddsCarousel() {
|
||||||
// ) : (
|
// ) : (
|
||||||
// <video
|
// <video
|
||||||
// ref={videoRef}
|
// ref={videoRef}
|
||||||
// src="https://kontenhumas.com/api/advertisement/viewer/inisiatif-jumat-berkah-oleh-polres-simalungun-kapolsek-tanah-jawa-bagikan-sembako-untuk-warga-kurang-mampu-49_265348.mp4"
|
// src="https://new-humas.polri.go.id/api/advertisement/viewer/inisiatif-jumat-berkah-oleh-polres-simalungun-kapolsek-tanah-jawa-bagikan-sembako-untuk-warga-kurang-mampu-49_265348.mp4"
|
||||||
// />
|
// />
|
||||||
// )
|
// )
|
||||||
<Image
|
<Image
|
||||||
|
|
|
||||||
|
|
@ -103,7 +103,7 @@ export default function Comment(props: { id: string | null }) {
|
||||||
}
|
}
|
||||||
const req: any = {
|
const req: any = {
|
||||||
activityTypeId: 5,
|
activityTypeId: 5,
|
||||||
url: "https://kontenhumas.com/" + pathname,
|
url: "https://new-humas.polri.go.id/" + pathname,
|
||||||
articleId: Number(id),
|
articleId: Number(id),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -163,7 +163,7 @@ export default function Comment(props: { id: string | null }) {
|
||||||
}
|
}
|
||||||
const req: any = {
|
const req: any = {
|
||||||
activityTypeId: 5,
|
activityTypeId: 5,
|
||||||
url: "https://kontenhumas.com/" + pathname,
|
url: "https://new-humas.polri.go.id/" + pathname,
|
||||||
articleId: Number(id),
|
articleId: Number(id),
|
||||||
userId: Number(userId),
|
userId: Number(userId),
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ export default function EMagazineDetail() {
|
||||||
const doDownload = async (fileName: string, title: string): Promise<void> => {
|
const doDownload = async (fileName: string, title: string): Promise<void> => {
|
||||||
try {
|
try {
|
||||||
const response = await fetch(
|
const response = await fetch(
|
||||||
`https://kontenhumas.com/magazine-files/viewer/${fileName}`
|
`https://new-humas.polri.go.id/magazine-files/viewer/${fileName}`
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ export default function NewsDetailPage(props: { datas: any }) {
|
||||||
const sendActivity = async () => {
|
const sendActivity = async () => {
|
||||||
let req: any = {
|
let req: any = {
|
||||||
activityTypeId: 2,
|
activityTypeId: 2,
|
||||||
url: "https://kontenhumas.com" + pathname,
|
url: "https://new-humas.polri.go.id" + pathname,
|
||||||
articleId: Number(id?.split("-")[0]),
|
articleId: Number(id?.split("-")[0]),
|
||||||
};
|
};
|
||||||
if (uid) {
|
if (uid) {
|
||||||
|
|
|
||||||
|
|
@ -42,11 +42,11 @@ export default function DetailNews(props: { data: any; listArticle: any }) {
|
||||||
|
|
||||||
const handleShare = async (platform: string) => {
|
const handleShare = async (platform: string) => {
|
||||||
let shareLink = "";
|
let shareLink = "";
|
||||||
const urls = "https://kontenhumas.com/" + pathname;
|
const urls = "https://new-humas.polri.go.id/" + pathname;
|
||||||
|
|
||||||
let req: any = {
|
let req: any = {
|
||||||
activityTypeId: 3,
|
activityTypeId: 3,
|
||||||
url: "https://kontenhumas.com/" + pathname,
|
url: "https://new-humas.polri.go.id/" + pathname,
|
||||||
articleId: Number(id?.split("-")[0]),
|
articleId: Number(id?.split("-")[0]),
|
||||||
};
|
};
|
||||||
if (uid) {
|
if (uid) {
|
||||||
|
|
|
||||||
|
|
@ -125,5 +125,5 @@ self.addEventListener("push", function (event) {
|
||||||
self.addEventListener("notificationclick", function (event) {
|
self.addEventListener("notificationclick", function (event) {
|
||||||
console.log("Notification click received.");
|
console.log("Notification click received.");
|
||||||
event.notification.close();
|
event.notification.close();
|
||||||
event.waitUntil(clients.openWindow("<https://kontenhumas.com>"));
|
event.waitUntil(clients.openWindow("<https://new-humas.polri.go.id>"));
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import axios from "axios";
|
||||||
import { postSignIn } from "../master-user";
|
import { postSignIn } from "../master-user";
|
||||||
import Cookies from "js-cookie";
|
import Cookies from "js-cookie";
|
||||||
|
|
||||||
const baseURL = "https://kontenhumas.com/api";
|
const baseURL = "https://new-humas.polri.go.id/api";
|
||||||
|
|
||||||
const refreshToken = Cookies.get("refresh_token");
|
const refreshToken = Cookies.get("refresh_token");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
|
||||||
const baseURL = "https://kontenhumas.com/api";
|
const baseURL = "https://new-humas.polri.go.id/api";
|
||||||
|
|
||||||
const axiosBaseInstance = axios.create({
|
const axiosBaseInstance = axios.create({
|
||||||
baseURL,
|
baseURL,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
|
||||||
const baseURL = "https://kontenhumas.com/api";
|
const baseURL = "https://new-humas.polri.go.id/api";
|
||||||
|
|
||||||
const axiosInterceptorInstance = axios.create({
|
const axiosInterceptorInstance = axios.create({
|
||||||
baseURL,
|
baseURL,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue