kaze 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/kaze/commands/install_command.rb +25 -13
- data/lib/kaze/commands/installs_hotwire_stack.rb +11 -8
- data/lib/kaze/commands/installs_inertia_stacks.rb +34 -24
- data/lib/kaze/commands/version_command.rb +6 -0
- data/lib/kaze/version.rb +1 -1
- data/lib/kaze.rb +1 -3
- data/stubs/default/app/forms/auth/login_form.rb +2 -8
- data/stubs/default/app/forms/auth/new_password_form.rb +1 -1
- data/stubs/default/app/forms/update_profile_information_form.rb +1 -1
- data/stubs/default/app/mailers/application_mailer.rb +4 -4
- data/stubs/default/app/mailers/user_mailer.rb +1 -1
- data/stubs/default/app/models/auth.rb +57 -0
- data/stubs/default/app/models/current.rb +1 -1
- data/stubs/default/app/validators/current_password_validator.rb +1 -1
- data/stubs/default/app/validators/email_validator.rb +1 -1
- data/stubs/default/app/validators/lowercase_validator.rb +2 -2
- data/stubs/default/app/views/layouts/mailer.html.erb +367 -372
- data/stubs/default/app/views/layouts/mailer.text.erb +1 -4
- data/stubs/default/app/views/user_mailer/reset_password.html.erb +21 -26
- data/stubs/default/config/routes.rb +16 -16
- data/stubs/default/db/migrate/20240101000001_create_delayed_jobs.rb +1 -1
- data/stubs/default/test/factories/users.rb +7 -0
- data/stubs/default/test/integration/auth/authentication_test.rb +43 -0
- data/stubs/default/test/integration/auth/password_reset_test.rb +41 -0
- data/stubs/default/test/integration/auth/registration_test.rb +21 -0
- data/stubs/default/test/integration/password_update_test.rb +28 -0
- data/stubs/default/test/integration/profile_test.rb +51 -0
- data/stubs/default/test/test_helper.rb +38 -0
- data/stubs/hotwire/app/components/danger_button_component.rb +1 -1
- data/stubs/hotwire/app/components/dropdown_component.html.erb +17 -18
- data/stubs/hotwire/app/components/dropdown_component.rb +7 -7
- data/stubs/hotwire/app/components/modal_component.html.erb +55 -59
- data/stubs/hotwire/app/components/modal_component.rb +6 -6
- data/stubs/hotwire/app/components/primary_button_component.rb +1 -1
- data/stubs/hotwire/app/components/secondary_button_component.rb +1 -1
- data/stubs/hotwire/app/controllers/application_controller.rb +1 -0
- data/stubs/hotwire/app/controllers/auth/authenticated_session_controller.rb +12 -9
- data/stubs/hotwire/app/controllers/auth/new_password_controller.rb +7 -5
- data/stubs/hotwire/app/controllers/auth/password_reset_link_controller.rb +7 -5
- data/stubs/hotwire/app/controllers/auth/registered_user_controller.rb +7 -5
- data/stubs/hotwire/app/controllers/concerns/authenticate.rb +5 -20
- data/stubs/hotwire/app/controllers/concerns/redirect_if_authenticated.rb +19 -0
- data/stubs/hotwire/app/controllers/concerns/set_current_auth.rb +9 -0
- data/stubs/hotwire/app/controllers/password_controller.rb +3 -3
- data/stubs/hotwire/app/controllers/profile_controller.rb +11 -9
- data/stubs/hotwire/app/controllers/welcome_controller.rb +1 -1
- data/stubs/hotwire/app/javascript/application.js +3 -3
- data/stubs/hotwire/app/views/auth/forgot_password.html.erb +12 -17
- data/stubs/hotwire/app/views/auth/login.html.erb +0 -9
- data/stubs/hotwire/app/views/auth/register.html.erb +0 -13
- data/stubs/hotwire/app/views/auth/reset_password.html.erb +0 -7
- data/stubs/hotwire/app/views/dashboard/index.html.erb +9 -10
- data/stubs/hotwire/app/views/layouts/_navigation.html.erb +77 -87
- data/stubs/hotwire/app/views/layouts/application.html.erb +0 -9
- data/stubs/hotwire/app/views/layouts/guest.html.erb +0 -6
- data/stubs/hotwire/app/views/profile/edit.html.erb +19 -22
- data/stubs/hotwire/app/views/profile/partials/_delete_user_form.html.erb +32 -42
- data/stubs/hotwire/app/views/profile/partials/_update_password_form.html.erb +42 -55
- data/stubs/hotwire/app/views/profile/partials/_update_profile_information_form.html.erb +36 -46
- data/stubs/hotwire/app/views/welcome/index.html.erb +34 -46
- data/stubs/hotwire/config/importmap.rb +3 -3
- data/stubs/hotwire/config/tailwind.config.js +2 -2
- data/stubs/inertia-common/app/controllers/application_controller.rb +1 -0
- data/stubs/inertia-common/app/controllers/auth/authenticated_session_controller.rb +11 -8
- data/stubs/inertia-common/app/controllers/auth/new_password_controller.rb +5 -3
- data/stubs/inertia-common/app/controllers/auth/password_reset_link_controller.rb +5 -3
- data/stubs/inertia-common/app/controllers/auth/registered_user_controller.rb +5 -3
- data/stubs/inertia-common/app/controllers/concerns/authenticate.rb +5 -20
- data/stubs/inertia-common/app/controllers/concerns/handle_inertia_requests.rb +1 -1
- data/stubs/inertia-common/app/controllers/concerns/redirect_if_authenticated.rb +19 -0
- data/stubs/inertia-common/app/controllers/concerns/set_current_auth.rb +9 -0
- data/stubs/inertia-common/app/controllers/concerns/verify_csrf_token.rb +4 -4
- data/stubs/inertia-common/app/controllers/dashboard_controller.rb +1 -1
- data/stubs/inertia-common/app/controllers/password_controller.rb +1 -1
- data/stubs/inertia-common/app/controllers/profile_controller.rb +7 -5
- data/stubs/inertia-common/app/controllers/welcome_controller.rb +2 -2
- data/stubs/inertia-common/bin/vite +6 -6
- data/stubs/inertia-common/test/integration/password_update_test.rb +28 -0
- data/stubs/inertia-common/test/integration/profile_test.rb +51 -0
- data/stubs/inertia-react-ts/app/javascript/Components/ApplicationLogo.tsx +13 -9
- data/stubs/inertia-react-ts/app/javascript/Components/Checkbox.tsx +15 -12
- data/stubs/inertia-react-ts/app/javascript/Components/DangerButton.tsx +20 -15
- data/stubs/inertia-react-ts/app/javascript/Components/Dropdown.tsx +119 -87
- data/stubs/inertia-react-ts/app/javascript/Components/InputError.tsx +14 -7
- data/stubs/inertia-react-ts/app/javascript/Components/InputLabel.tsx +18 -7
- data/stubs/inertia-react-ts/app/javascript/Components/Modal.tsx +60 -60
- data/stubs/inertia-react-ts/app/javascript/Components/NavLink.tsx +21 -16
- data/stubs/inertia-react-ts/app/javascript/Components/PrimaryButton.tsx +20 -15
- data/stubs/inertia-react-ts/app/javascript/Components/ResponsiveNavLink.tsx +19 -14
- data/stubs/inertia-react-ts/app/javascript/Components/SecondaryButton.tsx +22 -16
- data/stubs/inertia-react-ts/app/javascript/Components/TextInput.tsx +35 -24
- data/stubs/inertia-react-ts/app/javascript/Layouts/AuthenticatedLayout.tsx +157 -117
- data/stubs/inertia-react-ts/app/javascript/Layouts/GuestLayout.tsx +15 -15
- data/stubs/inertia-react-ts/app/javascript/Pages/Auth/ForgotPassword.tsx +52 -49
- data/stubs/inertia-react-ts/app/javascript/Pages/Auth/Login.tsx +90 -82
- data/stubs/inertia-react-ts/app/javascript/Pages/Auth/Register.tsx +118 -115
- data/stubs/inertia-react-ts/app/javascript/Pages/Auth/ResetPassword.tsx +63 -60
- data/stubs/inertia-react-ts/app/javascript/Pages/Dashboard.tsx +23 -17
- data/stubs/inertia-react-ts/app/javascript/Pages/Profile/Edit.tsx +31 -27
- data/stubs/inertia-react-ts/app/javascript/Pages/Profile/Partials/DeleteUserForm.tsx +109 -99
- data/stubs/inertia-react-ts/app/javascript/Pages/Profile/Partials/UpdatePasswordForm.tsx +121 -113
- data/stubs/inertia-react-ts/app/javascript/Pages/Profile/Partials/UpdateProfileInformationForm.tsx +76 -69
- data/stubs/inertia-react-ts/app/javascript/Pages/Welcome.tsx +87 -63
- data/stubs/inertia-react-ts/app/javascript/entrypoints/application.tsx +32 -25
- data/stubs/inertia-react-ts/app/views/layouts/application.html.erb +0 -4
- data/stubs/inertia-react-ts/config/tailwind.config.js +2 -2
- data/stubs/inertia-react-ts/vite.config.ts +2 -5
- data/stubs/inertia-vue-ts/app/javascript/Components/ApplicationLogo.vue +10 -6
- data/stubs/inertia-vue-ts/app/javascript/Components/Checkbox.vue +18 -18
- data/stubs/inertia-vue-ts/app/javascript/Components/DangerButton.vue +5 -5
- data/stubs/inertia-vue-ts/app/javascript/Components/Dropdown.vue +60 -57
- data/stubs/inertia-vue-ts/app/javascript/Components/DropdownLink.vue +9 -9
- data/stubs/inertia-vue-ts/app/javascript/Components/InputError.vue +7 -7
- data/stubs/inertia-vue-ts/app/javascript/Components/InputLabel.vue +6 -6
- data/stubs/inertia-vue-ts/app/javascript/Components/Modal.vue +84 -74
- data/stubs/inertia-vue-ts/app/javascript/Components/NavLink.vue +12 -12
- data/stubs/inertia-vue-ts/app/javascript/Components/PrimaryButton.vue +5 -5
- data/stubs/inertia-vue-ts/app/javascript/Components/ResponsiveNavLink.vue +12 -12
- data/stubs/inertia-vue-ts/app/javascript/Components/SecondaryButton.vue +13 -13
- data/stubs/inertia-vue-ts/app/javascript/Components/TextInput.vue +13 -13
- data/stubs/inertia-vue-ts/app/javascript/Layouts/AuthenticatedLayout.vue +168 -136
- data/stubs/inertia-vue-ts/app/javascript/Layouts/GuestLayout.vue +15 -13
- data/stubs/inertia-vue-ts/app/javascript/Pages/Auth/ForgotPassword.vue +56 -49
- data/stubs/inertia-vue-ts/app/javascript/Pages/Auth/Login.vue +78 -72
- data/stubs/inertia-vue-ts/app/javascript/Pages/Auth/Register.vue +101 -97
- data/stubs/inertia-vue-ts/app/javascript/Pages/Auth/ResetPassword.vue +71 -68
- data/stubs/inertia-vue-ts/app/javascript/Pages/Dashboard.vue +22 -14
- data/stubs/inertia-vue-ts/app/javascript/Pages/Profile/Edit.vue +34 -30
- data/stubs/inertia-vue-ts/app/javascript/Pages/Profile/Partials/DeleteUserForm.vue +87 -83
- data/stubs/inertia-vue-ts/app/javascript/Pages/Profile/Partials/UpdatePasswordForm.vue +105 -98
- data/stubs/inertia-vue-ts/app/javascript/Pages/Profile/Partials/UpdateProfileInformationForm.vue +69 -59
- data/stubs/inertia-vue-ts/app/javascript/Pages/Welcome.vue +74 -47
- data/stubs/inertia-vue-ts/app/views/layouts/application.html.erb +0 -4
- data/stubs/inertia-vue-ts/config/tailwind.config.js +2 -2
- data/stubs/inertia-vue-ts/vite.config.ts +2 -5
- metadata +19 -6
- data/stubs/hotwire/bin/vite +0 -27
- data/stubs/inertia-common/Procfile.dev +0 -3
- /data/stubs/{hotwire → default}/Procfile.dev +0 -0
- /data/stubs/hotwire/app/javascript/{alpinejs.js → alpinejs.stub} +0 -0
@@ -1,155 +1,187 @@
|
|
1
1
|
<script setup lang="ts">
|
2
|
-
import { ref } from 'vue'
|
3
|
-
import ApplicationLogo from '@/Components/ApplicationLogo.vue'
|
4
|
-
import Dropdown from '@/Components/Dropdown.vue'
|
5
|
-
import DropdownLink from '@/Components/DropdownLink.vue'
|
6
|
-
import NavLink from '@/Components/NavLink.vue'
|
7
|
-
import ResponsiveNavLink from '@/Components/ResponsiveNavLink.vue'
|
8
|
-
import { Link } from '@inertiajs/vue3'
|
9
|
-
import { dashboard_path, logout_path, profile_edit_path } from '@/routes'
|
2
|
+
import { ref } from 'vue'
|
3
|
+
import ApplicationLogo from '@/Components/ApplicationLogo.vue'
|
4
|
+
import Dropdown from '@/Components/Dropdown.vue'
|
5
|
+
import DropdownLink from '@/Components/DropdownLink.vue'
|
6
|
+
import NavLink from '@/Components/NavLink.vue'
|
7
|
+
import ResponsiveNavLink from '@/Components/ResponsiveNavLink.vue'
|
8
|
+
import { Link } from '@inertiajs/vue3'
|
9
|
+
import { dashboard_path, logout_path, profile_edit_path } from '@/routes'
|
10
10
|
|
11
|
-
const showingNavigationDropdown = ref(false)
|
11
|
+
const showingNavigationDropdown = ref(false)
|
12
12
|
|
13
|
-
const { pathname = '' } = typeof window !== 'undefined' ? window.location : {}
|
13
|
+
const { pathname = '' } = typeof window !== 'undefined' ? window.location : {}
|
14
14
|
</script>
|
15
15
|
|
16
16
|
<template>
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
17
|
+
<div>
|
18
|
+
<div class="min-h-screen bg-gray-100 dark:bg-gray-900">
|
19
|
+
<nav
|
20
|
+
class="bg-white dark:bg-gray-800 border-b border-gray-100 dark:border-gray-700"
|
21
|
+
>
|
22
|
+
<!-- Primary Navigation Menu -->
|
23
|
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
24
|
+
<div class="flex justify-between h-16">
|
25
|
+
<div class="flex">
|
26
|
+
<!-- Logo -->
|
27
|
+
<div class="shrink-0 flex items-center">
|
28
|
+
<Link href="/">
|
29
|
+
<ApplicationLogo
|
30
|
+
class="block h-9 w-auto fill-current text-gray-800 dark:text-gray-200"
|
31
|
+
/>
|
32
|
+
</Link>
|
33
|
+
</div>
|
32
34
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
<div class="ms-3 relative">
|
44
|
-
<Dropdown align="right" width="48">
|
45
|
-
<template #trigger>
|
46
|
-
<span class="inline-flex rounded-md">
|
47
|
-
<button
|
48
|
-
type="button"
|
49
|
-
class="inline-flex items-center px-3 py-2 border border-transparent text-sm leading-4 font-medium rounded-md text-gray-500 dark:text-gray-400 bg-white dark:bg-gray-800 hover:text-gray-700 dark:hover:text-gray-300 focus:outline-none transition ease-in-out duration-150"
|
50
|
-
>
|
51
|
-
{{ $page.props.auth.user.name }}
|
35
|
+
<!-- Navigation Links -->
|
36
|
+
<div class="hidden space-x-8 sm:-my-px sm:ms-10 sm:flex">
|
37
|
+
<NavLink
|
38
|
+
:href="dashboard_path()"
|
39
|
+
:active="pathname.match(/dashboard/) != null"
|
40
|
+
>
|
41
|
+
Dashboard
|
42
|
+
</NavLink>
|
43
|
+
</div>
|
44
|
+
</div>
|
52
45
|
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
</svg>
|
65
|
-
</button>
|
66
|
-
</span>
|
67
|
-
</template>
|
46
|
+
<div class="hidden sm:flex sm:items-center sm:ms-6">
|
47
|
+
<!-- Settings Dropdown -->
|
48
|
+
<div class="ms-3 relative">
|
49
|
+
<Dropdown align="right" width="48">
|
50
|
+
<template #trigger>
|
51
|
+
<span class="inline-flex rounded-md">
|
52
|
+
<button
|
53
|
+
type="button"
|
54
|
+
class="inline-flex items-center px-3 py-2 border border-transparent text-sm leading-4 font-medium rounded-md text-gray-500 dark:text-gray-400 bg-white dark:bg-gray-800 hover:text-gray-700 dark:hover:text-gray-300 focus:outline-none transition ease-in-out duration-150"
|
55
|
+
>
|
56
|
+
{{ $page.props.auth.user.name }}
|
68
57
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
58
|
+
<svg
|
59
|
+
class="ms-2 -me-0.5 h-4 w-4"
|
60
|
+
xmlns="http://www.w3.org/2000/svg"
|
61
|
+
viewBox="0 0 20 20"
|
62
|
+
fill="currentColor"
|
63
|
+
>
|
64
|
+
<path
|
65
|
+
fill-rule="evenodd"
|
66
|
+
d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"
|
67
|
+
clip-rule="evenodd"
|
68
|
+
/>
|
69
|
+
</svg>
|
70
|
+
</button>
|
71
|
+
</span>
|
72
|
+
</template>
|
78
73
|
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
d="M4 6h16M4 12h16M4 18h16"
|
95
|
-
/>
|
96
|
-
<path
|
97
|
-
:class="{
|
98
|
-
hidden: !showingNavigationDropdown,
|
99
|
-
'inline-flex': showingNavigationDropdown,
|
100
|
-
}"
|
101
|
-
stroke-linecap="round"
|
102
|
-
stroke-linejoin="round"
|
103
|
-
stroke-width="2"
|
104
|
-
d="M6 18L18 6M6 6l12 12"
|
105
|
-
/>
|
106
|
-
</svg>
|
107
|
-
</button>
|
108
|
-
</div>
|
109
|
-
</div>
|
110
|
-
</div>
|
74
|
+
<template #content>
|
75
|
+
<DropdownLink :href="profile_edit_path()">
|
76
|
+
Profile
|
77
|
+
</DropdownLink>
|
78
|
+
<DropdownLink
|
79
|
+
:href="logout_path()"
|
80
|
+
method="post"
|
81
|
+
as="button"
|
82
|
+
>
|
83
|
+
Log Out
|
84
|
+
</DropdownLink>
|
85
|
+
</template>
|
86
|
+
</Dropdown>
|
87
|
+
</div>
|
88
|
+
</div>
|
111
89
|
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
90
|
+
<!-- Hamburger -->
|
91
|
+
<div class="-me-2 flex items-center sm:hidden">
|
92
|
+
<button
|
93
|
+
@click="showingNavigationDropdown = !showingNavigationDropdown"
|
94
|
+
class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 dark:text-gray-500 hover:text-gray-500 dark:hover:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-900 focus:outline-none focus:bg-gray-100 dark:focus:bg-gray-900 focus:text-gray-500 dark:focus:text-gray-400 transition duration-150 ease-in-out"
|
95
|
+
>
|
96
|
+
<svg
|
97
|
+
class="h-6 w-6"
|
98
|
+
stroke="currentColor"
|
99
|
+
fill="none"
|
100
|
+
viewBox="0 0 24 24"
|
116
101
|
>
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
102
|
+
<path
|
103
|
+
:class="{
|
104
|
+
hidden: showingNavigationDropdown,
|
105
|
+
'inline-flex': !showingNavigationDropdown,
|
106
|
+
}"
|
107
|
+
stroke-linecap="round"
|
108
|
+
stroke-linejoin="round"
|
109
|
+
stroke-width="2"
|
110
|
+
d="M4 6h16M4 12h16M4 18h16"
|
111
|
+
/>
|
112
|
+
<path
|
113
|
+
:class="{
|
114
|
+
hidden: !showingNavigationDropdown,
|
115
|
+
'inline-flex': showingNavigationDropdown,
|
116
|
+
}"
|
117
|
+
stroke-linecap="round"
|
118
|
+
stroke-linejoin="round"
|
119
|
+
stroke-width="2"
|
120
|
+
d="M6 18L18 6M6 6l12 12"
|
121
|
+
/>
|
122
|
+
</svg>
|
123
|
+
</button>
|
124
|
+
</div>
|
125
|
+
</div>
|
126
|
+
</div>
|
122
127
|
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
128
|
+
<!-- Responsive Navigation Menu -->
|
129
|
+
<div
|
130
|
+
:class="{
|
131
|
+
block: showingNavigationDropdown,
|
132
|
+
hidden: !showingNavigationDropdown,
|
133
|
+
}"
|
134
|
+
class="sm:hidden"
|
135
|
+
>
|
136
|
+
<div class="pt-2 pb-3 space-y-1">
|
137
|
+
<ResponsiveNavLink
|
138
|
+
:href="dashboard_path()"
|
139
|
+
:active="pathname.match(/dashboard/) != null"
|
140
|
+
>
|
141
|
+
Dashboard
|
142
|
+
</ResponsiveNavLink>
|
143
|
+
</div>
|
131
144
|
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
145
|
+
<!-- Responsive Settings Options -->
|
146
|
+
<div class="pt-4 pb-1 border-t border-gray-200 dark:border-gray-600">
|
147
|
+
<div class="px-4">
|
148
|
+
<div
|
149
|
+
class="font-medium text-base text-gray-800 dark:text-gray-200"
|
150
|
+
>
|
151
|
+
{{ $page.props.auth.user.name }}
|
152
|
+
</div>
|
153
|
+
<div class="font-medium text-sm text-gray-500">
|
154
|
+
{{ $page.props.auth.user.email }}
|
155
|
+
</div>
|
156
|
+
</div>
|
141
157
|
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
158
|
+
<div class="mt-3 space-y-1">
|
159
|
+
<ResponsiveNavLink :href="profile_edit_path()">
|
160
|
+
Profile
|
161
|
+
</ResponsiveNavLink>
|
162
|
+
<ResponsiveNavLink
|
163
|
+
:href="logout_path()"
|
164
|
+
method="post"
|
165
|
+
as="button"
|
166
|
+
>
|
167
|
+
Log Out
|
168
|
+
</ResponsiveNavLink>
|
169
|
+
</div>
|
170
|
+
</div>
|
171
|
+
</div>
|
172
|
+
</nav>
|
148
173
|
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
174
|
+
<!-- Page Heading -->
|
175
|
+
<header class="bg-white dark:bg-gray-800 shadow" v-if="$slots.header">
|
176
|
+
<div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8">
|
177
|
+
<slot name="header" />
|
153
178
|
</div>
|
179
|
+
</header>
|
180
|
+
|
181
|
+
<!-- Page Content -->
|
182
|
+
<main>
|
183
|
+
<slot />
|
184
|
+
</main>
|
154
185
|
</div>
|
186
|
+
</div>
|
155
187
|
</template>
|
@@ -1,20 +1,22 @@
|
|
1
1
|
<script setup lang="ts">
|
2
|
-
import ApplicationLogo from '@/Components/ApplicationLogo.vue'
|
3
|
-
import { Link } from '@inertiajs/vue3'
|
2
|
+
import ApplicationLogo from '@/Components/ApplicationLogo.vue'
|
3
|
+
import { Link } from '@inertiajs/vue3'
|
4
4
|
</script>
|
5
5
|
|
6
6
|
<template>
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
7
|
+
<div
|
8
|
+
class="min-h-screen flex flex-col sm:justify-center items-center pt-6 sm:pt-0 bg-gray-100 dark:bg-gray-900"
|
9
|
+
>
|
10
|
+
<div>
|
11
|
+
<Link href="/">
|
12
|
+
<ApplicationLogo class="w-20 h-20 fill-current text-gray-500" />
|
13
|
+
</Link>
|
14
|
+
</div>
|
13
15
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
</div>
|
16
|
+
<div
|
17
|
+
class="w-full sm:max-w-md mt-6 px-6 py-4 bg-white dark:bg-gray-800 shadow-md overflow-hidden sm:rounded-lg"
|
18
|
+
>
|
19
|
+
<slot />
|
19
20
|
</div>
|
21
|
+
</div>
|
20
22
|
</template>
|
@@ -1,60 +1,67 @@
|
|
1
1
|
<script setup lang="ts">
|
2
|
-
import GuestLayout from '@/Layouts/GuestLayout.vue'
|
3
|
-
import InputError from '@/Components/InputError.vue'
|
4
|
-
import InputLabel from '@/Components/InputLabel.vue'
|
5
|
-
import PrimaryButton from '@/Components/PrimaryButton.vue'
|
6
|
-
import TextInput from '@/Components/TextInput.vue'
|
7
|
-
import { Head, useForm } from '@inertiajs/vue3'
|
8
|
-
import { password_email_path } from '@/routes'
|
2
|
+
import GuestLayout from '@/Layouts/GuestLayout.vue'
|
3
|
+
import InputError from '@/Components/InputError.vue'
|
4
|
+
import InputLabel from '@/Components/InputLabel.vue'
|
5
|
+
import PrimaryButton from '@/Components/PrimaryButton.vue'
|
6
|
+
import TextInput from '@/Components/TextInput.vue'
|
7
|
+
import { Head, useForm } from '@inertiajs/vue3'
|
8
|
+
import { password_email_path } from '@/routes'
|
9
9
|
|
10
10
|
defineProps<{
|
11
|
-
|
12
|
-
}>()
|
11
|
+
status?: string
|
12
|
+
}>()
|
13
13
|
|
14
14
|
const form = useForm({
|
15
|
-
|
16
|
-
})
|
15
|
+
email: '',
|
16
|
+
})
|
17
17
|
|
18
18
|
const submit = () => {
|
19
|
-
|
20
|
-
}
|
19
|
+
form.post(password_email_path())
|
20
|
+
}
|
21
21
|
</script>
|
22
22
|
|
23
23
|
<template>
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
24
|
+
<GuestLayout>
|
25
|
+
<Head title="Forgot Password" />
|
26
|
+
|
27
|
+
<div class="mb-4 text-sm text-gray-600 dark:text-gray-400">
|
28
|
+
Forgot your password? No problem. Just let us know your email address and
|
29
|
+
we will email you a password reset link that will allow you to choose a
|
30
|
+
new one.
|
31
|
+
</div>
|
32
|
+
|
33
|
+
<div
|
34
|
+
v-if="status"
|
35
|
+
class="mb-4 font-medium text-sm text-green-600 dark:text-green-400"
|
36
|
+
>
|
37
|
+
{{ status }}
|
38
|
+
</div>
|
39
|
+
|
40
|
+
<form @submit.prevent="submit">
|
41
|
+
<div>
|
42
|
+
<InputLabel for="email" value="Email" />
|
43
|
+
|
44
|
+
<TextInput
|
45
|
+
id="email"
|
46
|
+
type="email"
|
47
|
+
class="mt-1 block w-full"
|
48
|
+
v-model="form.email"
|
49
|
+
required
|
50
|
+
autofocus
|
51
|
+
autocomplete="username"
|
52
|
+
/>
|
53
|
+
|
54
|
+
<InputError class="mt-2" :message="form.errors.email" />
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div class="flex items-center justify-end mt-4">
|
58
|
+
<PrimaryButton
|
59
|
+
:class="{ 'opacity-25': form.processing }"
|
60
|
+
:disabled="form.processing"
|
61
|
+
>
|
62
|
+
Email Password Reset Link
|
63
|
+
</PrimaryButton>
|
64
|
+
</div>
|
65
|
+
</form>
|
66
|
+
</GuestLayout>
|
60
67
|
</template>
|