feat: new settings

This commit is contained in:
--list
2026-01-12 23:25:58 -08:00
parent be8916b4ce
commit a89a48d11e
13 changed files with 629 additions and 432 deletions

View File

@@ -0,0 +1,24 @@
import { computed, ref } from 'vue'
// Shared state for workspace
const _workspaceName = ref<string | null>(null)
const _activeTab = ref<string>('general')
/**
* Composable for handling workspace data
* TODO: Replace stubbed data with actual API call
*/
export function useWorkspace() {
const workspaceName = computed(() => _workspaceName.value)
const activeTab = computed(() => _activeTab.value)
function setActiveTab(tab: string | number) {
_activeTab.value = String(tab)
}
return {
workspaceName,
activeTab,
setActiveTab
}
}