Description
Problem
The folders frontend/simple/{components,views}
are disorganized and it's unclear what goes where.
Everything .vue
related used to go into a single folder, but during some hackathon things were split up for some reason, perhaps to differentiate between reusable components and single-page views. However, this isn't how the files in these folders are organized now, and in general it's a mess.
The main problem is with the views
folder, which now contains several files that seem better placed in the components
folder.
Solution
A simple solution is to require that all of the files in views
are mapped to top-level routes defined in js/router.js
(with the exception of debug routes for testing individual components, for example, '/members-circle'
).
Files like TimeTravel.vue
, i18n.vue
, included.ejs
, and anything else that isn't mapped via the router would be moved to components
.
There is also the idea of perhaps having components
be a subfolder of views
. Other suggestions are welcome!