trainbot icon indicating copy to clipboard operation
trainbot copied to clipboard

Alternative frontend

Open clonejo opened this issue 1 year ago • 1 comments

Hello jo-m,

i have started an alternative frontend with server-side rendering, a demo can be seen at https://trains.shakik.de/s/

It is pretty bare-bones for now, and i don't intend for it to reach feature-parity with your Vue frontend.

Notable features:

  • automatic reloading of the front page whenever a new train has been recorded
  • horizontally scrollable thumbnails
  • loads fairly quickly
  • (best of trains list, but that requires an additional table with view statistics, and it's broken with trains_v2)

Currently i have put up the code at https://gitlab.aachen.ccc.de/clonejo/onlytrains-frontend-rs/.

I am wondering if you would want to take the code into the main trainbot repo, but i assume you don't want to take maintainership for a bunch of Rust code :) It is probably better if i just host a separate repo, then it is clear the frontend is not always kept up to date with trainbot and i can just push/review changes myself.

Best, clonejo

clonejo avatar Jul 13 '24 14:07 clonejo

Nice!

I think to keep things uncomplicated, it is easier if you keep hosting the repo under your control. If you want, you can make a MR to link to the alternative frontend from the main README.

best jo-m

jo-m avatar Jul 14 '24 16:07 jo-m