Comparing version 0.0.13 to 0.0.20
@@ -10,3 +10,3 @@ 'use strict'; | ||
var instance = new _flux.Dispatcher(); | ||
var dispatchServer = new _flux.Dispatcher(); | ||
@@ -16,3 +16,3 @@ // dispatch server | ||
// const instance = new PageStore(dispatchServer); | ||
exports.default = instance; | ||
exports.default = dispatchServer; | ||
@@ -23,2 +23,2 @@ // dispatch notify | ||
var dispatch = exports.dispatch = instance.dispatch.bind(instance); | ||
var dispatch = exports.dispatch = dispatchServer.dispatch.bind(dispatchServer); |
@@ -42,12 +42,4 @@ 'use strict'; | ||
}, { | ||
key: 'updateUrl', | ||
value: function updateUrl(url) { | ||
history.pushState('', '', url); | ||
} | ||
}, { | ||
key: 'reduce', | ||
value: function reduce(state, action) { | ||
if (action.url) { | ||
this.updateUrl(action.url); | ||
} | ||
switch (action.type) { | ||
@@ -54,0 +46,0 @@ case 'config/set': |
@@ -17,2 +17,4 @@ 'use strict'; | ||
var _organismReactAjax = require('organism-react-ajax'); | ||
var _reshow = require('../organisms/reshow'); | ||
@@ -24,2 +26,4 @@ | ||
var _dispatcher = require('../../src/actions/dispatcher'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -70,10 +74,10 @@ | ||
setTimeout(function () { | ||
self.setState({ | ||
updateWithUrl: updateWithUrl | ||
(0, _organismReactAjax.ajaxDispatch)({ | ||
type: 'config/set', | ||
params: { | ||
updateWithUrl: updateWithUrl | ||
} | ||
}); | ||
updateWithUrl(curUrl); | ||
}); | ||
window.onpopstate = function (e) { | ||
updateWithUrl(document.URL); | ||
}; | ||
} | ||
@@ -80,0 +84,0 @@ }]); |
@@ -40,3 +40,4 @@ 'use strict'; | ||
return { | ||
themePath: _index.global.path | ||
themePath: _index.global.path, | ||
baseUrl: pageState.get('baseUrl') | ||
}; | ||
@@ -74,7 +75,8 @@ } | ||
var state = this.state; | ||
return _jsx(_index.AjaxPage, { | ||
return _jsx(_index.AjaxPage | ||
/*State*/ | ||
, { | ||
themePath: state.themePath, | ||
baseUrl: state.baseUrl, | ||
themes: props.themes, | ||
themePath: state.themePath, | ||
baseUrl: props.baseUrl, | ||
updateWithUrl: state.updateWithUrl, | ||
ajax: props.ajax, | ||
@@ -81,0 +83,0 @@ callback: function callback(json) { |
{ | ||
"name": "reshow", | ||
"version": "0.0.13", | ||
"version": "0.0.20", | ||
"description": "Flux Reducer Present Library", | ||
@@ -14,5 +14,5 @@ "main": "./build/src/index.js", | ||
"dependencies": { | ||
"flux": "^2.1.1", | ||
"immutable": "^3.7.4", | ||
"organism-react-ajax": "^0.0.4" | ||
"flux": "^2.1.1", | ||
"immutable": "^3.7.4", | ||
"organism-react-ajax": ">=0.0.8" | ||
}, | ||
@@ -23,5 +23,5 @@ "devDependencies": { | ||
"babel-plugin-add-module-exports": "^0.1.2", | ||
"babel-plugin-transform-object-assign": "^6.8.0", | ||
"babel-plugin-transform-react-constant-elements": "^6.9.1", | ||
"babel-plugin-transform-react-inline-elements": "^6.8.0", | ||
"babel-plugin-transform-react-constant-elements": "^6.9.1", | ||
"babel-plugin-transform-object-assign": "^6.8.0", | ||
"babel-preset-es2015": "^6.6.0", | ||
@@ -28,0 +28,0 @@ "babel-preset-react": "^6.5.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18265
316
+ Addedarray.dedup@0.3.2(transitive)
+ Addedarray.merge@0.2.1(transitive)
+ Addedarray.polyfill@0.0.3(transitive)
+ Addedasynckit@0.4.0(transitive)
+ Addedcall-bind@1.0.7(transitive)
+ Addedcall-func@0.4.0(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addedcomponent-emitter@1.3.1(transitive)
+ Addedcookiejar@2.1.4(transitive)
+ Addeddebug@4.3.7(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addedeasing-lib@0.2.0(transitive)
+ Addedes-define-property@1.0.0(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedes6-promise@4.2.5(transitive)
+ Addedfast-safe-stringify@2.1.1(transitive)
+ Addedform-data@3.0.2(transitive)
+ Addedform-serialize-js@0.1.0(transitive)
+ Addedformidable@1.2.6(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-intrinsic@1.2.4(transitive)
+ Addedget-object-value@0.7.3(transitive)
+ Addedget-random-id@0.5.0(transitive)
+ Addedget-scroll-info@0.6.0(transitive)
+ Addedgopd@1.0.1(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-proto@1.0.3(transitive)
+ Addedhas-symbols@1.0.3(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedmethods@1.1.2(transitive)
+ Addedmime@2.6.0(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedms@2.1.3(transitive)
+ Addednon-worker@0.3.0(transitive)
+ Addedobject-inspect@1.13.3(transitive)
+ Addedobject-nested@0.2.0(transitive)
+ Addedorganism-react-ajax@0.17.19(transitive)
+ Addedparse-ini-string@0.2.0(transitive)
+ Addedqs@6.13.0(transitive)
+ Addedreadable-stream@3.6.2(transitive)
+ Addedreshow-build@1.3.1(transitive)
+ Addedreshow-constant@0.17.14(transitive)
+ Addedreshow-flux@1.1.3(transitive)
+ Addedreshow-flux-base@1.1.8(transitive)
+ Addedreshow-hooks@0.18.0(transitive)
+ Addedreshow-runtime@0.17.15(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsemver@7.6.3(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedset-object-value@0.2.0(transitive)
+ Addedside-channel@1.0.6(transitive)
+ Addedsmooth-scroll-to@0.5.1(transitive)
+ Addedstring_decoder@1.3.0(transitive)
+ Addedsuperagent@5.3.1(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedwin-doc@0.3.4(transitive)
- Removedasync@0.9.2(transitive)
- Removedcombined-stream@0.0.7(transitive)
- Removedcomponent-emitter@1.1.2(transitive)
- Removedcookiejar@2.0.1(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removeddebug@2.6.9(transitive)
- Removeddelayed-stream@0.0.5(transitive)
- Removedextend@1.2.1(transitive)
- Removedform-data@0.1.3(transitive)
- Removedformidable@1.0.14(transitive)
- Removedisarray@0.0.1(transitive)
- Removedmethods@1.0.1(transitive)
- Removedmime@1.2.11(transitive)
- Removedms@2.0.0(transitive)
- Removedorganism-react-ajax@0.0.4(transitive)
- Removedqs@1.2.0(transitive)
- Removedreadable-stream@1.0.27-1(transitive)
- Removedreduce-component@1.0.1(transitive)
- Removedstring_decoder@0.10.31(transitive)
- Removedsuperagent@0.21.0(transitive)
Updatedorganism-react-ajax@>=0.0.8