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

16 lines
435 B

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