Cost units can be edited

This commit is contained in:
2026-02-08 20:06:38 +01:00
parent 6fc65e195c
commit bccfc11687
53 changed files with 2021 additions and 29 deletions

View File

@@ -4,6 +4,7 @@ export function useAjax() {
const loading = ref(false)
const error = ref(null)
const data = ref(null)
const csrfToken = document.querySelector('meta[name="csrf-token"]').getAttribute('content')
async function request(url, options = {}) {
loading.value = true
@@ -15,6 +16,7 @@ export function useAjax() {
method: options.method || "GET",
headers: {
"Content-Type": "application/json",
'X-CSRF-TOKEN': csrfToken,
...(options.headers || {}),
},
body: options.body ? JSON.stringify(options.body) : null,

View File

@@ -25,7 +25,7 @@ const globalProps = reactive({
onMounted(async () => {
const response = await fetch('/api/v1/retreive-global-data');
const data = await response.json();
Object.assign(globalProps, data); // reactive wird automatisch aktualisiert
Object.assign(globalProps, data);
});
@@ -131,7 +131,23 @@ const props = defineProps({
<!-- Footer -->
<footer class="footer">
&copy; 2026 Your Company
<table>
<tr>
<td>Version 4.0.0</td>
<td>
mareike - Mdodernes Anmeldesystem und richti einfache Kostenerfassung
</td>
<td>
Impressum
</td>
<td>
Datenschutzerklärung
</td>
<td>
&copy 2022 - 2026
</td>
</tr>
</table>
</footer>
</div>

View File

@@ -2,7 +2,10 @@
<html lang="de">
<head>
<link rel="stylesheet" href="/css/app.css" />
<link rel="stylesheet" href="/css/dimensions.css" />
<link rel="stylesheet" href="/css/elements.css" />
<link rel="stylesheet" href="/css/modalBox.css" />
<link rel="stylesheet" href="/css/costunits.css" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="csrf-token" content="{{ csrf_token() }}">