From 60f2511c5cf22de917895eed91e2d6bda634710e Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 15 May 2020 18:01:39 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 11 +++++++---- ayanova/src/App.vue | 16 ++++++++++++++++ ayanova/src/store.js | 6 ++++++ 3 files changed, 29 insertions(+), 4 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index d8f56b9c..efbc88b8 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -3,6 +3,12 @@ PRIORITY - ALWAYS Lowest level stuff first, i.e. TODO at server, api route changes etc then back here in order lowest level first as affects the most stuff exponentially so best to do it early =-=-=-=- +todo: can I receive an email link to an AyaNova object that opens the AyaNova app from email and then the object directly? + - this would make notifications better and other stuff as well + -YES: window.location.search will contain the query term if set on the link to the servers app, + - a link to localhost:8080?go=2,1 + - http://localhost:7575?go=2,1 + todo: remember scroll position in lists when returning, make sure it is working, will be a pain if not todo: OPS routes (SERVER AND CLIENT) @@ -19,10 +25,7 @@ todo: translation page with translation settings todo: ability to mass tag items from list (SERVER AND CLIENT) - also a good way to do an initial implementation of a mass ops UI code todo: ability to mass rename a tag to something else in all objects (SERVER AND CLIENT) -todo: change trial detection route that client first hits - - make it a different controller and renamed to something like server ping or "hello" or something friendly and useful - - maybe the route that gets Notifications - - because there could be a notificatoin type that doesn't need logged in users for general server down announcements etc + todo: WIKI insert image should have extra linefeed before and after because it fails to show the image at all if it follows something like
even though it appears to be on the next line - tl/dr: ensure blank before and after for any url todo: History - MORE button not showing? Was looking at administrator history for AA import scott diff --git a/ayanova/src/App.vue b/ayanova/src/App.vue index 7f7c8d13..446eb8c0 100644 --- a/ayanova/src/App.vue +++ b/ayanova/src/App.vue @@ -276,6 +276,22 @@ export default { window.$gz.eventBus.$off(); }, mounted() { + //Open object after login? + if (window.location.search) { + //https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams + var searchParams = new URLSearchParams(window.location.search); + var openObject = {}; + //data should be format for open-object-handler + // { type: [AYATYPE], id: [RECORDID] } + if (searchParams.has("type")) { + openObject.type = searchParams.get("type"); + if (searchParams.has("id")) { + openObject.type = searchParams.get("id"); + } + window.$gz.store.commit("setOpenObject", openObject); + } + } + this.$root.$gzconfirm = this.$refs.gzconfirm.open; this.$root.$gznotify = this.$refs.gznotify.addNotification; diff --git a/ayanova/src/store.js b/ayanova/src/store.js index 2badb417..efd3e12b 100644 --- a/ayanova/src/store.js +++ b/ayanova/src/store.js @@ -10,6 +10,7 @@ Vue.use(Vuex); export default new Vuex.Store({ plugins: [createPersistedState()], state: { + openObject: {}, lastClientVersion: "", authenticated: false, apiUrl: "", @@ -122,6 +123,11 @@ export default new Vuex.Store({ }, setHomePage(state, data) { state.homePage = data; + }, + setOpenObject(state, data) { + //data should be format for open-object-handler + // { type: [AYATYPE], id: [RECORDID] } + state.openObject = data; } }, actions: {}