routing table init

This commit is contained in:
Frank 2021-12-07 20:18:44 -05:00
parent 6ea7435bd9
commit f19870cdaa
4 changed files with 35 additions and 0 deletions

View file

@ -70,6 +70,17 @@ const router = createRouter({
routes,
});
router.navigate = (scenario, optionalQuery, optionalParams) =>
{
}
router.getNavigationMap = (scenario, currentRoute) =>
{
const fmgPageValue = currentRoute.query.fmgPage;
}
// Get route information by page name.
// This will reach out to the Cms and there is a 1:1 relationship between page names and route names.
function GetRouteInfoFromPageName(pageName) {

View file

@ -0,0 +1,6 @@
const fmgPageValues = {
VEHICLE_YEAR: 'vehicle-year',
VEHICLE_MAKE: 'vehicle-make',
};
export { fmgPageValues };

View file

@ -0,0 +1,5 @@
const navigationScenarios = {
SELECTED_YEAR: 'SELECTED_YEAR',
};
export { navigationScenarios } ;

View file

@ -0,0 +1,13 @@
import { fmgPageValues } from '@/router/router-constants/fmg-page-values';
import { navigationScenarios } from '@/router/router-constants/navigation-scenarios';
const routingTable = [
{
fmgPageValue: fmgPageValues.VEHICLE_YEAR,
maps: [
{ scenario: navigationScenarios.SELECTED_YEAR, destinationFmgPageValue: fmgPageValues.VEHICLE_MAKE }
]
}
]
export { routingTable };