about summary refs log tree commit diff stats
path: root/src/html/env.nim
Commit message (Collapse)AuthorAgeFilesLines
* Add window.locationbptato2023-06-291-4/+8
| | | | Note: setters do not work yet.
* Working Nim-QuickJS GC integrationbptato2023-06-241-1/+1
| | | | I believe this works correctly. Hopefully I'm not wrong.
* Reject fetch promise on network errorbptato2023-06-191-1/+1
| | | | Instead of setting the non-standard res variable.
* Rework JS exception systembptato2023-06-191-0/+2
| | | | | Now we use Result for passing exceptions to JS. As a result, we can finally get rid of the .jserr pragma.
* Cleanups & bug fixes involving promisesbptato2023-06-151-0/+2
| | | | | Now a promise returning nil doesn't just leave the rest of the then chain hanging. Hooray.
* Add support for width, height media querybptato2023-06-071-1/+3
|
* Add support for canvas and multipartbptato2023-06-051-0/+17
| | | | | | | | | | | | | | | 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...)
* Add module loading to clientbptato2023-06-011-1/+1
| | | | Files only, for now.
* Add setTimeout, setInterval to windowbptato2023-06-011-16/+54
|
* WIP fetchbptato2023-04-301-0/+6
|
* client, pager, dom, ...: better error handlingbptato2023-01-041-1/+3
| | | | Now the browser shouldn't completely die when a buffer crashes.
* dom: add better attribute reflectionbptato2023-01-021-5/+3
| | | | | Instead of creating a new function for each attribute, use a single magic function for reflected attributes.
* DOM: implement many new methodsbptato2022-12-261-0/+3
|
* dom: add navigator objectbptato2022-12-261-0/+46
|
* More DOM workbptato2022-12-191-0/+2
|
* Add JS support to documentsbptato2022-12-181-0/+26