From d329ec84b105c55abafc53db061bbfc57494c582 Mon Sep 17 00:00:00 2001 From: Yoshie Muranaka Date: Tue, 11 Aug 2020 18:24:59 -0700 Subject: Refactor navigation component We are anticipating necessary customizations to the app navigation for different environments. This refactoring will allow for a more programmatic approach. By abstracting the navigation into a JS object we can leverage the Vue mixin to isolate customizations while sharing a standard template and styles. There may be slight changes to data-test-id-* hooks. Signed-off-by: Yoshie Muranaka Change-Id: I0d095acfee29cfdd4ce1094b860d754f45dc6db9 --- src/components/AppNavigation/AppNavigation.vue | 203 ++++----------------- src/components/AppNavigation/AppNavigationMixin.js | 144 +++++++++++++++ src/locales/en-US.json | 2 +- 3 files changed, 180 insertions(+), 169 deletions(-) create mode 100644 src/components/AppNavigation/AppNavigationMixin.js (limited to 'src') diff --git a/src/components/AppNavigation/AppNavigation.vue b/src/components/AppNavigation/AppNavigation.vue index ef689d5f..47ed3c1d 100644 --- a/src/components/AppNavigation/AppNavigation.vue +++ b/src/components/AppNavigation/AppNavigation.vue @@ -3,162 +3,41 @@ @@ -174,23 +53,11 @@