Files
old-spike/client/config/development/templates.js

37 lines
1.0 KiB
JavaScript
Raw Normal View History

2016-02-22 20:02:45 -06:00
// All react templates should be pre-compiled for development.
// run 'gulp compile_react_templates'
2016-02-29 18:20:00 -06:00
import fs from 'fs';
import aboutRt from './../../dashboard/about/about.rt.js';
import houseRt from './../../dashboard/house/house.rt.js';
2016-02-22 20:02:45 -06:00
import layoutRt from './../../dashboard/layout/layout.rt.js';
import energyRt from './../../dashboard/energy/energy.rt.js';
2016-02-29 18:20:00 -06:00
import energyGraphRt from './../../dashboard/energy/graph/graph.rt.js';
import energyTableRt from './../../dashboard/energy/table/table.rt.js';
2016-02-22 20:02:45 -06:00
import powerRt from './../../dashboard/power/power.rt.js';
2016-02-29 18:20:00 -06:00
import powerGraphRt from './../../dashboard/power/graph/graph.rt.js';
import powerTableRt from './../../dashboard/power/table/table.rt.js';
2016-02-22 20:02:45 -06:00
2016-02-29 18:20:00 -06:00
const TEMPLATES = {
about: aboutRt,
house: houseRt,
2016-02-22 20:02:45 -06:00
layout: layoutRt,
energy: energyRt,
2016-02-29 18:20:00 -06:00
energy_graph: energyGraphRt,
energy_table: energyTableRt,
2016-02-22 20:02:45 -06:00
power: powerRt,
2016-02-29 18:20:00 -06:00
power_graph: powerGraphRt,
power_table: powerTableRt
};
2016-02-22 20:02:45 -06:00
class Templates {
static forComponent(view){
return TEMPLATES[view];
}
}
export default Templates;