@owdproject/core
Version:
<p align="center"> <img width="160" height="160" src="https://avatars.githubusercontent.com/u/65117737?s=160&v=4" /> </p> <h1 align="center">Open Web Desktop</h1> <h3 align="center"> A modular framework for building web-based desktop experiences. </h3
21 lines (18 loc) • 403 B
text/typescript
import { defineStore } from 'pinia'
import { ref } from 'vue'
export const useApplicationWindowsStore = (appId: string) => {
return defineStore(
`owd/application/${appId}/windows`,
() => {
const windows: Ref<{ [windowId: string]: WindowStoredState }> = ref({})
return {
windows,
}
},
{
persistedState: {
persist: true,
},
},
)()
}