about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
...
* term: don't panic if termcap tgetent failsbptato2024-08-173-85/+110
| | | | | | | | If TERM is unrecognized by termcap, retry as dosansi. When that fails, just fall back to the non-termcap code path. (There is no reason to panic without termcap; it's just one of the several capability detection mechanisms we use.)
* buffer: fix some hover weirdnessbptato2024-08-151-7/+7
| | | | | | | | Setting the new hover value before unsetting the previous one would unset the new hover value for nodes in the same branch. In particular, this broke hover when moving the cursor from a pseudo element (e.g. ::before) to its parent.
* dom, xhr: slight progress on modules, fix an XHR bugbptato2024-08-155-59/+118
| | | | | | * actually download & compile modules (but don't run them yet) * fix a bug in XHR (on some older Nim versions, move() doesn't actually move)
* xhr: more progressbptato2024-08-1525-127/+328
| | | | | | | | | | * add responseText, response * add net tests -> currently sync XHR only; should find a way to do async tests... * update monoucha -> simplified & updated some related code that no longer worked properly
* xhr: progressbptato2024-08-138-85/+226
| | | | | | | | | | | | | * fix header case sensitivity issues -> probably still wrong as it discards the original casing. better than nothing, anyway * fix fulfill on generic promises * support standard open() async parameter weirdness * refactor loader response body reading (so bodyRead is no longer mandatory) * actually read response body still missing: response body getters
* mailcap: fix weird error handlingbptato2024-08-131-19/+13
| | | | | | * don't accept flags specified as named fields * don't error out on named field specified as flag * allow trailing whitespace on named fields & flags
* mailcap: various fixesbptato2024-08-112-43/+32
| | | | | | * parse last line even if it doesn't end with LF * parse flags & named fields case-insensitively * update naming
* dom: remove generic JS bindingsbptato2024-08-119-135/+156
| | | | Dispatch manually with fromJS instead.
* dom: fix crash on wrong image content typebptato2024-08-113-5/+10
| | | | + slightly optimize getContentType
* urldec: merge into urlencbptato2024-08-113-28/+30
| | | | also, move the ln command to make all
* md2html: label headings with their levelbptato2024-08-111-1/+2
| | | | like sr.ht does
* Update docsbptato2024-08-102-0/+24
|
* pager: fix incorrect error message in rewrite-urlbptato2024-08-101-3/+6
| | | | It did not actually break rewrite-url, but was still annoying.
* twtstr: don't cast in parseEnumbptato2024-08-091-2/+2
| | | | Nim 1.6 does not like it.
* sandbox: allow ugetrlimitbptato2024-08-091-0/+1
| | | | called on armhf
* pager: fix <select> drawing after container redrawbptato2024-08-092-1/+3
|
* Update monouchabptato2024-08-092-1/+1
|
* Update monouchabptato2024-08-0927-268/+279
|
* loader: move back data URL handlingbptato2024-08-039-62/+83
| | | | | | | data URIs can get megabytes long; however, you can only stuff so many bytes into the envp. (This was thwarting my efforts to view pandoc- generated standalone HTML in Chawan.) So put `data:' back into the loader process.
* endians: removebptato2024-08-031-39/+0
| | | | was only used by the PNG decoder which got replaced by stbi
* cssvalues, color: use parseEnumNoCase morebptato2024-08-033-254/+230
|
* cssvalues, sheet: fix some more case sensitivity bugsbptato2024-08-025-20/+7
|
* cssvalues, twtstr, mediaquery: refactor & fixesbptato2024-08-028-440/+354
| | | | | | | * cssvalues, twtstr: unify enum parsing code paths, parse enums by bisearch instead of hash tables * mediaquery: refactor (long overdue), fix range comparison syntax parsing, make ident comparisons case-insensitive (as they should be)
* Update Chagashibptato2024-08-012-1/+1
|
* git.cgi: misc improvementsbptato2024-08-011-21/+27
| | | | | | | * highlight shortened commit hashes (up to 7 chars) * send status * refactor cgi commands * support git branch -a
* env, dom: add History stub, basic LocalStoragebptato2024-07-303-0/+86
| | | | | | | * History: doesn't really do anything, just adding it to fix some pages * LocalStorage: kind of works, but does lookups with linear search, and the quota limitation is on the number of entries not their size. plus it doesn't actually store anything on disk yet (like cookies).
* console, client: optimize console.log (etc.)bptato2024-07-302-18/+39
| | | | use JSValue varargs instead
* term: constify queriesbptato2024-07-301-3/+15
| | | | | + also send register & image dimension queries in forced sixel mode, and image dimension query on window resize
* doc: fix typobptato2024-07-301-4/+4
|
* Fixes for Nim 2.2bptato2024-07-2922-307/+283
| | | | | | | | | * xmlhttprequest: fix missing import * painter: generic tuple workaround * dynstream: merge module with implementations (so it will work with vtables) Not enabling vtables yet since it doesn't work with refc.
* Update readme, licensebptato2024-07-292-3/+4
|
* twtstr: fix startsWithIgnoreCasebptato2024-07-292-3/+3
|
* css: hash attribute namesbptato2024-07-293-45/+57
|
* cascade: move some presentational hints to ua.cssbptato2024-07-292-66/+101
|
* Update docsbptato2024-07-293-13/+302
|
* buffer, layout: small refactoringbptato2024-07-292-40/+37
|
* buffer, pager, config: add meta-refresh + misc fixesbptato2024-07-2818-141/+266
| | | | | | | | | * buffer, pager, config: add meta-refresh value, which makes it possible to follow http-equiv=refresh META tags. * config: clean up redundant format mode parser * timeout: accept varargs for params to pass on to functions * pager: add "options" dict to JS gotoURL * twtstr: remove redundant startsWithNoCase
* Update submodulesbptato2024-07-285-4/+4
|
* layout: merge neighboring wordsbptato2024-07-283-32/+28
| | | | Great performance win on large documents.
* dom: add missing nil checksbptato2024-07-271-1/+4
| | | | document is not set in the main process.
* headers, request: bring it closer to the standardbptato2024-07-277-128/+233
| | | | | | * add standard interfaces to headers * use window base URL for newRequest * remove pointless generic in newRequest
* loader: follow redirects in fetch()bptato2024-07-271-4/+21
|
* env: add alert shimbptato2024-07-271-0/+3
| | | | just call console.error for now
* loader: fix saveToBitmap for 0-len imagesbptato2024-07-271-1/+5
|
* cssvalues: fix parseDimensionValues bugbptato2024-07-271-9/+10
| | | | Whitespace-only dimension values no longer crash the parser.
* cascade: add some presentational hintsbptato2024-07-271-3/+7
| | | | | | * top/middle/bottom for img, remove redundant display: block for floats (they get blockified anyway) * map align for p too, not just div
* layout: inline table fixesbptato2024-07-274-55/+188
| | | | | | | * properly wrap inline internal table boxes in inline-table (instead of block-level table) * fix missing baseline in table wrapper boxes * fix wrong wrapping of misparented table/row/row group children
* layout: position: relative, absolute fixesbptato2024-07-263-34/+63
| | | | | | | | | | * support position: absolute on flex items * proper top/bottom/left/right calculation for position: relative * push positioned flex box sizes to positioned stack Still not perfect: position: absolute should always resolve percentage sizes and top/bottom/left/right, meaning absolute layout needs to be delayed until its containing box is fully layouted.
* url: fix URLSearchParams implementationbptato2024-07-251-20/+19
| | | | Just allocate it on-demand so it works properly.
* layout: fix incorrect absolute positioningbptato2024-07-254-18/+97
| | | | It was broken for parent boxes with indefinite sizes.