chore: first commit

This commit is contained in:
Corentin Thomasset 2022-03-31 00:33:29 +02:00
commit 64c92a661c
No known key found for this signature in database
GPG key ID: DBD997E935996158
37 changed files with 13458 additions and 0 deletions

39
src/App.vue Normal file
View file

@ -0,0 +1,39 @@
<script setup lang="ts">
import { RouterView } from 'vue-router'
import { layouts } from './layouts';
import { computed } from 'vue';
import { useRoute } from 'vue-router'
import {
NConfigProvider,
NGlobalStyle,
} from 'naive-ui'
const route = useRoute();
const layout = computed(() => route?.meta?.layout ?? layouts.base)
</script>
<template>
<n-config-provider>
<n-global-style />
<component :is="layout">
<router-view />
</component>
</n-config-provider>
</template>
<style>
body {
min-height: 100%;
margin: 0;
padding: 0;
}
html {
height: 100%;
margin: 0;
padding: 0;
}
* {
box-sizing: border-box;
}
</style>