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

@@ -35,7 +35,7 @@ export default function initialize() {
sub.push({ sub.push({
title: window.$gz.locale.get("DashboardDashboard"), title: window.$gz.locale.get("DashboardDashboard"),
icon: "tachometer-alt", icon: "tachometer-alt",
route: "/hm-dashboard", route: "/dashboard",
key: key++ key: key++
}); });
@@ -43,7 +43,7 @@ export default function initialize() {
sub.push({ sub.push({
title: window.$gz.locale.get("Schedule"), title: window.$gz.locale.get("Schedule"),
icon: "calendar-alt", icon: "calendar-alt",
route: "/hm-schedule/me", 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
key: key++ key: key++
}); });
@@ -51,7 +51,7 @@ export default function initialize() {
sub.push({ sub.push({
title: window.$gz.locale.get("Memo"), title: window.$gz.locale.get("Memo"),
icon: "inbox", icon: "inbox",
route: "/hm-memo", route: "/memo",
key: key++ key: key++
}); });
@@ -59,7 +59,7 @@ export default function initialize() {
sub.push({ sub.push({
title: window.$gz.locale.get("ScheduleMarkerList"), title: window.$gz.locale.get("ScheduleMarkerList"),
icon: "sticky-note", icon: "sticky-note",
route: "/hm-reminder", route: "/reminder",
key: key++ key: key++
}); });
@@ -69,7 +69,7 @@ export default function initialize() {
subSub.push({ subSub.push({
title: window.$gz.locale.get("Locale"), title: window.$gz.locale.get("Locale"),
icon: "language", icon: "language",
route: "/hm-locale", route: "/locale",
key: key++ key: key++
}); });
@@ -77,7 +77,7 @@ export default function initialize() {
subSub.push({ subSub.push({
title: window.$gz.locale.get("SetLoginPassword"), title: window.$gz.locale.get("SetLoginPassword"),
icon: "key", icon: "key",
route: "/hm-changepw", route: "/changepw",
key: key++ key: key++
}); });
@@ -85,7 +85,7 @@ export default function initialize() {
subSub.push({ subSub.push({
title: window.$gz.locale.get("NotifySubscriptionList"), title: window.$gz.locale.get("NotifySubscriptionList"),
icon: "bullhorn", icon: "bullhorn",
route: "/hm-notifysubscriptions", route: "/notifysubscriptions",
key: key++ key: key++
}); });
@@ -116,7 +116,7 @@ export default function initialize() {
sub.push({ sub.push({
title: window.$gz.locale.get("ClientList"), title: window.$gz.locale.get("ClientList"),
icon: "address-card", icon: "address-card",
route: "/cu-customers", route: "/customers",
key: key++ key: key++
}); });
@@ -124,7 +124,7 @@ export default function initialize() {
sub.push({ sub.push({
title: window.$gz.locale.get("HeadOfficeList"), title: window.$gz.locale.get("HeadOfficeList"),
icon: "sitemap", icon: "sitemap",
route: "/cu-headoffices", route: "/headoffices",
key: key++ key: key++
}); });
@@ -146,7 +146,7 @@ export default function initialize() {
sub.push({ sub.push({
title: window.$gz.locale.get("Schedule"), title: window.$gz.locale.get("Schedule"),
icon: "calendar-alt", icon: "calendar-alt",
route: "/sv-schedule/all", 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
key: key++ key: key++
}); });
@@ -155,7 +155,7 @@ export default function initialize() {
subSub.push({ subSub.push({
title: window.$gz.locale.get("WorkorderServiceList"), title: window.$gz.locale.get("WorkorderServiceList"),
icon: "tools", icon: "tools",
route: "/sv-workorders", route: "/workorders",
key: key++ key: key++
}); });
@@ -163,7 +163,7 @@ export default function initialize() {
subSub.push({ subSub.push({
title: window.$gz.locale.get("WorkorderServiceTemplate"), title: window.$gz.locale.get("WorkorderServiceTemplate"),
icon: "stamp", icon: "stamp",
route: "/sv-workordertemplates", route: "/workordertemplates",
key: key++ key: key++
}); });
@@ -182,7 +182,7 @@ export default function initialize() {
subSub.push({ subSub.push({
title: window.$gz.locale.get("WorkorderQuoteList"), title: window.$gz.locale.get("WorkorderQuoteList"),
icon: "edit", icon: "edit",
route: "/sv-quotes", route: "/quotes",
key: key++ key: key++
}); });
@@ -190,7 +190,7 @@ export default function initialize() {
subSub.push({ subSub.push({
title: window.$gz.locale.get("WorkorderQuoteTemplate"), title: window.$gz.locale.get("WorkorderQuoteTemplate"),
icon: "stamp", icon: "stamp",
route: "/sv-quotetemplates", route: "/quotetemplates",
key: key++ key: key++
}); });
@@ -209,7 +209,7 @@ export default function initialize() {
subSub.push({ subSub.push({
title: window.$gz.locale.get("WorkorderPreventiveMaintenanceList"), title: window.$gz.locale.get("WorkorderPreventiveMaintenanceList"),
icon: "business-time", icon: "business-time",
route: "/sv-pmlist", route: "/pmlist",
key: key++ key: key++
}); });
@@ -219,7 +219,7 @@ export default function initialize() {
"WorkorderPreventiveMaintenanceTemplate" "WorkorderPreventiveMaintenanceTemplate"
), ),
icon: "stamp", icon: "stamp",
route: "/sv-pmtemplates", route: "/pmtemplates",
key: key++ key: key++
}); });
@@ -236,7 +236,7 @@ export default function initialize() {
sub.push({ sub.push({
title: window.$gz.locale.get("UnitList"), title: window.$gz.locale.get("UnitList"),
icon: "fan", icon: "fan",
route: "/sv-units", route: "/units",
key: key++ key: key++
}); });
@@ -244,7 +244,7 @@ export default function initialize() {
sub.push({ sub.push({
title: window.$gz.locale.get("UnitModels"), title: window.$gz.locale.get("UnitModels"),
icon: undefined, icon: undefined,
route: "/sv-unitmodels", route: "/unitmodels",
key: key++ key: key++
}); });
@@ -252,7 +252,7 @@ export default function initialize() {
sub.push({ sub.push({
title: window.$gz.locale.get("ContractList"), title: window.$gz.locale.get("ContractList"),
icon: "file-contract", icon: "file-contract",
route: "/sv-contracts", route: "/contracts",
key: key++ key: key++
}); });
@@ -260,7 +260,7 @@ export default function initialize() {
sub.push({ sub.push({
title: window.$gz.locale.get("ClientServiceRequestList"), title: window.$gz.locale.get("ClientServiceRequestList"),
icon: "child", icon: "child",
route: "/sv-csr", route: "/csrs",
key: key++ key: key++
}); });
@@ -268,7 +268,7 @@ export default function initialize() {
sub.push({ sub.push({
title: window.$gz.locale.get("LoanItemList"), title: window.$gz.locale.get("LoanItemList"),
icon: "plug", icon: "plug",
route: "/sv-loaners", route: "/loaners",
key: key++ key: key++
}); });
@@ -290,7 +290,7 @@ export default function initialize() {
sub.push({ sub.push({
title: window.$gz.locale.get("PartList"), title: window.$gz.locale.get("PartList"),
icon: "cubes", icon: "cubes",
route: "/in-parts", route: "/parts",
key: key++ key: key++
}); });
@@ -298,7 +298,7 @@ export default function initialize() {
sub.push({ sub.push({
title: window.$gz.locale.get("PartByWarehouseInventoryList"), title: window.$gz.locale.get("PartByWarehouseInventoryList"),
icon: "pallet", icon: "pallet",
route: "/in-partinventory", route: "/partinventorylist",
key: key++ key: key++
}); });
@@ -306,7 +306,7 @@ export default function initialize() {
sub.push({ sub.push({
title: window.$gz.locale.get("WorkorderItemPartRequestList"), title: window.$gz.locale.get("WorkorderItemPartRequestList"),
icon: undefined, icon: undefined,
route: "/in-partrequests", route: "/partrequests",
key: key++ key: key++
}); });
@@ -314,7 +314,7 @@ export default function initialize() {
sub.push({ sub.push({
title: window.$gz.locale.get("InventoryPurchaseOrders"), title: window.$gz.locale.get("InventoryPurchaseOrders"),
icon: "boxes", icon: "boxes",
route: "/in-pos", route: "/polist",
key: key++ key: key++
}); });
@@ -324,7 +324,7 @@ export default function initialize() {
sub.push({ sub.push({
title: window.$gz.locale.get("InventoryPurchaseOrderReceipts"), title: window.$gz.locale.get("InventoryPurchaseOrderReceipts"),
icon: "dolly-flatbed", icon: "dolly-flatbed",
route: "/in-poreceipts", route: "/poreceipts",
key: key++ key: key++
}); });
@@ -334,7 +334,7 @@ export default function initialize() {
sub.push({ sub.push({
title: window.$gz.locale.get("InventoryPartInventoryAdjustments"), title: window.$gz.locale.get("InventoryPartInventoryAdjustments"),
icon: "dolly", icon: "dolly",
route: "/in-adjustments", route: "/adjustments",
key: key++ key: key++
}); });
@@ -374,7 +374,7 @@ export default function initialize() {
sub.push({ sub.push({
title: window.$gz.locale.get("Accounting"), title: window.$gz.locale.get("Accounting"),
icon: "file-invoice-dollar", icon: "file-invoice-dollar",
route: "/ac-accounting", route: "/accounting",
key: key++ key: key++
}); });
@@ -396,7 +396,7 @@ export default function initialize() {
sub.push({ sub.push({
title: window.$gz.locale.get("AdministrationGlobalSettings"), title: window.$gz.locale.get("AdministrationGlobalSettings"),
icon: "cogs", icon: "cogs",
route: "/ad-globalsettings", route: "/globalsettings",
key: key++ key: key++
}); });
@@ -404,7 +404,7 @@ export default function initialize() {
sub.push({ sub.push({
title: window.$gz.locale.get("HelpLicense"), title: window.$gz.locale.get("HelpLicense"),
icon: "ticket-alt", icon: "ticket-alt",
route: "/ad-license", route: "/license",
key: key++ key: key++
}); });
@@ -412,7 +412,7 @@ export default function initialize() {
sub.push({ sub.push({
title: window.$gz.locale.get("UserList"), title: window.$gz.locale.get("UserList"),
icon: "users", icon: "users",
route: "/ad-users", route: "/users",
key: key++ key: key++
}); });
@@ -422,7 +422,7 @@ export default function initialize() {
sub.push({ sub.push({
title: window.$gz.locale.get("LocalizedTextDesign"), title: window.$gz.locale.get("LocalizedTextDesign"),
icon: "language", icon: "language",
route: "/ad-locale", route: "/locales",
key: key++ key: key++
}); });
@@ -430,7 +430,7 @@ export default function initialize() {
sub.push({ sub.push({
title: window.$gz.locale.get("ReportList"), title: window.$gz.locale.get("ReportList"),
icon: "th-list", icon: "th-list",
route: "/ad-reportlist", route: "/reports",
key: key++ key: key++
}); });
@@ -438,7 +438,7 @@ export default function initialize() {
sub.push({ sub.push({
title: window.$gz.locale.get("FILES MANAGER"), title: window.$gz.locale.get("FILES MANAGER"),
icon: "folder", icon: "folder",
route: "/ad-filelist", route: "/files",
key: key++ key: key++
}); });
@@ -446,7 +446,7 @@ export default function initialize() {
sub.push({ sub.push({
title: window.$gz.locale.get("HISTORY"), title: window.$gz.locale.get("HISTORY"),
icon: "history", icon: "history",
route: "/ad-history", route: "/history",
key: key++ key: key++
}); });
@@ -454,7 +454,7 @@ export default function initialize() {
sub.push({ sub.push({
title: window.$gz.locale.get("KPI CHARTS"), title: window.$gz.locale.get("KPI CHARTS"),
icon: "chart-line", icon: "chart-line",
route: "/ad-kpi", route: "/kpi",
key: key++ key: key++
}); });
@@ -467,14 +467,6 @@ export default function initialize() {
key++ key++
); );
// - OPERATIONS CONSOLE
// - SERVER CONTROL? (close/open server ops? Or does that happen automatically when doing other jobs?)
// - "ARCHIVE" (BACKUP /RESTORE)
// - JOBS (view status of, trigger some maybe)
// - SERVER LOGS
// - METRICS
// - NOTIFICATION CONFIG AND CHECK DELIVERIES
//****************** OPERATIONS //****************** OPERATIONS
//clear sublevel arrays //clear sublevel arrays
subSub = []; subSub = [];
@@ -484,7 +476,7 @@ export default function initialize() {
sub.push({ sub.push({
title: window.$gz.locale.get("ARCHIVE DATA"), title: window.$gz.locale.get("ARCHIVE DATA"),
icon: "archive", icon: "archive",
route: "/op-archive", route: "/archives",
key: key++ key: key++
}); });
@@ -492,7 +484,7 @@ export default function initialize() {
sub.push({ sub.push({
title: window.$gz.locale.get("SERVER JOBS"), title: window.$gz.locale.get("SERVER JOBS"),
icon: "robot", icon: "robot",
route: "/op-jobs", route: "/jobs",
key: key++ key: key++
}); });
@@ -500,7 +492,7 @@ export default function initialize() {
sub.push({ sub.push({
title: window.$gz.locale.get("Log"), title: window.$gz.locale.get("Log"),
icon: "history", icon: "history",
route: "/op-log", route: "/serverlogs",
key: key++ key: key++
}); });
@@ -508,7 +500,7 @@ export default function initialize() {
sub.push({ sub.push({
title: window.$gz.locale.get("SERVER METRICS"), title: window.$gz.locale.get("SERVER METRICS"),
icon: "file-medical-alt", icon: "file-medical-alt",
route: "/op-metrics", route: "/metrics",
key: key++ key: key++
}); });
@@ -516,7 +508,7 @@ export default function initialize() {
sub.push({ sub.push({
title: window.$gz.locale.get("NOTIFY CONFIG"), title: window.$gz.locale.get("NOTIFY CONFIG"),
icon: "bullhorn", icon: "bullhorn",
route: "/op-notify", route: "/notifysettings",
key: key++ key: key++
}); });

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({ export default new Router({
mode: "history", mode: "history",
base: process.env.BASE_URL, base: process.env.BASE_URL,
@@ -105,6 +109,14 @@ export default new Router({
component: () => component: () =>
import(/* webpackChunkName: "inventory" */ "./views/inventory.vue") 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", path: "/service",
name: "service", name: "service",
@@ -131,14 +143,6 @@ export default new Router({
name: "operations", name: "operations",
component: 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", path: "/customize/:formCustomTemplateKey",
name: "customize", 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",
*
*
*/