闭社主体 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.

17 lines
501 B

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