From aa803153e2161f4462d9d26ecd021fe0d2396cc5 Mon Sep 17 00:00:00 2001 From: Yamagishi Kazutoshi Date: Fri, 28 Jul 2017 05:30:27 +0900 Subject: Remove Storybook (#4397) --- storybook/config.js | 15 --------------- storybook/initial_state.js | 24 ------------------------ storybook/stories/autosuggest_textarea.story.js | 18 ------------------ storybook/stories/button.story.js | 18 ------------------ storybook/stories/character_counter.story.js | 21 --------------------- storybook/stories/loading_indicator.story.js | 12 ------------ storybook/stories/onboarding_modal.story.js | 24 ------------------------ storybook/storybook.scss | 3 --- storybook/webpack.config.js | 21 --------------------- 9 files changed, 156 deletions(-) delete mode 100644 storybook/config.js delete mode 100644 storybook/initial_state.js delete mode 100644 storybook/stories/autosuggest_textarea.story.js delete mode 100644 storybook/stories/button.story.js delete mode 100644 storybook/stories/character_counter.story.js delete mode 100644 storybook/stories/loading_indicator.story.js delete mode 100644 storybook/stories/onboarding_modal.story.js delete mode 100644 storybook/storybook.scss delete mode 100644 storybook/webpack.config.js (limited to 'storybook') diff --git a/storybook/config.js b/storybook/config.js deleted file mode 100644 index 87479560f..000000000 --- a/storybook/config.js +++ /dev/null @@ -1,15 +0,0 @@ -import { configure } from '@storybook/react'; -import { addLocaleData } from 'react-intl'; -import en from 'react-intl/locale-data/en'; -import '../app/javascript/styles/application.scss'; -import './storybook.scss'; - -addLocaleData(en); - -let req = require.context('./stories/', true, /.story.js$/); - -function loadStories () { - req.keys().forEach((filename) => req(filename)); -} - -configure(loadStories, module); diff --git a/storybook/initial_state.js b/storybook/initial_state.js deleted file mode 100644 index 3872586f6..000000000 --- a/storybook/initial_state.js +++ /dev/null @@ -1,24 +0,0 @@ -export default { - meta: { - admin: 1, - domain: 'example.com', - me: 2, - }, - accounts: { - 1: { - acct: 'admin', - avatar: '/avatars/original/missing.png', - id: 1, - url: 'https://example.com/@admin', - }, - 2: { - acct: 'user', - avatar: '/avatars/original/missing.png', - id: 1, - url: 'https://example.com/@user', - }, - }, - media_attachments: { - accept_content_types: [], - }, -}; diff --git a/storybook/stories/autosuggest_textarea.story.js b/storybook/stories/autosuggest_textarea.story.js deleted file mode 100644 index 65dfe965c..000000000 --- a/storybook/stories/autosuggest_textarea.story.js +++ /dev/null @@ -1,18 +0,0 @@ -import React from 'react'; -import { List } from 'immutable'; -import { storiesOf } from '@storybook/react'; -import { action } from '@storybook/addon-actions'; -import AutosuggestTextarea from 'mastodon/components/autosuggest_textarea'; - -const props = { - onChange: action('changed'), - onPaste: action('pasted'), - onSuggestionSelected: action('suggestionsSelected'), - onSuggestionsClearRequested: action('suggestionsClearRequested'), - onSuggestionsFetchRequested: action('suggestionsFetchRequested'), - suggestions: List([]), -}; - -storiesOf('AutosuggestTextarea', module) - .add('default state', () => ) - .add('with text', () => ); diff --git a/storybook/stories/button.story.js b/storybook/stories/button.story.js deleted file mode 100644 index 1971451e8..000000000 --- a/storybook/stories/button.story.js +++ /dev/null @@ -1,18 +0,0 @@ -import React from 'react'; -import { storiesOf } from '@storybook/react'; -import { action } from '@storybook/addon-actions'; -import Button from 'mastodon/components/button'; - -storiesOf('Button', module) - .add('default state', () => ( -