Carbon/build/static/store/store.js

18 lines
482 B
JavaScript
Raw Normal View History

import {Subscribable} from "./Subscribable.js"
2020-10-15 03:43:37 +00:00
import {SubscribeMapList} from "./SubscribeMapList.js"
import {SubscribeSet} from "./SubscribeSet.js"
2020-10-15 03:43:37 +00:00
import {SubscribeValue} from "./SubscribeValue.js"
const store = {
groups: new SubscribeMapList(SubscribeValue),
rooms: new SubscribeMapList(SubscribeValue),
directs: new SubscribeSet(),
2020-10-15 03:43:37 +00:00
activeGroup: new SubscribeValue(),
activeRoom: new SubscribeValue(),
newEvents: new Subscribable()
2020-10-15 03:43:37 +00:00
}
window.store = store
export {store}