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