Remove remnants of redux
This commit is contained in:
parent
25230a35f7
commit
c5bb82f31e
@ -19,6 +19,7 @@
|
|||||||
"inferno": "^5.0.1",
|
"inferno": "^5.0.1",
|
||||||
"inferno-bootstrap": "^5.0.0",
|
"inferno-bootstrap": "^5.0.0",
|
||||||
"inferno-dev-utils": "^5.3.0",
|
"inferno-dev-utils": "^5.3.0",
|
||||||
|
"inferno-redux": "^5.0.6",
|
||||||
"inferno-router": "^5.0.1",
|
"inferno-router": "^5.0.1",
|
||||||
"lodash": "^4.17.10",
|
"lodash": "^4.17.10",
|
||||||
"sqlite3": "^4.0.0",
|
"sqlite3": "^4.0.0",
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
/**
|
|
||||||
* Redux setup
|
|
||||||
*/
|
|
||||||
import { combineReducers, createStore } from 'redux';
|
|
||||||
|
|
||||||
import * as reducers from '//reducers';
|
|
||||||
|
|
||||||
const configureStore = (defaultState = {}) => {
|
|
||||||
return createStore(combineReducers({
|
|
||||||
...reducers,
|
|
||||||
}), defaultState);
|
|
||||||
};
|
|
||||||
|
|
||||||
export default configureStore;
|
|
@ -1,7 +1,5 @@
|
|||||||
import { render } from 'inferno';
|
import { render } from 'inferno';
|
||||||
import { Provider } from 'inferno-redux';
|
|
||||||
|
|
||||||
import configureStore from './configureStore';
|
|
||||||
import { App } from './App';
|
import { App } from './App';
|
||||||
import WSCache from './wsCache';
|
import WSCache from './wsCache';
|
||||||
|
|
||||||
|
@ -5,9 +5,9 @@ export class wsCache {
|
|||||||
constructor (ws) {
|
constructor (ws) {
|
||||||
this.ws = ws
|
this.ws = ws
|
||||||
|
|
||||||
this.ws.addEventListener('open', this.onWebSocketOpen);
|
|
||||||
this.ws.addEventListener('message', this.onWebSocketMessage);
|
this.ws.addEventListener('message', this.onWebSocketMessage);
|
||||||
this.ws.addEventListener('close', this.onWebSocketClose);
|
this.ws.addEventListener('close', this.onWebSocketClose);
|
||||||
|
this.ws.addEventListener('error', console.error);
|
||||||
|
|
||||||
// Websocket channels
|
// Websocket channels
|
||||||
// These hold previous messages if they are needed later
|
// These hold previous messages if they are needed later
|
||||||
@ -26,7 +26,6 @@ export class wsCache {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_.bindAll(this, [
|
_.bindAll(this, [
|
||||||
'onWebSocketOpen',
|
|
||||||
'onWebSocketClose',
|
'onWebSocketClose',
|
||||||
'onWebSocketMessage',
|
'onWebSocketMessage',
|
||||||
'publish',
|
'publish',
|
||||||
@ -36,10 +35,6 @@ export class wsCache {
|
|||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|
||||||
onWebSocketOpen () {
|
|
||||||
window.wsCache.publish('default', 'Websocket opened');
|
|
||||||
}
|
|
||||||
|
|
||||||
onWebSocketClose () {
|
onWebSocketClose () {
|
||||||
console.info('WebSocket closed');
|
console.info('WebSocket closed');
|
||||||
}
|
}
|
||||||
@ -76,8 +71,6 @@ export class wsCache {
|
|||||||
this.listeners[slot].forEach(listener => {
|
this.listeners[slot].forEach(listener => {
|
||||||
listener(data)
|
listener(data)
|
||||||
});
|
});
|
||||||
|
|
||||||
console.info(this.slots);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
11
yarn.lock
11
yarn.lock
@ -4030,6 +4030,13 @@ inferno-popper@^5.0.0:
|
|||||||
is-equal-shallow "^0.1.3"
|
is-equal-shallow "^0.1.3"
|
||||||
popper.js "^1.10.8"
|
popper.js "^1.10.8"
|
||||||
|
|
||||||
|
inferno-redux@^5.0.6:
|
||||||
|
version "5.0.6"
|
||||||
|
resolved "https://verdaccio.blueclouds.io:4873/inferno-redux/-/inferno-redux-5.0.6.tgz#41214f3c3df2e75cc873f356f353e44e4b9c1c59"
|
||||||
|
dependencies:
|
||||||
|
hoist-non-inferno-statics "^1.1.3"
|
||||||
|
inferno-shared "5.0.6"
|
||||||
|
|
||||||
inferno-router@^5.0.1:
|
inferno-router@^5.0.1:
|
||||||
version "5.0.5"
|
version "5.0.5"
|
||||||
resolved "https://registry.npmjs.org/inferno-router/-/inferno-router-5.0.5.tgz#3fb68a63e6fa4c9b27b7b87861b1c3fca67015b9"
|
resolved "https://registry.npmjs.org/inferno-router/-/inferno-router-5.0.5.tgz#3fb68a63e6fa4c9b27b7b87861b1c3fca67015b9"
|
||||||
@ -4045,6 +4052,10 @@ inferno-shared@5.0.5, inferno-shared@^5.0.1:
|
|||||||
version "5.0.5"
|
version "5.0.5"
|
||||||
resolved "https://registry.npmjs.org/inferno-shared/-/inferno-shared-5.0.5.tgz#44a59ec9640998e7244396b5c012fbd8f8e6ec91"
|
resolved "https://registry.npmjs.org/inferno-shared/-/inferno-shared-5.0.5.tgz#44a59ec9640998e7244396b5c012fbd8f8e6ec91"
|
||||||
|
|
||||||
|
inferno-shared@5.0.6:
|
||||||
|
version "5.0.6"
|
||||||
|
resolved "https://verdaccio.blueclouds.io:4873/inferno-shared/-/inferno-shared-5.0.6.tgz#392ed65f910049204b826c4640f5c1bf45c68e84"
|
||||||
|
|
||||||
inferno-vnode-flags@5.0.5, inferno-vnode-flags@^5.0.1:
|
inferno-vnode-flags@5.0.5, inferno-vnode-flags@^5.0.1:
|
||||||
version "5.0.5"
|
version "5.0.5"
|
||||||
resolved "https://registry.npmjs.org/inferno-vnode-flags/-/inferno-vnode-flags-5.0.5.tgz#378a7224f20bba312b71e8c495641fe585bed0ae"
|
resolved "https://registry.npmjs.org/inferno-vnode-flags/-/inferno-vnode-flags-5.0.5.tgz#378a7224f20bba312b71e8c495641fe585bed0ae"
|
||||||
|
Loading…
Reference in New Issue
Block a user