massenergize / frontend-portal

Front End Code for the MassEnergize Community Portal. The community portal is customized for each participating community, and has the canonical URL https://community.massenergize.org/<community-name>/. For example, https://community.massenergize.org/wayland/.
MIT License
5 stars 2 forks source link

fix: optimize imports and clean up AppRouter.js #1357

Open archx3 opened 2 months ago

archx3 commented 2 months ago

This update improves code readability and efficiency by reordering import statements and cleaning up the main AppRouter.js component. Useless sections of code were removed and empty line spaces were added for clarity. Additionally, the URLs configuration was updated to enhance routing process.

Summary / Highlights

The safari browser detection condition and the code block to redirect users to the generic domain name when on a custom domain has been removed. Fixes #1336

Details (Give details about what this PR accomplishes, include any screenshots etc.)

Testing Steps (Provide details on how your changes can be tested)

Requirements

Transparency (Project board)

What kind of change does this PR introduce? (check at least one)

Does this PR introduce a breaking change? (check one)

If yes, please describe the impact and migration path for existing applications:

The PR fulfills these requirements:

Other information: Any other thing we need to know Also remove several needless comments and unused functions ans variables