jdcn config

This commit is contained in:
ntr 2018-09-20 18:29:45 +10:00
parent 4daeaeb86b
commit 830797c145
2 changed files with 11 additions and 6 deletions

View File

@ -1,5 +1,4 @@
const preact = require('preact');
const jdenticon = require('jdenticon');
// components all the way down
const Icon = name => (

View File

@ -1,4 +1,6 @@
const preact = require('preact');
const jdenticon = require('jdenticon');
const { Provider } = require('preact-redux');
const { createStore, combineReducers } = require('redux');
@ -7,19 +9,24 @@ const fizzyText = require('../lib/fizzy-text');
const createSocket = require('./socket');
const StatusContainer = require('./components/status.container');
const Navbar = require('./components/navbar');
{/*-- Section for html render classes --*/}
const Navbar = require('./navbar');
// Redux Store
const store = createStore(
combineReducers({
account: reducers.accountReducer,
}),
);
store.subscribe(() => console.log(store.getState()));
const ws = createSocket(store);
store.subscribe(() => console.log(store.getState()));
// tells jdenticon to look for new svgs and render them
// so we don't have to setInnerHtml or manually call update
jdenticon.config = {
replaceMode: 'observe',
};
const Cryps = () => (
@ -40,4 +47,3 @@ const Main = () => (
preact.render(<Main />, document.body);
fizzyText('cryps');