update entra id

This commit is contained in:
2025-05-13 15:03:09 +02:00
parent 6752d3515f
commit 2a96d24de7
44 changed files with 3835 additions and 1856 deletions
@@ -0,0 +1,23 @@
export function fetchData(url, filters) {
return $.ajax({
url: url,
method: "POST",
data: filters,
})
.then((response) => {
if (!response) {
alert("No data found.");
return null;
}
try {
return JSON.parse(response);
} catch (e) {
alert("Invalid data format.");
return null;
}
})
.catch(() => {
alert("Error retrieving data.");
return null;
});
}
@@ -0,0 +1,24 @@
export function generatePieTable(labels, series) {
let tableHTML = `
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>Category</th>
<th>Count</th>
</tr>
</thead>
<tbody>
${labels
.map(
(label, i) => `
<tr>
<td>${label}</td>
<td>${series[i]}</td>
</tr>
`,
)
.join("")}
</tbody>
</table>`;
return tableHTML;
}