archy/neode-ui/src/stores/appLauncher.ts
Dorian 316dfee2fc Update UI components and enhance controller navigation for improved user experience
- Updated styles in various components to change color themes from cyan to yellow for better visual consistency.
- Enhanced focus management in controller navigation to improve accessibility and user interaction.
- Added new data attributes for controller navigation in multiple views to streamline user interactions with app containers.
- Improved audio handling by removing unused functions in useLoginSounds.ts, optimizing the codebase.
2026-02-17 21:10:16 +00:00

29 lines
518 B
TypeScript

import { defineStore } from 'pinia'
import { ref } from 'vue'
export const useAppLauncherStore = defineStore('appLauncher', () => {
const isOpen = ref(false)
const url = ref('')
const title = ref('')
function open(payload: { url: string; title: string }) {
url.value = payload.url
title.value = payload.title
isOpen.value = true
}
function close() {
isOpen.value = false
url.value = ''
title.value = ''
}
return {
isOpen,
url,
title,
open,
close,
}
})