evilSpins v1
All checks were successful
Deploy App / build (push) Successful in 43s
Deploy App / deploy (push) Successful in 41s

This commit is contained in:
valere
2025-11-04 22:41:41 +01:00
parent deb15b3ea1
commit 34d22b3b17
49 changed files with 5791 additions and 2447 deletions

View File

@@ -62,6 +62,10 @@ export const useUiStore = defineStore('ui', {
},
getters: {
isBoxSelected: () => {
const dataStore = useDataStore()
return dataStore.boxes.some((box) => box.state === 'box-selected')
},
getSelectedBox: () => {
const dataStore = useDataStore()
return (dataStore.boxes as Box[]).find((box) => box.state === 'box-selected') || null