Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | socketstream: get rid of emits | bptato | 2023-12-18 | 3 | -50/+75 | |
| | | | | Use .compile, as that is supported by nlvm too. | |||||
* | strwidth & url fixes | bptato | 2023-12-16 | 3 | -7/+7 | |
| | | | | | | * actually search Combining for isCombining * fix searchInMap * fix cmpRange of url | |||||
* | Fix compilation on Nim 1.6.14 | bptato | 2023-12-16 | 5 | -5/+16 | |
| | ||||||
* | container: fix multi-byte selections, do not append newline | bptato | 2023-12-16 | 1 | -7/+11 | |
| | | | | | | We need to select (first byte of first char)..(last byte of last char). Also, in line/block mode we no longer add the final newline to selections. | |||||
* | config/toml: fix consumeComment overriding nodes | bptato | 2023-12-15 | 1 | -1/+2 | |
| | | | | | We must first check if there is really no node to attach the comment to... | |||||
* | about: actually error out on error | bptato | 2023-12-15 | 1 | -5/+8 | |
| | ||||||
* | Fix for sourcehut markdown parsing, small doc improvements | bptato | 2023-12-15 | 8 | -63/+31 | |
| | | | | hopefully this works | |||||
* | Add doc/protocols | bptato | 2023-12-15 | 3 | -2/+154 | |
| | ||||||
* | config: allow overriding default prepended scheme | bptato | 2023-12-15 | 4 | -5/+19 | |
| | ||||||
* | Implement local CGI error message handling | bptato | 2023-12-15 | 7 | -8/+44 | |
| | | | | | | This was documented, but not implemented until now. Also, improve the loader module's protocol documentation. | |||||
* | cha-finger: proper error message output | bptato | 2023-12-15 | 1 | -6/+12 | |
| | ||||||
* | ftp: fix unnecessary slashes being added to path; move bindings/curl | bptato | 2023-12-15 | 7 | -29/+39 | |
| | | | | also in ftp: clean up resources before exit | |||||
* | buffer: use BufferSize constant | bptato | 2023-12-15 | 1 | -1/+1 | |
| | ||||||
* | Set ishtml in the correct place, take ishtml on clone | bptato | 2023-12-15 | 1 | -1/+2 | |
| | ||||||
* | container: track ishtml status | bptato | 2023-12-15 | 2 | -1/+4 | |
| | | | | | This way we can at least view HTML source of x-htmloutput filtered buffers. TODO: make it render the actual source instead. | |||||
* | charcategory: move out isDigitAscii | bptato | 2023-12-14 | 3 | -6/+4 | |
| | | | | so we do not have to import unicode | |||||
* | bonus: add libfetch HTTP backend | bptato | 2023-12-14 | 2 | -0/+163 | |
| | | | | | | | It has roughly zero utility, but maybe it's a good demonstration of local CGI? (TODO: add libfetch FTP too, that might actually be useful.) | |||||
* | socketstream, serversocket: portable bindUnix | bptato | 2023-12-14 | 5 | -11/+51 | |
| | | | | | reimplementing it portably in Nim seems incredibly annoying, so we just use C | |||||
* | client: nil check connectSocketStream result | bptato | 2023-12-14 | 1 | -0/+5 | |
| | | | | | It may fail if the buffer process could not successfully create a server socket. | |||||
* | client: avoid nil defect in flushConsole | bptato | 2023-12-14 | 1 | -0/+5 | |
| | ||||||
* | config: do not override user-defined urimethodmap | bptato | 2023-12-14 | 2 | -1/+6 | |
| | | | | UMM resolution takes the first entry. | |||||
* | Makefile: add missing mkdir commands | bptato | 2023-12-14 | 1 | -0/+9 | |
| | ||||||
* | Update readme | bptato | 2023-12-14 | 1 | -1/+1 | |
| | ||||||
* | fixed 'return' handling with 'yield' in 'for of' or with finally blocks ↵ | Fabrice Bellard | 2023-12-14 | 2 | -73/+121 | |
| | | | | (gihub ticket #166) | |||||
* | fixed async generator in case of exception in the implicit await in the ↵ | Fabrice Bellard | 2023-12-14 | 1 | -9/+20 | |
| | | | | 'return' statement | |||||
* | Fix AsyncGenerator.prototype.return error handling (bnoordhuis) | Fabrice Bellard | 2023-12-14 | 1 | -4/+13 | |
| | ||||||
* | raise an error if a private method is added twice to an object | Fabrice Bellard | 2023-12-14 | 1 | -0/+6 | |
| | ||||||
* | Makefile: add fwrapv to QJS build | bptato | 2023-12-14 | 1 | -1/+1 | |
| | | | | as done in upstream | |||||
* | file: complain about hostname | bptato | 2023-12-14 | 1 | -0/+5 | |
| | | | | fixes error on reloading stdin | |||||
* | chapath: add missing return | bptato | 2023-12-14 | 1 | -1/+2 | |
| | ||||||
* | update todo | bptato | 2023-12-14 | 1 | -5/+7 | |
| | | | | | | | * better path handling done * empirically, we no longer crash on / -> M-c * LD_PRELOAD is good enough, especially now when the main binary no longer links to libcurl | |||||
* | doc/config: finish path handling documentation | bptato | 2023-12-14 | 1 | -1/+5 | |
| | ||||||
* | Update doc/localcgi | bptato | 2023-12-14 | 1 | -3/+4 | |
| | | | | | multipart through local CGI is now supported as well. (also, fix Cha-Control description inaccuracy) | |||||
* | loaderhandle: fix ConversionDefect in getFd | bptato | 2023-12-13 | 1 | -2/+7 | |
| | | | | | We must save fd in the constructor, because the stream type may be changed while loading. | |||||
* | Various fixes | bptato | 2023-12-13 | 14 | -102/+145 | |
| | | | | | | | * Makefile: fix parallel build, add new binaries to install target * twtstr: split out libunicode-related stuff to luwrap * config: quote default gopher2html URL env var for unquote * adapter/: get rid of types/url dependency, use CURL url in all cases | |||||
* | http: use CURLU for URLs | bptato | 2023-12-13 | 4 | -4/+103 | |
| | ||||||
* | break up twtstr somewhat | bptato | 2023-12-13 | 20 | -382/+402 | |
| | | | | | Avoid computing e.g. charwidth data for http which does not need it at all. | |||||
* | Move http out of main binary | bptato | 2023-12-13 | 25 | -358/+433 | |
| | | | | | | | | | | | | Now it is (technically) no longer mandatory to link to libcurl. Also, Chawan is at last completely protocol and network backend agnostic :) * Implement multipart requests in local CGI * Implement simultaneous download of CGI data * Add REQUEST_HEADERS env var with all headers * cssparser: add a missing check in consumeEscape | |||||
* | Move gopher to adapter/ | bptato | 2023-12-12 | 8 | -181/+154 | |
| | | | | Also, move default urimethodmap config to res. | |||||
* | Move out ftp: protocol; fix some local CGI bugs | bptato | 2023-12-12 | 5 | -84/+86 | |
| | ||||||
* | Move out file: protocol handling to adapter/ | bptato | 2023-12-12 | 5 | -51/+39 | |
| | ||||||
* | adapter/: re-structure | bptato | 2023-12-12 | 7 | -12/+12 | |
| | ||||||
* | local CGI improvements, move data: to cgi-bin | bptato | 2023-12-12 | 8 | -61/+163 | |
| | | | | error codes are WIP, not final yet... | |||||
* | twtstr: import functions from gopher2html | bptato | 2023-12-12 | 2 | -32/+12 | |
| | ||||||
* | cha-finger: use MAPPED_URI_* | bptato | 2023-12-12 | 1 | -25/+15 | |
| | | | | | Much simpler & more efficient than the ugly regex parsing we used to have. | |||||
* | local CGI: add mapped URI env vars; move about: to adapters | bptato | 2023-12-12 | 7 | -42/+68 | |
| | | | | | | | | | | | | | | | * Add MAPPED_URI_* as environment variables when a request is coming from urimethodmap It costs us compatibility with w3m, but it seems to be a massive improvement over smuggling in the URL as a query string and then writing an ad-hoc parser for every single urimethodmap script. The variables are set for every urimethodmap request, to avoid accidental leaking of global environment variables. * Move about: to adapters (an obvious improvement over the previous solution) | |||||
* | layout: rounding error correction fixes | bptato | 2023-12-11 | 1 | -2/+6 | |
| | | | | | * start from 1 * divide by total - 1, since we are counting the rounding error between each line | |||||
* | Makefile: clean up libexecdir on uninstall | bptato | 2023-12-11 | 1 | -2/+8 | |
| | ||||||
* | doc/localcgi: reword/clarify | bptato | 2023-12-11 | 1 | -1/+5 | |
| | ||||||
* | bonus: add magnet.cgi | bptato | 2023-12-11 | 2 | -0/+78 | |
| |