2023-10-04 13:53:57 +02:00
|
|
|
<template>
|
2023-10-13 09:43:42 +02:00
|
|
|
<div class="w-full flex h-screen bg-neutral-950">
|
|
|
|
<Sidebar @updateCurrentPage="setCurrentPage" />
|
|
|
|
<div class="w-full">
|
|
|
|
<Main v-if="currentPage === 0" />
|
|
|
|
<Conf v-if="currentPage === 1" />
|
|
|
|
<Test v-if="currentPage === 2" />
|
2023-10-04 13:53:57 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2023-10-13 09:43:42 +02:00
|
|
|
<script setup>
|
|
|
|
import Sidebar from "./components/Sidebar.vue";
|
|
|
|
import Test from "./components/Test.vue";
|
|
|
|
import Main from "./components/Main.vue";
|
|
|
|
import Conf from "./components/Conf.vue";
|
2023-10-04 13:53:57 +02:00
|
|
|
|
2023-10-13 09:43:42 +02:00
|
|
|
import { ref } from "vue";
|
|
|
|
|
|
|
|
const currentPage = ref(2);
|
|
|
|
|
|
|
|
const setCurrentPage = (x) => {
|
|
|
|
currentPage.value = x;
|
2023-10-04 13:53:57 +02:00
|
|
|
}
|
2023-10-13 09:43:42 +02:00
|
|
|
</script>
|