about summary refs log tree commit diff stats
path: root/src/ips/serialize.nim
Commit message (Collapse)AuthorAgeFilesLines
* move around more modulesbptato2023-09-141-444/+0
| | | | | | | | | | * ips -> io/ * loader related stuff -> loader/ * tempfile -> extern/ * buffer, forkserver -> server/ * lineedit, window -> display/ * cell -> types/ * opt -> types/
* serialize: add missing prepareMutationbptato2023-08-011-0/+1
|
* Fix CastSize warningsbptato2023-07-031-1/+3
| | | | Introduced by 1.6.14. Warns of undefined behavior.
* Get rid of the .jserr pragmabptato2023-06-191-1/+5
|
* Rework JS exception systembptato2023-06-191-0/+41
| | | | | Now we use Result for passing exceptions to JS. As a result, we can finally get rid of the .jserr pragma.
* Add readBlob, fix WebFile serializationbptato2023-06-111-14/+30
| | | | It's still kind of a mess, but it kind of works?
* Clean up stream error handlingbptato2023-06-071-2/+5
| | | | | | * sread now raises EOFError if readData returns too few bytes * buffer handleError ignores unregistered fds like client * client handleError ignores unregistered fds like buffer
* Add support for canvas and multipartbptato2023-06-051-33/+56
| | | | | | | | | | | | | | | Quite incomplete canvas implementation. Crucially, the layout engine can't do much with whatever is drawn because it doesn't support images yet. I've re-introduced multipart as well, with the FormData API. For the append function I've also introduced a hack to the JS binding generator that allows requesting the JSContext pointer in nim procs. Really I should just fix the union generator thing and add support for overloading. In conclusion, for now the only thing canvas can be used for is exporting it as PNG and uploading it somewhere. Also, we now have PNG encoding and decoding too. (Now if only we had sixels as well...)
* Refactor config, add charset optsbptato2023-05-161-0/+2
| | | | Only document-charset supported for now.
* Add JS support to documentsbptato2022-12-181-1/+0
|
* Add referer support, re-render on windowChangebptato2022-12-131-5/+10
|
* Fix stream error handling confusion, title displaybptato2022-12-131-1/+5
| | | | Also probably other fixes.
* Add all sorts of config options and cookiesbptato2022-12-131-5/+15
|
* Fix blocking socketstream recv/send, clean up ips/serialize & types/colorbptato2022-12-101-148/+222
| | | | Write always blocks for now, as it's too big of a footgun not to
* Clean up ips/serialize genericsbptato2022-11-301-86/+53
|
* Remove useless sread/swrite procsbptato2022-11-301-51/+16
|
* Add textareabptato2022-11-281-12/+5
| | | | Editing is implemented using an external editor (like vi).
* Also, implement proper asyncbptato2022-11-271-1/+20
| | | | Well, not really proper, but better than nothing? Maybe not.
* Fix user style regression, add minimum-contrastbptato2022-11-251-0/+7
|
* Buffer improvementsbptato2022-11-251-4/+80
|
* Avoid forking child processes from the main processbptato2022-11-241-3/+29
| | | | Caveat: this breaks piped streams.
* Move ips stuff to src/ips/bptato2022-11-221-0/+207