-
-

-
- HUT Polwan ke-76, Kapolri Apresiasi Prestasi yang Diberikan
-
-
- Kapolri Jenderal Pol. Listyo Sigit Prabowo memberikan apresiasi
- kepada polisi wanita yang berprestasi...
-
-
- Lihat Selengkapnya
-
+ {/* Right Side - Event Detail */}
+
+
+
+ Detail Acara
+
+
+ {selectedEvent ? (
+
+

{
+ const target = e.target as HTMLImageElement;
+ target.src = "/images/default-event.png";
+ }}
+ />
+
+
+
+ {selectedEvent.title}
+
+
+
+
+ Tanggal:
+ {formatDateRange(selectedEvent.startDate, selectedEvent.endDate)}
+
+
+
+ {selectedEvent.description || "Tidak ada deskripsi tersedia."}
+
+
+
+
+
+
+
+
+
+ ) : (
+
+ Pilih acara untuk melihat detail
+
+ )}
@@ -88,4 +287,4 @@ const EventCalender = () => {
);
};
-export default EventCalender;
+export default EventCalender;
\ No newline at end of file
diff --git a/components/landing-page/landing-polda-kaltara/welcome-polda-kaltara.tsx b/components/landing-page/landing-polda-kaltara/welcome-polda-kaltara.tsx
new file mode 100644
index 00000000..3f54cf92
--- /dev/null
+++ b/components/landing-page/landing-polda-kaltara/welcome-polda-kaltara.tsx
@@ -0,0 +1,143 @@
+import { useParams, usePathname, useRouter } from "next/navigation";
+import React, { useEffect, useState } from "react";
+import { Icon } from "@iconify/react/dist/iconify.js";
+import { useTranslations } from "next-intl";
+import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectTrigger, SelectValue } from "@/components/ui/select";
+
+const WelcomePoldaKaltara = () => {
+ const router = useRouter();
+ const asPath: any = usePathname();
+ const params = useParams();
+ const poldaName: any = params?.polda_name;
+ const [categorySelect, setCategorySelect] = useState("0");
+ const t = useTranslations("LandingPage");
+ const [contentType, setContentType] = useState("all");
+ const [search, setSearch] = useState("");
+
+ useEffect(() => {
+ function initState() {
+ console.log(categorySelect);
+ }
+
+ initState();
+ }, [categorySelect]);
+
+ return (
+
+
+ {/* Heading */}
+
+ {t("welcome")} Di Polda {poldaName.replace("-", " ")}
+
+
+
+ {t("polda")} {poldaName.replace("-", " ")}
+
+
+ {/* Search Form */}
+ {/*
*/}
+ {/* Dropdown */}
+ {/*
*/}
+
+ {/* Button */}
+ {/*
*/}
+ {/*
*/}
+
+
+ {/* Dropdown */}
+
+
+
+
+
+
+
setSearch(e.target.value)} />
+
+
+
+ {/* Search Input */}
+
+
+
+
+ );
+};
+
+export default WelcomePoldaKaltara;
diff --git a/components/landing-page/navbar.tsx b/components/landing-page/navbar.tsx
index d22b2cd4..9c5e335b 100644
--- a/components/landing-page/navbar.tsx
+++ b/components/landing-page/navbar.tsx
@@ -23,6 +23,7 @@ import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
import PoldaLogo from "./polda-logo";
import { DynamicLogoPolda } from "./dynamic-logo-polda";
+import { DynamicLogoSatker } from "./dynamic-logo-satker";
type Detail = {
id: number;
@@ -162,7 +163,7 @@ const Navbar = () => {
-
+
{/* Nav Menu */}
diff --git a/components/landing-page/search-section-polda.tsx b/components/landing-page/search-section-polda.tsx
index 399333e7..1d6108b5 100644
--- a/components/landing-page/search-section-polda.tsx
+++ b/components/landing-page/search-section-polda.tsx
@@ -12,20 +12,7 @@ import AreaCoverageWorkUnits from "./area-coverage-and-work-units";
import EventCalender from "./event-calender";
import UserSurveyBox from "./survey-box";
import ScrollableContentPolda from "./scrollable-content-polda";
-
-const LeftBanner = () => (
-
-

-

-
-);
-
-const RightBanner = () => (
-
-

-

-
-);
+import AdvertisementPlacements from "./advertisement-placements";
const SearchSectionPolda = () => {
const [contentType, setContentType] = useState("all");
@@ -35,7 +22,7 @@ const SearchSectionPolda = () => {
return (
@@ -49,7 +36,7 @@ const SearchSectionPolda = () => {
);
diff --git a/components/landing-page/search-section-satker.tsx b/components/landing-page/search-section-satker.tsx
index 9d24a8a3..e9aefa93 100644
--- a/components/landing-page/search-section-satker.tsx
+++ b/components/landing-page/search-section-satker.tsx
@@ -13,20 +13,7 @@ import EventCalender from "./event-calender";
import UserSurveyBox from "./survey-box";
import ScrollableContentPolda from "./scrollable-content-polda";
import ScrollableContentSatker from "./scrollable-content-satker";
-
-const LeftBanner = () => (
-
-

-

-
-);
-
-const RightBanner = () => (
-
-

-

-
-);
+import AdvertisementPlacements from "./advertisement-placements";
const SearchSectionSatker = () => {
const [contentType, setContentType] = useState("all");
@@ -36,7 +23,7 @@ const SearchSectionSatker = () => {
return (
@@ -50,7 +37,7 @@ const SearchSectionSatker = () => {
);
diff --git a/components/landing-page/search-section.tsx b/components/landing-page/search-section.tsx
index 42af184e..9af0b96a 100644
--- a/components/landing-page/search-section.tsx
+++ b/components/landing-page/search-section.tsx
@@ -18,21 +18,7 @@ import ContentCategory from "./content-category";
import AreaCoverageWorkUnits from "./area-coverage-and-work-units";
import EventCalender from "./event-calender";
import UserSurveyBox from "./survey-box";
-import ScrollableContentPolda from "./scrollable-content-polda";
-
-const LeftBanner = () => (
-
-

-

-
-);
-
-const RightBanner = () => (
-
-

-

-
-);
+import AdvertisementPlacements from "./advertisement-placements";
const SearchSection = () => {
const [contentType, setContentType] = useState("all");
@@ -45,7 +31,7 @@ const SearchSection = () => {
style={{ backgroundImage: "url('/assets/background.png')" }}
>
@@ -59,7 +45,7 @@ const SearchSection = () => {
);
diff --git a/components/landing-page/welcome-polda.tsx b/components/landing-page/welcome-polda.tsx
index cc477989..9feab181 100644
--- a/components/landing-page/welcome-polda.tsx
+++ b/components/landing-page/welcome-polda.tsx
@@ -25,7 +25,7 @@ const WelcomePolda = () => {
}, [categorySelect]);
return (
-
+
{/* Heading */}
diff --git a/components/main/image-detail.tsx b/components/main/image-detail.tsx
index d9ae7532..e0690fcd 100644
--- a/components/main/image-detail.tsx
+++ b/components/main/image-detail.tsx
@@ -513,29 +513,29 @@ const DetailImage = (data: any) => {
return (
<>
-
-
+
+
{/* Bagian Kiri */}
-
+
{/* Gambar Besar */}
{isLoading ? (
) : (
-
+
+
)}
{/* Gambar bawah Kecil */}
@@ -616,7 +616,7 @@ const DetailImage = (data: any) => {
{/* Bagian Kanan */}
-
+
{/* Konten Serupa */}
-
diff --git a/messages/in.json b/messages/in.json
index e0af7ea4..a7720cdc 100644
--- a/messages/in.json
+++ b/messages/in.json
@@ -690,7 +690,7 @@
"type-task": "Tipe Penugasan",
"category-task": "Kategori Penugasan",
"areas-expertise": "Bidang Keahlian",
- "choose-expert": "Pilih Tenaga Ahli",
+ "choose-expert": "Tenaga Ahli",
"code": "Kode",
"start-date": "Tanggal Mulai",
"end-date": "Tanggal Selesai",
diff --git a/public/assets/satker/rumkit.png b/public/assets/satker/RUMKIT-BHAYANGKARA.png
similarity index 100%
rename from public/assets/satker/rumkit.png
rename to public/assets/satker/RUMKIT-BHAYANGKARA.png
diff --git a/public/assets/satker/sebasa.png b/public/assets/satker/SEBASA-POLRI.png
similarity index 100%
rename from public/assets/satker/sebasa.png
rename to public/assets/satker/SEBASA-POLRI.png
diff --git a/public/assets/satker/sepolwan.png b/public/assets/satker/SEPOLWAN-POLRI.png
similarity index 100%
rename from public/assets/satker/sepolwan.png
rename to public/assets/satker/SEPOLWAN-POLRI.png
diff --git a/public/logo/polda/polda-bangkabelitung.png b/public/logo/polda/polda-bangka-belitung.png
similarity index 100%
rename from public/logo/polda/polda-bangkabelitung.png
rename to public/logo/polda/polda-bangka-belitung.png
diff --git a/public/logo/polda/polda-jawabarat.png b/public/logo/polda/polda-jawa-barat.png
similarity index 100%
rename from public/logo/polda/polda-jawabarat.png
rename to public/logo/polda/polda-jawa-barat.png
diff --git a/public/logo/polda/polda-jawatengah.png b/public/logo/polda/polda-jawa-tengah.png
similarity index 100%
rename from public/logo/polda/polda-jawatengah.png
rename to public/logo/polda/polda-jawa-tengah.png
diff --git a/public/logo/polda/polda-jawatimur.png b/public/logo/polda/polda-jawa-timur.png
similarity index 100%
rename from public/logo/polda/polda-jawatimur.png
rename to public/logo/polda/polda-jawa-timur.png
diff --git a/public/logo/polda/polda-kalbar.png b/public/logo/polda/polda-kalimantan-barat.png
similarity index 100%
rename from public/logo/polda/polda-kalbar.png
rename to public/logo/polda/polda-kalimantan-barat.png
diff --git a/public/logo/polda/polda-kalsel.png b/public/logo/polda/polda-kalimantan-selatan.png
similarity index 100%
rename from public/logo/polda/polda-kalsel.png
rename to public/logo/polda/polda-kalimantan-selatan.png
diff --git a/public/logo/polda/polda-kalteng.png b/public/logo/polda/polda-kalimantan-tengah.png
similarity index 100%
rename from public/logo/polda/polda-kalteng.png
rename to public/logo/polda/polda-kalimantan-tengah.png
diff --git a/public/logo/polda/polda-kaltim.png b/public/logo/polda/polda-kalimantan-timur.png
similarity index 100%
rename from public/logo/polda/polda-kaltim.png
rename to public/logo/polda/polda-kalimantan-timur.png
diff --git a/public/logo/polda/polda-kepri.png b/public/logo/polda/polda-kepulauan-riau.png
similarity index 100%
rename from public/logo/polda/polda-kepri.png
rename to public/logo/polda/polda-kepulauan-riau.png
diff --git a/public/logo/polda/polda-metro.png b/public/logo/polda/polda-metro-jaya.png
similarity index 100%
rename from public/logo/polda/polda-metro.png
rename to public/logo/polda/polda-metro-jaya.png
diff --git a/public/logo/polda/polda-sulbar.png b/public/logo/polda/polda-sulawesi-barat.png
similarity index 100%
rename from public/logo/polda/polda-sulbar.png
rename to public/logo/polda/polda-sulawesi-barat.png
diff --git a/public/logo/polda/polda-sulsel.png b/public/logo/polda/polda-sulawesi-selatan.png
similarity index 100%
rename from public/logo/polda/polda-sulsel.png
rename to public/logo/polda/polda-sulawesi-selatan.png
diff --git a/public/logo/polda/polda-sumsel.png b/public/logo/polda/polda-sumatera-selatan.png
similarity index 100%
rename from public/logo/polda/polda-sumsel.png
rename to public/logo/polda/polda-sumatera-selatan.png
diff --git a/public/logo/polda/polda-sumut.png b/public/logo/polda/polda-sumatera-utara.png
similarity index 100%
rename from public/logo/polda/polda-sumut.png
rename to public/logo/polda/polda-sumatera-utara.png
diff --git a/public/logo/satker/DENSUS88.png b/public/logo/satker/DENSUS-88.png
similarity index 100%
rename from public/logo/satker/DENSUS88.png
rename to public/logo/satker/DENSUS-88.png
diff --git a/public/logo/satker/RUMKIT-BHAYANGKARA.png b/public/logo/satker/RUMKIT-BHAYANGKARA.png
new file mode 100644
index 00000000..7e8867d7
Binary files /dev/null and b/public/logo/satker/RUMKIT-BHAYANGKARA.png differ
diff --git a/public/logo/satker/SEBASA-POLRI.png b/public/logo/satker/SEBASA-POLRI.png
new file mode 100644
index 00000000..7245536b
Binary files /dev/null and b/public/logo/satker/SEBASA-POLRI.png differ
diff --git a/public/logo/satker/SEPOLWAN-POLRI.png b/public/logo/satker/SEPOLWAN-POLRI.png
new file mode 100644
index 00000000..120c91d4
Binary files /dev/null and b/public/logo/satker/SEPOLWAN-POLRI.png differ
diff --git a/public/logo/satker/SETUPA-POLRI.png b/public/logo/satker/SETUPA-POLRI.png
new file mode 100644
index 00000000..09c07531
Binary files /dev/null and b/public/logo/satker/SETUPA-POLRI.png differ
diff --git a/service/broadcast/broadcast.ts b/service/broadcast/broadcast.ts
index b1ca2176..745c124e 100644
--- a/service/broadcast/broadcast.ts
+++ b/service/broadcast/broadcast.ts
@@ -20,11 +20,9 @@ export async function listDataAdvertisements(
page: number,
limit: string,
search: string,
- categoryFilter: string,
- statusFilter: string
) {
const name = search || "";
- const url = `advertisements/pagination?title=${name}&enablePage=1&sortBy=createdAt&sort=desc&size=${limit}&page=${page}&typeId=1&categoryId=${categoryFilter}&statusId=${statusFilter}`;
+ const url = `advertisements/pagination?title=${search}&enablePage=1&sortBy=createdAt&sort=desc&size=${limit}&page=${page}`;
return httpGetInterceptor(url);
}
diff --git a/service/schedule/schedule.ts b/service/schedule/schedule.ts
index c68bacee..cf3b2cfe 100644
--- a/service/schedule/schedule.ts
+++ b/service/schedule/schedule.ts
@@ -20,17 +20,16 @@ export async function paginationSchedule(
);
}
-export async function paginationCalendar(
+export async function getCalendarPagination(
size: any,
page: number,
- type: any,
title: string = "",
statusFilter: number[] = []
) {
const statusQuery =
statusFilter.length > 0 ? `&statusId=${statusFilter.join(",")}` : "";
return await httpGetInterceptor(
- `calendars/pagination?enablePage=1&scheduleTypeId=${type}&page=${page}&size=${size}&title=${title}${statusQuery}`
+ `calendars/pagination?enablePage=1&page=${page}&size=${size}&title=${title}${statusQuery}`
);
}
diff --git a/service/settings/settings.ts b/service/settings/settings.ts
index 1d36d564..adc70c7d 100644
--- a/service/settings/settings.ts
+++ b/service/settings/settings.ts
@@ -132,5 +132,8 @@ export async function getTagsByParentId(parentId: string | number) {
export async function postAdvertisements(data: any) {
const url = "advertisements";
- return httpPostInterceptor(url, data);
+ const headers = {
+ "Content-Type": "multipart/form-data",
+ };
+ return httpPostInterceptor(url, data, headers);
}
diff --git a/service/task.ts b/service/task.ts
index a103a2e3..8c853a34 100644
--- a/service/task.ts
+++ b/service/task.ts
@@ -146,7 +146,7 @@ export async function listTaskTa(
}
return httpGetInterceptor(
- `assignment-expert/pagination?enablePage=1&size=${size}&page=${page}&title=${title}&taskType=${taskType}&uniqueCode=${code}&createdAt=${createdAt}${statusQuery}`
+ `assignment-expert/pagination?enablePage=1&size=${size}&page=${page}&title=${title}&assignmentType=${taskType}&uniqueCode=${code}&createdAt=${createdAt}${statusQuery}`
);
}