Closed rriegs closed 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.
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 ofdiv
s with content rendered client-side via markdown-it. Eachdiv
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.