Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Fix compilation < Nim 2.0 | bptato | 2023-09-04 | 1 | -1/+1 | |
| | | | | Before Nim 2.0, addr could only be used with mutable variables. | |||||
* | loader, data: remove stray eprints | bptato | 2023-09-02 | 2 | -4/+0 | |
| | ||||||
* | loader: add data URLs | bptato | 2023-09-01 | 4 | -5/+66 | |
| | ||||||
* | javascript: factor out fromJS | bptato | 2023-08-29 | 2 | -0/+2 | |
| | ||||||
* | refactor: Result[T, JSError] -> JSResult[T] | bptato | 2023-08-28 | 2 | -8/+7 | |
| | ||||||
* | javascript: refactor | bptato | 2023-08-28 | 3 | -4/+7 | |
| | | | | | | | Split out parts of the JS module, because it was starting to confuse the compiler a little. (Peakmem is back at 750M. Interesting.) | |||||
* | Move charsets into chakasu | bptato | 2023-08-14 | 3 | -5/+8 | |
| | | | | Operation "modularize Chawan somewhat" part 1 | |||||
* | Add mailcap, mime.types & misc refactorings | bptato | 2023-08-13 | 10 | -164/+302 | |
| | | | | | | | | * add mailcap: works with copiousoutput, needsterminal, etc. * add mime.types (only works with mailcap) * refactor pipeBuffer * remove "dispatcher" * fix bug in directory display where baseurl would not be used | |||||
* | Fixes & workarounds to compile on Nim 2.0.0 | bptato | 2023-08-01 | 2 | -1/+4 | |
| | | | | | | | | | | | | | | * Import punycode, as it has been removed from stdlib. * Fix some syntax errors * Apparently you can no longer compare distinct pointers with nil. Add explicit comparisons with typeof(nil) instead. * htmlparser: rename _ to other, as semantics of _ have changed. (Quite a shame, it looked better with _. Oh well.) * Explicitly specify mm:refc, as the browser OOMs with orc for some reason. Confirmed to compile & run on 2.0.0, 1.6.14, 1.6.12, 1.6.10 and 1.6.8. (<1.6.8 it's broken & wontfix.) | |||||
* | Improve encoding support | bptato | 2023-07-12 | 2 | -33/+63 | |
| | | | | | | | | * Use the output charset in lineedit (as w3m does) * encoder: fix broken UTF-8 encoding, use openArray instead of var seq for input queue * Add RuneStream as an in-memory interface to EncoderStream * Document display-charset config option | |||||
* | Buffer search fixes & improvements | bptato | 2023-07-11 | 1 | -9/+17 | |
| | | | | | * Fix race condition in updateReadLineISearch * Disable reshape during isearch | |||||
* | Add proxy support | bptato | 2023-07-04 | 1 | -0/+6 | |
| | ||||||
* | Add platform object conversion to union type | bptato | 2023-07-02 | 2 | -17/+48 | |
| | | | | And with that, implement Request constructor with a Request init. | |||||
* | return Result[T, JSError] from fromJS | bptato | 2023-07-02 | 3 | -8/+6 | |
| | ||||||
* | Factor out headers into separate module | bptato | 2023-07-01 | 7 | -59/+70 | |
| | ||||||
* | use =destroy instead of finalizers | bptato | 2023-07-01 | 3 | -0/+7 | |
| | | | | | This should help with moving to ORC in the future. (Also, finalizers do not work very well in the first place.) | |||||
* | Factor out map search, remove sugar | bptato | 2023-06-29 | 1 | -2/+10 | |
| | ||||||
* | Support 8-bit output colors | bptato | 2023-06-26 | 1 | -1/+1 | |
| | ||||||
* | hacks for readline so that it at least kind of works | bptato | 2023-06-25 | 1 | -2/+9 | |
| | | | | Proper fix needed later | |||||
* | Do not allow text() twice, etc... | bptato | 2023-06-20 | 2 | -7/+24 | |
| | ||||||
* | Add Response.ok, url, fix type confusion with status | bptato | 2023-06-19 | 3 | -7/+17 | |
| | ||||||
* | Reject fetch promise on network error | bptato | 2023-06-19 | 2 | -8/+10 | |
| | | | | Instead of setting the non-standard res variable. | |||||
* | Get rid of the .jserr pragma | bptato | 2023-06-19 | 1 | -10/+8 | |
| | ||||||
* | Rework JS exception system | bptato | 2023-06-19 | 4 | -13/+31 | |
| | | | | | 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 | 5 | -69/+115 | |
| | | | | | 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 | 3 | -16/+62 | |
| | ||||||
* | Add indexed color, other png improvements | bptato | 2023-06-09 | 1 | -1/+1 | |
| | ||||||
* | Simplify request.json, remove unused bindings | bptato | 2023-06-09 | 1 | -13/+4 | |
| | ||||||
* | Show error messages, fix some fetch crashes | bptato | 2023-06-09 | 2 | -0/+9 | |
| | ||||||
* | Remove JSObject again, add File API constructor | bptato | 2023-06-08 | 1 | -4/+6 | |
| | ||||||
* | Fix bug in client's unregistered fd handling | bptato | 2023-06-06 | 1 | -0/+2 | |
| | | | | + run JS jobs after every poll in headless mode | |||||
* | buffer: call handleError before handleRead & misc | bptato | 2023-06-05 | 1 | -1/+1 | |
| | ||||||
* | Refactor Request constructor | bptato | 2023-06-05 | 1 | -22/+33 | |
| | ||||||
* | Add support for canvas and multipart | bptato | 2023-06-05 | 2 | -39/+32 | |
| | | | | | | | | | | | | | | | 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...) | |||||
* | Rewrite new Request binding | bptato | 2023-05-21 | 5 | -33/+116 | |
| | | | | | Still far from perfect, but now at least it has a bit more to do with what the standard mandates. | |||||
* | Add url getter to request | bptato | 2023-05-20 | 1 | -2/+9 | |
| | ||||||
* | Name negative response codes | bptato | 2023-05-14 | 1 | -4/+12 | |
| | ||||||
* | Async resource loading, exception handling fixes | bptato | 2023-05-14 | 2 | -1/+23 | |
| | ||||||
* | Fix some fetch crashes | bptato | 2023-05-11 | 2 | -13/+15 | |
| | | | | Now it should work for very basic use-cases | |||||
* | Improve debugging, reduce crashes | bptato | 2023-05-09 | 2 | -5/+15 | |
| | | | | Loader no longer dies when not everything is read from the stream. | |||||
* | Actually set proxy | bptato | 2023-04-30 | 1 | -1/+1 | |
| | ||||||
* | only call Response.unregisterFun if not nil | bptato | 2023-04-30 | 1 | -2/+4 | |
| | ||||||
* | Temporarily disable multipart | bptato | 2023-04-30 | 2 | -5/+5 | |
| | | | | It never really worked, and I can't be bothered to fix it now | |||||
* | Make it compile | bptato | 2023-04-30 | 1 | -0/+1 | |
| | ||||||
* | Merge branch 'wip_fetch' | bptato | 2023-04-30 | 2 | -25/+101 | |
|\ | ||||||
| * | WIP fetch | bptato | 2023-04-30 | 2 | -25/+101 | |
| | | ||||||
* | | Add initial proxy support | bptato | 2023-04-30 | 2 | -3/+10 | |
| | | | | | | | | For now, API-only. | |||||
* | | loader: remove unused import | bptato | 2023-04-30 | 1 | -1/+0 | |
|/ | ||||||
* | Loader: use curl_multi | bptato | 2023-04-28 | 2 | -108/+195 | |
| | | | | | Note: for now it's only used for http requests. The doRequest API still needs an async rework. | |||||
* | Slightly improve request api (less crashes) | bptato | 2023-02-05 | 2 | -5/+7 | |
| |