Commit Graph

15 Commits

Author SHA1 Message Date
Simon Michael
fd200a85af web: /version provides hledger version string as JSON (#1152) 2020-09-29 17:28:03 -07:00
Simon Michael
2dc716cdb4 web: support adding new transactions via JSON PUT (#316)
A single transaction can be added by PUT to /add.
(I read that PUT, not POST, should be used to create;
perhaps the web add form should also use PUT ?)

As with the web form, the `add` capability is required (and enabled by
default).

Here's how to test with curl:

$ curl -s http://127.0.0.1:5000/add -X PUT -H 'Content-Type: application/json' --data-binary @in.json; echo

New readJsonFile/writeJsonFile helpers in Hledger.Web.Json
are handy for generating test data. Eg:

>>> writeJsonFile "in.json" (head $ jtxns samplejournal)
2019-02-20 20:23:51 -08:00
Simon Michael
afd7931ca0 web: add the same 6 JSON routes as in hledger-api (#316) 2019-02-18 23:57:58 -08:00
Jakub Zárybnický
c952ab881b web: Add /manage page, implement /edit, /upload, and /download 2018-06-24 14:13:04 +02:00
Jakub Zárybnický
cc1241fa20 web: Add yesod-form-generated AddForm, add GET & POST /add 2018-06-24 14:13:04 +02:00
Jakub Zárybnický
4c8d7de602 web: Fix error messages 2018-06-24 14:13:04 +02:00
Jakub Zárybnický
4faf0d8b4a web: Resurrect ImportForm and EditForm 2018-06-24 14:13:04 +02:00
Jakub Zárybnický
89ff5612ec web: Separate the add form from Foundation & JournalR/RegisterR 2018-06-24 14:13:03 +02:00
Simon Michael
55967e9192 web: Post -> AddForm; drop/comment more old stuff 2015-02-16 16:21:07 +00:00
Simon Michael
ebe0ee184c web: remove unused /journal/entries view 2015-02-16 15:03:48 +00:00
Simon Michael
ec51d28839 web: a bunch of ui cleanup & improvement
- the web UI has been streamlined; edit form, raw & entries views dropped
- we now remember whether sidebar is open or closed
- better help dialog
- keyboard shortcuts are now available
- better add form
- more bootstrap styling
- static file cleanups
- report filtering fixes
- upgrade jquery to 2.1.1, bootstrap to 3.1.1, drop select2, add typeahead, cookie, hotkeys
- clarify debug helpers a little
- refactoring
2014-06-13 00:19:00 +01:00
Simon Michael
dc6998ea2a web: hide copyright boilerplate in dev build 2013-04-19 14:46:22 -07:00
Simon Michael
a44d30e6f1 web: serve a favicon (Yesod's) 2012-11-27 23:51:24 +00:00
Simon Michael
81354fb492 web: split handlers into multiple files 2012-11-20 02:23:23 +00:00
Simon Michael
cfbd8bb956 web: update for yesod 1.1.3
Build with latest yesod. Also reorganise to conform more closely with
yesod's standard scaffold layout to reduce upgrade effort.
2012-11-15 17:48:48 +00:00