Merge pull request #2385 from hmhealey/store
Globally exported all stores when developer mode is enabled
Этот коммит содержится в:
@@ -156,3 +156,7 @@ AdminStoreClass.dispatchToken = AppDispatcher.register((payload) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
export default AdminStore;
|
export default AdminStore;
|
||||||
|
|
||||||
|
if (window.mm_config.EnableDeveloper === 'true') {
|
||||||
|
window.AdminStore = AdminStore;
|
||||||
|
}
|
||||||
|
|||||||
@@ -83,3 +83,7 @@ AnalyticsStore.dispatchToken = AppDispatcher.register((payload) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
export default AnalyticsStore;
|
export default AnalyticsStore;
|
||||||
|
|
||||||
|
if (window.mm_config.EnableDeveloper === 'true') {
|
||||||
|
window.AnalyticsStore = AnalyticsStore;
|
||||||
|
}
|
||||||
|
|||||||
@@ -350,3 +350,7 @@ ChannelStore.dispatchToken = AppDispatcher.register((payload) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
export default ChannelStore;
|
export default ChannelStore;
|
||||||
|
|
||||||
|
if (window.mm_config.EnableDeveloper === 'true') {
|
||||||
|
window.ChannelStore = ChannelStore;
|
||||||
|
}
|
||||||
|
|||||||
@@ -57,4 +57,9 @@ class FileStore extends EventEmitter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default new FileStore();
|
const instance = new FileStore();
|
||||||
|
export default instance;
|
||||||
|
|
||||||
|
if (window.mm_config.EnableDeveloper === 'true') {
|
||||||
|
window.FileStore = instance;
|
||||||
|
}
|
||||||
|
|||||||
@@ -45,3 +45,7 @@ class ModalStoreClass extends EventEmitter {
|
|||||||
|
|
||||||
const ModalStore = new ModalStoreClass();
|
const ModalStore = new ModalStoreClass();
|
||||||
export default ModalStore;
|
export default ModalStore;
|
||||||
|
|
||||||
|
if (window.mm_config.EnableDeveloper === 'true') {
|
||||||
|
window.ModalStore = ModalStore;
|
||||||
|
}
|
||||||
|
|||||||
@@ -608,3 +608,7 @@ function isPostListNull(pl) {
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (window.mm_config.EnableDeveloper === 'true') {
|
||||||
|
window.PostStore = PostStore;
|
||||||
|
}
|
||||||
|
|||||||
@@ -135,3 +135,7 @@ SearchStore.dispatchToken = AppDispatcher.register((payload) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
export default SearchStore;
|
export default SearchStore;
|
||||||
|
|
||||||
|
if (window.mm_config.EnableDeveloper === 'true') {
|
||||||
|
window.SearchStore = SearchStore;
|
||||||
|
}
|
||||||
|
|||||||
@@ -258,4 +258,9 @@ class SuggestionStore extends EventEmitter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default new SuggestionStore();
|
const instance = new SuggestionStore();
|
||||||
|
export default instance;
|
||||||
|
|
||||||
|
if (window.mm_config.EnableDeveloper === 'true') {
|
||||||
|
window.SuggestionStore = instance;
|
||||||
|
}
|
||||||
|
|||||||
@@ -126,3 +126,7 @@ TeamStore.dispatchToken = AppDispatcher.register((payload) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
export default TeamStore;
|
export default TeamStore;
|
||||||
|
|
||||||
|
if (window.mm_config.EnableDeveloper === 'true') {
|
||||||
|
window.TeamStore = TeamStore;
|
||||||
|
}
|
||||||
|
|||||||
@@ -325,3 +325,7 @@ UserStore.dispatchToken = AppDispatcher.register((payload) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
export {UserStore as default};
|
export {UserStore as default};
|
||||||
|
|
||||||
|
if (window.mm_config.EnableDeveloper === 'true') {
|
||||||
|
window.UserStore = UserStore;
|
||||||
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user