Changes to UI and other stuff

This commit is contained in:
Simon Pocrnjič
2025-11-20 18:11:43 +01:00
parent b7fa2d261b
commit 3b284fa4bd
87 changed files with 7872 additions and 2330 deletions
+12
View File
@@ -4,3 +4,15 @@ import { twMerge } from "tailwind-merge";
export function cn(...inputs) {
return twMerge(clsx(inputs));
}
/**
* Update a Vue ref with either a direct value or a function
* Used by TanStack Table for state management
* @param {*} updaterOrValue - Either a direct value or a function that takes current value
* @param {import('vue').Ref} ref - The Vue ref to update
*/
export function valueUpdater(updaterOrValue, ref) {
ref.value = typeof updaterOrValue === 'function'
? updaterOrValue(ref.value)
: updaterOrValue;
}