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
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

View File

@@ -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++

View File

@@ -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",

View File

@@ -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"
});
}

View File

@@ -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"
});
}

View File

@@ -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"
});
}

View File

@@ -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"
});
}

View File

@@ -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"
});
}

View File

@@ -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"
});
}

View File

@@ -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"
});
}

View File

@@ -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"
});
}

View File

@@ -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"
});
}

View File

@@ -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"
});
}

View File

@@ -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"
});
}