morphodict icon indicating copy to clipboard operation
morphodict copied to clipboard

Duplicate fewer things in the frontend: Communicate certain information completely in HTTP requests to DRY the code

Open eddieantonio opened this issue 3 years ago • 0 comments

Some knowledge are duplicated in the backend and frontend such as:

  • [x] paradigm "sizes"
  • [ ] list of available orthographies
  • [ ] current orthography
  • [ ] how to set the page title
  • [ ] what interactive elements are required on the current page; e.g.,
    • do the paradigm buttons need to be initialized?
    • does audio need to be loaded for each search result?

This can all be provided in the Django HTML template and parsed by the JavaScript on page load, and otherwise!

Some TODOs have been added to #805

eddieantonio avatar May 18 '21 21:05 eddieantonio