implement reactjs history
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import {browserHistory} from 'react-router';
|
||||
import { createHistory, useQueries } from 'history'
|
||||
|
||||
import app from './../../app';
|
||||
|
||||
app(browserHistory);
|
||||
app(useQueries(createHistory));
|
||||
|
||||
@@ -3,8 +3,6 @@
|
||||
|
||||
import fs from 'fs';
|
||||
|
||||
import aboutRt from './../../dashboard/about/about.rt';
|
||||
import houseRt from './../../dashboard/house/house.rt';
|
||||
import layoutRt from './../../dashboard/layout/layout.rt';
|
||||
import energyRt from './../../dashboard/energy/energy.rt';
|
||||
import energyGraphRt from './../../dashboard/energy/graph/graph.rt';
|
||||
@@ -14,8 +12,6 @@ import powerGraphRt from './../../dashboard/power/graph/graph.rt';
|
||||
import powerTableRt from './../../dashboard/power/table/table.rt';
|
||||
|
||||
const TEMPLATES = {
|
||||
about: aboutRt,
|
||||
house: houseRt,
|
||||
layout: layoutRt,
|
||||
energy: energyRt,
|
||||
energy_graph: energyGraphRt,
|
||||
|
||||
Reference in New Issue
Block a user