fixed route handling. added lucid with sqlite support

This commit is contained in:
Sockenklaus
2023-07-03 07:04:25 +02:00
parent bf92a1ed9a
commit f58c0c3245
16 changed files with 2340 additions and 100 deletions

View File

@@ -1,6 +1,6 @@
<template>
<LoginLayout>
<MainNav :route="props.route" />
<MainNav />
<slot />
</LoginLayout>
@@ -10,7 +10,4 @@
import LoginLayout from '@/layouts/LoginLayout'
import MainNav from '@/components/MainNav'
const props = defineProps({
route: String
})
</script>

View File

@@ -3,8 +3,8 @@
</template>
<script setup>
import { Link } from '@inertiajs/vue3'
import { h, ref, defineProps } from 'vue';
import { Link, usePage } from '@inertiajs/vue3'
import { h, ref } from 'vue';
import { NIcon, NButton } from 'naive-ui'
import {
GroupsFilled as Users,
@@ -12,9 +12,9 @@
LogOutFilled as Logout
} from '@vicons/material'
const props = defineProps(['route'])
const { request } = usePage().props
const activeKey = ref(props.route)
const activeKey = ref(request.url)
const menuOptions = ref([
{

View File

@@ -1,31 +1,13 @@
<template>
<div>test</div>
<div>{{route}}</div>
</template>
<script setup>
import BELayout from '@/layouts/BELayout.vue'
//const props = defineProps(['route'])
defineOptions({
layout: (h, page) => h(BELayout, {
props: {
route: route
}
}, [page])
layout: BELayout
})
</script>
<script>
import BELayout from '@/layouts/BELayout.vue'
import { h } from 'vue'
export default {
props: {
route: String
}
}
</script>

View File

@@ -1,5 +1,5 @@
<template>
kajsdkjahsdkjhs
</template>
<script setup>