Ghost/core/frontend
Hannah Wolfe 56af742a0b
Moved frontend reloading logic into bridge
- following on from removing api versioning logic from the frontend, it's possible to make more sense of what's happening
- this commit first introduces a proper jsdoc'd object that gets passed through the frontent load & reload flow
- that object contains the urlService and optionally our routeSettings processed from routes.yaml
- additionally, we were passing around a start boolean, which told the routerManager whether to just init, or init+start
- with this refactor, we always pass in the routeSettings when we want to do init+start, so we no longer need a boolean

- The refactor itself moves logic from the reload function in site.js and urlservice + routesettings fetching logic from routes.js
    into the reloadFrontend function in bridge.js.
- This makes it clearer to see what happens when we call reloadFrontend.
- This commit also makes it clearer to see what is happening with the route settings, where they are needed and why
- Ideally we'd also clean up the weird dupliated logic and somewhat unnecessary routes.js file
2022-04-28 15:37:09 +01:00
..
apps 🐛 Fixed missing alt on AMP images (#14453) 2022-04-28 11:33:22 +01:00
helpers Removed res.locals.apiVersion 2022-04-28 15:35:28 +01:00
meta Moved checks into frontend data service 2022-04-05 15:23:00 +01:00
public Fixed minified CSS not reflecting latest changes 2022-03-17 14:47:21 +00:00
services Moved frontend reloading logic into bridge 2022-04-28 15:37:09 +01:00
src/cards Applied default box sizing to all cards 2021-12-17 15:28:35 +01:00
views Updated unsubscribe page 2022-03-10 10:39:20 +00:00
web Moved frontend reloading logic into bridge 2022-04-28 15:37:09 +01:00