feat: solving domain

This commit is contained in:
hanif salafi 2025-08-30 00:05:11 +07:00
parent 5c57e4b6ed
commit 8ea86e2a8e
6 changed files with 8 additions and 8 deletions

View File

@ -234,7 +234,7 @@ export default function Login() {
const resActivity = await saveActivity( const resActivity = await saveActivity(
{ {
activityTypeId: 1, activityTypeId: 1,
url: "https://new-humas.polri.go.id/auth", url: "https://humas.polri.go.id/auth",
userId: profile?.data?.data?.id, userId: profile?.data?.data?.id,
}, },
accessData?.id_token accessData?.id_token

View File

@ -112,7 +112,7 @@ export default function Comment(props: { id: string | null }) {
} }
const req: any = { const req: any = {
activityTypeId: 5, activityTypeId: 5,
url: "https://new-humas.polri.go.id/" + pathname, url: "https://humas.polri.go.id/" + pathname,
articleId: Number(id), articleId: Number(id),
}; };
@ -172,7 +172,7 @@ export default function Comment(props: { id: string | null }) {
} }
const req: any = { const req: any = {
activityTypeId: 5, activityTypeId: 5,
url: "https://new-humas.polri.go.id/" + pathname, url: "https://humas.polri.go.id/" + pathname,
articleId: Number(id), articleId: Number(id),
userId: Number(userId), userId: Number(userId),
}; };

View File

@ -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://new-humas.polri.go.id/magazine-files/viewer/${fileName}` `https://humas.polri.go.id/magazine-files/viewer/${fileName}`
); );
if (!response.ok) { if (!response.ok) {

View File

@ -39,7 +39,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://new-humas.polri.go.id" + pathname, url: "https://humas.polri.go.id" + pathname,
articleId: Number(id?.split("-")[0]), articleId: Number(id?.split("-")[0]),
}; };
if (uid) { if (uid) {

View File

@ -49,11 +49,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://new-humas.polri.go.id/" + pathname; const urls = "https://humas.polri.go.id/" + pathname;
let req: any = { let req: any = {
activityTypeId: 3, activityTypeId: 3,
url: "https://new-humas.polri.go.id/" + pathname, url: "https://humas.polri.go.id/" + pathname,
articleId: Number(id?.split("-")[0]), articleId: Number(id?.split("-")[0]),
}; };
if (uid) { if (uid) {

View File

@ -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://new-humas.polri.go.id>")); event.waitUntil(clients.openWindow("<https://humas.polri.go.id>"));
}); });