Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | css: implement case insensitivity | bptato | 2023-08-10 | 1 | -8/+0 | |
| | | | | For some reason I forgot about this. | |||||
* | Fixes & workarounds to compile on Nim 2.0.0 | bptato | 2023-08-01 | 1 | -2/+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.) | |||||
* | Fix twtstr.cmp | bptato | 2023-07-28 | 1 | -2/+2 | |
| | | | | We were comparing the wrong sides of ranges here. | |||||
* | Fix toHex weirdness | bptato | 2023-07-07 | 1 | -7/+6 | |
| | ||||||
* | Fixes in ipv6 parser and serializer | bptato | 2023-07-07 | 1 | -3/+20 | |
| | ||||||
* | term: fix ANSI color approximation | bptato | 2023-07-06 | 1 | -4/+0 | |
| | | | | Fixes a bug that lead to incorrect color approximation. | |||||
* | Fix regression in twidth | bptato | 2023-07-06 | 1 | -3/+3 | |
| | ||||||
* | Add popup menu for select element | bptato | 2023-07-05 | 1 | -2/+3 | |
| | | | | | | | Replaces the weird CSS implementation we have had until now with a searchable popup menu similar to that of w3m. (The previous implementation broke on websites that do not expect <select> to expand on click, had no separate search, and was ugly.) | |||||
* | Fix JS type conversion regressions | bptato | 2023-07-03 | 1 | -3/+4 | |
| | ||||||
* | Fix CastSize warnings | bptato | 2023-07-03 | 1 | -2/+2 | |
| | | | | Introduced by 1.6.14. Warns of undefined behavior. | |||||
* | return Result[T, JSError] from fromJS | bptato | 2023-07-02 | 1 | -0/+3 | |
| | ||||||
* | Factor out map search, remove sugar | bptato | 2023-06-29 | 3 | -11/+31 | |
| | ||||||
* | Refactor fromJS body | bptato | 2023-06-28 | 1 | -1/+4 | |
| | ||||||
* | twtstr: remove unused function | bptato | 2023-06-25 | 1 | -13/+0 | |
| | ||||||
* | Improve broken cookie handling, add multipart to form | bptato | 2023-06-25 | 1 | -0/+11 | |
| | | | | | | | | Now it's not as horribly broken as before (but it's still far from perfect). We can at least log in to sr.ht (hooray). The form multipart part is straightforward, just pass what we used to pass long ago before I broke multipart. | |||||
* | Option -> Opt in config, return error in compileSearchRegex | bptato | 2023-06-24 | 1 | -0/+6 | |
| | ||||||
* | radixtree: optimize searching | bptato | 2023-06-23 | 1 | -7/+39 | |
| | ||||||
* | eprint: simplify | bptato | 2023-06-23 | 1 | -33/+23 | |
| | ||||||
* | Get rid of the .jserr pragma | bptato | 2023-06-19 | 1 | -4/+1 | |
| | ||||||
* | Rework JS exception system | bptato | 2023-06-19 | 2 | -27/+45 | |
| | | | | | Now we use Result for passing exceptions to JS. As a result, we can finally get rid of the .jserr pragma. | |||||
* | Use utils/opt in toml parser | bptato | 2023-06-18 | 2 | -14/+66 | |
| | ||||||
* | approximateANSIColor: fix possible underflow | bptato | 2023-06-10 | 1 | -0/+4 | |
| | ||||||
* | Fix some type confusion with colors, fix crash in pager | bptato | 2023-06-09 | 1 | -4/+37 | |
| | ||||||
* | Add indexed color, other png improvements | bptato | 2023-06-09 | 1 | -0/+39 | |
| | ||||||
* | Add support for width, height media query | bptato | 2023-06-07 | 1 | -0/+3 | |
| | ||||||
* | Add support for canvas and multipart | bptato | 2023-06-05 | 1 | -44/+50 | |
| | | | | | | | | | | | | | | | 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...) | |||||
* | Refactor config, add charset opts | bptato | 2023-05-16 | 2 | -0/+40 | |
| | | | | Only document-charset supported for now. | |||||
* | Add elog | bptato | 2023-05-01 | 1 | -0/+16 | |
| | | | | Like eprint, but writes to `a' | |||||
* | what 003ca26b was supposed to do | bptato | 2023-04-30 | 1 | -0/+1 | |
| | ||||||
* | eprint: make it a function | bptato | 2023-02-05 | 1 | -1/+1 | |
| | | | | This makes the compiler complain less. | |||||
* | Update character width ranges | bptato | 2023-02-05 | 1 | -168/+102 | |
| | | | | | Use the Unicode 15 EastAsianWidth.txt file instead of an ancient wcwidth implementation's ranges. | |||||
* | Make width table at compile-time | bptato | 2023-01-27 | 1 | -63/+100 | |
| | ||||||
* | utils/twtstr: simplify mnormalize | bptato | 2023-01-06 | 1 | -4/+1 | |
| | | | | Use the isAscii function for early return. | |||||
* | twtstr: fix oversight | bptato | 2023-01-05 | 1 | -6/+1 | |
| | ||||||
* | data/idna, utils/twtstr: clean up, fix bugs | bptato | 2023-01-05 | 1 | -50/+62 | |
| | | | | | | | Looks like lazily loading the idna table doesn't work, so now it's statically loaded. Also, bugfixes in idna handling. | |||||
* | convert_size: truncate result | bptato | 2023-01-01 | 1 | -13/+18 | |
| | ||||||
* | buffer: fix some search bugs & refactor regex stuff | bptato | 2023-01-01 | 1 | -18/+24 | |
| | | | | | | | | 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. | |||||
* | Proper support for tabs | bptato | 2022-12-27 | 1 | -4/+16 | |
| | ||||||
* | Correct attribute functions, de-extern jserr | bptato | 2022-12-26 | 1 | -3/+9 | |
| | | | | | | Instead of unnecessarily marking every jserr function as *, add the used pragma (so the C compiler can get rid of them later.) Also, use the correct definition of attribute namespace. | |||||
* | dom: correct constructors, more create functions | bptato | 2022-12-26 | 1 | -0/+9 | |
| | ||||||
* | DOM: implement many new methods | bptato | 2022-12-26 | 1 | -0/+56 | |
| | ||||||
* | Add unicode normalization, etc | bptato | 2022-12-19 | 1 | -16/+75 | |
| | ||||||
* | More DOM work | bptato | 2022-12-19 | 1 | -0/+4 | |
| | ||||||
* | More work on DOM (incl. bugfixes) | bptato | 2022-12-19 | 1 | -13/+1 | |
| | ||||||
* | Add JS support to documents | bptato | 2022-12-18 | 1 | -0/+28 | |
| | ||||||
* | makeCRLF: move to twtstr, write last char | bptato | 2022-12-15 | 1 | -0/+23 | |
| | ||||||
* | Fix path mime type detection | bptato | 2022-12-13 | 1 | -2/+2 | |
| | ||||||
* | Add network.max-redirect, prepend-https options | bptato | 2022-12-13 | 1 | -2/+2 | |
| | ||||||
* | Add support for the encoding standard, fix parseLegacyColor | bptato | 2022-12-10 | 1 | -1/+1 | |
| | | | | Also, fix a bug in the | |||||
* | Fix a punycode decoding bug | bptato | 2022-12-05 | 1 | -1/+1 | |
| |