This commit is contained in:
2019-12-18 18:25:58 +00:00
parent 037e1f5e93
commit e81c318095
2 changed files with 106 additions and 58 deletions

View File

@@ -60,7 +60,11 @@ const scrollBehavior = function(to, from, savedPosition) {
});
}
};
/**
* https://router.vuejs.org/guide/advanced/lazy-loading.html#grouping-components-in-the-same-chunk
*
*
*/
export default new Router({
mode: "history",
base: process.env.BASE_URL,
@@ -105,6 +109,14 @@ export default new Router({
component: () =>
import(/* webpackChunkName: "inventory" */ "./views/inventory.vue")
},
{
path: "/inventory/widget/edit/:id",
name: "inventory-widget-edit",
component: () =>
import(
/* webpackChunkName: "inventory" */ "./views/inventory-widget-edit.vue"
)
},
{
path: "/service",
name: "service",
@@ -131,14 +143,6 @@ export default new Router({
name: "operations",
component: operations
},
{
path: "/inventory/widget/edit/:id",
name: "inventory-widget-edit",
component: () =>
import(
/* webpackChunkName: "inventory-widget-edit" */ "./views/inventory-widget-edit.vue"
)
},
{
path: "/customize/:formCustomTemplateKey",
name: "customize",
@@ -152,3 +156,55 @@ export default new Router({
}
]
});
/**
*
* Current stub routes:
* C:\data\code\raven-client\ayanova\src\api\initialize.js
38,13: route: "/dashboard",
46,13: route: "/schedule/me", //Note: "me" is code for current user id in schedule form, any single user id can be substituted for me as well
54,13: route: "/memo",
62,13: route: "/reminder",
72,13: route: "/locale",
80,13: route: "/changepw",
88,13: route: "/notifysubscriptions",
96,13: route: undefined,
119,13: route: "/customers",
127,13: route: "/headoffices",
149,13: route: "/schedule", //Note: because there is no trailing ID or "me" value it is stipulating all users and can be further in-filtered by other things in the UI
158,13: route: "/workorders",
166,13: route: "/workordertemplates",
174,13: route: undefined,
185,13: route: "/quotes",
193,13: route: "/quotetemplates",
201,13: route: undefined,
212,13: route: "/pmlist",
222,13: route: "/pmtemplates",
230,13: route: undefined,
239,13: route: "/units",
247,13: route: "/unitmodels",
255,13: route: "/contracts",
263,13: route: "/csrs",
271,13: route: "/loaners",
293,13: route: "/parts",
301,13: route: "/partinventorylist",
309,13: route: "/partrequests",
317,13: route: "/polist",
327,13: route: "/poreceipts",
337,13: route: "/adjustments",
377,13: route: "/accounting",
399,13: route: "/globalsettings",
407,13: route: "/license",
415,13: route: "/users",
425,13: route: "/locales",
433,13: route: "/reports",
441,13: route: "/files",
449,13: route: "/history",
457,13: route: "/kpi",
479,13: route: "/archives",
487,13: route: "/jobs",
495,13: route: "/serverlogs",
503,13: route: "/metrics",
511,13: route: "/notifysettings",
*
*
*/