mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 17:51:21 +00:00
Added more granular JS API exports
This commit is contained in:
committed by
Jordan Pellizzari
parent
d775020794
commit
38d2b8ddff
1
client/app/scripts/actions.js
Normal file
1
client/app/scripts/actions.js
Normal file
@@ -0,0 +1 @@
|
||||
module.exports = require('./actions/app-actions');
|
||||
1
client/app/scripts/component.js
Normal file
1
client/app/scripts/component.js
Normal file
@@ -0,0 +1 @@
|
||||
module.exports = require('./components/app').default;
|
||||
@@ -1,4 +1,3 @@
|
||||
exports.reducer = require('./reducers/root').default;
|
||||
exports.Scope = require('./components/app').default;
|
||||
exports.actions = require('./actions/app-actions');
|
||||
exports.ContrastStyleCompiler = require('./contrast-compiler');
|
||||
|
||||
1
client/app/scripts/reducer.js
Normal file
1
client/app/scripts/reducer.js
Normal file
@@ -0,0 +1 @@
|
||||
module.exports = require('./reducers/root').default;
|
||||
@@ -98,7 +98,7 @@ export function getRouter(dispatch, initialState) {
|
||||
if (storageState) {
|
||||
window.location.hash = `!/state/${storageState}`;
|
||||
const parsedState = JSON.parse(decodeURL(storageState));
|
||||
mergedState = Object.assign(initialState, parsedState);
|
||||
mergedState = { ...initialState, ...parsedState };
|
||||
}
|
||||
|
||||
page('/', () => {
|
||||
|
||||
@@ -363,7 +363,10 @@ export function teardownWebsockets() {
|
||||
if (socket) {
|
||||
socket.onerror = null;
|
||||
socket.onclose = null;
|
||||
socket.onmessage = null;
|
||||
socket.onopen = null;
|
||||
socket.close();
|
||||
socket = null;
|
||||
currentOptions = null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user