From d2c3e16c2f3444d455969f396a0c7c03ea6db893 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 6 Jul 2020 23:48:16 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 27 ++----- ayanova/src/api/gzmenu.js | 29 ++++---- ayanova/src/api/initialize.js | 8 ++- ayanova/src/components/plugins-control.vue | 83 ++++++++++++++++++++++ ayanova/src/main.js | 2 + ayanova/src/views/widgets.vue | 44 ++++++++---- 6 files changed, 139 insertions(+), 54 deletions(-) create mode 100644 ayanova/src/components/plugins-control.vue diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index dccf850f..b40ce912 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -4,29 +4,6 @@ PRIORITY - ALWAYS Lowest level stuff first, i.e. TODO at server, api route chang =-=-=-=- -todo: error http://localhost:8080/adm-global-select-templates pick Customer get error at server: - Check other ones as well -2020-07-01 15:18:23.7324|ERROR|SERVER|Error=>System.NotImplementedException: PICKLIST NOT IMPLEMENTED - at AyaNova.PickList.PickListFactory.GetAyaPickList(AyaType ayaType) in C:\data\code\raven\server\AyaNova\PickList\PickListFactory.cs:line 26 - at AyaNova.Biz.PickListBiz.GetAsync(AyaType ayaType, Boolean logTheGetEvent) in C:\data\code\raven\server\AyaNova\biz\PickListBiz.cs:line 58 - at AyaNova.Api.Controllers.PickListController.GetPickListTemplate(AyaType ayaType) in C:\data\code\raven\server\AyaNova\Controllers\PickListController.cs:line 115 - at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) - at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Logged|12_1(ControllerActionInvoker invoker) - at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) - at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) - at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) - at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) - at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) - -todo: customer logins should *NOT* get the evaluate page offered - -todo: rename v8 export plugin to v8 Migrate - it's more accurate and easier to grasp for people (plus it rhymes) -todo: Migrate to v8 plugin needs to work with a trial database as well as a licensed database - It should check if a trial or not and give heavy warning if not - kind of cool if it checked for a recent backup before doing anything damaging - or triggered a checkpoint backup - todo: ability to mass tag items from list CLIENT UI - See bulk jobs added to Attachment list @@ -61,6 +38,10 @@ todo: notification https://github.com/vuetifyjs/vuetify/blob/3513d76774ce4ed02c34220ba6389fa0f42467c1/packages/docs/src/components/app/Notifications.vue +todo: PickLists based on AyaPickList at server, need one for each type, so far have widget and user only + Not sure if should just make them all or...?? + Maybe when I hit a form that uses it, that's when I really need it? + todo: rockfish, can't do purchase for raven or view it I think todo: rockfish, upgrade to latest bootstrap, out of date Currently todo: rockfish, trial license fetched On date not updating? (not showing in UI) diff --git a/ayanova/src/api/gzmenu.js b/ayanova/src/api/gzmenu.js index c3d9f0e3..932e4cef 100644 --- a/ayanova/src/api/gzmenu.js +++ b/ayanova/src/api/gzmenu.js @@ -122,16 +122,16 @@ export default { }); } - //PLUGINS - for anything with a type but not necessarily an ID - if (!UTILITY_TYPES.includes(formAyaType)) { - vm.appBar.menuItems.push({ - title: "More", - icon: "fa-puzzle-piece", - key: "app:plugin", - data: formAyaType, - recordId: formRecordId - }); - } + // //PLUGINS - for anything with a type but not necessarily an ID + // if (!UTILITY_TYPES.includes(formAyaType)) { + // vm.appBar.menuItems.push({ + // title: "More", + // icon: "fa-puzzle-piece", + // key: "app:plugin", + // data: formAyaType, + // recordId: formRecordId + // }); + // } //CUSTOMIZE //set custom fields and link to translation text editor @@ -292,12 +292,9 @@ export default { // params: { ayatype: item.data.ayaType, recordid: item.data.recordId } // }); // break; - // case "wiki": - // vm.$router.push({ - // name: "ay-wiki", - // params: { ayatype: item.data.ayaType, recordid: item.data.recordId } - // }); - // break; + case "plugin": + alert("STUB: plugin / more"); + break; case "review": vm.$router.push({ name: "ay-review", diff --git a/ayanova/src/api/initialize.js b/ayanova/src/api/initialize.js index 1226f43c..682c2c7f 100644 --- a/ayanova/src/api/initialize.js +++ b/ayanova/src/api/initialize.js @@ -722,7 +722,13 @@ function initNavPanel() { } //*** EVALUATION active trial license should always go to evaluation as home page - if (licenseState == 1) { + //as long as they are a normal User type and not a customer or subcontractor type + if ( + (licenseState == 1) & + (window.$gz.store.state.userType == 1 || + window.$gz.store.state.userType == 2 || + window.$gz.store.state.userType == 3) + ) { addNavItem( "Evaluate", "fa-rocket", diff --git a/ayanova/src/components/plugins-control.vue b/ayanova/src/components/plugins-control.vue new file mode 100644 index 00000000..3692b7b1 --- /dev/null +++ b/ayanova/src/components/plugins-control.vue @@ -0,0 +1,83 @@ + + diff --git a/ayanova/src/main.js b/ayanova/src/main.js index 1755dd54..6fde1fc9 100644 --- a/ayanova/src/main.js +++ b/ayanova/src/main.js @@ -46,6 +46,7 @@ import currencyControl from "./components/currency-control.vue"; import decimalControl from "./components/decimal-control.vue"; import roleControl from "./components/role-control.vue"; import errorControl from "./components/error-control.vue"; +import pluginsControl from "./components/plugins-control.vue"; import reportSelectorControl from "./components/report-selector-control.vue"; import reportViewerControl from "./components/report-viewer-control.vue"; import wikiControl from "./components/wiki-control.vue"; @@ -188,6 +189,7 @@ Vue.component("gz-role-picker", roleControl); Vue.component("gz-error", errorControl); Vue.component("gz-report-selector", reportSelectorControl); Vue.component("gz-report-viewer", reportViewerControl); +Vue.component("gz-plugins", pluginsControl); Vue.component("gz-wiki", wikiControl); Vue.component("gz-attachments", attachmentControl); Vue.component("gz-chart-line", chartLineControl); diff --git a/ayanova/src/views/widgets.vue b/ayanova/src/views/widgets.vue index 50c10b7f..2a716a3b 100644 --- a/ayanova/src/views/widgets.vue +++ b/ayanova/src/views/widgets.vue @@ -1,14 +1,18 @@