2017-08-17 19:31:27 +00:00
|
|
|
/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */
|
2021-09-13 20:41:05 +00:00
|
|
|
import { combineReducers, createStore } from 'redux';
|
2017-08-17 19:31:27 +00:00
|
|
|
|
2021-04-19 16:57:19 +00:00
|
|
|
import './RoomItem';
|
2020-10-30 13:59:44 +00:00
|
|
|
import './List';
|
2021-01-20 20:43:59 +00:00
|
|
|
import './ServerItem';
|
2021-04-19 16:57:19 +00:00
|
|
|
import './Message';
|
|
|
|
import './UiKitMessage';
|
|
|
|
import './UiKitModal';
|
|
|
|
import './Markdown';
|
2020-10-30 16:15:58 +00:00
|
|
|
import './HeaderButtons';
|
|
|
|
import './UnreadBadge';
|
2020-10-30 17:35:07 +00:00
|
|
|
import '../../app/views/ThreadMessagesView/Item.stories.js';
|
2022-01-17 19:55:33 +00:00
|
|
|
import '../../app/views/DiscussionsView/Item.stories.js';
|
2021-04-19 16:57:19 +00:00
|
|
|
import './Avatar';
|
2021-10-20 16:32:58 +00:00
|
|
|
import './NewMarkdown';
|
2021-04-07 18:31:25 +00:00
|
|
|
import '../../app/containers/BackgroundContainer/index.stories.js';
|
|
|
|
import '../../app/containers/RoomHeader/RoomHeader.stories.js';
|
2021-05-26 17:24:54 +00:00
|
|
|
import '../../app/views/RoomView/LoadMore/LoadMore.stories';
|
2021-09-22 17:29:26 +00:00
|
|
|
import '../../app/views/CannedResponsesListView/CannedResponseItem.stories';
|
2022-05-18 19:17:42 +00:00
|
|
|
import '../../app/containers/TextInput/TextInput.stories';
|
2022-03-18 10:01:30 +00:00
|
|
|
import '../../app/containers/message/Components/CollapsibleQuote/CollapsibleQuote.stories';
|
2020-05-18 16:25:13 +00:00
|
|
|
|
2019-12-04 16:39:53 +00:00
|
|
|
// Change here to see themed storybook
|
2021-04-19 16:57:19 +00:00
|
|
|
export const theme = 'light';
|
2019-12-04 16:39:53 +00:00
|
|
|
|
2020-07-31 17:06:22 +00:00
|
|
|
const reducers = combineReducers({
|
|
|
|
settings: () => ({}),
|
|
|
|
login: () => ({
|
|
|
|
user: {
|
|
|
|
username: 'diego.mello'
|
|
|
|
}
|
|
|
|
}),
|
2020-11-04 16:53:44 +00:00
|
|
|
server: () => ({
|
|
|
|
server: 'https://open.rocket.chat',
|
|
|
|
version: '3.7.0'
|
|
|
|
}),
|
|
|
|
share: () => ({
|
|
|
|
server: 'https://open.rocket.chat',
|
|
|
|
version: '3.7.0',
|
|
|
|
settings: {}
|
|
|
|
}),
|
2020-07-31 17:06:22 +00:00
|
|
|
meteor: () => ({ connected: true }),
|
|
|
|
activeUsers: () => ({ abc: { status: 'online', statusText: 'dog' } })
|
|
|
|
});
|
2021-04-19 16:57:19 +00:00
|
|
|
export const store = createStore(reducers);
|