mirror of
https://github.com/yeicor-3d/yet-another-cad-viewer.git
synced 2025-12-20 06:27:04 +01:00
Started migration of frontend to vuetify
This commit is contained in:
46
src/App.vue
46
src/App.vue
@@ -1,26 +1,36 @@
|
||||
<script setup lang="ts">
|
||||
import ModelViewer from './ModelViewer.vue'
|
||||
</script>
|
||||
|
||||
import {ref} from "vue";
|
||||
|
||||
let modelsOpened = ref(false)
|
||||
let toolsOpened = ref(true)
|
||||
</script>
|
||||
<
|
||||
<template>
|
||||
<ModelViewer></ModelViewer>
|
||||
<v-card>
|
||||
<v-layout>
|
||||
<v-btn @click="modelsOpened = !modelsOpened" max-width="22px" style="position:absolute; z-index: 1">></v-btn>
|
||||
<v-navigation-drawer v-model="modelsOpened">
|
||||
<v-list density="compact" nav > <!-- TODO: Accordion -->
|
||||
<v-list-item-title>Models <v-btn @click="modelsOpened = !modelsOpened" style="float: right" height="22px"><</v-btn></v-list-item-title>
|
||||
<v-list-item prepend-icon="mdi-view-dashboard" title="Home" value="home"></v-list-item>
|
||||
<v-list-item prepend-icon="mdi-forum" title="About" value="about"></v-list-item>
|
||||
</v-list>
|
||||
</v-navigation-drawer>
|
||||
<v-main style="height: 100vh">
|
||||
<ModelViewer/>
|
||||
</v-main>
|
||||
<v-navigation-drawer location="right" v-model="toolsOpened" opa>
|
||||
<v-list density="compact" nav >
|
||||
<v-list-item-title>Tools</v-list-item-title>
|
||||
<v-list-item prepend-icon="mdi-view-dashboard" title="Home" value="home"></v-list-item>
|
||||
<v-list-item prepend-icon="mdi-forum" title="About" value="about"></v-list-item>
|
||||
</v-list>
|
||||
</v-navigation-drawer>
|
||||
</v-layout>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
</style>
|
||||
|
||||
<style>
|
||||
@media (prefers-color-scheme: dark) {
|
||||
body {
|
||||
background-color: #000;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user