Commit graph

10 commits

Author SHA1 Message Date
Simon Willison
64be9a6f0d Set REACT_APP_STAGE when building demo 2018-06-26 08:24:44 -07:00
Simon Willison
7280e8500c Put now.json in the correct directory 2018-06-26 08:19:35 -07:00
Simon Willison
094c7fba3d Deploy to datasette-vega-latest.datasette.io if tests pass, refs #2 2018-06-26 08:16:48 -07:00
Simon Willison
3cba056ba0 Handle _labels=on column names, closes #5 2018-06-26 08:04:12 -07:00
Simon Willison
3155970f41 Improved dev mode using react environments, closes #1 2018-06-26 07:47:38 -07:00
Simon Willison
e6c0fec074 Packaged everything up as a Datasette plugin
I used a variant on the pattern described here to run "npm run build" when
creating the wheel:

http://cra.mr/2014/12/19/distributing-js-with-python

To generate just the static assets (in datasette_vega/static) run this:

	python3 setup.py build_static

To build the package (and automatically run the above) do this:

	python3 setup.py bdist_wheel
2018-06-25 20:06:28 -07:00
Simon Willison
1874ee3427 Scan for .export-link a[href=*json] and inject necessary markup 2018-06-25 20:05:14 -07:00
Simon Willison
d741716dc8 Fixed # serializing/deserializing and back button support 2018-06-25 18:40:17 -07:00
Simon Willison
4cf1def414 Various improvements
* Renamed App to DatasetteVega
* Component uses fetch() to retrieve columns on start
* DatasetteVega.test.js tests now pass
* Column select boxes now display next to each other
* Styling is slightly improved
2018-06-25 17:30:37 -07:00
Simon Willison
6270de3296 First working version 2018-06-25 09:16:59 -07:00