From 0150b46b2ecff9f7306aefd540c438f87f85d9ef Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 5 Nov 2020 21:34:13 +0000 Subject: [PATCH] --- ayanova/devdocs/rando-todo.txt | 21 +++++++++++++++++++-- ayanova/devdocs/todo.txt | 11 ++--------- ayanova/package-lock.json | 5 ----- ayanova/package.json | 1 - ayanova/src/main.js | 1 + ayanova/src/views/widget.vue | 1 + 6 files changed, 23 insertions(+), 17 deletions(-) diff --git a/ayanova/devdocs/rando-todo.txt b/ayanova/devdocs/rando-todo.txt index 2b513159..70f2b895 100644 --- a/ayanova/devdocs/rando-todo.txt +++ b/ayanova/devdocs/rando-todo.txt @@ -16,14 +16,31 @@ todo: See if this has a use: as an aside there is a relative time formatter avai does locale aware things like "5 days ago" or "8 years from now" etc https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat - todo: hide swagger logo and branding in api explorer +todo: hide swagger logo and branding in api explorer Is this really that important? also, in the docs is a section specifically saying I should do something because I'm using newtonsoft json not microsoft built in https://github.com/domaindrivendev/Swashbuckle.AspNetCore#systemtextjson-stj-vs-newtonsoft https://github.com/domaindrivendev/Swashbuckle.AspNetCore - todo: service workers for monaco going in root of website folder, must be a config setting to move it into the proper place (not there) +todo: keycodes mirror common menu options like save close back etc + Ok, half coded this then realized it would conflict with almost every browser and os combination plus whatever hotkey helper people have installed + https://stackoverflow.com/questions/3329420/what-are-cross-browser-and-cross-os-safe-keyboard-shortcuts-usable-for-web-appli + but, if I were to do it then this is how: + https://github.com/jaywcjlove/hotkeys + import hotkeys from "hotkeys-js"; + //https://github.com/jaywcjlove/hotkeys/issues/115#issuecomment-654283151 + Vue.prototype.$keys = hotkeys.noConflict(true); +todo: can I support keycodes for saving in AyaNova and other shit that are the same as in v7 or as much as possible, i.e. ctrl-s to save (or whatever was defined) + watch out the report editor uses a bunch of hotkeys pre-defined + What v7 used to support: + f1 - help, case (Keys.Alt | Keys.X) //Close form, alt-w new workorder, alt-m new pm workorder, alt-q new quote, alt-c new client, alt-u new unit, alt-p new part, ctrl-alt-g grid criteria for development, + IMPORTANT / DO THIS: insert date and time (localized) as text anywhere with a key combo + https://rockfish.ayanova.com/default.htm#!/rfcaseEdit/1514 + + + +todo: service workers for monaco going in root of website folder, must be a config setting to move it into the proper place (not there) couldn't find anything about it, may need to post to ask, it's not the end of the world but kind of stupid looking as all the rest of the js is in subfolder https://github.com/microsoft/monaco-editor-webpack-plugin/issues/126 awaiting reply, if nothing by the time I get here then delete and wait for email notification or if I care enough again to bother with it (cosmetic) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 2736daa6..c9bcd7ed 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -3,20 +3,13 @@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -todo: keycodes mirror common menu options like save close back etc - https://github.com/jaywcjlove/hotkeys/issues/115 -todo: can I support keycodes for saving in AyaNova and other shit that are the same as in v7 or as much as possible, i.e. ctrl-s to save (or whatever was defined) - watch out the report editor uses a bunch of hotkeys pre-defined - What v7 used to support: - f1 - help, case (Keys.Alt | Keys.X) //Close form, alt-w new workorder, alt-m new pm workorder, alt-q new quote, alt-c new client, alt-u new unit, alt-p new part, ctrl-alt-g grid criteria for development, - IMPORTANT / DO THIS: insert date and time (localized) as text anywhere with a key combo - https://rockfish.ayanova.com/default.htm#!/rfcaseEdit/1514 todo: how to and search for memory leaks, excercise all forms and make sure now - + https://developers.google.com/web/tools/chrome-devtools/memory-problems + https://nolanlawson.com/2020/02/19/fixing-memory-leaks-in-web-applications/ diff --git a/ayanova/package-lock.json b/ayanova/package-lock.json index 624f3182..47f0efc6 100644 --- a/ayanova/package-lock.json +++ b/ayanova/package-lock.json @@ -11633,11 +11633,6 @@ "integrity": "sha512-7T/BxH19zbcCTa8XkMlbK5lTo1WtgkFi3GvdWEyNuc4Vex7/9Dqbnpsf4JMydcfj9HCg4zUWFTL3Za6lapg5/w==", "dev": true }, - "hotkeys-js": { - "version": "3.8.1", - "resolved": "https://registry.npmjs.org/hotkeys-js/-/hotkeys-js-3.8.1.tgz", - "integrity": "sha512-YlhVQtyG9f1b7GhtzdhR0Pl+cImD1ZrKI6zYUa7QLd0zuThiL7RzZ+ANJyy7z+kmcCpNYBf5PjBa3CjiQ5PFpw==" - }, "hpack.js": { "version": "2.1.6", "resolved": "https://registry.npmjs.org/hpack.js/-/hpack.js-2.1.6.tgz", diff --git a/ayanova/package.json b/ayanova/package.json index 61d99d4a..a66ab491 100644 --- a/ayanova/package.json +++ b/ayanova/package.json @@ -24,7 +24,6 @@ "dompurify": "^2.1.1", "fontsource-roboto": "^3.0.3", "github-markdown-css": "^4.0.0", - "hotkeys-js": "^3.8.1", "jwt-decode": "^3.0.0", "luxon": "^1.25.0", "marked": "^1.2.2", diff --git a/ayanova/src/main.js b/ayanova/src/main.js index 31c36d89..38e955f2 100644 --- a/ayanova/src/main.js +++ b/ayanova/src/main.js @@ -232,6 +232,7 @@ Vue.prototype.$ay = { return locale.currencyLocalized(value); } }; + new Vue({ vuetify: Vuetify, router, diff --git a/ayanova/src/views/widget.vue b/ayanova/src/views/widget.vue index 2b1042f3..64b13e44 100644 --- a/ayanova/src/views/widget.vue +++ b/ayanova/src/views/widget.vue @@ -268,6 +268,7 @@ const FORM_CUSTOM_TEMPLATE_KEY = "Widget"; //<-- Should always be CoreBizObject export default { async created() { let vm = this; + try { await initForm(vm);