From c5128c7e4939cc7f51fe1cb1b9ea546f26e7ad1b Mon Sep 17 00:00:00 2001 From: FIRLY Date: Mon, 18 May 2026 15:35:35 +0700 Subject: [PATCH] fix update --- Controllers/WebNew/HomeController.cs | 2 +- Controllers/WebNew/LayananController.cs | 2 +- Views/WebNew/Berita/Berita.cshtml | 2 ++ Views/WebNew/Berita/DetailBerita.cshtml | 5 +++- Views/WebNew/Faq.cshtml | 3 ++- Views/WebNew/FormReview.cshtml | 1 + Views/WebNew/Galeri.cshtml | 4 ++- Views/WebNew/Home/Index.cshtml | 20 +++++++-------- Views/WebNew/Home/Privacy.cshtml | 1 + Views/WebNew/Kontak.cshtml | 3 ++- Views/WebNew/Layanan/DetailItem.cshtml | 3 ++- Views/WebNew/Layanan/DetailLayanan.cshtml | 8 +++--- Views/WebNew/Layanan/Index.cshtml | 5 ++-- Views/WebNew/Layanan/Layanan.cshtml | 8 +++--- Views/WebNew/Regulasi.cshtml | 14 +++++------ Views/WebNew/Sertifikat.cshtml | 4 +-- Views/WebNew/Shared/Section/_Footer.cshtml | 18 +++++++------- Views/WebNew/Shared/Section/_Header.cshtml | 29 ++++++++-------------- Views/WebNew/Shared/_Layout.cshtml | 2 +- Views/WebNew/TentangKami.cshtml | 3 ++- Views/WebNew/Video.cshtml | 6 ++++- wwwroot/webnew/css/Footer.css | 2 +- wwwroot/webnew/css/Hero.css | 2 +- wwwroot/webnew/json/Layanan/air.json | 2 +- wwwroot/webnew/json/Layanan/pcu.json | 2 +- wwwroot/webnew/json/Layanan/udara.json | 2 +- 26 files changed, 82 insertions(+), 71 deletions(-) diff --git a/Controllers/WebNew/HomeController.cs b/Controllers/WebNew/HomeController.cs index 9332d68..0cba918 100644 --- a/Controllers/WebNew/HomeController.cs +++ b/Controllers/WebNew/HomeController.cs @@ -25,7 +25,7 @@ namespace WebApplication2.Controllers.WebNew } - [HttpGet("/faq")] + [HttpGet("/webnew/faq")] public IActionResult Faq() { return View("~/Views/WebNew/Faq.cshtml"); diff --git a/Controllers/WebNew/LayananController.cs b/Controllers/WebNew/LayananController.cs index bed4724..009de87 100644 --- a/Controllers/WebNew/LayananController.cs +++ b/Controllers/WebNew/LayananController.cs @@ -9,7 +9,7 @@ namespace WebApplication2.Controllers.WebNew public IActionResult Index(string jenis) { ViewBag.Jenis = jenis; - return View(); + return View("~/Views/WebNew/Layanan/Index.cshtml"); } [HttpGet("/WebNew/Layanan/GetData")] diff --git a/Views/WebNew/Berita/Berita.cshtml b/Views/WebNew/Berita/Berita.cshtml index 411fdc7..34d787b 100644 --- a/Views/WebNew/Berita/Berita.cshtml +++ b/Views/WebNew/Berita/Berita.cshtml @@ -1,6 +1,8 @@ @model List @{ + Layout = "~/Views/WebNew/Shared/_Layout.cshtml"; + ViewData["Title"] = "Berita"; } diff --git a/Views/WebNew/Berita/DetailBerita.cshtml b/Views/WebNew/Berita/DetailBerita.cshtml index 2abb08e..8145a77 100644 --- a/Views/WebNew/Berita/DetailBerita.cshtml +++ b/Views/WebNew/Berita/DetailBerita.cshtml @@ -1,4 +1,7 @@ - +@{ + Layout = "~/Views/WebNew/Shared/_Layout.cshtml"; + +} @section Style { } diff --git a/Views/WebNew/Faq.cshtml b/Views/WebNew/Faq.cshtml index 743da6d..5acf6e6 100644 --- a/Views/WebNew/Faq.cshtml +++ b/Views/WebNew/Faq.cshtml @@ -1,9 +1,10 @@ @{ + Layout = "~/Views/WebNew/Shared/_Layout.cshtml"; ViewData["Title"] = "FAQ"; } @section Style { - + }
diff --git a/Views/WebNew/FormReview.cshtml b/Views/WebNew/FormReview.cshtml index ff23286..f25cf9f 100644 --- a/Views/WebNew/FormReview.cshtml +++ b/Views/WebNew/FormReview.cshtml @@ -1,4 +1,5 @@ @{ + Layout = "~/Views/WebNew/Shared/_Layout.cshtml"; ViewData["Title"] = "Ulasan Pelanggan"; var questions = new[]{ diff --git a/Views/WebNew/Galeri.cshtml b/Views/WebNew/Galeri.cshtml index 09cdf4e..be9439e 100644 --- a/Views/WebNew/Galeri.cshtml +++ b/Views/WebNew/Galeri.cshtml @@ -1,5 +1,7 @@ @await Html.PartialAsync("~/Views/WebNew/Section/_Hero.cshtml", "Galeri Kegiatan") - +@{ + Layout = "~/Views/WebNew/Shared/_Layout.cshtml"; +} @section Style { } diff --git a/Views/WebNew/Home/Index.cshtml b/Views/WebNew/Home/Index.cshtml index 1552090..c1fc66f 100644 --- a/Views/WebNew/Home/Index.cshtml +++ b/Views/WebNew/Home/Index.cshtml @@ -18,7 +18,7 @@

Laboratorium Lingkungan Hidup Daerah

Pemerintah Provinsi DKI Jakarta

- + Lihat Layanan @@ -35,7 +35,7 @@

Laboratorium Lingkungan Hidup Daerah

Pemerintah Provinsi DKI Jakarta

- + Lihat Layanan @@ -67,7 +67,7 @@
- +
- +
-
+
@@ -134,13 +134,13 @@
- +
-
+
@@ -247,7 +247,7 @@
-
+ Lihat Selengkapnya → @@ -794,7 +794,7 @@
@@ -813,7 +813,7 @@
diff --git a/Views/WebNew/Home/Privacy.cshtml b/Views/WebNew/Home/Privacy.cshtml index af4fb19..6b5836e 100644 --- a/Views/WebNew/Home/Privacy.cshtml +++ b/Views/WebNew/Home/Privacy.cshtml @@ -1,4 +1,5 @@ @{ + Layout = "~/Views/Shared/_Layout.cshtml"; ViewData["Title"] = "Privacy Policy"; }

@ViewData["Title"]

diff --git a/Views/WebNew/Kontak.cshtml b/Views/WebNew/Kontak.cshtml index eee6d23..56e84ad 100644 --- a/Views/WebNew/Kontak.cshtml +++ b/Views/WebNew/Kontak.cshtml @@ -1,4 +1,5 @@ @{ + Layout = "~/Views/WebNew/Shared/_Layout.cshtml"; ViewData["Title"] = "Kontak"; } @@ -7,7 +8,7 @@ } -@await Html.PartialAsync("Section/_Hero", "Kontak") +@await Html.PartialAsync("~/Views/WebNew/Shared/Section/_Hero.cshtml", "Kontak")
diff --git a/Views/WebNew/Layanan/DetailItem.cshtml b/Views/WebNew/Layanan/DetailItem.cshtml index 5045be6..154319f 100644 --- a/Views/WebNew/Layanan/DetailItem.cshtml +++ b/Views/WebNew/Layanan/DetailItem.cshtml @@ -1,4 +1,5 @@ @{ + Layout = "~/Views/WebNew/Shared/_Layout.cshtml"; ViewData["Title"] = "Detail Analisis"; } @@ -60,7 +61,7 @@ let total = 0; let tbody = ""; - fetch(`/DetailItem/GetDetail?kode=${kode}`) + fetch(`/WebNew/DetailItem/GetDetail?kode=${kode}`) .then(res => { if (!res.ok) throw new Error("Data tidak ditemukan"); return res.json(); diff --git a/Views/WebNew/Layanan/DetailLayanan.cshtml b/Views/WebNew/Layanan/DetailLayanan.cshtml index f01731d..13a8c84 100644 --- a/Views/WebNew/Layanan/DetailLayanan.cshtml +++ b/Views/WebNew/Layanan/DetailLayanan.cshtml @@ -41,7 +41,7 @@
- +
@@ -64,7 +64,7 @@
- +
@@ -87,7 +87,7 @@ } function changeService(btn, jenis) { - window.history.pushState({}, "", `/Layanan?jenis=${jenis}`); + window.history.pushState({}, "", `/WebNew/Layanan?jenis=${jenis}`); document.querySelectorAll('.service-btn').forEach(b => b.classList.remove('active')); if (btn) btn.classList.add('active'); @@ -101,7 +101,7 @@ document.getElementById("judul").innerText = "Loading..."; - fetch(`/Layanan/GetData?jenis=${encodeURIComponent(jenis)}`) + fetch(`/WebNew/Layanan/GetData?jenis=${encodeURIComponent(jenis)}`) .then(res => res.json()) .then(data => { diff --git a/Views/WebNew/Layanan/Index.cshtml b/Views/WebNew/Layanan/Index.cshtml index 3e461e5..39f2e95 100644 --- a/Views/WebNew/Layanan/Index.cshtml +++ b/Views/WebNew/Layanan/Index.cshtml @@ -1,4 +1,5 @@ @{ + Layout = "~/Views/WebNew/Shared/_Layout.cshtml"; var jenis = ViewBag.Jenis as string; ViewData["Title"] = "Layanan"; } @@ -13,11 +14,11 @@ @if (string.IsNullOrEmpty(jenis)) { - @await Html.PartialAsync("Layanan") + @await Html.PartialAsync("~/Views/WebNew/Layanan/Layanan.cshtml") } else { - @await Html.PartialAsync("DetailLayanan") + @await Html.PartialAsync("~/Views/WebNew/Layanan/DetailLayanan.cshtml") }
\ No newline at end of file diff --git a/Views/WebNew/Layanan/Layanan.cshtml b/Views/WebNew/Layanan/Layanan.cshtml index 27e248b..7d7815d 100644 --- a/Views/WebNew/Layanan/Layanan.cshtml +++ b/Views/WebNew/Layanan/Layanan.cshtml @@ -37,7 +37,7 @@
  • Air Minum.
  • - + Lihat Harga
    @@ -64,7 +64,7 @@
  • Air Perpipaan.
  • -
    + Lihat Harga
    @@ -92,7 +92,7 @@
  • SPKU (stasiun pemantau kualitas udara)
  • -
    + Lihat Harga
    @@ -117,7 +117,7 @@ const jenis = getQueryParam("jenis"); if (jenis) { - fetch(`/Layanan/GetData?jenis=${jenis}`) + fetch(`/WebNew/Layanan/GetData?jenis=${jenis}`) .then(res => res.json()) .then(data => { diff --git a/Views/WebNew/Regulasi.cshtml b/Views/WebNew/Regulasi.cshtml index ecf7d66..cb33f82 100644 --- a/Views/WebNew/Regulasi.cshtml +++ b/Views/WebNew/Regulasi.cshtml @@ -1,5 +1,5 @@ @{ - Layout = "~/Views/WebNew/Regulasi.cshtml"; + Layout = "~/Views/WebNew/Shared/_Layout.cshtml"; ViewData["Title"] = "Regulasi"; } @@ -7,11 +7,11 @@ } -@await Html.PartialAsync("~/Views/WebNew/Shared/Section/_Hero", "Regulasi") +@await Html.PartialAsync("~/Views/WebNew/Shared/Section/_Hero.cshtml", "Regulasi")
    -
    +
    @@ -57,7 +57,7 @@ } function loadRegulasi() { - fetch('/Regulasi/GetRegulasi') + fetch('/WebNew/Regulasi/GetRegulasi') .then(res => res.json()) .then(data => { allData = data; @@ -99,12 +99,12 @@ let html = ""; if (data.length === 0) { - html = "

    Data tidak ditemukan

    "; + html = "

    Data tidak ditemukan

    "; } data.forEach(item => { html += ` -
    +
    @@ -153,7 +153,7 @@ for (let i = 1; i <= totalPages; i++) { html += ` diff --git a/Views/WebNew/Sertifikat.cshtml b/Views/WebNew/Sertifikat.cshtml index e3d9d45..f519ca6 100644 --- a/Views/WebNew/Sertifikat.cshtml +++ b/Views/WebNew/Sertifikat.cshtml @@ -1,5 +1,5 @@ @{ - Layout = "~/Views/WebNew/Shared/_Hero.cshtml"; + Layout = "~/Views/WebNew/Shared/_Layout.cshtml"; ViewData["Title"] = "Sertifikat"; } @@ -7,7 +7,7 @@ } -@await Html.PartialAsync("~/Views/WebNew/Shared/Section/_Hero", "Sertifikat") +@await Html.PartialAsync("~/Views/WebNew/Shared/Section/_Hero.cshtml", "Sertifikat")
    diff --git a/Views/WebNew/Shared/Section/_Header.cshtml b/Views/WebNew/Shared/Section/_Header.cshtml index 506a5ea..6c11389 100644 --- a/Views/WebNew/Shared/Section/_Header.cshtml +++ b/Views/WebNew/Shared/Section/_Header.cshtml @@ -8,7 +8,7 @@