From 68983011a2f1dc2f3dd0a42c457673228449f6db Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 23 Jun 2020 22:09:28 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 21 +- ayanova/src/api/initialize.js | 2 +- ayanova/src/router.js | 8 +- ayanova/src/views/adm-global-settings.vue | 2 - ayanova/src/views/adm-translation.vue | 515 +++++++++++++++++++++- ayanova/src/views/adm-translations.vue | 109 +++++ 6 files changed, 636 insertions(+), 21 deletions(-) create mode 100644 ayanova/src/views/adm-translations.vue diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index aa52cbf0..4a61c893 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -8,15 +8,24 @@ PRIORITY - ALWAYS Lowest level stuff first, i.e. TODO at server, api route chang todo: Administration - translation translation page with translation settings - Translation feedback link in translation page https://rockfish.ayanova.com/default.htm#!/rfcaseEdit/3722 - - https://rockfish.ayanova.com/default.htm#!/rfcaseEdit/1442 - https://rockfish.ayanova.com/default.htm#!/rfcaseEdit/1439 + - Update local copies, make sure search is kick ass + https://rockfish.ayanova.com/default.htm#!/rfcaseEdit/1442 + - No need to show the built in ones at all if they can't be edited. - - -todo: Administration - Attached files - + although, need something to duplicate for custom locales + - have a filter button type what you want and it will reduce the entire list to those that contain the filter for easy id and editing + - Replace function + - Export function (download as file I guess) + - Import function + - Duplicate select new + - Set all users to use chosen translation feature? + this might be a handy thing + - When change translation if it's the same one currently in use then it should also update the local copy so user doesn't have to logout to see it in action + - maybe a function called from Translation.js that you pass all the updated keys after a successful save and it automatically scans for local copies and changes them +todo: help links for User, Users, Translations, Translation +todo: Administration - Attached files manager todo: Administration - History What is this for? diff --git a/ayanova/src/api/initialize.js b/ayanova/src/api/initialize.js index 8193ae37..91533572 100644 --- a/ayanova/src/api/initialize.js +++ b/ayanova/src/api/initialize.js @@ -564,7 +564,7 @@ function initNavPanel() { sub.push({ title: t("Translation"), icon: "fa-language", - route: "/adm-translation", + route: "/adm-translations", key: key++ }); diff --git a/ayanova/src/router.js b/ayanova/src/router.js index a0ebd0da..cc0d588c 100644 --- a/ayanova/src/router.js +++ b/ayanova/src/router.js @@ -310,7 +310,13 @@ export default new Router({ import(/* webpackChunkName: "adm" */ "./views/adm-user.vue") }, { - path: "/adm-translation", + path: "/adm-translations", + name: "adm-translations", + component: () => + import(/* webpackChunkName: "adm" */ "./views/adm-translations.vue") + }, + { + path: "/adm-translations/:recordid", name: "adm-translation", component: () => import(/* webpackChunkName: "adm" */ "./views/adm-translation.vue") diff --git a/ayanova/src/views/adm-global-settings.vue b/ayanova/src/views/adm-global-settings.vue index ff200306..484a98f7 100644 --- a/ayanova/src/views/adm-global-settings.vue +++ b/ayanova/src/views/adm-global-settings.vue @@ -14,8 +14,6 @@ diff --git a/ayanova/src/views/adm-translations.vue b/ayanova/src/views/adm-translations.vue new file mode 100644 index 00000000..bae6ea83 --- /dev/null +++ b/ayanova/src/views/adm-translations.vue @@ -0,0 +1,109 @@ + + +