feat(nc-gui): store sidebar states separately by id

# What's changed?

* use a sidebar id to identify the state
* use in memory storage to store the states
* use local storage to store persistent states
* add MemStorage class
This commit is contained in:
braks
2022-09-15 12:25:35 +02:00
parent 7891172542
commit d3a4bca8f3
17 changed files with 105 additions and 38 deletions

View File

@@ -4,7 +4,7 @@ import { computed, useGlobal, useProject, useRoute, useSidebar } from '#imports'
const { signOut, signedIn, user } = useGlobal()
const { isOpen } = useSidebar({ isOpen: true })
const { isOpen } = useSidebar('nc-mini-sidebar', { isOpen: true })
const { project } = useProject()