- Introduced a new CLI popup component accessible via keyboard shortcuts (Cmd+Shift+` / Ctrl+Shift+`). - Updated SpotlightSearch component to include CLI option in search results, allowing users to open the CLI directly. - Added CLI entry in helpTree for improved discoverability of the CLI feature. - Enhanced Dashboard.vue with an App Switcher for better navigation and user experience.
26 lines
369 B
TypeScript
26 lines
369 B
TypeScript
import { defineStore } from 'pinia'
|
|
import { ref } from 'vue'
|
|
|
|
export const useCLIStore = defineStore('cli', () => {
|
|
const isOpen = ref(false)
|
|
|
|
function open() {
|
|
isOpen.value = true
|
|
}
|
|
|
|
function close() {
|
|
isOpen.value = false
|
|
}
|
|
|
|
function toggle() {
|
|
isOpen.value = !isOpen.value
|
|
}
|
|
|
|
return {
|
|
isOpen,
|
|
open,
|
|
close,
|
|
toggle,
|
|
}
|
|
})
|