From f95e591585649f14164e22baed33b688cacbf006 Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Wed, 10 May 2023 23:22:14 +0200 Subject: [PATCH] Added secondary menu test --- src/App.vue | 6 +++++- src/components/YrhNav.vue | 1 + src/models/YrhNavItem.ts | 1 + src/views/DataView.vue | 0 src/views/HomeView.vue | 36 +++++++++++++++++++++++++++++++++--- 5 files changed, 40 insertions(+), 4 deletions(-) create mode 100644 src/views/DataView.vue diff --git a/src/App.vue b/src/App.vue index 281f8d6..73b4767 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,7 +4,11 @@ import { RouterView } from 'vue-router' diff --git a/src/components/YrhNav.vue b/src/components/YrhNav.vue index dc65ee2..6e30519 100644 --- a/src/components/YrhNav.vue +++ b/src/components/YrhNav.vue @@ -51,6 +51,7 @@ function handleInactiveState() { > ('') +const settingsOptions: MenuItem[] = [ + { + id: 'dark-mode', + label: 'Dark Mode', + bannerText: 'Alter the terminal appearance' + }, + { + id: 'language', + label: 'Language', + bannerText: 'Change terminal language' + }, + { + id: 'audio', + label: 'Audio', + bannerText: 'Change audio settings' + }, + { + id: 'video', + label: 'Video', + bannerText: 'Change video settings' + }, + { + id: 'controls', + label: 'Controls', + bannerText: 'Change keyboard or gamepad controls' + } +] +const activeRoute = ref('') function switchActiveRoute(key: string | null) { activeRoute.value = key } @@ -43,7 +70,11 @@ function switchActiveRoute(key: string | null) {
-
Secondary level (like settings)
+ + + + +
@@ -54,5 +85,4 @@ function switchActiveRoute(key: string | null) {
- {{ activeRoute }}