From da2097448e1b8e1894a9d43a68635d331140302b Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 22 Feb 2022 16:13:12 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 10 +- .../src/components/dash-scheduser-next-wo.vue | 175 ++++++++++++++++++ ayanova/src/views/ops-view-configuration.vue | 26 ++- 3 files changed, 206 insertions(+), 5 deletions(-) create mode 100644 ayanova/src/components/dash-scheduser-next-wo.vue diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 43879f12..3f119b9e 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -22,10 +22,16 @@ FIRST CLIENT SOURCE CODE COMMIT JAN 3rd 2019 # OUTSTANDING MAJOR AREAS TO BETA -widgets. +Support information, easy way for beta testers to gather it all up in one place. + if they have enough rights then copy support information can get it all from the client end, if not then only the client stuff + + + +dashboard widgets They should be small and highly focused on a particular issue so that the user just picks the one they want and that's it, no config as it's built for a specific config already. -So a hypothetical workorder count per time period widget would have a this month, last month, ytd, last year to date etc or however. Main idea being they are not needed to config, just pick the one you want +So a hypothetical workorder count per time period widget would have a this month, last month, ytd, last year to date etc or however. +Main idea being they are not needed to config, just pick the one you want diff --git a/ayanova/src/components/dash-scheduser-next-wo.vue b/ayanova/src/components/dash-scheduser-next-wo.vue new file mode 100644 index 00000000..55f7ecf3 --- /dev/null +++ b/ayanova/src/components/dash-scheduser-next-wo.vue @@ -0,0 +1,175 @@ + + diff --git a/ayanova/src/views/ops-view-configuration.vue b/ayanova/src/views/ops-view-configuration.vue index 5975d170..ee7c8848 100644 --- a/ayanova/src/views/ops-view-configuration.vue +++ b/ayanova/src/views/ops-view-configuration.vue @@ -2,7 +2,7 @@ - + AyaNova server settings @@ -201,13 +201,20 @@ export default { ////////////////////// // // -function generateMenu() { +function generateMenu(vm) { const menuOptions = { isMain: true, icon: "$ayiInfoCircle", title: "ViewServerConfiguration", helpUrl: "ops-server-information", - menuItems: [] + menuItems: [ + { + title: "CopyToClipboard", + icon: "$ayiCopy", + key: `${FORM_KEY}:copyinfo`, + vm: vm + } + ] }; window.$gz.eventBus.$emit("menu-change", menuOptions); @@ -223,6 +230,19 @@ function clickHandler(menuItem) { const m = window.$gz.menu.parseMenuItem(menuItem); if (m.owner == FORM_KEY && !m.disabled) { switch (m.key) { + case "copyinfo": + //put the info on the clipboard: + { + const element = document.getElementById("ayaNovaConfigCard"); + const text = element.innerText || element.textContent; + window.$gz.util.copyToClipboard(text); + // let logText = ""; + // m.vm.$store.state.logArray.forEach(function appendLogItem(value) { + // logText += value + "\n"; + // }); + //window.$gz.util.copyToClipboard(text + "\nCLIENT LOG\n" + logText); + } + break; default: window.$gz.eventBus.$emit( "notify-warning",