Commit graph

47 commits

Author SHA1 Message Date
Simon Willison
6fe66c4c9d Fix for httpx.AsyncClient(app=app)
Refs https://github.com/simonw/datasette/issues/2549
2025-11-02 10:26:58 -08:00
Simon Willison
00de059ab1 Upgrade to latest Vega/React, refs #29 2021-12-10 14:20:41 -08:00
Simon Willison
8cea6b4388 Release 0.7a0 2020-09-03 19:35:40 -07:00
Simon Willison
033ee204bb Applied Black 2020-09-03 19:34:52 -07:00
Simon Willison
04b904add3 Only inject assets on table page 2020-09-03 19:34:40 -07:00
Simon Willison
8b54a0f175 Added a test 2020-09-03 19:34:27 -07:00
Simon Willison
1db45bd8f1
Removed link to the now-departed Datasette Publish site 2020-06-16 12:11:25 -07:00
Simon Willison
b05dd7792e Fix leaking CSS bug (fix #15) and release 0.6.2 0.6.2 2018-07-28 17:13:14 -07:00
Simon Willison
5cc4e521ea Let's try using PYPI_PASSWORD as a secret setting instead, refs #10 0.6.1 2018-07-09 20:25:37 -07:00
Simon Willison
bad9715ae5 Another attempt at setting PyPI password secret
This time using recipe from https://github.com/travis-ci/travis-ci/issues/8339#issuecomment-327633364

    echo -n "<my password>" | travis encrypt --add deploy.password -r simonw/datasette-vega
2018-07-09 20:02:01 -07:00
Simon Willison
17645264cd Release version 0.6.1 2018-07-09 19:45:05 -07:00
Simon Willison
ff0ab28c26 Include size/color in tooltip if specified, refs #10 2018-07-09 19:38:28 -07:00
Simon Willison
4668dce287
Another attempt to get PyPI deploy working - #8
This time I generated the secure field like this:

    $ travis encrypt -r simonw/datasette-vega
    Reading from stdin, press Ctrl+D when done
    PASTED-PASSWORD-HERE - then hit enter
    <Ctrl+D>
    Please add the following to your .travis.yml file:

      secure: "n..."
2018-07-07 08:45:19 -07:00
Simon Willison
f4134b88ae Releasing 0.6 0.6 2018-07-06 17:48:12 -07:00
Simon Willison
6d46cfd971 Implemented tooltips, refs #10
Also switched to using React.createRef()
2018-07-06 17:47:28 -07:00
Simon Willison
8b650feca3 Preserve cache-busting URL prefix on js/css - closes #11
Also ensure we ship the .map files for better browser debugging.
2018-07-06 17:45:04 -07:00
Simon Willison
1d4c5b3254 Another attempt at getting Travis PyPI working, refs #8 2018-07-06 11:24:23 -07:00
Simon Willison
0f86e97d54 Added LICENSE file plus PyPI/license badge to README 2018-07-06 11:09:23 -07:00
Simon Willison
dfbf48356a
Removed rogue newline 2018-07-06 11:04:07 -07:00
Simon Willison
1326b070af
Updated Travis encrypted password
Followed instructions on https://github.com/travis-ci/travis-ci/issues/7327 - you need to run "travis encrypt", paste in the password, hit enter and THEN hit CTRL+D
2018-07-06 11:03:42 -07:00
Simon Willison
9e412016a2 Releasing 0.5 0.5 2018-07-05 20:18:37 -07:00
Simon Willison
5e1695fe99 Persist #g.XXX settings through SQL form submission, refs #12 2018-07-05 20:17:01 -07:00
Simon Willison
662dabf888 Fixed JavaScript warnings, refs #12 2018-07-05 19:07:08 -07:00
Simon Willison
e768dd05f1 Persist #g.XX graph settings when clicking links, refs #12 2018-07-05 18:53:55 -07:00
Simon Willison
70d4688161 setup.py build_static now runs npm install - refs #8 2018-07-05 17:16:20 -07:00
Simon Willison
82fcccae87 Fix for #9 - image should show on PyPI now 0.4.1 2018-06-29 12:37:28 -05:00
Simon Willison
9eea628b8e Added screenshot to readme 2018-06-29 08:40:30 -05:00
Simon Willison
8e7dd5cb0b
Link to more demos plus publish.datasettes.com 2018-06-29 08:36:59 -05:00
Simon Willison
682da1f7ac New "Show charting options" button 0.3
Also switched to using a ref= for the vega element.

Ready for 0.3 release.
2018-06-29 08:11:30 -05:00
Simon Willison
cd046b82c0 Deploy stage uses language: python, refs #8 0.2 2018-06-28 09:46:49 -05:00
Simon Willison
f19ed314d5 Fix collision with datasette-cluster-map
It was not possible to install both plugins at the same time.
2018-06-28 09:43:10 -05:00
Simon Willison
f1b29c0d8e Final improvements to styling before release announcement
I changed the chart type selector to be radio buttons (Bar, Line, Scatter)
which breaks up the UI. I also added a "Charting options" <h3> title and
tweaked the display of the "Swap X and Y" button.

The design is now good enough that I'm happy to announce it. Closes #3
2018-06-27 13:21:58 -07:00
Simon Willison
64205f3333 Respect _labels=on even if first row has a null, closes #5 2018-06-27 08:17:42 -07:00
Simon Willison
267bdbbf58 Extended README in preparation for 0.1 release 0.1 2018-06-26 22:35:26 -07:00
Simon Willison
2b6c6ef14d Deploy new tags as PyPI releases 2018-06-26 22:31:09 -07:00
Simon Willison
8e313ef7bd Much improved styling, refs #3
Also reduced chart options to just line, bar, scatter
2018-06-26 22:27:32 -07:00
Simon Willison
16ff7b11a9 Fixed debug mode style glitch in Firefox 2018-06-26 22:01:15 -07:00
Simon Willison
ed870be722 Better default UI for dev mode, refs #1 2018-06-26 21:56:49 -07:00
Simon Willison
bdb39c7c03 Respect fragment hash on page load, closes #7 2018-06-26 21:56:00 -07:00
Simon Willison
49b983141e
Deploy to datasette-vega-latest.datasette.io if tests pass, closes #2 2018-06-26 08:29:17 -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