diff --git a/client/src/api/gzutil.js b/client/src/api/gzutil.js index adc7064..182a219 100644 --- a/client/src/api/gzutil.js +++ b/client/src/api/gzutil.js @@ -445,6 +445,19 @@ export default { case window.$gz.type.Review: return "$sockiCalendarCheck"; + case window.$gz.type.License: + return "$sockiGem"; + case window.$gz.type.TrialLicenseRequest: + return "$sockiHandHoldingWater"; + case window.$gz.type.SubscriptionServer: + return "$sockiCloud"; + case window.$gz.type.Purchase: + return "$sockiShoppingCart"; + case window.$gz.type.Product: + return "$sockiBarCode"; + case window.$gz.type.GZCase: + return "$sockiCoffee"; + //scroll icon is good one for something default: return null; diff --git a/client/src/api/initialize.js b/client/src/api/initialize.js index 132387e..129e741 100644 --- a/client/src/api/initialize.js +++ b/client/src/api/initialize.js @@ -211,28 +211,72 @@ ServiceContractor = 5 */ ); } - //####### SHARED GROUP + //////////////////////////////////////////////////////// + // LICENSE, PRODUCT, PURCHASE GROUP + // sub = []; - //SCHEDULE (shared) - sub.push({ - title: "Schedule", - icon: "$sockiCalendarAlt", - route: "/svc-schedule", + title: "LicenseList", + icon: "$sockiTicket", + route: "/license-list", + key: key++ + }); + + sub.push({ + title: "TrialLicenseRequestList", + icon: "$sockiTicket", + route: "/license-trial-request-list", + key: key++ + }); + + sub.push({ + title: "PurchaseList", + icon: "$sockiTicket", + route: "/license-purchase-list", + key: key++ + }); + + sub.push({ + title: "ProductList", + icon: "$sockiTicket", + route: "/license-product-list", key: key++ }); - //**** SHARED (TOP GROUP) if ( sub.length > 0 && !window.$gz.role.hasRole([ window.$gz.role.AUTHORIZATION_ROLES.TechRestricted ]) ) { - addNavItem("Service", "$sockiToolbox", undefined, sub, key++, "service"); + addNavItem("License", "$sockiTicket", undefined, sub, key++, "license"); } + //////////////////////////////////////////////////// + + // //####### SERVICE GROUP + + // sub = []; + + // //SCHEDULE (shared) + + // sub.push({ + // title: "Schedule", + // icon: "$sockiCalendarAlt", + // route: "/svc-schedule", + // key: key++ + // }); + + // //**** SHARED (TOP GROUP) + // if ( + // sub.length > 0 && + // !window.$gz.role.hasRole([ + // window.$gz.role.AUTHORIZATION_ROLES.TechRestricted + // ]) + // ) { + // addNavItem("Service", "$sockiToolbox", undefined, sub, key++, "service"); + // } //****************** ACCOUNTING diff --git a/client/src/api/socktype.js b/client/src/api/socktype.js index ce31f1f..1eeabaa 100644 --- a/client/src/api/socktype.js +++ b/client/src/api/socktype.js @@ -30,12 +30,12 @@ export default { DataListColumnView: 68, CustomerNotifySubscription: 84, //proxy subs for customers Integration: 92, //3rd party or add-on integration data store, - - License: 93, - TrialLicenseRequest: 94, - SubscriptionServer: 95, - Purchase: 96, - Product: 97, + + License: 93, + TrialLicenseRequest: 94, + SubscriptionServer: 95, + Purchase: 96, + Product: 97, GZCase: 98 }; /** diff --git a/client/src/api/translation.js b/client/src/api/translation.js index 25f86e7..945ba77 100644 --- a/client/src/api/translation.js +++ b/client/src/api/translation.js @@ -253,7 +253,14 @@ export default { "ReportRenderTimeOut", "RenderingReport", "Settings", - "IntegrationList" + "IntegrationList", + "LicenseList", + "License", + "TrialLicenseRequestList", + "SubscriptionServerList", + "ProductList", + "PurchaseList", + "GZCaseList" ], //////////////////////////////////////////////////////// diff --git a/client/src/plugins/vuetify.js b/client/src/plugins/vuetify.js index 3df886b..5312f43 100644 --- a/client/src/plugins/vuetify.js +++ b/client/src/plugins/vuetify.js @@ -54,6 +54,7 @@ import { faArrowsAltV, faAt, faBackward, + faBarcode, faBars, faBell, faBinoculars, @@ -82,7 +83,9 @@ import { faClipboardList, faClock, faClone, + faCloud, faCode, + faCoffee, faCog, faCogs, faCoins, @@ -132,10 +135,12 @@ import { faFlag, faFolder, faForward, + faGem, faGenderless, faGlasses, faGlobe, faHammer, + faHandHoldingWater, faHeading, faHistory, faHome, @@ -187,6 +192,7 @@ import { faServer, faShare, faShippingFast, + faShoppingCart, faSignInAlt, faSignOutAlt, faSitemap, @@ -240,6 +246,7 @@ library.add( faArrowsAltV, faAt, faBackward, + faBarcode, faBars, faBell, faBinoculars, @@ -269,7 +276,9 @@ library.add( farCircle, faClock, faClone, + faCloud, faCode, + faCoffee, faCog, faCogs, faCoins, @@ -320,10 +329,12 @@ library.add( faFlag, faFolder, faForward, + faGem, faGenderless, faGlasses, faGlobe, faHammer, + faHandHoldingWater, faHeading, faHistory, faHome, @@ -375,6 +386,7 @@ library.add( faServer, faShare, faShippingFast, + faShoppingCart, faSignInAlt, faSignOutAlt, faSitemap, @@ -457,6 +469,12 @@ const CUSTOM_ICONS = { icon: ["fas", "backward"] } }, + sockiBarCode: { + component: FontAwesomeIcon, + props: { + icon: ["fas", "barcode"] + } + }, sockiBell: { component: FontAwesomeIcon, props: { @@ -595,12 +613,24 @@ const CUSTOM_ICONS = { icon: ["fas", "clone"] } }, + sockiCloud: { + component: FontAwesomeIcon, + props: { + icon: ["fas", "cloud"] + } + }, sockiCode: { component: FontAwesomeIcon, props: { icon: ["fas", "code"] } }, + sockiCoffee: { + component: FontAwesomeIcon, + props: { + icon: ["fas", "coffee"] + } + }, sockiCog: { component: FontAwesomeIcon, props: { @@ -895,6 +925,12 @@ const CUSTOM_ICONS = { icon: ["fas", "forward"] } }, + sockiGem: { + component: FontAwesomeIcon, + props: { + icon: ["fas", "gem"] + } + }, sockiGenderless: { component: FontAwesomeIcon, props: { @@ -919,6 +955,12 @@ const CUSTOM_ICONS = { icon: ["fas", "hammer"] } }, + sockiHandHoldingWater: { + component: FontAwesomeIcon, + props: { + icon: ["fas", "hand-holding-water"] + } + }, sockiHeading: { component: FontAwesomeIcon, props: { @@ -1219,6 +1261,12 @@ const CUSTOM_ICONS = { icon: ["fas", "shipping-fast"] } }, + sockiShoppingCart: { + component: FontAwesomeIcon, + props: { + icon: ["fas", "shopping-cart"] + } + }, sockiSignIn: { component: FontAwesomeIcon, props: {