Skip to content

Commit

Permalink
chore(storybook): migrate remaining stories
Browse files Browse the repository at this point in the history
- Adjust category of stories to the proper plugin name
  • Loading branch information
yannbf committed Sep 12, 2020
1 parent 88c7274 commit 7e67b57
Show file tree
Hide file tree
Showing 16 changed files with 59 additions and 26 deletions.
12 changes: 12 additions & 0 deletions stories/adding-images/src/AddImageEditor.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react';
import { Story, Meta } from '@storybook/react';

// @ts-ignore remove it when the file is migrated to ts
import AddImageEditor from './AddImageEditor';

export default {
title: 'Image/Editor with Image Plugin and Add mechanism',
component: AddImageEditor,
} as Meta;

export const Default: Story = () => <AddImageEditor />;
2 changes: 1 addition & 1 deletion stories/alignment/src/SimpleAlignmentEditor.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Story, Meta } from '@storybook/react';
import SimpleAlignmentEditor from './SimpleAlignmentEditor';

export default {
title: 'Miscellaneous/Editor With Alignment Plugin',
title: 'Alignment/Editor With Alignment Plugin',
component: SimpleAlignmentEditor,
} as Meta;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Story, Meta } from '@storybook/react';
import SimpleCounterEditor from './SimpleCounterEditor';

export default {
title: 'Miscellaneous/Editor With Counter Plugin',
title: 'Counter/Editor With Counter Plugin',
component: SimpleCounterEditor,
} as Meta;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react';
import { Story, Meta } from '@storybook/react';

// @ts-ignore remove it when the file is migrated to ts
import DividerWithSideToolbarEditor from './App';

export default {
title: 'Divider/Divider with side toolbar',
component: DividerWithSideToolbarEditor,
} as Meta;

export const Default: Story = () => <DividerWithSideToolbarEditor />;
2 changes: 1 addition & 1 deletion stories/focus/src/SimpleFocusEditor.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Story, Meta } from '@storybook/react';
import SimpleFocusEditor from './SimpleFocusEditor';

export default {
title: 'Miscellaneous/Editor with Focus Plugin',
title: 'Focus/Editor with Focus Plugin',
component: SimpleFocusEditor,
} as Meta;

Expand Down
2 changes: 1 addition & 1 deletion stories/hashtag-styled/src/CustomHashtagEditor.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Story, Meta } from '@storybook/react';
import CustomHashtagEditor from './CustomHashtagEditor';

export default {
title: 'Miscellaneous/Editor with custom themed Hashtag Plugin',
title: 'Hashtag/Editor with custom themed Hashtag Plugin',
component: CustomHashtagEditor,
} as Meta;

Expand Down
2 changes: 1 addition & 1 deletion stories/hashtag/src/SimpleHashtagEditor.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Story, Meta } from '@storybook/react';
import SimpleHashtagEditor from './SimpleHashtagEditor';

export default {
title: 'Miscellaneous/Editor with Hashtag Plugin',
title: 'Hashtag/Editor with Hashtag Plugin',
component: SimpleHashtagEditor,
} as Meta;

Expand Down
15 changes: 0 additions & 15 deletions stories/index.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Story, Meta } from '@storybook/react';
import AnchorSimpleLinkPluginEditor from './AnchorSimpleLinkPluginEditor';

export default {
title: 'Miscellaneous/Editor with Anchor Plugin',
title: 'Anchor/Editor with Anchor Plugin',
component: AnchorSimpleLinkPluginEditor,
} as Meta;

Expand Down
2 changes: 1 addition & 1 deletion stories/kitchensink/src/KitchenSink.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Story, Meta } from '@storybook/react';
import KitchenSink from './KitchenSink';

export default {
title: 'Miscellaneous/Kitchen sink',
title: 'Kitchen sink',
component: KitchenSink,
} as Meta;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Story, Meta } from '@storybook/react';
import CustomLinkifyEditor from './CustomLinkifyEditor';

export default {
title: 'Miscellaneous/Editor with Linkify Plugin and configured to render links with target blank',
title: 'Linkify/Editor with Linkify Plugin and configured to render links with target blank',
component: CustomLinkifyEditor
} as Meta;

Expand Down
2 changes: 1 addition & 1 deletion stories/linkify/src/SimpleLinkifyEditor.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Story, Meta } from '@storybook/react';
import SimpleLinkifyEditor from './SimpleLinkifyEditor';

export default {
title: 'Miscellaneous/Editor with Linkify Plugin',
title: 'Linkify/Editor with Linkify Plugin',
component: SimpleLinkifyEditor,
} as Meta;

Expand Down
12 changes: 12 additions & 0 deletions stories/mentions-custom-styled/src/CustomMentionEditor.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react';
import { Story, Meta } from '@storybook/react';

// @ts-ignore remove it when the file is migrated to ts
import CustomMentionEditor from './CustomMentionEditor';

export default {
title: 'Mention/Editor with custom themed Mention Plugin',
component: CustomMentionEditor,
} as Meta;

export const Default: Story = () => <CustomMentionEditor />;
12 changes: 12 additions & 0 deletions stories/resizable/src/ResizableEditor.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react';
import { Story, Meta } from '@storybook/react';

// @ts-ignore remove it when the file is migrated to ts
import ResizeableEditor from './ResizableEditor';

export default {
title: 'Resizeable/Resizeable editor',
component: ResizeableEditor,
} as Meta;

export const Default: Story = () => <ResizeableEditor />;
2 changes: 1 addition & 1 deletion stories/sticker/src/SimpleStickerEditor.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Story, Meta } from '@storybook/react';
import SimpleStickerEditor from './SimpleStickerEditor';

export default {
title: 'Miscellaneous/Editor with Sticker Plugin',
title: 'Sticker/Editor with Sticker Plugin',
component: SimpleStickerEditor,
} as Meta;

Expand Down
2 changes: 1 addition & 1 deletion stories/undo/src/SimpleUndoEditor.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Story, Meta } from '@storybook/react';
import SimpleUndoEditor from './SimpleUndoEditor';

export default {
title: 'Miscellaneous/Editor with undo plugin',
title: 'Undo/Editor with undo plugin',
component: SimpleUndoEditor
} as Meta;

Expand Down

0 comments on commit 7e67b57

Please sign in to comment.