mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-12 04:37:06 +03:00
29 lines
784 B
JavaScript
Executable File
29 lines
784 B
JavaScript
Executable File
import { configure, setAddon, addDecorator } from '@storybook/react';
|
|
import { setOptions } from '@storybook/addon-options';
|
|
import infoAddon from '@storybook/addon-info';
|
|
import { withKnobs } from '@storybook/addon-knobs';
|
|
import { withTheme } from './themeAddon/theme';
|
|
import '../src/presets.js';
|
|
|
|
setAddon(infoAddon);
|
|
setOptions({
|
|
name: 'DevUI',
|
|
url: 'https://github.com/reduxjs/redux-devtools/tree/master/packages/devui',
|
|
goFullScreen: false,
|
|
showLeftPanel: true,
|
|
showDownPanel: true,
|
|
showSearchBox: false,
|
|
downPanelInRight: true
|
|
});
|
|
|
|
addDecorator(withTheme);
|
|
addDecorator(withKnobs);
|
|
|
|
const req = require.context('../src/', true, /stories\/index\.js$/);
|
|
|
|
function loadStories() {
|
|
req.keys().forEach(filename => req(filename));
|
|
}
|
|
|
|
configure(loadStories, module);
|