removed blade and htmx

This commit is contained in:
2026-05-06 23:16:09 +03:00
parent dff3748623
commit 98efb76f7b
31 changed files with 235 additions and 465 deletions
+6 -7
View File
@@ -1,18 +1,17 @@
<script>
import { getContext, onMount } from "svelte";
import RecordRow from "./RecordRow.svelte";
import { apiGet } from "../../helpers";
const channel = getContext("channel");
let records = [];
let graph = null;
let users = [];
onMount(() => {
axios
.get(channel.lucentUrl + "/home/records")
.then((response) => {
records = response.data.records;
graph = response.data.graph;
users = response.data.users;
apiGet(channel.lucentUrl + "/home/records")
.then((data) => {
records = data.records;
users = data.users;
})
.catch((error) => {
console.log(error);
@@ -27,7 +26,7 @@
<tbody>
{#each records as record (record.id)}
<tr>
<RecordRow {graph} {record} {users} />
<RecordRow {record} {users} />
</tr>
{/each}
</tbody>