18 lines
506 B
JavaScript
18 lines
506 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 };
|