From 15c5dd1a563516381cb5c8cefd6f6f7cad3a4651 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Sat, 9 May 2020 00:29:55 +0000 Subject: [PATCH] ltkey stuff --- ayanova/devdocs/todo.txt | 8 +++++++- ayanova/src/api/initialize.js | 12 ++++++------ ayanova/src/api/translation.js | 18 +++++++++--------- ayanova/src/views/cust-customers.vue | 2 +- ayanova/src/views/customer-csr-list.vue | 2 +- ayanova/src/views/customer-workorders.vue | 2 +- ayanova/src/views/inv-part-requests.vue | 2 +- ayanova/src/views/svc-csr-list.vue | 2 +- ayanova/src/views/svc-pm-list.vue | 2 +- ayanova/src/views/svc-pm-templates.vue | 2 +- ayanova/src/views/svc-quote-templates.vue | 2 +- ayanova/src/views/svc-quotes.vue | 2 +- ayanova/src/views/svc-workorder-templates.vue | 2 +- ayanova/src/views/svc-workorders.vue | 2 +- 14 files changed, 33 insertions(+), 27 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 96d31e42..f32a6b64 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -93,7 +93,13 @@ todo: dl token and multiple logins User login again fetch session data after login - route sees valid dltoken still and just returns it - +b4 removal of dltoken: +eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOiIxNTg4OTgwMDA3IiwiZXhwIjoiMTU4OTU4NDgwNyIsImlzcyI6ImF5YW5vdmEuY29tIiwiaWQiOiIxIiwibmFtZSI6IkF5YU5vdmEgQWRtaW5pc3RyYXRvciIsInVzZXJ0eXBlIjoxLCJheWFub3ZhL3JvbGVzIjoiMTMxMDcxIiwiZGx0IjoiYk1rMjluUVJranBIRkYwdjlYZHBNRlpUL0IyS3ZaVG1PTGhYZEp2dDVEYyJ9.GVKxfOcjk8bLtO3SFRio6epyLYwIYHEyCLCh4DC-bF8" +eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOiIxNTg4OTgwMDg0IiwiZXhwIjoiMTU4OTU4NDg4NCIsImlzcyI6ImF5YW5vdmEuY29tIiwiaWQiOiIxIiwibmFtZSI6IkF5YU5vdmEgQWRtaW5pc3RyYXRvciIsInVzZXJ0eXBlIjoxLCJheWFub3ZhL3JvbGVzIjoiMTMxMDcxIiwiZGx0IjoiWS9NTHBsS1pXamxEdHhPS0RuVzhsZTVXUkwxTEhtdVRVSHVycHBJeFEifQ.JAaTDJeDDajk7ljzfarWxG2luO3y4A67zIFqQw2CHAQ +after: +eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOiIxNTg4OTgzNDY5IiwiZXhwIjoiMTU4OTU4ODI2OSIsImlzcyI6ImF5YW5vdmEuY29tIiwiaWQiOiIxIn0.IWXZSGSJBGXS6AFQYF6ueA9xDFbcqpv3TVgA5fWQxMk +Final: +eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOiIxNTg5NTg4NzAzIiwiaXNzIjoiYXlhbm92YS5jb20iLCJpZCI6IjEifQ.A9sq8RahA96L31sbOy5OTNLRVdXg-BHBKlVlyGRkQIE todo: JWT tokens, revoking expiring etc, look at this: https://github.com/ptboyer/restful-api-design-tips#authentication todo: PLANNING session tracking to prevent logging in from multiple devices with same account diff --git a/ayanova/src/api/initialize.js b/ayanova/src/api/initialize.js index fc4ea37a..a2cc3340 100644 --- a/ayanova/src/api/initialize.js +++ b/ayanova/src/api/initialize.js @@ -251,7 +251,7 @@ export default function initialize() { ]) ) { sub.push({ - title: t("WorkorderServiceList"), + title: t("WorkOrderServiceList"), icon: "fa-tools", route: "/svc-workorders", key: key++ @@ -262,7 +262,7 @@ export default function initialize() { //this will be an item inside the workorders NEW menu or grid or wherever but it's not top level worthy //there used to be an array for 3rd level shit but that's whack yo! ;) // subSub.push({ - // title: t("WorkorderServiceTemplate"), + // title: t("WorkOrderServiceTemplate"), // icon: "fa-stamp", // route: "/svc-workorder-templates", // key: key++ @@ -272,7 +272,7 @@ export default function initialize() { //NOTE: this is the only item in this service level area that is visible to Sales //so there is no separate role check here as the service group role check supersedes this sub.push({ - title: t("WorkorderQuoteList"), + title: t("WorkOrderQuoteList"), icon: "fa-pencil-alt", route: "/svc-quotes", key: key++ @@ -290,7 +290,7 @@ export default function initialize() { ]) ) { sub.push({ - title: t("WorkorderPreventiveMaintenanceList"), + title: t("WorkOrderPreventiveMaintenanceList"), icon: "fa-business-time", route: "/svc-pm-list", key: key++ @@ -421,7 +421,7 @@ export default function initialize() { //PART REQUESTS sub.push({ - title: t("WorkorderItemPartRequestList"), + title: t("WorkOrderItemPartRequestList"), icon: "fa-paper-plane", route: "/inv-part-requests", key: key++ @@ -720,7 +720,7 @@ export default function initialize() { //WORKORDERS subitem sub.push({ - title: t("WorkorderServiceList"), + title: t("WorkOrderServiceList"), icon: "fa-tools", route: "/customer-workorders", key: key++ diff --git a/ayanova/src/api/translation.js b/ayanova/src/api/translation.js index 4c579421..c7c65c95 100644 --- a/ayanova/src/api/translation.js +++ b/ayanova/src/api/translation.js @@ -62,22 +62,22 @@ export default { "NotifySubscriptionList", "UserPreferences", "Service", - "ClientList", + "CustomerList", "HeadOfficeList", - "WorkorderServiceList", - "WorkorderServiceTemplate", - "WorkorderQuoteList", - "WorkorderQuoteTemplate", - "WorkorderPreventiveMaintenanceList", - "WorkorderPreventiveMaintenanceTemplate", + "WorkOrderServiceList", + "WorkOrderServiceTemplate", + "WorkOrderQuoteList", + "WorkOrderQuoteTemplate", + "WorkOrderPreventiveMaintenanceList", + "WorkOrderPreventiveMaintenanceTemplate", "UnitList", "UnitModels", "ContractList", - "ClientServiceRequestList", + "CUstomerServiceRequestList", "LoanItemList", "PartList", "PartByWarehouseInventoryList", - "WorkorderItemPartRequestList", + "WorkOrderItemPartRequestList", "InventoryPurchaseOrders", "InventoryPurchaseOrderReceipts", "InventoryPartInventoryAdjustments", diff --git a/ayanova/src/views/cust-customers.vue b/ayanova/src/views/cust-customers.vue index fcb33c8d..69c578dd 100644 --- a/ayanova/src/views/cust-customers.vue +++ b/ayanova/src/views/cust-customers.vue @@ -13,7 +13,7 @@ export default { window.$gz.eventBus.$emit("menu-change", { isMain: true, icon: "fa-address-card", - title: this.$ay.t("ClientList"), + title: this.$ay.t("CustomerList"), helpUrl: "form-cust-customers" }); } diff --git a/ayanova/src/views/customer-csr-list.vue b/ayanova/src/views/customer-csr-list.vue index 2e477564..686bd8cb 100644 --- a/ayanova/src/views/customer-csr-list.vue +++ b/ayanova/src/views/customer-csr-list.vue @@ -13,7 +13,7 @@ export default { window.$gz.eventBus.$emit("menu-change", { isMain: true, icon: "fa-child", - title: this.$ay.t("ClientServiceRequestList"), + title: this.$ay.t("CustomerServiceRequestList"), helpUrl: "form-customer-csr-list" }); } diff --git a/ayanova/src/views/customer-workorders.vue b/ayanova/src/views/customer-workorders.vue index fa80716c..403d4c10 100644 --- a/ayanova/src/views/customer-workorders.vue +++ b/ayanova/src/views/customer-workorders.vue @@ -13,7 +13,7 @@ export default { window.$gz.eventBus.$emit("menu-change", { isMain: true, icon: "fa-tools", - title: this.$ay.t("WorkorderServiceList"), + title: this.$ay.t("WorkOrderServiceList"), helpUrl: "form-customer-workorders" }); } diff --git a/ayanova/src/views/inv-part-requests.vue b/ayanova/src/views/inv-part-requests.vue index 609756d4..d5299f73 100644 --- a/ayanova/src/views/inv-part-requests.vue +++ b/ayanova/src/views/inv-part-requests.vue @@ -13,7 +13,7 @@ export default { window.$gz.eventBus.$emit("menu-change", { isMain: true, icon: "fa-paper-plane", - title: this.$ay.t("WorkorderItemPartRequestList"), + title: this.$ay.t("WorkOrderItemPartRequestList"), helpUrl: "form-inv-part-requests" }); } diff --git a/ayanova/src/views/svc-csr-list.vue b/ayanova/src/views/svc-csr-list.vue index db810f95..be30d5c3 100644 --- a/ayanova/src/views/svc-csr-list.vue +++ b/ayanova/src/views/svc-csr-list.vue @@ -13,7 +13,7 @@ export default { window.$gz.eventBus.$emit("menu-change", { isMain: true, icon: "fa-child", - title: this.$ay.t("ClientServiceRequestList"), + title: this.$ay.t("CustomerServiceRequestList"), helpUrl: "form-svc-csr-list" }); } diff --git a/ayanova/src/views/svc-pm-list.vue b/ayanova/src/views/svc-pm-list.vue index 79e19688..216a7be9 100644 --- a/ayanova/src/views/svc-pm-list.vue +++ b/ayanova/src/views/svc-pm-list.vue @@ -13,7 +13,7 @@ export default { window.$gz.eventBus.$emit("menu-change", { isMain: true, icon: "fa-business-time", - title: this.$ay.t("WorkorderPreventiveMaintenanceList"), + title: this.$ay.t("WorkOrderPreventiveMaintenanceList"), helpUrl: "form-svc-pm-list" }); } diff --git a/ayanova/src/views/svc-pm-templates.vue b/ayanova/src/views/svc-pm-templates.vue index 27d4f3d3..a795bb47 100644 --- a/ayanova/src/views/svc-pm-templates.vue +++ b/ayanova/src/views/svc-pm-templates.vue @@ -13,7 +13,7 @@ export default { window.$gz.eventBus.$emit("menu-change", { isMain: true, icon: "fa-stamp", - title: this.$ay.t("WorkorderPreventiveMaintenanceTemplate"), + title: this.$ay.t("WorkOrderPreventiveMaintenanceTemplate"), helpUrl: "form-svc-pm-templates" }); } diff --git a/ayanova/src/views/svc-quote-templates.vue b/ayanova/src/views/svc-quote-templates.vue index b81ad927..a357b187 100644 --- a/ayanova/src/views/svc-quote-templates.vue +++ b/ayanova/src/views/svc-quote-templates.vue @@ -13,7 +13,7 @@ export default { window.$gz.eventBus.$emit("menu-change", { isMain: true, icon: "fa-stamp", - title: this.$ay.t("WorkorderQuoteTemplate"), + title: this.$ay.t("WorkOrderQuoteTemplate"), helpUrl: "form-svc-quote-templates" }); } diff --git a/ayanova/src/views/svc-quotes.vue b/ayanova/src/views/svc-quotes.vue index d2cecbc0..af40f448 100644 --- a/ayanova/src/views/svc-quotes.vue +++ b/ayanova/src/views/svc-quotes.vue @@ -13,7 +13,7 @@ export default { window.$gz.eventBus.$emit("menu-change", { isMain: true, icon: "fa-pencil-alt", - title: this.$ay.t("WorkorderQuoteList"), + title: this.$ay.t("WorkOrderQuoteList"), helpUrl: "form-svc-quotes" }); } diff --git a/ayanova/src/views/svc-workorder-templates.vue b/ayanova/src/views/svc-workorder-templates.vue index 5c70a372..82da4f95 100644 --- a/ayanova/src/views/svc-workorder-templates.vue +++ b/ayanova/src/views/svc-workorder-templates.vue @@ -13,7 +13,7 @@ export default { window.$gz.eventBus.$emit("menu-change", { isMain: true, icon: "fa-stamp", - title: this.$ay.t("WorkorderServiceTemplate"), + title: this.$ay.t("WorkOrderServiceTemplate"), helpUrl: "form-svc-workorder-templates" }); } diff --git a/ayanova/src/views/svc-workorders.vue b/ayanova/src/views/svc-workorders.vue index b42f77ba..5dfe9971 100644 --- a/ayanova/src/views/svc-workorders.vue +++ b/ayanova/src/views/svc-workorders.vue @@ -13,7 +13,7 @@ export default { window.$gz.eventBus.$emit("menu-change", { isMain: true, icon: "fa-tools", - title: this.$ay.t("WorkorderServiceList"), + title: this.$ay.t("WorkOrderServiceList"), helpUrl: "form-svc-workorders" }); }