Commit graph

58 commits

Author SHA1 Message Date
Ryan Williams
3102ea4f5b add examples, fold into <details>, fix window.location.hash updating 2023-08-27 17:30:54 -04:00
Ryan Williams
542856cb57 use datasette favicon 2023-08-27 17:30:54 -04:00
Ryan Williams
0c66fd5875 rm .travis.yml 2023-08-27 17:30:54 -04:00
Ryan Williams
e7f3497c51 add GHAs for GHP deploy, PyPI release 2023-08-27 17:30:52 -04:00
Ryan Williams
1e867b5af1 Use "homepage": "." to allow serving from non-root paths
Also use relative path in index.html.
2023-08-27 17:06:15 -04:00
Ryan Williams
4330278170 upgrade react deps
cf. https://react.dev/blog/2022/03/08/react-18-upgrade-guide#updates-to-client-rendering-apis
2023-08-27 17:06:15 -04:00
Ryan Williams
6459046494 Fix local index.html demo
When serving statically, `process.env.REACT_APP_STAGE` is never set,
nor was `.export-links` found on the page, so the chart elements were
never being added.

Addresses second part of this comment: https://github.com/simonw/datasette-vega/issues/42#issuecomment-991350740
2023-08-27 17:06:15 -04:00
Ryan Williams
3e128b74da render on database ?sql=… pages 2023-08-27 17:06:15 -04:00
Ryan Williams
23c1c3c8fa add @babel/plugin-proposal-private-property-in-object dev dep
resolves a warning during `npm run build`
2023-08-27 17:06:15 -04:00
Ryan Williams
dd46ea0027 fix example URLs 2023-08-27 17:06:15 -04:00
Ryan Williams
c6d3de6ce2 fix npm start dev build
Work-around for "Module parse failed: Identifier directly after number" due to `const wait = 10_000;` in vega-embed: https://stackoverflow.com/a/67566183
2023-08-27 17:06:15 -04:00
Cameron Yick
78270bd44c
docs: Add contribution steps to README (fixes #43) 2022-03-07 19:20:34 -05: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