Wykres commitów

1067 Commity (e73fa72917ca28c152208d62d07a490c81cadf52)

Autor SHA1 Wiadomość Data
Simon Willison fd3a33989a Implemented new database view and template
Closes #53 - see comments there for screenshots.
2017-11-11 17:50:21 -08:00
Simon Willison 2366a016f2 Added links to .json and .jsono representations
Closes #62
2017-11-11 14:40:44 -08:00
Simon Willison e9e1def4c0 Revised JSON design a bit
Closes #63
2017-11-11 14:20:00 -08:00
Simon Willison e4bf66d9b0 Added header with breadcrumbs and footer
Also cleaned up titles on various pages.

Closes #61
2017-11-11 12:36:20 -08:00
Simon Willison 40a563ebac Reworked metadata building options
Building metadata is now optional. If you want to do it, do this:

    datasette build *.db --metadata=metadata.json

Then when you run the server you can tell it to read from metadata:

    datasette serve *.db --metadata=metadata.json

The Dockerfile generated by datasette publish now uses this mechanism.

Closes #60
2017-11-11 12:11:51 -08:00
Simon Willison ad8b5d3bd2 JSON version of our homepage
Now available at http://localhost:8006/.json

Tested by tests added in 407795b612
2017-11-11 09:49:47 -08:00
Simon Willison 407795b612 Initial unit tests against our Sanic app
Refs #50

I had to disable the build metadata function to get these tests to work
sensibly. I need to completely rethink how that mechanism works.
2017-11-11 09:47:59 -08:00
Simon Willison 3863a30b5d publish command checks 'now' is installed
Closes #58
2017-11-11 08:00:00 -08:00
Simon Willison 65e350ca2a Implemented 'datasette publish one.db two.db' command
Closes #26
2017-11-10 23:25:22 -08:00
Simon Willison 7d81083d40 Implemented responsive tables, removed bootstrap
No need for all of bootstrap since we only need to style a few elements.

Implemented responsive table pattern from here:
https://css-tricks.com/responsive-data-tables/

Refs #16
2017-11-10 21:55:50 -08:00
Simon Willison 21c9c04310 Implemented cursor-based pagination for table view
Closes #5
2017-11-10 12:41:14 -08:00
Simon Willison e9fce44195 Don't serve cache headers in debug or refresh modes 2017-11-10 12:26:37 -08:00
Simon Willison a8a293cd71 Refactored util functions into new utils module 2017-11-10 11:25:54 -08:00
Simon Willison 1c57bd202f Replaced app_factory with new Datasette class
This should make it easier to add unit tests.
2017-11-10 11:05:57 -08:00
Simon Willison 03c58fb350 Show databases in alphabetical order on index page 2017-11-10 11:04:56 -08:00
Simon Willison e06b011771 Updated tests
Refs #23
2017-11-10 10:43:54 -08:00
Simon Willison e7e50875d3 Renamed to 'datasette' 2017-11-10 10:38:35 -08:00