diff --git a/src/App.vue b/src/App.vue index 8ee926b..795e40c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,17 +4,28 @@ import DevicePreview from '@/components/device/DevicePreview.vue' import ConfigPane from '@/components/config/ConfigPane.vue' import Navbar from '@/components/Navbar.vue' import ConfigSelect from '@/components/config/ConfigSelect.vue' -import { ref } from 'vue' +import { onMounted, ref } from 'vue' import ConfigSection from '@/components/config/ConfigSection.vue' import { Bolt } from 'lucide-vue-next' import { useStore } from '@/store' -const currentConfigPage = ref('profile_settings') +const currentConfigPage = ref(0) const store = useStore() store.fetchProfiles() +const windowWidth = ref(window.innerWidth) +const windowHeight = ref(window.innerHeight) + +onMounted(() => { + window.addEventListener('resize', e => { + windowWidth.value = window.innerWidth + windowHeight.value = window.innerHeight + }) +}) + + \ No newline at end of file diff --git a/src/components/Navbar.vue b/src/components/Navbar.vue index 10404e0..da2374b 100644 --- a/src/components/Navbar.vue +++ b/src/components/Navbar.vue @@ -51,7 +51,7 @@ Help -
+
Status: Connected :: Syncing...