Commit Graph

9 Commits (694189333a8254ecf95e3cfe4afca94acf7e61ad)

Author SHA1 Message Date
Timothy J. Raymond d5cfcb5fa7 Merge pull request #297 from influxdata/feature/tr-layouts
Render layouts from API
2016-10-28 19:26:10 -04:00
Tim Raymond a4793bdefc Add "I" and "Name" to cells on backend
React-grid-layout uses an "i" parameter in the JSON describing a layout
as an identifier. This is used to bind DOM elements' keys to Cells from
the API. Also, we need a "Name" to describe what each graph is to a
user.

Also, react-grid-layout specified widths and heights in terms of units
of the grid that it establishes. In order to have this properly
configured, the extents of this grid need to be spelled out when
creating a ReactGridLayout, hence the addition of "cols" and
"rowHeight" props to that component.

Finally, react-grid-layout incorporates some of its own styles. To
support this, some modifications needed to be made to the webpack config
to allow us to pull in includes from node_modules.
2016-10-28 18:01:14 -04:00
gunnaraasen b85a5be094 Add usage stats reporting 2016-10-28 14:34:55 -07:00
Chris Goller 12348d72cb Refactor to remove autogenerated code. 2016-10-26 22:10:52 -05:00
Chris Goller 8911b0fd78 Update name to chronograf 2016-10-20 09:39:40 -05:00
Chris Goller bc80a5d75e Add example pre-canned layout 2016-10-11 14:08:40 -05:00
Chris Goller 28e3dfd66e Update naming of pre-canned layouts.
Layouts now are served from only a directory and are named
MEAUREMENT_UUID.json.
2016-10-11 13:12:19 -05:00
Chris Goller f6770830f9 Update layouts to use ID generation. 2016-10-10 21:00:49 -05:00
Chris Goller c9dc1d492a Add pre-canned application layout store. 2016-10-10 20:40:16 -05:00