17 lines
482 B
JavaScript
17 lines
482 B
JavaScript
import {Subscribable} from "./Subscribable.js"
|
|
import {SubscribeMapList} from "./SubscribeMapList.js"
|
|
import {SubscribeSet} from "./SubscribeSet.js"
|
|
import {SubscribeValue} from "./SubscribeValue.js"
|
|
|
|
const store = {
|
|
groups: new SubscribeMapList(SubscribeValue),
|
|
rooms: new SubscribeMapList(SubscribeValue),
|
|
directs: new SubscribeSet(),
|
|
activeGroup: new SubscribeValue(),
|
|
activeRoom: new SubscribeValue(),
|
|
newEvents: new Subscribable()
|
|
}
|
|
|
|
window.store = store
|
|
|
|
export {store}
|