Skip to content

Commit

Permalink
Rilis v2409.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
vickyrolanda committed Sep 18, 2024
1 parent 378e382 commit c08ebfb
Show file tree
Hide file tree
Showing 54 changed files with 1,794 additions and 432 deletions.
473 changes: 473 additions & 0 deletions app/Console/Commands/AcakData.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/Console/Kernel.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/Models/Config.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/Models/DokumenHidup.php

Large diffs are not rendered by default.

Binary file modified assets/images/draft-watermark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
108 changes: 74 additions & 34 deletions assets/js/peta.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,30 +242,30 @@ function set_marker_persil_content(
}

content = `
<div class="persil">
<h4>Leter C-Desa </h4>
<h4><b>Nomor ${data.nomor}</b> </h4>
<hr>
<table>
<tbody>
<tr>
<td>Nama Pemilik Tanah </td>
<td> : </td>
<td> ${data.nama_kepemilikan} </td>
</tr>
<tr>
<td>Kelas Tanah</td>
<td> : </td>
<td> ${data.kode} </td>
</tr>
<tr>
<td>Lokasi</td>
<td> : </td>
<td> ${data.alamat} </td>
</tr>
</tbody></table>
</div>
`;
<div class="persil">
<h4>Leter C-Desa </h4>
<h4><b>Nomor ${data.nomor}</b> </h4>
<hr>
<table>
<tbody>
<tr>
<td>Nama Pemilik Tanah </td>
<td> : </td>
<td> ${data.nama_kepemilikan} </td>
</tr>
<tr>
<td>Kelas Tanah</td>
<td> : </td>
<td> ${data.kode} </td>
</tr>
<tr>
<td>Lokasi</td>
<td> : </td>
<td> ${data.alamat} </td>
</tr>
</tbody></table>
</div>
`;
var label = L.tooltip({
permanent: true,
direction: "center",
Expand Down Expand Up @@ -433,7 +433,8 @@ function set_marker_multi_content(
}

function getBaseLayers(peta, access_token, jenis_peta) {
//Menampilkan BaseLayers Peta
var isValid = validateTokenMapbox(access_token);

var defaultLayer = L.tileLayer.provider("OpenStreetMap.Mapnik", {
attribution:
'<a href="https://openstreetmap.org/copyright">© OpenStreetMap</a> | <a href="https://github.com/OpenSID/OpenSID">OpenSID</a>',
Expand All @@ -444,7 +445,10 @@ function getBaseLayers(peta, access_token, jenis_peta) {
'<a href="https://openstreetmap.org/copyright">© OpenStreetMap</a> | <a href="https://github.com/OpenSID/OpenSID">OpenSID</a>',
});

if (access_token) {
let mbGLstr, mbGLsat, mbGLstrsat;
let baseLayers;

if (isValid && access_token) {
mbGLstr = L.mapboxGL({
accessToken: access_token,
style: "mapbox://styles/mapbox/streets-v11",
Expand All @@ -465,7 +469,28 @@ function getBaseLayers(peta, access_token, jenis_peta) {
attribution:
'<a href="https://www.mapbox.com/about/maps">© Mapbox</a> | <a href="https://github.com/OpenSID/OpenSID">OpenSID</a>',
});

baseLayers = {
OpenStreetMap: defaultLayer,
"OpenStreetMap H.O.T.": OpenStreetMap,
"Mapbox Streets": mbGLstr,
"Mapbox Satellite": mbGLsat,
"Mapbox Satellite-Street": mbGLstrsat,
};
} else {
if (typeof Swal !== "undefined" && typeof Swal.fire === "function") {
Swal.fire({
toast: true,
position: "top-end",
icon: "warning",
title: "Token Mapbox Tidak Valid",
text: "Peta akan menggunakan OpenStreetMap",
showConfirmButton: false,
timer: 5000,
timerProgressBar: true,
});
}

mbGLstr = L.tileLayer.provider("OpenStreetMap.Mapnik", {
attribution:
'<a href="https://openstreetmap.org/copyright">© OpenStreetMap</a> | <a href="https://github.com/OpenSID/OpenSID">OpenSID</a>',
Expand All @@ -478,6 +503,11 @@ function getBaseLayers(peta, access_token, jenis_peta) {
attribution:
'<a href="https://openstreetmap.org/copyright">© OpenStreetMap</a> | <a href="https://github.com/OpenSID/OpenSID">OpenSID</a>',
});

baseLayers = {
OpenStreetMap: defaultLayer,
"OpenStreetMap H.O.T.": OpenStreetMap,
};
}

switch (jenis_peta) {
Expand All @@ -497,17 +527,27 @@ function getBaseLayers(peta, access_token, jenis_peta) {
mbGLstrsat.addTo(peta);
}

var baseLayers = {
OpenStreetMap: defaultLayer,
"OpenStreetMap H.O.T.": OpenStreetMap,
"Mapbox Streets": mbGLstr,
"Mapbox Satellite": mbGLsat,
"Mapbox Satellite-Street": mbGLstrsat,
};

return baseLayers;
}

function validateTokenMapbox(access_token) {
var isValid = false;

$.ajax({
url: `https://api.mapbox.com/styles/v1/mapbox/streets-v11?access_token=${access_token}`,
type: 'GET',
async: false,
success: function (response) {
isValid = true; // Token is valid
},
error: function (xhr, status, error) {
console.error("Error validating token:", error);
}
});

