routing table init
This commit is contained in:
parent
6ea7435bd9
commit
f19870cdaa
4 changed files with 35 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
6
src/router/router-constants/fmgPage-values.js
Normal file
6
src/router/router-constants/fmgPage-values.js
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
const fmgPageValues = {
|
||||
VEHICLE_YEAR: 'vehicle-year',
|
||||
VEHICLE_MAKE: 'vehicle-make',
|
||||
};
|
||||
|
||||
export { fmgPageValues };
|
||||
5
src/router/router-constants/navigation-scenarios.js
Normal file
5
src/router/router-constants/navigation-scenarios.js
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
const navigationScenarios = {
|
||||
SELECTED_YEAR: 'SELECTED_YEAR',
|
||||
};
|
||||
|
||||
export { navigationScenarios } ;
|
||||
13
src/router/router-constants/routing-table.js
Normal file
13
src/router/router-constants/routing-table.js
Normal 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 };
|
||||
Loading…
Reference in a new issue