Simon Michael
aee6b49d36
;bump date in changelogs, installer
2020-06-07 12:45:55 -07:00
Simon Michael
b389ee98dd
;update tested-with
2020-06-07 11:59:36 -07:00
Simon Michael
e8e27821d9
;finalise changelogs
2020-06-07 11:51:40 -07:00
Simon Michael
09b6d44562
;manuals
2020-06-06 17:21:18 -07:00
Simon Michael
a54376e204
;regen cabal files
2020-06-06 17:20:13 -07:00
Simon Michael
19020939c9
;bump versions to 1.18
2020-06-06 17:18:15 -07:00
Simon Michael
fa077415d4
;edit changelogs
2020-06-06 16:53:41 -07:00
Simon Michael
a91cb9036d
;web: update json api examples
2020-06-06 12:54:58 -07:00
Simon Michael
5757c386d8
;draft changelogs
2020-06-05 15:18:23 -07:00
Simon Michael
e5a0bddbe6
;regen manuals
2020-06-05 14:44:37 -07:00
Simon Michael
95b8e268ce
;lib: a few more zero-checking function references
2020-05-29 19:04:52 -07:00
Henning Thielemann
ebe021b0c8
;web: maintain queries in all other links, too
2020-05-27 04:59:55 -07:00
Henning Thielemann
ec27eb6b17
;web: maintain query when choosing a different 'inacct' account on the sidebar
2020-05-27 04:59:55 -07:00
Simon Michael
9417ee625e
;regen manuals
2020-05-25 17:49:01 -07:00
Simon Michael
798a2c8674
;web: note recent changes so they don't get lost
2020-05-25 17:47:35 -07:00
Henning Thielemann
c35d0a8b44
;web: transaction fragments: use numeric identifiers for journal files
...
This saves us from any escaping issues.
2020-05-25 10:02:39 -07:00
Henning Thielemann
e9792bfd42
;web: links from register to journal now contain journal filename
...
in order to distinguish transactions from multiple journal files (#1041 )
2020-05-25 10:02:39 -07:00
Simon Michael
4294fd36a9
;web: JSON docs
2020-05-21 12:51:29 -07:00
Simon Michael
20c480a914
;web: tweak JSON PUT doc
2020-05-21 10:48:04 -07:00
Simon Michael
e207b089c5
;web: tweak JSON PUT doc
2020-05-21 10:36:43 -07:00
Simon Michael
936233f5f6
;web: tweak JSON PUT doc
2020-05-21 10:31:30 -07:00
Simon Michael
683641d0f2
;web: tweak JSON PUT doc
2020-05-21 10:08:52 -07:00
Simon Michael
39ab2a6b2b
;web: tweak JSON PUT doc
2020-05-21 10:05:57 -07:00
Simon Michael
0cf5e010de
;web: tweak JSON PUT doc
2020-05-21 10:05:04 -07:00
Simon Michael
fab62b4cc3
;web: tweak JSON PUT doc
2020-05-21 09:59:14 -07:00
Simon Michael
7ccbfa11ac
;web: tweak JSON PUT doc
2020-05-21 09:57:27 -07:00
Simon Michael
0f922b3850
;web: update JSON PUT example
2020-05-21 09:50:50 -07:00
Simon Michael
f284e7a87b
;web: drop unnecessary import that hiding Prelude in make ghci-web
2020-05-21 09:27:07 -07:00
Simon Michael
6935c46b2c
;regen cabal files with latest stack/hpack (2.3.1/0.33.0)
2020-05-02 17:31:35 -07:00
Simon Michael
df92c36679
;changelogs
2020-04-19 14:45:07 -07:00
Simon Michael
898cda4ee5
;changelogs
2020-04-06 18:38:38 -07:00
Simon Michael
23a79af16c
web: add form: always start with four rows when opened
...
And set the last amount's key handler more robustly.
2020-04-06 18:33:58 -07:00
Simon Michael
ca4fc4a421
web: add form: drop unneeded C-minus/C-plus keys & related help text
2020-04-06 18:18:01 -07:00
Simon Michael
ef5db595f9
web: fix a 2016 regression adding too many add form rows ( #422 , #1059 )
...
And try to clarify a bit. 67af073c was the relevant commit.
2020-04-06 17:41:54 -07:00
Simon Michael
293e2d81d1
;changelogs
2020-03-25 18:42:26 -07:00
Simon Michael
d868a7e170
;update cabal files
2020-03-22 10:49:49 -07:00
Simon Michael
c6951bf7c6
;doc: more tweaks to package readmes, hackage descriptions
2020-03-22 10:49:02 -07:00
Simon Michael
40d3a5c1f4
;update cabal files
2020-03-22 09:28:10 -07:00
Simon Michael
9ca8d7cea9
;update tested-with
2020-03-22 09:27:50 -07:00
Simon Michael
d59ccb260b
;doc: consistent markdown readmes for packages, part 2
2020-03-22 09:27:34 -07:00
Simon Michael
2b15418ddd
;update cabal files
2020-03-22 09:08:37 -07:00
Simon Michael
617c2ecbc5
;doc: consistent markdown readmes for packages
2020-03-22 09:07:47 -07:00
Simon Michael
6e37d11bdd
;changelogs: typo, fix hledger-web item
2020-03-19 14:26:55 -07:00
Simon Michael
9631ca561c
;update changelogs "high water marks"
2020-03-19 14:09:37 -07:00
Simon Michael
4191aad049
;update changelogs from release branch
2020-03-19 14:07:53 -07:00
Simon Michael
96b4f0be4f
require newer Decimal, math-functions, fixing inconsistent rounding
...
Decimal 0.5.1+ changed to banker's rounding (round to nearest even
number), and math-functions 0.3.3.0 (used by roi) fixed various
precision-related issues. Now we require the latest versions of these.
This was causing some functional test failures when building with old
GHCs/snapshots.
2020-03-19 10:10:55 -07:00
Simon Michael
cf7de57836
;update changelogs
2020-03-18 16:17:13 -07:00
Simon Michael
70e85d8e4b
;doc: regen manuals
...
[ci skip]
2020-03-07 15:06:39 -08:00
Simon Michael
1883ff4499
bump to dev version
2020-03-07 15:06:18 -08:00
Stephen Morgan
e0dde6fe57
lib: Remove non-law-abiding Monoid instance for Journal.
2020-03-02 12:45:30 -08:00
Simon Michael
6dfdc2bee8
;one more cabal file update. Not in hackage tarballs.
2020-03-01 17:42:20 -08:00
Simon Michael
07a05d5c76
;doc: finalise changelogs
...
More cleanup needed, but time's up.
[ci skip]
2020-03-01 17:33:18 -08:00
Simon Michael
061bf73b61
;doc: regen manuals
...
[ci skip]
2020-03-01 17:29:01 -08:00
Simon Michael
ba44d00bed
;bump version to 1.17
2020-03-01 17:29:01 -08:00
Simon Michael
889767f1bd
;bump tested-with
...
[ci skip]
2020-03-01 17:28:43 -08:00
Simon Michael
04fb132496
;doc: draft changelogs
...
[ci skip]
2020-03-01 16:44:28 -08:00
Simon Michael
4c321cee4a
;doc: update output dest/format docs; add notes about JSON
...
[ci skip]
2020-02-25 09:25:48 -08:00
Simon Michael
7ec25da13a
web: edit/upload: normalise line endings, avoiding parse errors ( #1194 )
...
Renamed: writeValidJournal -> writeJournalTextIfValidAndChanged
Added comments clarifying line ending behaviour of:
add, import, appendToJournalFileOrStdout, readFilePortably,
writeFileWithBackupIfChanged, writeJournalTextIfValidAndChanged
Summary of current behaviour:
- hledger add and import commands will append with (at least some)
unix line endings, possibly causing the file to have mixed line
endings
- hledger-web edit and upload forms will write the file with
the current system's native line endings, ie changing all
line endings if the file previously used foreign line endings.
2020-02-24 14:04:44 -08:00
Simon Michael
696ec4998b
;doc: regen help/manuals
...
[ci skip]
2020-02-22 11:40:41 -08:00
Simon Michael
4d94a5273b
;doc: manuals: whitespace cleanup
...
Remove a bunch of trailing whitespace with M-x whitespace-cleanup.
Except for examples showing hledger output, which might be tested
with shelltest some day, so stripping that whitespace might be problematic.
[ci skip]
2020-02-08 12:44:54 -08:00
Simon Michael
e3ab3b9985
;doc: regen all manuals, bumping month
...
[ci skip]
2020-02-08 11:20:25 -08:00
Simon Michael
fd64d7bb3a
;doc: regen manuals
...
[ci skip]
2020-02-07 10:45:57 -08:00
Simon Michael
7011160bfd
;allow base 4.14/GHC 8.10
2020-01-26 08:12:25 -08:00
Simon Michael
b1de2f2308
;doc: drop redundant version message from web manuals
...
[ci skip]
2020-01-25 19:33:12 -08:00
Simon Michael
24c6828a5c
;doc: regen manuals
...
[ci skip]
2020-01-25 17:10:34 -08:00
Simon Michael
444c4342ed
;doc: manuals: hide NAME/SYNOPSIS/DESCRIPTION headings in web manuals
...
[ci skip]
2020-01-25 16:57:51 -08:00
Simon Michael
090f65ec83
;doc: regen manuals
...
[ci skip]
2020-01-20 18:02:42 -08:00
Amarandus
76ffaca466
web: Add IPv6 and hostname support
...
This commit introduces IPv6 support (and thus closes #1145 ).
It also allows using local hostnames as a parameter for --host.
For this, multiple things needed to be changed:
- checkWebOpts is dropped, as the supplied parameter is checked later
by Network.Socket.getAddrInfo
- defbaseurl needs to check if : is used in the host, as this indicates
the usage of an IPv6 address. In this case, the host needs to be
wrapped in [] for the base URL
- To allow opening such a modified base URL, runHostPortFullUrl is used
instead of runhostPortUrl, as it allows opening arbitrary URLs instead
of a path prefixed with http://127.0.0.1
As checking the host for validity is postponed until the webserver tries
to start, an invalid hostname leads to an exception caused by
Network.Socket.getAddrInfo.
This is still fine, as hledger-web won't start in an undefined state, but
will terminate with a nonzero exit code.
2020-01-17 13:18:51 -08:00
Simon Michael
42dfde141a
;doc: changelogs: update from 1.16.2, cleanups
2020-01-14 11:19:05 -08:00
Simon Michael
dba0b117f4
;doc: draft changelogs
2020-01-14 10:08:59 -08:00
Simon Michael
445e8aa3cc
add support for megaparsec 8 ( #1175 )
2020-01-14 09:54:06 -08:00
Carl Richard Theodor Schneider
72acd7c22a
web: Add option --socket to use UNIX socket file
...
This commit adds the --socket option to use hledger-web over an AF_UNIX socket
file.
It allows running multiple instances of hledger-web on the same system without
having to manually choose a port for each instance, which is helpful for running
individual instances for multiple users. In this scenario, the socket path is
predictable, as it can be derived from the username.
It also introduces the following dependencies:
- network
- Used to create the unix domain socket
- unix-compat
- Used to identify if the socket file is still a socket, to reduce the risk
of deleting a file when cleaning up the socket
2020-01-12 16:15:37 -08:00
Simon Michael
07029047f5
;doc: regen manuals again
...
[ci skip]
2020-01-05 09:17:02 -08:00
Simon Michael
cfb2a61ae1
;bump to dev version; bump man page dates
...
[ci skip]
2020-01-05 09:04:50 -08:00
David Zhang
243cbca093
Improve font display on different OS
2020-01-05 08:04:46 -08:00
Simon Michael
f91076cc6a
;doc: regen manuals
...
I think all the non-content changes are due to newer
doc tools and harmless, including this one hopefully:
-.B \f[C]--watch\f[R]
+\f[B]\f[CB]--watch\f[B]\f[R]
[ci skip]
2020-01-05 07:06:42 -08:00
Stephen Morgan
74778efcf5
Use nubSort instead of nub . sort.
2020-01-04 08:31:10 -08:00
Simon Michael
aa47d8ddc9
web: fix add form completions ( fixes #1156 )
...
It seems like show (toJSON "a") used to give "\"a\"" instead of
"String \"a\"". I haven't found the root cause, it's possible
that this fix won't work if built with older libs.
2019-12-27 17:21:50 -08:00
Brian Wignall
2852f9dbee
Fix typos
2019-12-21 12:09:05 -08:00
Simon Michael
46d516e7a3
move JSON instances from hledger-web to hledger-lib
2019-12-16 17:17:00 -08:00
Simon Michael
1238ebc18b
;web: doc: add a missing 1.16.1 changelog item
...
[ci skip]
2019-12-03 16:34:11 -08:00
Simon Michael
5a2bcecf26
;doc: finalise changelogs
2019-12-03 08:41:44 -08:00
Simon Michael
06b70194c0
;doc: regen manuals
2019-12-03 08:41:44 -08:00
Simon Michael
093dca570d
lib, cli, web: bump version to 1.16.1
2019-12-03 08:41:44 -08:00
Simon Michael
6ae837f820
;doc: changelogs
2019-12-03 08:41:44 -08:00
Simon Michael
b7bea5698e
web: drop old dependency on json ( #1190 )
2019-12-03 08:41:44 -08:00
Simon Michael
e032eff8eb
;doc: changelog updates
2019-12-02 08:59:58 -08:00
Simon Michael
0ce890e5ff
lib, cli, web: drop unnecessary mtl-compat dependency
2019-12-02 08:23:00 -08:00
Simon Michael
d922b6e798
;doc: regen manuals
2019-12-01 10:12:29 -08:00
Simon Michael
6daebf60ea
;regen cabal files
2019-12-01 10:05:37 -08:00
Simon Michael
87d0491103
;bump version to 1.16
2019-12-01 10:03:58 -08:00
Simon Michael
c90c0867c4
;doc: changelogs
...
[ci skip]
2019-12-01 09:59:01 -08:00
Simon Michael
359a118900
;doc: draft changelog updates
...
[ci skip]
2019-11-29 07:57:54 -08:00
Simon Michael
ac5652b7cc
;web: fix redundant import warnings with ghc 8.8
2019-11-29 07:02:52 -08:00
Simon Michael
caf8cdf0ca
;test: consistent singular naming for test suites and files
2019-11-29 06:35:29 -08:00
Simon Michael
ebedae01cf
;cabal: remove special cases for unsupported GHC 7
2019-11-28 14:59:18 -08:00
Simon Michael
08951ac3e8
;cabal: add ghc 8.8 to tested-with
...
[ci skip]
2019-11-28 14:59:10 -08:00
Simon Michael
843d394077
cli, ui, web: support GHC 8.8, add stack-ghc8.8.yaml ( #1090 )
...
hledger-web needs an unreleased version of json.
2019-11-28 14:31:48 -08:00
Brian Wignall
f8269e21ab
Fix some simple typos
2019-11-20 13:33:33 -08:00
Mykola Orliuk
5287fe671b
;all: hide RawOpts internals
...
This way we can ensure we always use only functions from RawOptions.
2019-11-18 17:38:39 -08:00
Mykola Orliuk
8991419c68
;all: drop dummy decodeRawOpts
2019-11-18 17:38:39 -08:00
Simon Michael
3f530f5b54
;doc: update changelogs, including #1095
...
[ci skip]
2019-11-07 16:37:03 -08:00
Timofey ZAKREVSKIY
6b5026c240
Weeks in date picker start from Mondays (fix for #1109 )
2019-11-04 11:35:45 -08:00
Alejandro García Montoro
4efd0242da
web: Modify the --cors option to require a specific origin
...
- Modified the cors option to require a String
- Moved the logic to build the cors policy to WebOptions.hs
- Specify the --cors "*" example in the cors option help
- Added utf8-string dependency to convert a String into a ByteString
2019-10-07 14:54:18 -10:00
Alejandro García Montoro
e96dfe832f
web: Allow CORS to be enabled in hledger-web
...
Add a --cors option to the CLI to enable simple cross-origin requests
2019-10-07 14:54:18 -10:00
Simon Michael
24ce2686f4
drop GHC 7.10/base 4.8 support, finally, due to MonadFail hassles
...
in JournalReader.hs. If you still need this, feel free to work on
those errors. But hopefully not, because dropping base 4.8 should
permit some code cleanups.
2019-09-14 03:45:37 -07:00
Simon Michael
a0deb88796
;doc: regen manuals
...
[ci skip]
2019-09-13 11:00:03 -07:00
Simon Michael
f65fc47185
;bump version to 1.15.99
...
[ci skip]
2019-09-13 08:43:33 -07:00
Simon Michael
e851bdf834
;doc: changelogs
...
[ci skip]
2019-09-13 08:43:33 -07:00
Simon Michael
af21ae6eb6
;doc: regen manuals
...
Wrapping and hyphenation has changed again, which I thought would
be more stable now with same tool versions on laptop and server.
Who knows.
2019-09-13 08:43:33 -07:00
Simon Michael
4db14ef70f
;api: another round of hledger-api purging; fix the build
2019-09-11 14:49:22 -07:00
Simon Michael
acd7010e5a
;doc: "curses-style interface" -> "terminal interface"
...
[ci skip]
2019-09-10 18:14:16 -07:00
Simon Michael
85d48a6b0e
;doc: regen manuals (on server)
...
Usually done on my laptop, but the toolchain on both machines should
produce the same result these days..
[ci skip]
2019-09-09 08:04:26 -07:00
Simon Michael
16a3c96da0
;doc: regen manuals
...
[ci skip]
2019-09-02 11:11:56 -07:00
Simon Michael
6703057050
;doc: more changelog cleanups
...
[ci skip]
2019-09-01 09:59:51 -07:00
Simon Michael
ede6a51f08
;doc: finalise changelogs
...
[ci skip]
2019-09-01 08:53:06 -07:00
Simon Michael
00f3ad8d3f
;doc: changelogs
...
[ci skip]
2019-09-01 08:53:06 -07:00
Simon Michael
b1859769ac
;doc: regen man pages
...
[ci skip]
2019-09-01 08:53:06 -07:00
Simon Michael
29f7654c3a
bump versions to 1.15
2019-09-01 08:53:06 -07:00
Simon Michael
c2736be4aa
;doc: changelogs
...
[ci skip]
2019-08-30 21:26:23 -07:00
Simon Michael
81c58f34b9
;doc: fix images in ui, web manuals
...
[ci skip]
2019-08-26 09:37:03 -07:00
Simon Michael
da6718806a
;doc: don't add page TOCs any more, sphinx has it covered
...
[ci skip]
2019-08-26 09:37:03 -07:00
Simon Michael
8a7905ac73
;doc: changelogs
...
[ci skip]
2019-08-19 12:03:54 +01:00
Simon Michael
e70c7123b7
web: ?sidebar= hides the sidebar, like ?sidebar=0
2019-08-17 17:17:30 +01:00
Simon Michael
ef1bd24edc
web: don't disable /add PUT with --serve-api, that's considered API
2019-08-17 17:17:30 +01:00
Simon Michael
a154ea72c0
web: with --serve-api, also disable the header/sidebar HTML
2019-08-17 17:17:30 +01:00
Simon Michael
c3da82043b
web: --serve-api disables server-side UI; startup logging cleanups
2019-08-16 23:55:56 -07:00
Simon Michael
c7f9356fd1
;doc: edit changelogs
...
[ci skip]
2019-07-25 12:33:58 +01:00
Simon Michael
030a409dd3
;doc: update changelogs
...
[ci skip]
2019-07-25 08:48:01 +01:00
Caleb Maclennan
11d9e5eb6a
code: Strip extraneous trailing whitespace from Haskell sources
2019-07-15 16:40:49 +01:00
Simon Michael
7d5f33441e
;doc: draft changelogs
...
[ci skip]
2019-07-12 23:24:10 +01:00
Simon Michael
a6e9b11a54
;cabal: bump tested-with, regen cabal files
...
[ci skip]
2019-07-12 23:24:10 +01:00
Simon Michael
6a62bd6437
web, api: update for MarketPrice/PriceDirective change
2019-06-13 15:50:01 -07:00
Simon Michael
adb6ee40eb
lib: clarify price types ( #131 )
...
dropped journalPrices
renamed Price to AmountPrice, AKA "transaction price"
renamed MarketPrice to PriceDirective.
added new MarketPrice (more pure form of PriceDirective without the amount style information)
Prices is now a more efficient data structure, but not used yet.
2019-06-13 15:50:01 -07:00
Henning Thielemann
1fa4419cd1
web: register page: clip linked accounts to 40 characters
...
This was the behaviour before adding the links.
2019-06-13 10:12:44 -07:00
Henning Thielemann
adbdbf002c
web: avoid spaces before commas in register account links
2019-06-13 10:12:44 -07:00
Henning Thielemann
ac96bcfdf0
web: add links to accounts in register transactions
2019-06-13 10:12:44 -07:00
Simon Michael
233f72b7bf
; ui, web: mention out-of-step server clock issue for file reloading
...
[ci skip]
2019-06-11 10:20:57 -07:00
Simon Michael
faf85d91e3
cli: restore --aux-date and --effective as --date2 aliases ( #1034 )
...
These Ledger-ish spellings were dropped over the years, to improve
--help's layout. Now they work again, but are considered hidden flags
so --help doesn't show them automatically (but I decided to mention
them manually in --date2's description).
2019-06-02 08:48:41 -07:00
Simon Michael
5e54920160
;regen embedded manuals
2019-05-23 22:26:43 -07:00
Simon Michael
7ef3ddd1e6
web: fix build breakage
2019-05-23 22:25:28 -07:00
Simon Michael
20bc386b80
restore TransactionsReport
...
hledger-web's register chart uses it, I didn't see it
because it's called from a hamlet template.
2019-05-23 22:15:40 -07:00
Simon Michael
54c1529638
lib: drop TransactionsReport, BalanceHistoryReport
...
They seem unused.
2019-05-23 21:55:19 -07:00
Simon Michael
dfb9574433
;doc: web: improve /add docs ( #1026 )
...
[ci skip]
2019-05-14 09:27:41 -07:00
Simon Michael
71ec1e3986
;doc: web: document /add PUT ( #1026 )
...
[ci skip]
2019-05-14 09:22:50 -07:00
Simon Michael
cca0b7aec6
;update changelogs
2019-05-04 12:21:54 -07:00
Simon Michael
c9e16b83ef
; propagate dev version bump
2019-03-20 17:13:59 -07:00
Simon Michael
124aaffd34
; merge latest changelogs
2019-03-20 16:18:04 -07:00
Simon Michael
3d206ad6bd
; changelogs from 1.14 branch
2019-03-20 16:18:04 -07:00
Simon Michael
fee0e39320
; lib, cli, ui, web, api: bump to dev version
2019-03-20 16:18:04 -07:00