adding back fa- to icons so can more easily find them in code and removing helper function that added fa- automatically

This commit is contained in:
2020-03-30 20:43:30 +00:00
parent 22854e5fd0
commit f355bd20a0
3 changed files with 59 additions and 80 deletions

View File

@@ -50,10 +50,6 @@ CURRENT TODOs
@@@@@@@@@@@ ROADMAP STAGE 2: @@@@@@@@@@@ ROADMAP STAGE 2:
todo: now that we have case insensitive should I port that shit over to the datagrid filter as well?
- yes, obviously.. Git r done and move on
todo: Should all icons be specified from a central location for future proofing and consistency? todo: Should all icons be specified from a central location for future proofing and consistency?
- Not sure after initial look at it if this is a good idea or not, think about again - Not sure after initial look at it if this is a good idea or not, think about again
- consider the finished product and how many forms etc - consider the finished product and how many forms etc

View File

@@ -16,7 +16,7 @@
<!-- TOP LEVEL HOLDER --> <!-- TOP LEVEL HOLDER -->
<template v-if="!item.route"> <template v-if="!item.route">
<v-list-group <v-list-group
:prepend-icon="'fa-' + item.icon" :prepend-icon="item.icon"
:value="false" :value="false"
:key="item.key" :key="item.key"
> >
@@ -51,9 +51,7 @@
:to="subsub.route" :to="subsub.route"
> >
<v-list-item-action> <v-list-item-action>
<v-icon v-if="subsub.icon">{{ <v-icon v-if="subsub.icon">{{ subsub.icon }}</v-icon>
"fa-" + subsub.icon
}}</v-icon>
</v-list-item-action> </v-list-item-action>
<v-list-item-title <v-list-item-title
v-text="subsub.title" v-text="subsub.title"
@@ -68,9 +66,7 @@
<div class="pl-3" :key="subitem.key"> <div class="pl-3" :key="subitem.key">
<v-list-item :to="subitem.route"> <v-list-item :to="subitem.route">
<v-list-item-action> <v-list-item-action>
<v-icon v-if="subitem.icon">{{ <v-icon v-if="subitem.icon">{{ subitem.icon }}</v-icon>
"fa-" + subitem.icon
}}</v-icon>
</v-list-item-action> </v-list-item-action>
<v-list-item-content> <v-list-item-content>
<v-list-item-title>{{ <v-list-item-title>{{
@@ -90,7 +86,7 @@
<div :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>{{ item.icon }}</v-icon>
</v-list-item-action> </v-list-item-action>
<v-list-item-content> <v-list-item-content>
<v-list-item-title>{{ item.title }}</v-list-item-title> <v-list-item-title>{{ item.title }}</v-list-item-title>
@@ -101,19 +97,6 @@
<!-- end of entire list --> <!-- end of entire list -->
</template> </template>
<!-- <v-list-item
v-for="item in navItems"
:key="item.route"
:to="item.route"
>
<v-list-item-action>
<v-icon>{{ "fa-" + item.icon }}</v-icon>
</v-list-item-action>
<v-list-item-content>
<v-list-item-title>{{ item.title }}</v-list-item-title>
</v-list-item-content>
</v-list-item> -->
</v-list> </v-list>
<!-- </v-card> --> <!-- </v-card> -->
</v-navigation-drawer> </v-navigation-drawer>
@@ -142,7 +125,7 @@
@click="clickMenuItem(item)" @click="clickMenuItem(item)"
> >
<v-icon :color="item.color ? item.color : ''"> <v-icon :color="item.color ? item.color : ''">
{{ "fa-" + item.icon }} {{ item.icon }}
</v-icon> </v-icon>
</v-btn> </v-btn>
</template> </template>
@@ -174,7 +157,7 @@
<v-icon <v-icon
v-if="item.icon" v-if="item.icon"
:color="item.color ? item.color : ''" :color="item.color ? item.color : ''"
>{{ "fa-" + item.icon }}</v-icon >{{ item.icon }}</v-icon
> >
</v-list-item-action> </v-list-item-action>
<v-list-item-content> <v-list-item-content>

View File

@@ -45,7 +45,7 @@ export default function initialize() {
//DASHBOARD //DASHBOARD
sub.push({ sub.push({
title: window.$gz.translation.get("Dashboard"), title: window.$gz.translation.get("Dashboard"),
icon: "tachometer-alt", icon: "fa-tachometer-alt",
route: "/home-dashboard", route: "/home-dashboard",
key: key++ key: key++
}); });
@@ -71,7 +71,7 @@ export default function initialize() {
) { ) {
sub.push({ sub.push({
title: window.$gz.translation.get("Search"), title: window.$gz.translation.get("Search"),
icon: "search", icon: "fa-search",
route: "/home-search", route: "/home-search",
key: key++ key: key++
}); });
@@ -80,7 +80,7 @@ export default function initialize() {
//SCHEDULE (personal) //SCHEDULE (personal)
sub.push({ sub.push({
title: window.$gz.translation.get("Schedule"), title: window.$gz.translation.get("Schedule"),
icon: "calendar-day", icon: "fa-calendar-day",
route: "/home-schedule", route: "/home-schedule",
key: key++ key: key++
}); });
@@ -88,7 +88,7 @@ export default function initialize() {
//MEMOS //MEMOS
sub.push({ sub.push({
title: window.$gz.translation.get("MemoList"), title: window.$gz.translation.get("MemoList"),
icon: "inbox", icon: "fa-inbox",
route: "/home-memos", route: "/home-memos",
key: key++ key: key++
}); });
@@ -96,7 +96,7 @@ export default function initialize() {
//REMINDERS (SCHEDULE MARKERS) //REMINDERS (SCHEDULE MARKERS)
sub.push({ sub.push({
title: window.$gz.translation.get("ReminderList"), title: window.$gz.translation.get("ReminderList"),
icon: "sticky-note", icon: "fa-sticky-note",
route: "/home-reminders", route: "/home-reminders",
key: key++ key: key++
}); });
@@ -104,7 +104,7 @@ export default function initialize() {
//USER SETTINGS //USER SETTINGS
sub.push({ sub.push({
title: window.$gz.translation.get("UserSettings"), title: window.$gz.translation.get("UserSettings"),
icon: "user-cog", icon: "fa-user-cog",
route: "/home-user-settings", route: "/home-user-settings",
key: key++ key: key++
}); });
@@ -113,7 +113,7 @@ export default function initialize() {
// //USER TRANSLATE // //USER TRANSLATE
// sub.push({ // sub.push({
// title: window.$gz.translation.get("Translation"), // title: window.$gz.translation.get("Translation"),
// icon: "language", // icon: "fa-language",
// route: "/home-translation", // route: "/home-translation",
// key: key++ // key: key++
// }); // });
@@ -121,7 +121,7 @@ export default function initialize() {
// //SET LOGIN // //SET LOGIN
// sub.push({ // sub.push({
// title: window.$gz.translation.get("SetLoginPassword"), // title: window.$gz.translation.get("SetLoginPassword"),
// icon: "key", // icon: "fa-key",
// route: "/home-password", // route: "/home-password",
// key: key++ // key: key++
// }); // });
@@ -145,7 +145,7 @@ export default function initialize() {
) { ) {
sub.push({ sub.push({
title: window.$gz.translation.get("NotifySubscriptionList"), title: window.$gz.translation.get("NotifySubscriptionList"),
icon: "bullhorn", icon: "fa-bullhorn",
route: "/home-notify-subscriptions", route: "/home-notify-subscriptions",
key: key++ key: key++
}); });
@@ -154,7 +154,7 @@ export default function initialize() {
//HOME //HOME
addNavItem( addNavItem(
window.$gz.translation.get("Home"), window.$gz.translation.get("Home"),
"home", "fa-home",
undefined, undefined,
sub, sub,
key++ key++
@@ -181,7 +181,7 @@ export default function initialize() {
//CUSTOMERS subitem //CUSTOMERS subitem
sub.push({ sub.push({
title: window.$gz.translation.get("ClientList"), title: window.$gz.translation.get("ClientList"),
icon: "address-card", icon: "fa-address-card",
route: "/cust-customers", route: "/cust-customers",
key: key++ key: key++
}); });
@@ -189,7 +189,7 @@ export default function initialize() {
//HEAD OFFICES subitem //HEAD OFFICES subitem
sub.push({ sub.push({
title: window.$gz.translation.get("HeadOfficeList"), title: window.$gz.translation.get("HeadOfficeList"),
icon: "sitemap", icon: "fa-sitemap",
route: "/cust-headoffices", route: "/cust-headoffices",
key: key++ key: key++
}); });
@@ -197,7 +197,7 @@ export default function initialize() {
// ** CUSTOMER (TOP) // ** CUSTOMER (TOP)
addNavItem( addNavItem(
window.$gz.translation.get("ClientList"), window.$gz.translation.get("ClientList"),
"address-book", "fa-address-book",
undefined, undefined,
sub, sub,
key++ key++
@@ -232,7 +232,7 @@ export default function initialize() {
) { ) {
sub.push({ sub.push({
title: window.$gz.translation.get("Schedule"), title: window.$gz.translation.get("Schedule"),
icon: "calendar-alt", icon: "fa-calendar-alt",
route: "/svc-schedule", route: "/svc-schedule",
key: key++ key: key++
}); });
@@ -251,7 +251,7 @@ export default function initialize() {
) { ) {
sub.push({ sub.push({
title: window.$gz.translation.get("WorkorderServiceList"), title: window.$gz.translation.get("WorkorderServiceList"),
icon: "tools", icon: "fa-tools",
route: "/svc-workorders", route: "/svc-workorders",
key: key++ key: key++
}); });
@@ -262,7 +262,7 @@ export default function initialize() {
//there used to be an array for 3rd level shit but that's whack yo! ;) //there used to be an array for 3rd level shit but that's whack yo! ;)
// subSub.push({ // subSub.push({
// title: window.$gz.translation.get("WorkorderServiceTemplate"), // title: window.$gz.translation.get("WorkorderServiceTemplate"),
// icon: "stamp", // icon: "fa-stamp",
// route: "/svc-workorder-templates", // route: "/svc-workorder-templates",
// key: key++ // key: key++
// }); // });
@@ -272,7 +272,7 @@ export default function initialize() {
//so there is no separate role check here as the service group role check supersedes this //so there is no separate role check here as the service group role check supersedes this
sub.push({ sub.push({
title: window.$gz.translation.get("WorkorderQuoteList"), title: window.$gz.translation.get("WorkorderQuoteList"),
icon: "edit", icon: "fa-edit",
route: "/svc-quotes", route: "/svc-quotes",
key: key++ key: key++
}); });
@@ -292,7 +292,7 @@ export default function initialize() {
title: window.$gz.translation.get( title: window.$gz.translation.get(
"WorkorderPreventiveMaintenanceList" "WorkorderPreventiveMaintenanceList"
), ),
icon: "business-time", icon: "fa-business-time",
route: "/svc-pm-list", route: "/svc-pm-list",
key: key++ key: key++
}); });
@@ -311,7 +311,7 @@ export default function initialize() {
) { ) {
sub.push({ sub.push({
title: window.$gz.translation.get("UnitList"), title: window.$gz.translation.get("UnitList"),
icon: "fan", icon: "fa-fan",
route: "/svc-units", route: "/svc-units",
key: key++ key: key++
}); });
@@ -319,7 +319,7 @@ export default function initialize() {
//UNIT MODELS subitem //UNIT MODELS subitem
sub.push({ sub.push({
title: window.$gz.translation.get("UnitModels"), title: window.$gz.translation.get("UnitModels"),
icon: "dice-d20", icon: "fa-dice-d20",
route: "/svc-unit-models", route: "/svc-unit-models",
key: key++ key: key++
}); });
@@ -337,7 +337,7 @@ export default function initialize() {
) { ) {
sub.push({ sub.push({
title: window.$gz.translation.get("LoanItemList"), title: window.$gz.translation.get("LoanItemList"),
icon: "plug", icon: "fa-plug",
route: "/svc-loaners", route: "/svc-loaners",
key: key++ key: key++
}); });
@@ -356,7 +356,7 @@ export default function initialize() {
) { ) {
sub.push({ sub.push({
title: window.$gz.translation.get("ContractList"), title: window.$gz.translation.get("ContractList"),
icon: "file-contract", icon: "fa-file-contract",
route: "/svc-contracts", route: "/svc-contracts",
key: key++ key: key++
}); });
@@ -375,7 +375,7 @@ export default function initialize() {
) { ) {
sub.push({ sub.push({
title: window.$gz.translation.get("ClientServiceRequestList"), title: window.$gz.translation.get("ClientServiceRequestList"),
icon: "child", icon: "fa-child",
route: "/svc-csr-list", route: "/svc-csr-list",
key: key++ key: key++
}); });
@@ -384,7 +384,7 @@ export default function initialize() {
//**** Service (TOP GROUP) //**** Service (TOP GROUP)
addNavItem( addNavItem(
window.$gz.translation.get("Service"), window.$gz.translation.get("Service"),
"toolbox", "fa-toolbox",
undefined, undefined,
sub, sub,
key++ key++
@@ -406,7 +406,7 @@ export default function initialize() {
//PARTS (part list) //PARTS (part list)
sub.push({ sub.push({
title: window.$gz.translation.get("PartList"), title: window.$gz.translation.get("PartList"),
icon: "boxes", icon: "fa-boxes",
route: "/inv-parts", route: "/inv-parts",
key: key++ key: key++
}); });
@@ -414,7 +414,7 @@ export default function initialize() {
//INVENTORY //INVENTORY
sub.push({ sub.push({
title: window.$gz.translation.get("PartByWarehouseInventoryList"), title: window.$gz.translation.get("PartByWarehouseInventoryList"),
icon: "pallet", icon: "fa-pallet",
route: "/inv-part-inventory", route: "/inv-part-inventory",
key: key++ key: key++
}); });
@@ -422,7 +422,7 @@ export default function initialize() {
//PART REQUESTS //PART REQUESTS
sub.push({ sub.push({
title: window.$gz.translation.get("WorkorderItemPartRequestList"), title: window.$gz.translation.get("WorkorderItemPartRequestList"),
icon: "paper-plane", icon: "fa-paper-plane",
route: "/inv-part-requests", route: "/inv-part-requests",
key: key++ key: key++
}); });
@@ -430,7 +430,7 @@ export default function initialize() {
//PURCHASE ORDERS //PURCHASE ORDERS
sub.push({ sub.push({
title: window.$gz.translation.get("InventoryPurchaseOrders"), title: window.$gz.translation.get("InventoryPurchaseOrders"),
icon: "shipping-fast", icon: "fa-shipping-fast",
route: "/inv-purchase-orders", route: "/inv-purchase-orders",
key: key++ key: key++
}); });
@@ -442,7 +442,7 @@ export default function initialize() {
title: window.$gz.translation.get( title: window.$gz.translation.get(
"InventoryPurchaseOrderReceipts" "InventoryPurchaseOrderReceipts"
), ),
icon: "dolly-flatbed", icon: "fa-dolly-flatbed",
route: "/inv-purchase-order-receipts", route: "/inv-purchase-order-receipts",
key: key++ key: key++
}); });
@@ -456,7 +456,7 @@ export default function initialize() {
title: window.$gz.translation.get( title: window.$gz.translation.get(
"InventoryPartInventoryAdjustments" "InventoryPartInventoryAdjustments"
), ),
icon: "dolly", icon: "fa-dolly",
route: "/inv-adjustments", route: "/inv-adjustments",
key: key++ key: key++
}); });
@@ -464,7 +464,7 @@ export default function initialize() {
//**** INVENTORY (TOP GROUP) //**** INVENTORY (TOP GROUP)
addNavItem( addNavItem(
window.$gz.translation.get("Inventory"), window.$gz.translation.get("Inventory"),
"box", "fa-box",
undefined, undefined,
sub, sub,
key++ key++
@@ -485,7 +485,7 @@ export default function initialize() {
) { ) {
addNavItem( addNavItem(
window.$gz.translation.get("VendorList"), window.$gz.translation.get("VendorList"),
"store", "fa-store",
"/vendors", "/vendors",
[], [],
key++ key++
@@ -505,7 +505,7 @@ export default function initialize() {
//FAKE subitem as is still TBD //FAKE subitem as is still TBD
sub.push({ sub.push({
title: window.$gz.translation.get("Accounting"), title: window.$gz.translation.get("Accounting"),
icon: "calculator", icon: "fa-calculator",
route: "/acc-accounting", route: "/acc-accounting",
key: key++ key: key++
}); });
@@ -513,7 +513,7 @@ export default function initialize() {
// ** ACCOUNTING (TOP) // ** ACCOUNTING (TOP)
addNavItem( addNavItem(
window.$gz.translation.get("Accounting"), window.$gz.translation.get("Accounting"),
"calculator", "fa-calculator",
undefined, undefined,
sub, sub,
key++ key++
@@ -533,7 +533,7 @@ export default function initialize() {
// GLOBAL SETTINGS // GLOBAL SETTINGS
sub.push({ sub.push({
title: window.$gz.translation.get("AdministrationGlobalSettings"), title: window.$gz.translation.get("AdministrationGlobalSettings"),
icon: "cogs", icon: "fa-cogs",
route: "/adm-global-settings", route: "/adm-global-settings",
key: key++ key: key++
}); });
@@ -541,7 +541,7 @@ export default function initialize() {
// LICENSE // LICENSE
sub.push({ sub.push({
title: window.$gz.translation.get("HelpLicense"), title: window.$gz.translation.get("HelpLicense"),
icon: "ticket-alt", icon: "fa-ticket-alt",
route: "/adm-license", route: "/adm-license",
key: key++ key: key++
}); });
@@ -549,7 +549,7 @@ export default function initialize() {
// USERS // USERS
sub.push({ sub.push({
title: window.$gz.translation.get("UserList"), title: window.$gz.translation.get("UserList"),
icon: "users", icon: "fa-users",
route: "/adm-users", route: "/adm-users",
key: key++ key: key++
}); });
@@ -559,7 +559,7 @@ export default function initialize() {
//TRANSLATION //TRANSLATION
sub.push({ sub.push({
title: window.$gz.translation.get("Translation"), title: window.$gz.translation.get("Translation"),
icon: "language", icon: "fa-language",
route: "/adm-translation", route: "/adm-translation",
key: key++ key: key++
}); });
@@ -567,7 +567,7 @@ export default function initialize() {
//REPORT TEMPLATES //REPORT TEMPLATES
sub.push({ sub.push({
title: window.$gz.translation.get("ReportList"), title: window.$gz.translation.get("ReportList"),
icon: "th-list", icon: "fa-th-list",
route: "/adm-report-templates", route: "/adm-report-templates",
key: key++ key: key++
}); });
@@ -575,7 +575,7 @@ export default function initialize() {
//FILES IN DATABASE //FILES IN DATABASE
sub.push({ sub.push({
title: window.$gz.translation.get("Attachments"), title: window.$gz.translation.get("Attachments"),
icon: "folder", icon: "fa-folder",
route: "/adm-attachments", route: "/adm-attachments",
key: key++ key: key++
}); });
@@ -583,7 +583,7 @@ export default function initialize() {
//EVENT LOG / HISTORY //EVENT LOG / HISTORY
sub.push({ sub.push({
title: window.$gz.translation.get("History"), title: window.$gz.translation.get("History"),
icon: "history", icon: "fa-history",
route: "/adm-history", route: "/adm-history",
key: key++ key: key++
}); });
@@ -591,7 +591,7 @@ export default function initialize() {
//KPI / METRICS / CHARTS AND STUFF //KPI / METRICS / CHARTS AND STUFF
sub.push({ sub.push({
title: window.$gz.translation.get("Statistics"), title: window.$gz.translation.get("Statistics"),
icon: "chart-line", icon: "fa-chart-line",
route: "/adm-statistics", route: "/adm-statistics",
key: key++ key: key++
}); });
@@ -599,7 +599,7 @@ export default function initialize() {
// ** ADMINISTRATION (TOP) // ** ADMINISTRATION (TOP)
addNavItem( addNavItem(
window.$gz.translation.get("Administration"), window.$gz.translation.get("Administration"),
"user-tie", "fa-user-tie",
undefined, undefined,
sub, sub,
key++ key++
@@ -619,7 +619,7 @@ export default function initialize() {
// ARCHIVE // ARCHIVE
sub.push({ sub.push({
title: window.$gz.translation.get("Backup"), title: window.$gz.translation.get("Backup"),
icon: "file-archive", icon: "fa-file-archive",
route: "/ops-backup", route: "/ops-backup",
key: key++ key: key++
}); });
@@ -633,7 +633,7 @@ export default function initialize() {
// JOBS // JOBS
sub.push({ sub.push({
title: window.$gz.translation.get("ServerJobs"), title: window.$gz.translation.get("ServerJobs"),
icon: "robot", icon: "fa-robot",
route: "/ops-jobs", route: "/ops-jobs",
key: key++ key: key++
}); });
@@ -641,7 +641,7 @@ export default function initialize() {
// LOGS // LOGS
sub.push({ sub.push({
title: window.$gz.translation.get("ServerLog"), title: window.$gz.translation.get("ServerLog"),
icon: "history", icon: "fa-history",
route: "/ops-log", route: "/ops-log",
key: key++ key: key++
}); });
@@ -649,7 +649,7 @@ export default function initialize() {
//METRICS //METRICS
sub.push({ sub.push({
title: window.$gz.translation.get("ServerMetrics"), title: window.$gz.translation.get("ServerMetrics"),
icon: "file-medical-alt", icon: "fa-file-medical-alt",
route: "/ops-metrics", route: "/ops-metrics",
key: key++ key: key++
}); });
@@ -657,7 +657,7 @@ export default function initialize() {
//NOTIFICATION CONFIG AND HISTORY //NOTIFICATION CONFIG AND HISTORY
sub.push({ sub.push({
title: window.$gz.translation.get("NotificationSettings"), title: window.$gz.translation.get("NotificationSettings"),
icon: "bullhorn", icon: "fa-bullhorn",
route: "/ops-notification-settings", route: "/ops-notification-settings",
key: key++ key: key++
}); });
@@ -665,7 +665,7 @@ export default function initialize() {
// ** OPERATIONS (TOP) // ** OPERATIONS (TOP)
addNavItem( addNavItem(
window.$gz.translation.get("Operations"), window.$gz.translation.get("Operations"),
"server", "fa-server",
undefined, undefined,
sub, sub,
key++ key++
@@ -685,7 +685,7 @@ export default function initialize() {
) { ) {
addNavItem( addNavItem(
window.$gz.translation.get("WidgetList"), window.$gz.translation.get("WidgetList"),
"vial", "fa-vial",
"/widgets", "/widgets",
[], [],
key++ key++
@@ -710,7 +710,7 @@ export default function initialize() {
//CSR LIST subitem //CSR LIST subitem
sub.push({ sub.push({
title: window.$gz.translation.get("ClientServiceRequestList"), title: window.$gz.translation.get("ClientServiceRequestList"),
icon: "child", icon: "fa-child",
route: "/customer-csr-list", route: "/customer-csr-list",
key: key++ key: key++
}); });
@@ -718,7 +718,7 @@ export default function initialize() {
//WORKORDERS subitem //WORKORDERS subitem
sub.push({ sub.push({
title: window.$gz.translation.get("WorkorderServiceList"), title: window.$gz.translation.get("WorkorderServiceList"),
icon: "tools", icon: "fa-tools",
route: "/customer-workorders", route: "/customer-workorders",
key: key++ key: key++
}); });
@@ -727,7 +727,7 @@ export default function initialize() {
addNavItem( addNavItem(
window.$gz.translation.get("Home"), window.$gz.translation.get("Home"),
"home", "fa-home",
undefined, undefined,
sub, sub,
key++ key++