p2r3 / epochtal

Portal 2 tournament framework
https://epochtal.p2r3.com/
GNU General Public License v3.0
8 stars 4 forks source link

Object-oriented frontend refactor #106

Open p2r3 opened 2 weeks ago

p2r3 commented 2 weeks ago

The Epochtal web frontend is a mess, at least compared to the rest of the code. Sure, it's documented, it's readable, you can understand how and why it does what it does. But it lacks structure.

There is tons of code duplication everywhere, and the only thing preventing this from going out of hand is the fact that our front page is one HTML file. Even that has duplicated code with only slight variances in each instance. And that, of course, doesn't cover cases where a separate page is needed (e.g. Epochtal Live).

I propose these features be given class structures:

There's probably more, this isn't an exhaustive list.