2023-03-03 15:54:28 +00:00
|
|
|
<template>
|
2023-10-31 14:38:43 +00:00
|
|
|
<div>
|
|
|
|
<Link href="/app/login">Login</Link>
|
|
|
|
<h1 class="text-red-500">Welcome, {{ testing }}</h1>
|
|
|
|
<!-- <n-button>Testing</n-button>
|
2023-10-17 13:45:41 +00:00
|
|
|
<n-input v-bind:value="testing"></n-input> -->
|
2023-03-03 15:54:28 +00:00
|
|
|
|
2023-10-31 14:38:43 +00:00
|
|
|
<div class="features">
|
|
|
|
<ul>
|
|
|
|
<li v-for="user in users">
|
|
|
|
<span>{{ user.login }}</span>
|
|
|
|
<span>{{ user.email }}</span>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-03-03 15:54:28 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<!-- <script>
|
|
|
|
import { Link } from '@inertiajs/inertia-vue3';
|
|
|
|
import DefaultLayout from '@/Layouts/Default.vue';
|
|
|
|
import { NInput, NButton } from 'naive-ui';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
layout: DefaultLayout,
|
|
|
|
props: {
|
|
|
|
testing: String,
|
|
|
|
users: Array,
|
|
|
|
},
|
|
|
|
|
|
|
|
components: {
|
|
|
|
Link,
|
|
|
|
NInput,
|
|
|
|
NButton,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script> -->
|
|
|
|
|
|
|
|
<!-- <script lang="js">
|
|
|
|
import { Link } from '@inertiajs/vue3'
|
|
|
|
import DefaultLayout from '../Layouts/Default.vue';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
testing: String,
|
|
|
|
},
|
|
|
|
|
|
|
|
components: {
|
|
|
|
Link,
|
|
|
|
DefaultLayout
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script> -->
|
|
|
|
|
2023-10-31 14:38:43 +00:00
|
|
|
<script lang="ts">
|
2023-03-03 15:54:28 +00:00
|
|
|
import { Component, Vue, Prop } from 'vue-facing-decorator';
|
2023-10-31 14:38:43 +00:00
|
|
|
import type User from 'App/Models/User';
|
2023-03-03 15:54:28 +00:00
|
|
|
import { Link } from '@inertiajs/vue3';
|
|
|
|
import DefaultLayout from '@/Layouts/Default.vue';
|
2023-10-17 13:45:41 +00:00
|
|
|
// import { NInput, NButton } from 'naive-ui';
|
2023-03-03 15:54:28 +00:00
|
|
|
|
|
|
|
@Component({
|
2023-10-31 14:38:43 +00:00
|
|
|
options: {
|
|
|
|
layout: DefaultLayout,
|
|
|
|
},
|
|
|
|
name: 'AppComponent',
|
|
|
|
components: {
|
|
|
|
Link,
|
|
|
|
// NInput,
|
|
|
|
// NButton,
|
|
|
|
},
|
2023-03-03 15:54:28 +00:00
|
|
|
})
|
|
|
|
export default class AppComponent extends Vue {
|
2023-10-31 14:38:43 +00:00
|
|
|
// Component Property
|
|
|
|
@Prop({
|
|
|
|
type: String,
|
|
|
|
default: () => '',
|
|
|
|
})
|
|
|
|
testing: string;
|
2023-03-03 15:54:28 +00:00
|
|
|
|
2023-10-31 14:38:43 +00:00
|
|
|
@Prop({
|
|
|
|
type: Array,
|
|
|
|
default: () => [],
|
|
|
|
})
|
|
|
|
users: Array<User>;
|
2023-03-03 15:54:28 +00:00
|
|
|
}
|
|
|
|
</script>
|