rriegs / rriegs-wiki

A single-page, small-content wiki implemented in Elm.
MIT License
0 stars 0 forks source link

Implement a front end using Elm and markdown-it #3

Closed rriegs closed 6 years ago

rriegs commented 6 years ago

The simplest front end need only enable the user to perform three things:

This front end will load multiple topics for simultaneous viewing via Ajax GET requests triggered by clicking links to URL fragments (i.e. paths starting with #). Loaded topics will be inserted into a vertical list of divs with content rendered client-side via markdown-it. Each div will feature buttons to Edit and Close their respective topics. Upon editing, changes will be rendered live, and buttons will be replaced with options to Delete, Save, or Cancel changes. Intuitively, the Delete button will issue DELETE requests while Save will issue PUT. Attempting to load a non-existent topic will instead open the topic for editing.

rriegs commented 6 years ago

The above commits already satisfy most of the requirements of this issue, though with a few rough spots:

Regardless, the front end is in good enough shape to close this issue. The above can be more effectively tracked separately.