Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Reject fetch promise on network error | bptato | 2023-06-19 | 1 | -12/+17 |
| | | | | Instead of setting the non-standard res variable. | ||||
* | Get rid of the .jserr pragma | bptato | 2023-06-19 | 1 | -11/+9 |
| | |||||
* | Rework JS exception system | bptato | 2023-06-19 | 1 | -13/+24 |
| | | | | | 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 promises | bptato | 2023-06-15 | 1 | -6/+13 |
| | | | | | Now a promise returning nil doesn't just leave the rest of the then chain hanging. Hooray. | ||||
* | Make Result.text, json return promise | bptato | 2023-06-13 | 1 | -4/+2 |
| | |||||
* | Fix various layout bugs, prepare for image support | bptato | 2023-06-12 | 1 | -24/+46 |
| | |||||
* | Add support for visibility | bptato | 2023-06-07 | 1 | -18/+15 |
| | |||||
* | Add support for width, height media query | bptato | 2023-06-07 | 1 | -4/+6 |
| | |||||
* | Clean up stream error handling | bptato | 2023-06-07 | 1 | -6/+6 |
| | | | | | | * sread now raises EOFError if readData returns too few bytes * buffer handleError ignores unregistered fds like client * client handleError ignores unregistered fds like buffer | ||||
* | buffer: call handleError before handleRead & misc | bptato | 2023-06-05 | 1 | -6/+6 |
| | |||||
* | Add support for canvas and multipart | bptato | 2023-06-05 | 1 | -82/+28 |
| | | | | | | | | | | | | | | | 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 setTimeout, setInterval to window | bptato | 2023-06-01 | 1 | -49/+60 |
| | |||||
* | Refactor config, add charset opts | bptato | 2023-05-16 | 1 | -11/+12 |
| | | | | Only document-charset supported for now. | ||||
* | Set buffer state to LOADED on finishLoad | bptato | 2023-05-14 | 1 | -2/+2 |
| | |||||
* | Name negative response codes | bptato | 2023-05-14 | 1 | -2/+4 |
| | |||||
* | Async resource loading, exception handling fixes | bptato | 2023-05-14 | 1 | -18/+60 |
| | |||||
* | Fix some fetch crashes | bptato | 2023-05-11 | 1 | -0/+1 |
| | | | | Now it should work for very basic use-cases | ||||
* | Temporarily disable multipart | bptato | 2023-04-30 | 1 | -1/+1 |
| | | | | It never really worked, and I can't be bothered to fix it now | ||||
* | WIP fetch | bptato | 2023-04-30 | 1 | -0/+10 |
| | |||||
* | buffer: disable popup confirmation for forms | bptato | 2023-04-10 | 1 | -4/+13 |
| | |||||
* | buffer: adapt onload to PosixStream and SocketStream | bptato | 2023-02-13 | 1 | -15/+14 |
| | |||||
* | buffer: fix infinite loop in getClickable | bptato | 2023-01-03 | 1 | -2/+3 |
| | |||||
* | buffer: fix infinite loop | bptato | 2023-01-03 | 1 | -1/+2 |
| | |||||
* | dom: add better attribute reflection | bptato | 2023-01-02 | 1 | -2/+3 |
| | | | | | Instead of creating a new function for each attribute, use a single magic function for reflected attributes. | ||||
* | Add support for <label> | bptato | 2023-01-02 | 1 | -93/+111 |
| | |||||
* | loader: proper redirect handling | bptato | 2023-01-01 | 1 | -1/+1 |
| | |||||
* | buffer: fix some search bugs & refactor regex stuff | bptato | 2023-01-01 | 1 | -28/+26 |
| | | | | | | | | cursorBytes uses twidth now. cursorNextMatch matches the byte *after* the cursor (somewhat more consistently than before). match() no longer counts capture groups. LRE_FLAG_GLOBAL now goes through the entire string. | ||||
* | Add promise support to JS | bptato | 2022-12-31 | 1 | -79/+40 |
| | |||||
* | Consistent naming of parseURL, non-public newURLParams | bptato | 2022-12-26 | 1 | -4/+4 |
| | |||||
* | More DOM work | bptato | 2022-12-19 | 1 | -9/+1 |
| | |||||
* | Add JS support to documents | bptato | 2022-12-18 | 1 | -15/+21 |
| | |||||
* | Allow cycling through hover-texts with u | bptato | 2022-12-16 | 1 | -23/+30 |
| | |||||
* | container: do not load all lines at once in readLines | bptato | 2022-12-15 | 1 | -3/+9 |
| | |||||
* | makeCRLF: move to twtstr, write last char | bptato | 2022-12-15 | 1 | -16/+0 |
| | |||||
* | Fix error handling on buffer close | bptato | 2022-12-15 | 1 | -14/+18 |
| | |||||
* | Make load() slightly less dumb | bptato | 2022-12-15 | 1 | -51/+98 |
| | | | | | This gets rid of the inefficient timeout thing. Still, the ideal solution would be to move the timeout into the container; TODO. | ||||
* | cssparser: check for EOF in first read chunk | bptato | 2022-12-14 | 1 | -2/+2 |
| | | | | To-do: use decoderstream... | ||||
* | Add referer support, re-render on windowChange | bptato | 2022-12-13 | 1 | -1/+21 |
| | |||||
* | Fix stream error handling confusion, title display | bptato | 2022-12-13 | 1 | -9/+16 |
| | | | | Also probably other fixes. | ||||
* | Add all sorts of config options and cookies | bptato | 2022-12-13 | 1 | -1/+7 |
| | |||||
* | Fixes & QOL improvements | bptato | 2022-12-11 | 1 | -22/+18 |
| | | | | | | | | * fix infinite loop after closing buffer * fix setx not triggering hover updates * fix D not going back to PREV but to parent * add M-d, M-,, M-., M-/ for old D behavior, cycle through siblings, back to parent | ||||
* | Add support for the encoding standard, fix parseLegacyColor | bptato | 2022-12-10 | 1 | -36/+34 |
| | | | | Also, fix a bug in the | ||||
* | Optimize sendCursorPosition/updateHover, close streams after loadResource | bptato | 2022-12-06 | 1 | -9/+12 |
| | |||||
* | Add title tag support, peek, peekCursor | bptato | 2022-12-05 | 1 | -1/+22 |
| | |||||
* | Fix some screen update issues, remove redraw timer | bptato | 2022-12-01 | 1 | -17/+20 |
| | | | | | For now it's unnecessary; may be re-added later to support some dynamic document features. | ||||
* | Restore cursor position on reload | bptato | 2022-11-29 | 1 | -1/+1 |
| | |||||
* | Add textarea | bptato | 2022-11-28 | 1 | -38/+60 |
| | | | | Editing is implemented using an external editor (like vi). | ||||
* | Add support for <button> | bptato | 2022-11-27 | 1 | -11/+13 |
| | |||||
* | Rework broken non-blocking io | bptato | 2022-11-27 | 1 | -31/+86 |
| | | | | | Piped input works correctly again! (Also fix hash's setter not working with url's without a fragment) | ||||
* | Fix adoption agency algorithm bugs | bptato | 2022-11-27 | 1 | -3/+0 |
| |