``` ~/go/bin/sourcemapper -output ddb -jsurl https://media.dndbeyond.com/character-app/static/js/main.90aa78c5.js ```
33 lines
1.1 KiB
JavaScript
33 lines
1.1 KiB
JavaScript
|
|
/**
|
|
* This action type will be dispatched by the history actions below.
|
|
* If you're writing a middleware to watch for navigation events, be sure to
|
|
* look for actions of this type.
|
|
*/
|
|
export var CALL_HISTORY_METHOD = '@@router/CALL_HISTORY_METHOD';
|
|
|
|
function updateLocation(method) {
|
|
return function () {
|
|
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
|
args[_key] = arguments[_key];
|
|
}
|
|
|
|
return {
|
|
type: CALL_HISTORY_METHOD,
|
|
payload: { method: method, args: args }
|
|
};
|
|
};
|
|
}
|
|
|
|
/**
|
|
* These actions correspond to the history API.
|
|
* The associated routerMiddleware will capture these events before they get to
|
|
* your reducer and reissue them as the matching function on your history.
|
|
*/
|
|
export var push = updateLocation('push');
|
|
export var replace = updateLocation('replace');
|
|
export var go = updateLocation('go');
|
|
export var goBack = updateLocation('goBack');
|
|
export var goForward = updateLocation('goForward');
|
|
|
|
export var routerActions = { push: push, replace: replace, go: go, goBack: goBack, goForward: goForward }; |