refactor(dashboard,history): replace ViewModels with Pinia stores and improve backend

This commit is contained in:
2026-08-05 09:23:18 +02:00
parent a0387126de
commit 90930cd223
29 changed files with 1372 additions and 237 deletions
+24
View File
@@ -0,0 +1,24 @@
import axios from 'axios';
const http = axios.create({
headers: {
'Content-Type': 'application/json',
Accept: 'application/json',
},
});
http.interceptors.response.use(
(response) => response,
(error) => {
const message =
error.response?.data?.message ||
error.message ||
'Er is een onverwachte fout opgetreden';
console.error('[HTTP Error]', message);
return Promise.reject(error);
},
);
export default http;
-7
View File
@@ -1,7 +0,0 @@
import { clsx } from 'clsx';
import type { ClassValue } from 'clsx';
import { twMerge } from 'tailwind-merge';
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}