Commit Graph

8 Commits

Author SHA1 Message Date
Alexey Yerin b0c5f2c81d *: run go fmt 2021-05-11 11:33:29 +03:00
Alexey Yerin c792f7f570 web: reject any whitespace-only input 2021-05-11 11:32:38 +03:00
Alexey Yerin b67c4398fc web: add a nicer error page 2021-05-10 20:09:50 +03:00
Alexey Yerin 9674e124cd web: set better defaults for translation form 2021-05-10 19:39:17 +03:00
Alexey Yerin 56459bf680 web: don't run translation on empty text
This was causing an error when submitting nothing.
2021-05-10 17:01:47 +03:00
Alexey Yerin 3f6bdee18d web, api: terminate request on parse error
When a parser error occurs, the request is not terminated which causes
the HTML page to be dumped after the error message.
2021-03-15 19:42:17 +03:00
Kyle Anthony Williams bf49f94426 Use <select> for language selection 2021-02-04 17:27:11 +03:00
Alexey Yerin 4c82aced4b Move request handlers out of main.go 2021-01-22 23:44:50 +03:00