about summary refs log tree commit diff stats
path: root/src/html/formdata.nim
Commit message (Collapse)AuthorAgeFilesLines
* base64: rewrite btoa toobptato2024-04-211-2/+2
| | | | why not
* Update code stylebptato2024-04-171-7/+7
| | | | | | * separate params with ; (semicolon) instead of , (colon) * reduce screaming snake case use * wrap long lines
* js: proper distinction between Opt/Optionbptato2024-03-241-1/+1
| | | | | | | | | | | | | | | | until now, this had very strange (and inconsistent) semantics: * err() was used for exception propagation, but also as a null value * Option accepted undefined as a none value, but not null * Opt and Option were used interchangeably (and mostly randomly) Now, Result is always used for error reporting, and err(nil) means JS_EXCEPTION. (Opt is a special case of Result where we don't care about the error type, and is not used in JS.) Option on the other hand means "nullable variation of normally non-nullable type", and translates to JS_NULL. In JS we mainly use it for turning strings nullable.
* buffer: form fixes & improvementsbptato2024-03-241-6/+6
| | | | | | | * fall back to text for unimplemented input types * add custom prompt to all text-like input types * show min/max for range * fix accidental override of repaint
* catom: at -> satbptato2024-03-211-5/+5
| | | | just for consistency
* Move around some modulesbptato2024-03-141-0/+177
* extern -> gone, runproc absorbed by pager, others moved into io/ * display -> local/ (where else would we display?) * xhr -> html/ * move out WindowAttributes from term, so we don't depend on local from server