This commit is contained in:
2019-12-18 00:44:46 +00:00
parent 700b9dc76d
commit c17112ad7a
3 changed files with 106 additions and 40 deletions

View File

@@ -111,9 +111,10 @@ TODO: IMPLEMENT and stub out entire nav layout, don't hae to open actual form, c
- HISTORY (event log) view, filter, sort etc the whole thing here to see what activity is happening in general - HISTORY (event log) view, filter, sort etc the whole thing here to see what activity is happening in general
- KPI WIDGETS AND GRAPHS AND SHIT FOR BIZ ADMIN - KPI WIDGETS AND GRAPHS AND SHIT FOR BIZ ADMIN
- OPERATIONS CONSOLE - OPERATIONS CONSOLE
- BACKUP - SERVER CONTROL? (close/open server ops? Or does that happen automatically when doing other jobs?)
- RESTORE - "ARCHIVE" (BACKUP /RESTORE)
- LOGS - JOBS (view status of, trigger some maybe)
- SERVER LOGS
- METRICS - METRICS
- NOTIFICATION CONFIG AND CHECK DELIVERIES - NOTIFICATION CONFIG AND CHECK DELIVERIES
@@ -153,6 +154,9 @@ TODO: IMPLEMENT and stub out entire nav layout, don't hae to open actual form, c
- Not going with the fancy modular recomposable UI and I know v7 style will work - Not going with the fancy modular recomposable UI and I know v7 style will work
- See the todo somewhere down below regarding the shell in case anything I forgot - See the todo somewhere down below regarding the shell in case anything I forgot
TODO: Review and prioritize order of items in nav panel
TODO: make names of menu items prepend grouped (e.g. "opsarchive", "admglobalsettings" so that the automatic selected list item view appearance can work
TODO: Enforce role rights for menu items once it's stubbed out TODO: Enforce role rights for menu items once it's stubbed out

View File

@@ -88,7 +88,7 @@
<!-- TOP LEVEL ACTION --> <!-- TOP LEVEL ACTION -->
<template v-else> <template v-else>
<div class="pl-3" :key="item.key"> <div :key="item.key">
<v-list-item :to="item.route"> <v-list-item :to="item.route">
<v-list-item-action v-if="item.icon"> <v-list-item-action v-if="item.icon">
<v-icon>{{ "fa-" + item.icon }}</v-icon> <v-icon>{{ "fa-" + item.icon }}</v-icon>

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: "/dashboard", route: "/hm-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: "/schedule/me", route: "/hm-schedule/me",
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: "/memo", route: "/hm-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: "/reminder", route: "/hm-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: "/locale", route: "/hm-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: "/changepw", route: "/hm-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: "/notifysubscriptions", route: "/hm-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: "/customers", route: "/cu-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: "/headoffices", route: "/cu-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: "/schedule/all", route: "/sv-schedule/all",
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: "/workorders", route: "/sv-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: "/workordertemplates", route: "/sv-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: "/quotes", route: "/sv-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: "/quotetemplates", route: "/sv-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: "/pmlist", route: "/sv-pmlist",
key: key++ key: key++
}); });
@@ -219,7 +219,7 @@ export default function initialize() {
"WorkorderPreventiveMaintenanceTemplate" "WorkorderPreventiveMaintenanceTemplate"
), ),
icon: "stamp", icon: "stamp",
route: "/pmtemplates", route: "/sv-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: "/units", route: "/sv-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: "/unitmodels", route: "/sv-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: "/contracts", route: "/sv-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: "/csr", route: "/sv-csr",
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: "/loaners", route: "/sv-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: "/parts", route: "/in-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: "/partinventory", route: "/in-partinventory",
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: "/partrequests", route: "/in-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: "/pos", route: "/in-pos",
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: "/poreceipts", route: "/in-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: "/adjustments", route: "/in-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: "/accounting", route: "/ac-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: "/globalsettings", route: "/ad-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: "/license", route: "/ad-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: "/users", route: "/ad-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: "/locale", route: "/ad-locale",
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: "/reportlist", route: "/ad-reportlist",
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: "/filelist", route: "/ad-filelist",
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: "/history", route: "/ad-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: "/kpi", route: "/ad-kpi",
key: key++ key: key++
}); });
@@ -467,6 +467,68 @@ 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
//clear sublevel arrays
subSub = [];
sub = [];
// ARCHIVE
sub.push({
title: window.$gz.locale.get("ARCHIVE DATA"),
icon: "archive",
route: "/op-archive",
key: key++
});
// JOBS
sub.push({
title: window.$gz.locale.get("SERVER JOBS"),
icon: "robot",
route: "/op-jobs",
key: key++
});
// LOGS
sub.push({
title: window.$gz.locale.get("Log"),
icon: "history",
route: "/op-log",
key: key++
});
//METRICS
sub.push({
title: window.$gz.locale.get("SERVER METRICS"),
icon: "file-medical-alt",
route: "/op-metrics",
key: key++
});
//NOTIFICATION CONFIG AND HISTORY
sub.push({
title: window.$gz.locale.get("NOTIFY CONFIG"),
icon: "bullhorn",
route: "/op-notify",
key: key++
});
// ** OPERATIONS (TOP)
addNavItem(
window.$gz.locale.get("Operations"),
"server",
undefined,
sub,
key++
);
//NOTE: If a user has read full record or better then they should have access to that area //NOTE: If a user has read full record or better then they should have access to that area
// if ( // if (