2017-08-17 19:31:27 +00:00
|
|
|
/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */
|
2020-07-31 17:06:22 +00:00
|
|
|
import { createStore, combineReducers } 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';
|
2021-04-19 16:57:19 +00:00
|
|
|
import './Avatar';
|
2021-04-07 18:31:25 +00:00
|
|
|
import '../../app/containers/BackgroundContainer/index.stories.js';
|
|
|
|
import '../../app/containers/RoomHeader/RoomHeader.stories.js';
|
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);
|