frontend: cleanup stores exports

This commit is contained in:
hippoz 2022-04-28 18:49:29 +03:00
parent 8539e4ab7c
commit 92ce055dd7
Signed by: hippoz
GPG key ID: 7C52899193467641

View file

@ -34,11 +34,6 @@ class Store {
}
}
export const selectedChannel = new Store({ id: -1, name: "none", creator_id: -1 });
export const showSidebar = new Store(false);
export const showChannelView = new Store(true);
export const smallViewport = new Store(false);
class ChannelsStore extends Store {
constructor() {
super(gateway.channels || []);
@ -290,6 +285,10 @@ class OverlayStore extends Store {
}
}
export const selectedChannel = new Store({ id: -1, name: "none", creator_id: -1 });
export const showSidebar = new Store(false);
export const showChannelView = new Store(true);
export const smallViewport = new Store(false);
export const channels = new ChannelsStore();
export const gatewayStatus = new GatewayStatusStore();
export const messagesStoreProvider = new MessagesStoreProvider();