From 640c6ef095abd84c2458fee95c2506179567bcf6 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 2 May 2019 19:46:34 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 15 +- ayanova/package.json | 3 +- ayanova/src/App.vue | 51 ++++-- ayanova/src/api/errorhandler.js | 26 +-- ayanova/src/api/gzapi.js | 5 +- ayanova/src/api/gzmenu.js | 51 +++++- ayanova/src/api/initialize.js | 30 ++-- ayanova/src/components/HelloWorld.vue | 14 +- .../src/components/gzdateandtimepicker.vue | 13 +- .../components/inventorypartassemblytop.vue | 34 ++-- ayanova/src/components/inventoryparttop.vue | 34 ++-- ayanova/src/components/inventorypotop.vue | 34 ++-- .../src/components/inventorywarehousetop.vue | 34 ++-- .../src/components/inventorywidgetlist.vue | 91 ++++------ ayanova/src/views/About.vue | 156 ++++++++++++++---- ayanova/src/views/Home.vue | 2 +- ayanova/src/views/inventory-widget-edit.vue | 51 +----- ayanova/src/views/inventory.vue | 18 +- ayanova/src/views/log.vue | 2 +- ayanova/src/views/login.vue | 7 +- 20 files changed, 400 insertions(+), 271 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 23a596d6..f90c37f4 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -68,9 +68,9 @@ All platforms and browsers - DONE HOME not localized issue, on login, sometimes the home page is not showing as localized! Some kind of timing issue or wrong event used to localize it or something. ?? - DONE I see that HOME->BeforeCreate breakpoint is hit **BEFORE** the locale text has been fetched. - DONE was not calling promises correctly and not chaining them properly. Fixed - - Wire up delete menu item - - api code is stubbed out for delete, need to write that as well - - Need prompt, are you sure?? + - DONE Wire up delete menu item + - DONE api code is stubbed out for delete, need to write that as well + - DONE Need prompt, are you sure?? - DONE TODO navigating through menu doesn't "back" properly when clicking back on browser controls - DONE widget form now not localized title at menu top @@ -95,9 +95,11 @@ All platforms and browsers End to end action -TODO: - Code for new record to the server - - Need a path to making a new record - +TODO: NEW WIDGET + - Code for new record to the server + - Need a path to making a new record + - ID 0 maybe +TODO: Fill selection boxes, autocomplete etc TODO: NOW THAT FORM IS THERE MOSTLY, CLEAN UP CODE FOR RE-USE in many other forms - Don't need to replicate common code so put it somewhere else - formstate shit is also menu shit really so can they be combined somehow, like present two sets of menu options one read only and one fully read-write? @@ -116,6 +118,7 @@ TODO: About AyaNova form should show the exact client browser and device info as - Generates an email? - At least copy it to clipboard on desktop or enable sharing so can share on device to email TODO: TAGS!!! Do tags mofo +TODO: //todo: timezone doesn't match, offer to fix it in initialize.js there needs to be a prompt and autofix TODO: Automated testing of UI by driving web interaction, that needs to be instituted asap TODO: Server needs to do widget validation 666 test rules not only in debug mode so can test when put up to the devops server TODO: Dark mode (dark with a half moon icon) diff --git a/ayanova/package.json b/ayanova/package.json index 501fb011..c617c935 100644 --- a/ayanova/package.json +++ b/ayanova/package.json @@ -7,7 +7,8 @@ "build": "vue-cli-service build", "lint": "vue-cli-service lint", "test:e2e": "vue-cli-service test:e2e", - "test:unit": "vue-cli-service test:unit" + "test:unit": "vue-cli-service test:unit", + "myLint": "npm run lint" }, "dependencies": { "@babel/polyfill": "^7.4.4", diff --git a/ayanova/src/App.vue b/ayanova/src/App.vue index 18c384d6..0a561e68 100644 --- a/ayanova/src/App.vue +++ b/ayanova/src/App.vue @@ -2,7 +2,11 @@ - + {{ "fa-" + item.icon }} @@ -12,24 +16,33 @@ - + - {{ appBar.icon }}  - {{ appBar.title}} + {{ appBar.icon }}  + {{ appBar.title }} - - @@ -48,9 +48,11 @@ prepend-icon="fa-calendar-alt" disabled > -

