Carbon/src/js/store/store.js

18 lines
506 B
JavaScript
Raw Normal View History

2020-10-19 08:45:17 +00:00
import { Subscribable } from "./Subscribable.js";
import { SubscribeMapList } from "./SubscribeMapList.js";
import { SubscribeSet } from "./SubscribeSet.js";
import { SubscribeValue } from "./SubscribeValue.js";
2020-10-15 03:43:37 +00:00
const store = {
2020-10-19 08:45:17 +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 08:45:17 +00:00
window.store = store;
2020-10-15 03:43:37 +00:00
2020-10-19 08:45:17 +00:00
export { store };