Skip to content

Commit

Permalink
feat(storybook): add simple story
Browse files Browse the repository at this point in the history
  • Loading branch information
moklick committed Jul 31, 2019
1 parent 9d7e7e6 commit aa7e209
Show file tree
Hide file tree
Showing 10 changed files with 8,050 additions and 2,194 deletions.
2 changes: 2 additions & 0 deletions .storybook/addons.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import '@storybook/addon-actions/register';
import '@storybook/addon-links/register';
9 changes: 9 additions & 0 deletions .storybook/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { configure } from '@storybook/react';

// automatically import all files ending in *.stories.js
const req = require.context('../stories', true, /\.stories\.js$/);
function loadStories() {
req.keys().forEach(filename => req(filename));
}

configure(loadStories, module);
2 changes: 1 addition & 1 deletion example/build/example.e31bb0bc.js
Original file line number Diff line number Diff line change
Expand Up @@ -42594,7 +42594,7 @@ var parent = module.bundle.parent;
if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
var hostname = "" || location.hostname;
var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
var ws = new WebSocket(protocol + '://' + hostname + ':' + "55285" + '/');
var ws = new WebSocket(protocol + '://' + hostname + ':' + "51139" + '/');

ws.onmessage = function (event) {
checkedAssets = {};
Expand Down
2 changes: 1 addition & 1 deletion example/build/example.e31bb0bc.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/build/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion example/build/index.js.map

Large diffs are not rendered by default.

0 comments on commit aa7e209

Please sign in to comment.