Skip to content

Commit

Permalink
Update dist
Browse files Browse the repository at this point in the history
  • Loading branch information
thani-sh committed Oct 28, 2016
1 parent 7b9b649 commit 3da5100
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 17 deletions.
4 changes: 2 additions & 2 deletions dist/client/preview/client_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de

var ClientApi = function () {
function ClientApi(_ref) {
var channel = _ref.channel,
storyStore = _ref.storyStore;
var channel = _ref.channel;
var storyStore = _ref.storyStore;
(0, _classCallCheck3.default)(this, ClientApi);

// channel can be null when running in node
Expand Down
10 changes: 5 additions & 5 deletions dist/client/preview/config_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de

var ConfigApi = function () {
function ConfigApi(_ref) {
var channel = _ref.channel,
storyStore = _ref.storyStore,
reduxStore = _ref.reduxStore;
var channel = _ref.channel;
var storyStore = _ref.storyStore;
var reduxStore = _ref.reduxStore;
(0, _classCallCheck3.default)(this, ConfigApi);

// channel can be null when running in node
Expand All @@ -50,8 +50,8 @@ var ConfigApi = function () {
}, {
key: '_renderError',
value: function _renderError(e) {
var stack = e.stack,
message = e.message;
var stack = e.stack;
var message = e.message;

var error = { stack: stack, message: message };
this._reduxStore.dispatch((0, _actions.setError)(error));
Expand Down
5 changes: 3 additions & 2 deletions dist/client/preview/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ var _reducer2 = _interopRequireDefault(_reducer);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

// check whether we're running on node/browser
var _global = global,
navigator = _global.navigator; /* global window */
var _global = global; /* global window */

var navigator = _global.navigator;

var isBrowser = navigator && navigator.userAgent !== 'storyshots';

Expand Down
8 changes: 4 additions & 4 deletions dist/client/preview/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ Object.defineProperty(exports, "__esModule", {
});

exports.default = function (context) {
var queryParams = context.queryParams,
reduxStore = context.reduxStore,
window = context.window,
channel = context.channel;
var queryParams = context.queryParams;
var reduxStore = context.reduxStore;
var window = context.window;
var channel = context.channel;
// set the story if correct params are loaded via the URL.

if (queryParams.selectedKind) {
Expand Down
8 changes: 4 additions & 4 deletions dist/client/preview/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ function renderMain(data, storyStore) {
);
};
var noPreview = _react2.default.createElement(NoPreview, null);
var selectedKind = data.selectedKind,
selectedStory = data.selectedStory;
var selectedKind = data.selectedKind;
var selectedStory = data.selectedStory;


var story = storyStore.getStory(selectedKind, selectedStory);
Expand Down Expand Up @@ -129,8 +129,8 @@ function renderMain(data, storyStore) {
}

function renderPreview(_ref) {
var reduxStore = _ref.reduxStore,
storyStore = _ref.storyStore;
var reduxStore = _ref.reduxStore;
var storyStore = _ref.storyStore;

var state = reduxStore.getState();
if (state.error) {
Expand Down
Empty file modified dist/server/build.js
100755 → 100644
Empty file.

0 comments on commit 3da5100

Please sign in to comment.