import { h, render } from 'preact' import { Provider } from 'react-redux' import { BrowserRouter, Switch, Route, Redirect } from 'react-router-dom' import { store, history } from './store' import * as socket from './socket' import util from './util' import Auth from './auth' import { Header, AudioPlayer } from './common' import System from './system/system.component' import Dashboard from './dashboard/dashboard.component' import modules from './modules' const module_list = Object.keys(modules).map(name => { const module = modules[name] return ( ) }) const ModuleRouter = () => { return ( ) } const app = (
{console.log(props.location.pathname)}
} /> { console.log('pziss'); }} /> { console.log('pziss'); }} /> {module_list}
) render(app, document.getElementById('container'))