This commit is contained in:
@@ -278,7 +278,7 @@ function initNavPanel() {
|
|||||||
//Customer / Headoffice Users subitem
|
//Customer / Headoffice Users subitem
|
||||||
sub.push({
|
sub.push({
|
||||||
title: "UserList",
|
title: "UserList",
|
||||||
icon: "fa-users",
|
icon: "$ayiUsers",
|
||||||
route: "/cust-users",
|
route: "/cust-users",
|
||||||
key: key++
|
key: key++
|
||||||
});
|
});
|
||||||
@@ -286,7 +286,7 @@ function initNavPanel() {
|
|||||||
// ** CUSTOMER (TOP)
|
// ** CUSTOMER (TOP)
|
||||||
addNavItem(
|
addNavItem(
|
||||||
"CustomerList",
|
"CustomerList",
|
||||||
"fa-address-book",
|
"$ayiAddressBook",
|
||||||
undefined,
|
undefined,
|
||||||
sub,
|
sub,
|
||||||
key++,
|
key++,
|
||||||
@@ -322,7 +322,7 @@ function initNavPanel() {
|
|||||||
) {
|
) {
|
||||||
sub.push({
|
sub.push({
|
||||||
title: "Schedule",
|
title: "Schedule",
|
||||||
icon: "fa-calendar-alt",
|
icon: "$ayiCalendarAlt",
|
||||||
route: "/svc-schedule",
|
route: "/svc-schedule",
|
||||||
key: key++
|
key: key++
|
||||||
});
|
});
|
||||||
@@ -362,7 +362,7 @@ function initNavPanel() {
|
|||||||
//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: "QuoteList",
|
title: "QuoteList",
|
||||||
icon: "fa-pencil-alt",
|
icon: "$ayiPencilAlt",
|
||||||
route: "/svc-quotes",
|
route: "/svc-quotes",
|
||||||
key: key++
|
key: key++
|
||||||
});
|
});
|
||||||
@@ -380,7 +380,7 @@ function initNavPanel() {
|
|||||||
) {
|
) {
|
||||||
sub.push({
|
sub.push({
|
||||||
title: "PMList",
|
title: "PMList",
|
||||||
icon: "fa-business-time",
|
icon: "$ayiBusinessTime",
|
||||||
route: "/svc-pm-list",
|
route: "/svc-pm-list",
|
||||||
key: key++
|
key: key++
|
||||||
});
|
});
|
||||||
@@ -399,7 +399,7 @@ function initNavPanel() {
|
|||||||
) {
|
) {
|
||||||
sub.push({
|
sub.push({
|
||||||
title: "UnitList",
|
title: "UnitList",
|
||||||
icon: "fa-fan",
|
icon: "$ayiFan",
|
||||||
route: "/svc-units",
|
route: "/svc-units",
|
||||||
key: key++
|
key: key++
|
||||||
});
|
});
|
||||||
@@ -407,7 +407,7 @@ function initNavPanel() {
|
|||||||
//UNIT MODELS subitem
|
//UNIT MODELS subitem
|
||||||
sub.push({
|
sub.push({
|
||||||
title: "UnitModels",
|
title: "UnitModels",
|
||||||
icon: "fa-dice-d20",
|
icon: "$ayiDiceD20",
|
||||||
route: "/svc-unit-models",
|
route: "/svc-unit-models",
|
||||||
key: key++
|
key: key++
|
||||||
});
|
});
|
||||||
@@ -425,7 +425,7 @@ function initNavPanel() {
|
|||||||
) {
|
) {
|
||||||
sub.push({
|
sub.push({
|
||||||
title: "LoanUnitList",
|
title: "LoanUnitList",
|
||||||
icon: "fa-plug",
|
icon: "$ayiPlug",
|
||||||
route: "/svc-loaners",
|
route: "/svc-loaners",
|
||||||
key: key++
|
key: key++
|
||||||
});
|
});
|
||||||
@@ -444,7 +444,7 @@ function initNavPanel() {
|
|||||||
) {
|
) {
|
||||||
sub.push({
|
sub.push({
|
||||||
title: "ContractList",
|
title: "ContractList",
|
||||||
icon: "fa-file-contract",
|
icon: "$ayiFileContract",
|
||||||
route: "/svc-contracts",
|
route: "/svc-contracts",
|
||||||
key: key++
|
key: key++
|
||||||
});
|
});
|
||||||
@@ -470,7 +470,7 @@ function initNavPanel() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//**** Service (TOP GROUP)
|
//**** Service (TOP GROUP)
|
||||||
addNavItem("Service", "fa-toolbox", undefined, sub, key++, "service");
|
addNavItem("Service", "$ayiToolbox", undefined, sub, key++, "service");
|
||||||
}
|
}
|
||||||
|
|
||||||
//****************** INVENTORY
|
//****************** INVENTORY
|
||||||
@@ -611,7 +611,7 @@ function initNavPanel() {
|
|||||||
// USERS
|
// USERS
|
||||||
sub.push({
|
sub.push({
|
||||||
title: "UserList",
|
title: "UserList",
|
||||||
icon: "fa-users",
|
icon: "$ayiUsers",
|
||||||
route: "/adm-users",
|
route: "/adm-users",
|
||||||
key: key++
|
key: key++
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<template v-slot:activator="{ on }">
|
<template v-slot:activator="{ on }">
|
||||||
<v-text-field
|
<v-text-field
|
||||||
v-on="on"
|
v-on="on"
|
||||||
prepend-icon="fa-calendar-alt"
|
prepend-icon="$ayiCalendarAlt"
|
||||||
@click:prepend="dlgdate = true"
|
@click:prepend="dlgdate = true"
|
||||||
v-model="formatDate"
|
v-model="formatDate"
|
||||||
v-bind:label="label"
|
v-bind:label="label"
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
v-if="readonly"
|
v-if="readonly"
|
||||||
v-model="formatDateTime"
|
v-model="formatDateTime"
|
||||||
v-bind:label="label"
|
v-bind:label="label"
|
||||||
prepend-icon="fa-calendar-alt"
|
prepend-icon="$ayiCalendarAlt"
|
||||||
disabled
|
disabled
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
<p v-show="error" class="form__error v-messages theme--light error--text">
|
<p v-show="error" class="form__error v-messages theme--light error--text">
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<template v-slot:activator="{ on }">
|
<template v-slot:activator="{ on }">
|
||||||
<v-text-field
|
<v-text-field
|
||||||
v-on="on"
|
v-on="on"
|
||||||
prepend-icon="fa-calendar-alt"
|
prepend-icon="$ayiCalendarAlt"
|
||||||
@click:prepend="dlgdate = true"
|
@click:prepend="dlgdate = true"
|
||||||
v-model="formatDate"
|
v-model="formatDate"
|
||||||
v-bind:label="label"
|
v-bind:label="label"
|
||||||
@@ -72,7 +72,7 @@
|
|||||||
v-if="readonly"
|
v-if="readonly"
|
||||||
v-model="formatDateTime"
|
v-model="formatDateTime"
|
||||||
v-bind:label="label"
|
v-bind:label="label"
|
||||||
prepend-icon="fa-calendar-alt"
|
prepend-icon="$ayiCalendarAlt"
|
||||||
disabled
|
disabled
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
<p v-show="error" class="form__error v-messages theme--light error--text">
|
<p v-show="error" class="form__error v-messages theme--light error--text">
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
v-if="readonly"
|
v-if="readonly"
|
||||||
v-model="formatDateTime"
|
v-model="formatDateTime"
|
||||||
v-bind:label="label"
|
v-bind:label="label"
|
||||||
prepend-icon="fa-calendar-alt"
|
prepend-icon="$ayiCalendarAlt"
|
||||||
disabled
|
disabled
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
<p v-show="error" class="form__error v-messages theme--light error--text">
|
<p v-show="error" class="form__error v-messages theme--light error--text">
|
||||||
|
|||||||
@@ -12,23 +12,31 @@ import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
|
|||||||
|
|
||||||
Vue.component("font-awesome-icon", FontAwesomeIcon); // Register component globally
|
Vue.component("font-awesome-icon", FontAwesomeIcon); // Register component globally
|
||||||
import {
|
import {
|
||||||
|
faAddressBook,
|
||||||
faAddressCard,
|
faAddressCard,
|
||||||
faBars,
|
faBars,
|
||||||
faBell,
|
faBell,
|
||||||
faBullhorn,
|
faBullhorn,
|
||||||
|
faBusinessTime,
|
||||||
|
faCalendarAlt,
|
||||||
faCalendarCheck,
|
faCalendarCheck,
|
||||||
faCalendarDay,
|
faCalendarDay,
|
||||||
faCaretDown,
|
faCaretDown,
|
||||||
faChevronDown,
|
faChevronDown,
|
||||||
faChild,
|
faChild,
|
||||||
|
faDiceD20,
|
||||||
faEllipsisV,
|
faEllipsisV,
|
||||||
faEye,
|
faEye,
|
||||||
faEyeSlash,
|
faEyeSlash,
|
||||||
|
faFan,
|
||||||
|
faFileContract,
|
||||||
faHistory,
|
faHistory,
|
||||||
faHome,
|
faHome,
|
||||||
faInbox,
|
faInbox,
|
||||||
faInfoCircle,
|
faInfoCircle,
|
||||||
faKey,
|
faKey,
|
||||||
|
faPencilAlt,
|
||||||
|
faPlug,
|
||||||
faQuestionCircle,
|
faQuestionCircle,
|
||||||
faSearch,
|
faSearch,
|
||||||
faSignInAlt,
|
faSignInAlt,
|
||||||
@@ -38,31 +46,41 @@ import {
|
|||||||
faStickyNote,
|
faStickyNote,
|
||||||
faTachometerAlt,
|
faTachometerAlt,
|
||||||
faTicketAlt,
|
faTicketAlt,
|
||||||
|
faToolbox,
|
||||||
faTools,
|
faTools,
|
||||||
faUser,
|
faUser,
|
||||||
faUserCog
|
faUserCog,
|
||||||
|
faUsers
|
||||||
} from "@fortawesome/free-solid-svg-icons";
|
} from "@fortawesome/free-solid-svg-icons";
|
||||||
//import { faUserCircle as farUserCircle } from "@fortawesome/free-regular-svg-icons";
|
//import { faUserCircle as farUserCircle } from "@fortawesome/free-regular-svg-icons";
|
||||||
Vue.component("font-awesome-icon", FontAwesomeIcon);
|
Vue.component("font-awesome-icon", FontAwesomeIcon);
|
||||||
|
|
||||||
library.add(
|
library.add(
|
||||||
|
faAddressBook,
|
||||||
faAddressCard,
|
faAddressCard,
|
||||||
faBars,
|
faBars,
|
||||||
faBell,
|
faBell,
|
||||||
faBullhorn,
|
faBullhorn,
|
||||||
|
faBusinessTime,
|
||||||
|
faCalendarAlt,
|
||||||
faCalendarCheck,
|
faCalendarCheck,
|
||||||
faCalendarDay,
|
faCalendarDay,
|
||||||
faCaretDown,
|
faCaretDown,
|
||||||
faChevronDown,
|
faChevronDown,
|
||||||
faChild,
|
faChild,
|
||||||
|
faDiceD20,
|
||||||
faEllipsisV,
|
faEllipsisV,
|
||||||
faEye,
|
faEye,
|
||||||
faEyeSlash,
|
faEyeSlash,
|
||||||
|
faFan,
|
||||||
|
faFileContract,
|
||||||
faHistory,
|
faHistory,
|
||||||
faHome,
|
faHome,
|
||||||
faInbox,
|
faInbox,
|
||||||
faInfoCircle,
|
faInfoCircle,
|
||||||
faKey,
|
faKey,
|
||||||
|
faPencilAlt,
|
||||||
|
faPlug,
|
||||||
faQuestionCircle,
|
faQuestionCircle,
|
||||||
faSearch,
|
faSearch,
|
||||||
faSignInAlt,
|
faSignInAlt,
|
||||||
@@ -72,12 +90,20 @@ library.add(
|
|||||||
faStickyNote,
|
faStickyNote,
|
||||||
faTachometerAlt,
|
faTachometerAlt,
|
||||||
faTicketAlt,
|
faTicketAlt,
|
||||||
|
faToolbox,
|
||||||
faTools,
|
faTools,
|
||||||
faUser,
|
faUser,
|
||||||
faUserCog
|
faUserCog,
|
||||||
|
faUsers
|
||||||
);
|
);
|
||||||
|
|
||||||
const CUSTOM_ICONS = {
|
const CUSTOM_ICONS = {
|
||||||
|
ayiAddressBook: {
|
||||||
|
component: FontAwesomeIcon,
|
||||||
|
props: {
|
||||||
|
icon: ["fas", "address-book"]
|
||||||
|
}
|
||||||
|
},
|
||||||
ayiAddressCard: {
|
ayiAddressCard: {
|
||||||
component: FontAwesomeIcon,
|
component: FontAwesomeIcon,
|
||||||
props: {
|
props: {
|
||||||
@@ -96,6 +122,18 @@ const CUSTOM_ICONS = {
|
|||||||
icon: ["fas", "bullhorn"]
|
icon: ["fas", "bullhorn"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
ayiBusinessTime: {
|
||||||
|
component: FontAwesomeIcon,
|
||||||
|
props: {
|
||||||
|
icon: ["fas", "business-time"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
ayiCalendarAlt: {
|
||||||
|
component: FontAwesomeIcon,
|
||||||
|
props: {
|
||||||
|
icon: ["fas", "calendar-alt"]
|
||||||
|
}
|
||||||
|
},
|
||||||
ayiCalendarCheck: {
|
ayiCalendarCheck: {
|
||||||
component: FontAwesomeIcon,
|
component: FontAwesomeIcon,
|
||||||
props: {
|
props: {
|
||||||
@@ -120,6 +158,12 @@ const CUSTOM_ICONS = {
|
|||||||
icon: ["fas", "sliders-h"]
|
icon: ["fas", "sliders-h"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
ayiDiceD20: {
|
||||||
|
component: FontAwesomeIcon,
|
||||||
|
props: {
|
||||||
|
icon: ["fas", "dice-d20"]
|
||||||
|
}
|
||||||
|
},
|
||||||
ayiEye: {
|
ayiEye: {
|
||||||
component: FontAwesomeIcon,
|
component: FontAwesomeIcon,
|
||||||
props: {
|
props: {
|
||||||
@@ -138,6 +182,18 @@ const CUSTOM_ICONS = {
|
|||||||
icon: ["fas", "ellipsis-v"]
|
icon: ["fas", "ellipsis-v"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
ayiFan: {
|
||||||
|
component: FontAwesomeIcon,
|
||||||
|
props: {
|
||||||
|
icon: ["fas", "fan"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
ayiFileContract: {
|
||||||
|
component: FontAwesomeIcon,
|
||||||
|
props: {
|
||||||
|
icon: ["fas", "file-contract"]
|
||||||
|
}
|
||||||
|
},
|
||||||
ayiHistory: {
|
ayiHistory: {
|
||||||
component: FontAwesomeIcon,
|
component: FontAwesomeIcon,
|
||||||
props: {
|
props: {
|
||||||
@@ -168,6 +224,18 @@ const CUSTOM_ICONS = {
|
|||||||
icon: ["fas", "key"]
|
icon: ["fas", "key"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
ayiPencilAlt: {
|
||||||
|
component: FontAwesomeIcon,
|
||||||
|
props: {
|
||||||
|
icon: ["fas", "pencil-alt"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
ayiPlug: {
|
||||||
|
component: FontAwesomeIcon,
|
||||||
|
props: {
|
||||||
|
icon: ["fas", "plug"]
|
||||||
|
}
|
||||||
|
},
|
||||||
ayiQuestionCircle: {
|
ayiQuestionCircle: {
|
||||||
component: FontAwesomeIcon,
|
component: FontAwesomeIcon,
|
||||||
props: {
|
props: {
|
||||||
@@ -216,6 +284,12 @@ const CUSTOM_ICONS = {
|
|||||||
icon: ["fas", "ticket-alt"]
|
icon: ["fas", "ticket-alt"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
ayiToolbox: {
|
||||||
|
component: FontAwesomeIcon,
|
||||||
|
props: {
|
||||||
|
icon: ["fas", "toolbox"]
|
||||||
|
}
|
||||||
|
},
|
||||||
ayiTools: {
|
ayiTools: {
|
||||||
component: FontAwesomeIcon,
|
component: FontAwesomeIcon,
|
||||||
props: {
|
props: {
|
||||||
@@ -234,6 +308,12 @@ const CUSTOM_ICONS = {
|
|||||||
icon: ["fas", "user-cog"]
|
icon: ["fas", "user-cog"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
ayiUsers: {
|
||||||
|
component: FontAwesomeIcon,
|
||||||
|
props: {
|
||||||
|
icon: ["fas", "users"]
|
||||||
|
}
|
||||||
|
},
|
||||||
//VUETIFY REQUIRED ONES
|
//VUETIFY REQUIRED ONES
|
||||||
//https://vuetifyjs.com/en/features/icons/#using-custom-icons
|
//https://vuetifyjs.com/en/features/icons/#using-custom-icons
|
||||||
dropdown: {
|
dropdown: {
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ async function clickHandler(menuItem) {
|
|||||||
function generateMenu(vm) {
|
function generateMenu(vm) {
|
||||||
let menuOptions = {
|
let menuOptions = {
|
||||||
isMain: true,
|
isMain: true,
|
||||||
icon: "fa-users",
|
icon: "$ayiUsers",
|
||||||
title: "UserList",
|
title: "UserList",
|
||||||
helpUrl: "form-adm-users",
|
helpUrl: "form-adm-users",
|
||||||
menuItems: [],
|
menuItems: [],
|
||||||
|
|||||||
@@ -197,7 +197,7 @@ async function clickHandler(menuItem) {
|
|||||||
function generateMenu(vm) {
|
function generateMenu(vm) {
|
||||||
let menuOptions = {
|
let menuOptions = {
|
||||||
isMain: true,
|
isMain: true,
|
||||||
icon: "fa-users",
|
icon: "$ayiUsers",
|
||||||
title: "UserList",
|
title: "UserList",
|
||||||
helpUrl: "form-cust-users",
|
helpUrl: "form-cust-users",
|
||||||
menuItems: []
|
menuItems: []
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export default {
|
|||||||
beforeCreate() {
|
beforeCreate() {
|
||||||
window.$gz.eventBus.$emit("menu-change", {
|
window.$gz.eventBus.$emit("menu-change", {
|
||||||
isMain: true,
|
isMain: true,
|
||||||
icon: "fa-file-contract",
|
icon: "$ayiFileContract",
|
||||||
title: "ContractList",
|
title: "ContractList",
|
||||||
helpUrl: "form-svc-contracts"
|
helpUrl: "form-svc-contracts"
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export default {
|
|||||||
beforeCreate() {
|
beforeCreate() {
|
||||||
window.$gz.eventBus.$emit("menu-change", {
|
window.$gz.eventBus.$emit("menu-change", {
|
||||||
isMain: true,
|
isMain: true,
|
||||||
icon: "fa-plug",
|
icon: "$ayiPlug",
|
||||||
title: "LoanUnitList",
|
title: "LoanUnitList",
|
||||||
helpUrl: "form-svc-loaners"
|
helpUrl: "form-svc-loaners"
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export default {
|
|||||||
beforeCreate() {
|
beforeCreate() {
|
||||||
window.$gz.eventBus.$emit("menu-change", {
|
window.$gz.eventBus.$emit("menu-change", {
|
||||||
isMain: true,
|
isMain: true,
|
||||||
icon: "fa-business-time",
|
icon: "$ayiBusinessTime",
|
||||||
title: "PMList",
|
title: "PMList",
|
||||||
helpUrl: "form-svc-pm-list"
|
helpUrl: "form-svc-pm-list"
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export default {
|
|||||||
beforeCreate() {
|
beforeCreate() {
|
||||||
window.$gz.eventBus.$emit("menu-change", {
|
window.$gz.eventBus.$emit("menu-change", {
|
||||||
isMain: true,
|
isMain: true,
|
||||||
icon: "fa-pencil-alt",
|
icon: "$ayiPencilAlt",
|
||||||
title: "QuoteList",
|
title: "QuoteList",
|
||||||
helpUrl: "form-svc-quotes"
|
helpUrl: "form-svc-quotes"
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export default {
|
|||||||
beforeCreate() {
|
beforeCreate() {
|
||||||
window.$gz.eventBus.$emit("menu-change", {
|
window.$gz.eventBus.$emit("menu-change", {
|
||||||
isMain: true,
|
isMain: true,
|
||||||
icon: "fa-calendar-alt",
|
icon: "$ayiCalendarAlt",
|
||||||
title: "Schedule",
|
title: "Schedule",
|
||||||
helpUrl: "form-svc-schedule"
|
helpUrl: "form-svc-schedule"
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export default {
|
|||||||
beforeCreate() {
|
beforeCreate() {
|
||||||
window.$gz.eventBus.$emit("menu-change", {
|
window.$gz.eventBus.$emit("menu-change", {
|
||||||
isMain: true,
|
isMain: true,
|
||||||
icon: "fa-dice-d20",
|
icon: "$ayiDiceD20",
|
||||||
title: "UnitModels",
|
title: "UnitModels",
|
||||||
helpUrl: "form-svc-unit-models"
|
helpUrl: "form-svc-unit-models"
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export default {
|
|||||||
beforeCreate() {
|
beforeCreate() {
|
||||||
window.$gz.eventBus.$emit("menu-change", {
|
window.$gz.eventBus.$emit("menu-change", {
|
||||||
isMain: true,
|
isMain: true,
|
||||||
icon: "fa-fan",
|
icon: "$ayiFan",
|
||||||
title: "UnitList",
|
title: "UnitList",
|
||||||
helpUrl: "form-svc-units"
|
helpUrl: "form-svc-units"
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user