闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
573 B

  1. import { configure, setAddon } from '@kadira/storybook';
  2. import IntlAddon from 'react-storybook-addon-intl';
  3. import React from 'react';
  4. import { storiesOf, action } from '@kadira/storybook';
  5. import { addLocaleData } from 'react-intl';
  6. import en from 'react-intl/locale-data/en';
  7. import '../app/javascript/styles/application.scss';
  8. import './storybook.scss';
  9. setAddon(IntlAddon);
  10. addLocaleData(en);
  11. let req = require.context('./stories/', true, /.story.js$/);
  12. function loadStories () {
  13. req.keys().forEach((filename) => req(filename))
  14. }
  15. configure(loadStories, module);