return isValid;
}

function wilayah_property(set_marker, set_content = false, tampil_luas = 0) {
const showMeasurements = tampil_luas === "1" ? true : false;

Expand Down
11 changes: 10 additions & 1 deletion catatan_rilis.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Di rilis ini, versi 2409.0.1 berisi [untuk diisi] dan perbaikan lain yang diminta Komunitas SID.
Di rilis ini, versi 2409.0.2 berisi [untuk diisi] dan perbaikan lain yang diminta Komunitas SID.

Terima kasih pada [untuk diisi] telah ikut berkontribusi.

Expand Down Expand Up @@ -34,13 +34,22 @@ Terima kasih pada [untuk diisi] telah ikut berkontribusi.
27. [#8457](https://github.com/OpenSID/OpenSID/issues/8457) Perbaikan pencarian pada modul rekapitulasi kehasiran.
28. [#8448](https://github.com/OpenSID/OpenSID/issues/8448) Perbaikan form input kategori (IV) keterangan sosial ekonomi anggota keluarga pada DTKS.
29. [#8426](https://github.com/OpenSID/OpenSID/issues/8426) Perbaikan perhitungan pada buku rekapitulasi jumlah penduduk.
30. [#8332](https://github.com/OpenSID/OpenSID/issues/8332) Perbaikan pemformatan tanggal lahir penduduk ddengan isian null.
31. [#8472](https://github.com/OpenSID/OpenSID/issues/8472) Perbaikan validasi input data artikel agenda.
32. [#8468](https://github.com/OpenSID/OpenSID/issues/8468) Perbaikan menampilkan peta dengan token mapbox tidak valid atau kadaluarsa.
33. [#8461](https://github.com/OpenSID/OpenSID/issues/8461) Perbaikan pengurutan pada cetak buku peraturan di desa dan keputusan kepala desa.
34. [#8476](https://github.com/OpenSID/OpenSID/issues/8476) Perbaikan judul cetak/unduh inventaris aset tetap lainnya.
35. [#8467](https://github.com/OpenSID/OpenSID/issues/8467) Perbaikan verifikasi surat oleh operator dengan TTE aktif.



#### TEKNIS
1. [#8437](https://github.com/OpenSID/OpenSID/issues/8437) Penyesuaian lokasi pengaturan sebutan dusun dan pindahkan ke modul wilayah administratif.
2. [#8434](https://github.com/OpenSID/OpenSID/issues/8434) Penyesuaian nilai default status telgram pada tambah/ubah pengguna.
3. [#8381](https://github.com/OpenSID/OpenSID/issues/8381) Penyesuaian susunan komponen include blade pada modul dpt.
4. [#8460](https://github.com/OpenSID/OpenSID/issues/8460) Penyesuaian fungsi pecah kk dan hapus pada anggota keluarga dengan status kepala keluarga.
5. [#8464](https://github.com/OpenSID/OpenSID/issues/8464) Penyesuaian kata draft menjadi draf pada cetak surat.
6. [#8469](https://github.com/OpenSID/OpenSID/issues/8469) Penyesuaian data tanggal lahir penduduk melalui halaman periksa.


#### LAYANAN
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@
"mikey179/vfsstream": "~1.1.0",
"phpunit/phpunit": "^9.6",
"rector/rector": "^1.0",
"tinymce/tinymce": "^6.5"
"tinymce/tinymce": "^6.5",
"fakerphp/faker": "^1.9.1"
},
"minimum-stability": "dev",
"prefer-stable": true,
Expand Down
Loading

0 comments on commit c08ebfb

Please sign in to comment.