ltkey stuff

This commit is contained in:
2020-05-09 00:29:55 +00:00
parent 563d62790d
commit 15c5dd1a56
14 changed files with 33 additions and 27 deletions

View File

@@ -93,7 +93,13 @@ todo: dl token and multiple logins
User login again User login again
fetch session data after login fetch session data after login
- route sees valid dltoken still and just returns it - 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: 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 todo: PLANNING session tracking to prevent logging in from multiple devices with same account

View File

@@ -251,7 +251,7 @@ export default function initialize() {
]) ])
) { ) {
sub.push({ sub.push({
title: t("WorkorderServiceList"), title: t("WorkOrderServiceList"),
icon: "fa-tools", icon: "fa-tools",
route: "/svc-workorders", route: "/svc-workorders",
key: key++ 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 //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! ;) //there used to be an array for 3rd level shit but that's whack yo! ;)
// subSub.push({ // subSub.push({
// title: t("WorkorderServiceTemplate"), // title: t("WorkOrderServiceTemplate"),
// icon: "fa-stamp", // icon: "fa-stamp",
// route: "/svc-workorder-templates", // route: "/svc-workorder-templates",
// key: key++ // 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 //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 //so there is no separate role check here as the service group role check supersedes this
sub.push({ sub.push({
title: t("WorkorderQuoteList"), title: t("WorkOrderQuoteList"),
icon: "fa-pencil-alt", icon: "fa-pencil-alt",
route: "/svc-quotes", route: "/svc-quotes",
key: key++ key: key++
@@ -290,7 +290,7 @@ export default function initialize() {
]) ])
) { ) {
sub.push({ sub.push({
title: t("WorkorderPreventiveMaintenanceList"), title: t("WorkOrderPreventiveMaintenanceList"),
icon: "fa-business-time", icon: "fa-business-time",
route: "/svc-pm-list", route: "/svc-pm-list",
key: key++ key: key++
@@ -421,7 +421,7 @@ export default function initialize() {
//PART REQUESTS //PART REQUESTS
sub.push({ sub.push({
title: t("WorkorderItemPartRequestList"), title: t("WorkOrderItemPartRequestList"),
icon: "fa-paper-plane", icon: "fa-paper-plane",
route: "/inv-part-requests", route: "/inv-part-requests",
key: key++ key: key++
@@ -720,7 +720,7 @@ export default function initialize() {
//WORKORDERS subitem //WORKORDERS subitem
sub.push({ sub.push({
title: t("WorkorderServiceList"), title: t("WorkOrderServiceList"),
icon: "fa-tools", icon: "fa-tools",
route: "/customer-workorders", route: "/customer-workorders",
key: key++ key: key++

View File

@@ -62,22 +62,22 @@ export default {
"NotifySubscriptionList", "NotifySubscriptionList",
"UserPreferences", "UserPreferences",
"Service", "Service",
"ClientList", "CustomerList",
"HeadOfficeList", "HeadOfficeList",
"WorkorderServiceList", "WorkOrderServiceList",
"WorkorderServiceTemplate", "WorkOrderServiceTemplate",
"WorkorderQuoteList", "WorkOrderQuoteList",
"WorkorderQuoteTemplate", "WorkOrderQuoteTemplate",
"WorkorderPreventiveMaintenanceList", "WorkOrderPreventiveMaintenanceList",
"WorkorderPreventiveMaintenanceTemplate", "WorkOrderPreventiveMaintenanceTemplate",
"UnitList", "UnitList",
"UnitModels", "UnitModels",
"ContractList", "ContractList",
"ClientServiceRequestList", "CUstomerServiceRequestList",
"LoanItemList", "LoanItemList",
"PartList", "PartList",
"PartByWarehouseInventoryList", "PartByWarehouseInventoryList",
"WorkorderItemPartRequestList", "WorkOrderItemPartRequestList",
"InventoryPurchaseOrders", "InventoryPurchaseOrders",
"InventoryPurchaseOrderReceipts", "InventoryPurchaseOrderReceipts",
"InventoryPartInventoryAdjustments", "InventoryPartInventoryAdjustments",

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-address-card", icon: "fa-address-card",
title: this.$ay.t("ClientList"), title: this.$ay.t("CustomerList"),
helpUrl: "form-cust-customers" helpUrl: "form-cust-customers"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-child", icon: "fa-child",
title: this.$ay.t("ClientServiceRequestList"), title: this.$ay.t("CustomerServiceRequestList"),
helpUrl: "form-customer-csr-list" helpUrl: "form-customer-csr-list"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-tools", icon: "fa-tools",
title: this.$ay.t("WorkorderServiceList"), title: this.$ay.t("WorkOrderServiceList"),
helpUrl: "form-customer-workorders" helpUrl: "form-customer-workorders"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-paper-plane", icon: "fa-paper-plane",
title: this.$ay.t("WorkorderItemPartRequestList"), title: this.$ay.t("WorkOrderItemPartRequestList"),
helpUrl: "form-inv-part-requests" helpUrl: "form-inv-part-requests"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-child", icon: "fa-child",
title: this.$ay.t("ClientServiceRequestList"), title: this.$ay.t("CustomerServiceRequestList"),
helpUrl: "form-svc-csr-list" helpUrl: "form-svc-csr-list"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-business-time", icon: "fa-business-time",
title: this.$ay.t("WorkorderPreventiveMaintenanceList"), title: this.$ay.t("WorkOrderPreventiveMaintenanceList"),
helpUrl: "form-svc-pm-list" helpUrl: "form-svc-pm-list"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-stamp", icon: "fa-stamp",
title: this.$ay.t("WorkorderPreventiveMaintenanceTemplate"), title: this.$ay.t("WorkOrderPreventiveMaintenanceTemplate"),
helpUrl: "form-svc-pm-templates" helpUrl: "form-svc-pm-templates"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-stamp", icon: "fa-stamp",
title: this.$ay.t("WorkorderQuoteTemplate"), title: this.$ay.t("WorkOrderQuoteTemplate"),
helpUrl: "form-svc-quote-templates" helpUrl: "form-svc-quote-templates"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-pencil-alt", icon: "fa-pencil-alt",
title: this.$ay.t("WorkorderQuoteList"), title: this.$ay.t("WorkOrderQuoteList"),
helpUrl: "form-svc-quotes" helpUrl: "form-svc-quotes"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-stamp", icon: "fa-stamp",
title: this.$ay.t("WorkorderServiceTemplate"), title: this.$ay.t("WorkOrderServiceTemplate"),
helpUrl: "form-svc-workorder-templates" helpUrl: "form-svc-workorder-templates"
}); });
} }

View File

@@ -13,7 +13,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", { window.$gz.eventBus.$emit("menu-change", {
isMain: true, isMain: true,
icon: "fa-tools", icon: "fa-tools",
title: this.$ay.t("WorkorderServiceList"), title: this.$ay.t("WorkOrderServiceList"),
helpUrl: "form-svc-workorders" helpUrl: "form-svc-workorders"
}); });
} }