Open muescha opened 4 years ago
"?show=DE,RU,BB,PT" kind of a query API based on RESTful standard. This site uses GraphQL to handle data. So it seems a breaking change if I'd like to pass some query parameters to back-end.
An option way is adding routes for every country so that you can get a new page to show a single country chart.
For example, when you open: https://maxmaxinechen.github.io/COVID19-Worldwide-Stats/DE You can see a new page for DE.
But it is still a big change. I would say it nice to have in the future.
you just read the params from the location
query string and use it on the page (not as a backend)
COVID-19 Cases Worldwide
Report for xxx
https://maxmaxinechen.github.io/COVID19-Worldwide-Stats/?show=DE,RU,BB,PT
when i open it again: https://maxmaxinechen.github.io/COVID19-Worldwide-Stats/?show=DE,RU,BB,PT then the graphs for this countries should show up immedatily so i have a overview of my favorite countries