File tree Expand file tree Collapse file tree 6 files changed +113
-4
lines changed Expand file tree Collapse file tree 6 files changed +113
-4
lines changed Original file line number Diff line number Diff line change 1+ <template >
2+
3+ <Head >
4+ <title ></title >
5+ </Head >
6+
7+ <div class =" min-h-full flex flex-col" >
8+ <main class =" xl:py-16 py-8 px-4 sm:px-6 xl:px-8" >
9+ <div class =" mx-auto max-w-7xl" >
10+ <slot />
11+ </div >
12+ </main >
13+ </div >
14+
15+ <Notice />
16+ </template >
17+
18+ <script setup>
19+ import { computed , defineAsyncComponent } from " vue" ;
20+ import { usePage } from ' @inertiajs/vue3'
21+
22+ const page = usePage ();
23+
24+ const menu = computed (() => {
25+ if (page .props .auth .loggedIn ) {
26+ return [
27+ {
28+ label: " Dashboard" ,
29+ route: route (" home" ),
30+ condition: true ,
31+ components: [' Dashboard/Index' ],
32+ },
33+ {
34+ label: " Account" ,
35+ route: route (" account.edit" ),
36+ condition: true ,
37+ components: [' Account/Edit' , ' EmailVerification/Show' ],
38+ },
39+ {
40+ label: " Logout" ,
41+ route: route (" logout" ),
42+ method: " post" ,
43+ condition: true ,
44+ components: [],
45+ },
46+ ];
47+ }
48+
49+ return [
50+ {
51+ label: " Login" ,
52+ route: route (" login" ),
53+ condition: true ,
54+ components: [' Login/Show' ],
55+ },
56+ {
57+ label: " Register" ,
58+ route: route (" register" ),
59+ condition: true ,
60+ components: [' Register/Show' ],
61+ },
62+ ];
63+ });
64+ </script >
Original file line number Diff line number Diff line change 33 <Head :title =" title" />
44
55 <div class =" mx-auto max-w-2xl" >
6- <PageTitle class =" mb-4 xl:mb-8" :text =" title" />
6+ <PageTitle
7+ class =" mb-4 xl:mb-8"
8+ :text =" title"
9+ />
710
811 <div class =" bg-white rounded-2xl xl:p-10 p-6 border border-brand-200" >
912 <div class =" text-center" >
2124 </div >
2225</template >
2326
27+ <script >
28+ import Layout from ' @js/Layouts/Guest.vue' ;
29+
30+ export default {
31+ layout: Layout,
32+ }
33+ </script >
34+
2435<script setup>
2536 import { ref } from " vue" ;
2637 import { router } from " @inertiajs/vue3" ;
Original file line number Diff line number Diff line change 5555 type =" checkbox"
5656 v-model =" loginForm.remember"
5757 />
58- <div
59- class =" peer" >
58+ <div class =" peer" >
6059 </div >
6160 <span >
6261 Remember me
8988 </div >
9089</template >
9190
91+ <script >
92+ import Layout from ' @js/Layouts/Guest.vue' ;
93+
94+ export default {
95+ layout: Layout,
96+ }
97+ </script >
98+
9299<script setup>
93100 import { ref } from " vue" ;
94101 import { useForm } from " @inertiajs/vue3" ;
Original file line number Diff line number Diff line change 100100 </div >
101101</template >
102102
103+ <script >
104+ import Layout from ' @js/Layouts/Guest.vue' ;
105+
106+ export default {
107+ layout: Layout,
108+ }
109+ </script >
110+
103111<script setup>
104112 import { ref } from " vue" ;
105113 import { useForm } from " @inertiajs/vue3" ;
Original file line number Diff line number Diff line change 33 <Head :title =" title" />
44
55 <div class =" mx-auto max-w-2xl" >
6- <PageTitle class =" mb-4 xl:mb-8" :text =" title" />
6+ <PageTitle
7+ class =" mb-4 xl:mb-8"
8+ :text =" title"
9+ />
710
811 <div class =" bg-white rounded-2xl xl:p-10 p-6 border border-brand-200" >
912 <form @submit.prevent =" submitForm" >
5457 </div >
5558</template >
5659
60+ <script >
61+ import Layout from ' @js/Layouts/Guest.vue' ;
62+
63+ export default {
64+ layout: Layout,
65+ }
66+ </script >
67+
5768<script setup>
5869 import { ref } from " vue" ;
5970 import { useForm } from " @inertiajs/vue3" ;
Original file line number Diff line number Diff line change 5252 </div >
5353</template >
5454
55+ <script >
56+ import Layout from ' @js/Layouts/Guest.vue' ;
57+
58+ export default {
59+ layout: Layout,
60+ }
61+ </script >
62+
5563<script setup>
5664 import { ref } from " vue" ;
5765 import { useForm } from " @inertiajs/vue3" ;
You can’t perform that action at this time.
0 commit comments