summaryrefslogtreecommitdiff
path: root/elm/Lib/Api.elm
AgeCommit message (Collapse)AuthorFilesLines
2019-10-03Require email confirmation when changing email addressYorhel1-0/+1
This ensures that the email address linked to a user is always valid and actually belong(s|ed) to that user.
2019-10-02v2rw: Convert user preferences formYorhel1-0/+1
And add a small 'formField' function to shrink the Elm form generation code a bit.
2019-10-01v2rw: Convert registration, account activation and password resetYorhel1-0/+5
This is largely copy-paste from v3.
2019-09-30v2rw: Convert login, logout & insecure-password-change formsYorhel1-0/+3
The insecure-password-change flow is now slightly more friendly. The logout functionality has been hardened to use POST and require CSRF.
2019-09-25v2rw: Add Elm & db_edit framework + Convert doc page editingYorhel1-0/+53
Most of this is copied from v3. I did improve on a few aspects: - db_edit() and db_entry() use VNDB::Schema rather than dynamically querying the DB. This has the minor advantage of a faster startup. - The Elm code generator now writes to multiple files, this avoids the namespace pollution seen in v3's Lib.Gen and makes the dependency graph a bit more lean (i.e. faster incremental builds). - The Elm code generator doesn't update the timestamp of files that haven't been modified. This also speeds up incremental builds, the elm compiler can now skip rebuilding unmodified files. - The Elm API response generator code now uses plain functions rather than code references and all possible responses are now defined in Elm.pm. Turns out most API responses were used from more than a single place, so it makes sense to have them centrally defined. The doc page preview function is also much nicer; I'd like to apply this to all BBCode textareas as well. (Elm.pm itself is ugly as hell though. And we will prolly need some HTML form generation functions in Elm to make that part less verbose)