{{ error }}

+

+ {{ error }} +

- + -// - {{ this.$gzlocale.get("ClientApp")}} + {{ this.$gzlocale.get("ClientApp") }} - {{ this.$gzlocale.get("Version")}} - {{ clientInfo.version }} + + {{ + this.$gzlocale.get("Version") + }} + + + {{ + clientInfo.version + }} + - {{ this.$gzlocale.get("Server")}} + {{ this.$gzlocale.get("Server") }} - {{ this.$gzlocale.get("ServerAddress")}} - {{ this.$store.state.apiUrl }} + + {{ + this.$gzlocale.get("ServerAddress") + }} + + + {{ + this.$store.state.apiUrl + }} + - {{ this.$gzlocale.get("Version")}} - {{ serverInfo.serverVersion }} + + {{ + this.$gzlocale.get("Version") + }} + + + {{ + serverInfo.serverVersion + }} + - {{ this.$gzlocale.get("SchemaVersion")}} - {{ serverInfo.dbSchemaVersion }} + + {{ + this.$gzlocale.get("SchemaVersion") + }} + + + {{ + serverInfo.dbSchemaVersion + }} + - {{ this.$gzlocale.get("ServerTime")}} - {{ serverInfo.serverLocalTime }} + + {{ + this.$gzlocale.get("ServerTime") + }} + + + {{ + serverInfo.serverLocalTime + }} + - {{ this.$gzlocale.get("TimeZone")}} - {{ serverInfo.serverTimeZone }} + + {{ + this.$gzlocale.get("TimeZone") + }} + + + {{ + serverInfo.serverTimeZone + }} + - {{ this.$gzlocale.get("HelpLicense")}} + {{ this.$gzlocale.get("HelpLicense") }} - {{ this.$gzlocale.get("RegisteredUser")}} - {{ serverInfo.license.license.licensedTo }} + + {{ + this.$gzlocale.get("RegisteredUser") + }} + + + {{ + serverInfo.license.license.licensedTo + }} + - {{ this.$gzlocale.get("DatabaseID")}} - {{ serverInfo.license.license.dbId }} + + {{ + this.$gzlocale.get("DatabaseID") + }} + + + {{ + serverInfo.license.license.dbId + }} + - {{ this.$gzlocale.get("LicenseSerial")}} - {{ serverInfo.license.license.keySerial }} + + {{ + this.$gzlocale.get("LicenseSerial") + }} + + + {{ + serverInfo.license.license.keySerial + }} + - {{ this.$gzlocale.get("LicenseExpiration")}} - {{ serverInfo.license.license.licenseExpiration }} + + {{ + this.$gzlocale.get("LicenseExpiration") + }} + + + {{ + serverInfo.license.license.licenseExpiration + }} + - {{ this.$gzlocale.get("SupportedUntil")}} - {{ serverInfo.license.license.maintenanceExpiration }} + + {{ + this.$gzlocale.get("SupportedUntil") + }} + + + {{ + serverInfo.license.license.maintenanceExpiration + }} + - {{ this.$gzlocale.get("LicensedOptions")}} + + {{ + this.$gzlocale.get("LicensedOptions") + }} + {{item.Feature}} {{item.Count ? item.Count : ""}} + > + {{ item.Feature }} + {{ item.Count ? item.Count : "" }} + @@ -107,13 +202,6 @@ /* Xeslint-disable */ import aboutInfo from "../api/aboutinfo"; -// function clickHandler(menuItem) { -// var item = this.$gzmenu.parseMenuItem(menuItem); -// if (item.owner == "about" && !item.disabled) { -// alert("about::context click: " + item.key); -// } -// } - export default { beforeCreate() { this.$gzlocale.fetch([ diff --git a/ayanova/src/views/Home.vue b/ayanova/src/views/Home.vue index d653b390..25fb3c84 100644 --- a/ayanova/src/views/Home.vue +++ b/ayanova/src/views/Home.vue @@ -1,5 +1,5 @@