kaze 0.4.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. checksums.yaml +4 -4
  2. data/lib/kaze/commands/install_command.rb +25 -13
  3. data/lib/kaze/commands/installs_hotwire_stack.rb +11 -8
  4. data/lib/kaze/commands/installs_inertia_stacks.rb +34 -24
  5. data/lib/kaze/commands/version_command.rb +6 -0
  6. data/lib/kaze/version.rb +1 -1
  7. data/lib/kaze.rb +1 -3
  8. data/stubs/default/app/forms/auth/login_form.rb +2 -8
  9. data/stubs/default/app/forms/auth/new_password_form.rb +1 -1
  10. data/stubs/default/app/forms/update_profile_information_form.rb +1 -1
  11. data/stubs/default/app/mailers/application_mailer.rb +4 -4
  12. data/stubs/default/app/mailers/user_mailer.rb +1 -1
  13. data/stubs/default/app/models/auth.rb +57 -0
  14. data/stubs/default/app/models/current.rb +1 -1
  15. data/stubs/default/app/validators/current_password_validator.rb +1 -1
  16. data/stubs/default/app/validators/email_validator.rb +1 -1
  17. data/stubs/default/app/validators/lowercase_validator.rb +2 -2
  18. data/stubs/default/app/views/layouts/mailer.html.erb +367 -372
  19. data/stubs/default/app/views/layouts/mailer.text.erb +1 -4
  20. data/stubs/default/app/views/user_mailer/reset_password.html.erb +21 -26
  21. data/stubs/default/config/routes.rb +16 -16
  22. data/stubs/default/db/migrate/20240101000001_create_delayed_jobs.rb +1 -1
  23. data/stubs/default/test/factories/users.rb +7 -0
  24. data/stubs/default/test/integration/auth/authentication_test.rb +43 -0
  25. data/stubs/default/test/integration/auth/password_reset_test.rb +41 -0
  26. data/stubs/default/test/integration/auth/registration_test.rb +21 -0
  27. data/stubs/default/test/integration/password_update_test.rb +28 -0
  28. data/stubs/default/test/integration/profile_test.rb +51 -0
  29. data/stubs/default/test/test_helper.rb +38 -0
  30. data/stubs/hotwire/app/components/danger_button_component.rb +1 -1
  31. data/stubs/hotwire/app/components/dropdown_component.html.erb +17 -18
  32. data/stubs/hotwire/app/components/dropdown_component.rb +7 -7
  33. data/stubs/hotwire/app/components/modal_component.html.erb +55 -59
  34. data/stubs/hotwire/app/components/modal_component.rb +6 -6
  35. data/stubs/hotwire/app/components/primary_button_component.rb +1 -1
  36. data/stubs/hotwire/app/components/secondary_button_component.rb +1 -1
  37. data/stubs/hotwire/app/controllers/application_controller.rb +1 -0
  38. data/stubs/hotwire/app/controllers/auth/authenticated_session_controller.rb +12 -9
  39. data/stubs/hotwire/app/controllers/auth/new_password_controller.rb +7 -5
  40. data/stubs/hotwire/app/controllers/auth/password_reset_link_controller.rb +7 -5
  41. data/stubs/hotwire/app/controllers/auth/registered_user_controller.rb +7 -5
  42. data/stubs/hotwire/app/controllers/concerns/authenticate.rb +5 -20
  43. data/stubs/hotwire/app/controllers/concerns/redirect_if_authenticated.rb +19 -0
  44. data/stubs/hotwire/app/controllers/concerns/set_current_auth.rb +9 -0
  45. data/stubs/hotwire/app/controllers/password_controller.rb +3 -3
  46. data/stubs/hotwire/app/controllers/profile_controller.rb +11 -9
  47. data/stubs/hotwire/app/controllers/welcome_controller.rb +1 -1
  48. data/stubs/hotwire/app/javascript/application.js +3 -3
  49. data/stubs/hotwire/app/views/auth/forgot_password.html.erb +12 -17
  50. data/stubs/hotwire/app/views/auth/login.html.erb +0 -9
  51. data/stubs/hotwire/app/views/auth/register.html.erb +0 -13
  52. data/stubs/hotwire/app/views/auth/reset_password.html.erb +0 -7
  53. data/stubs/hotwire/app/views/dashboard/index.html.erb +9 -10
  54. data/stubs/hotwire/app/views/layouts/_navigation.html.erb +77 -87
  55. data/stubs/hotwire/app/views/layouts/application.html.erb +0 -9
  56. data/stubs/hotwire/app/views/layouts/guest.html.erb +0 -6
  57. data/stubs/hotwire/app/views/profile/edit.html.erb +19 -22
  58. data/stubs/hotwire/app/views/profile/partials/_delete_user_form.html.erb +32 -42
  59. data/stubs/hotwire/app/views/profile/partials/_update_password_form.html.erb +42 -55
  60. data/stubs/hotwire/app/views/profile/partials/_update_profile_information_form.html.erb +36 -46
  61. data/stubs/hotwire/app/views/welcome/index.html.erb +34 -46
  62. data/stubs/hotwire/config/importmap.rb +3 -3
  63. data/stubs/hotwire/config/tailwind.config.js +2 -2
  64. data/stubs/inertia-common/app/controllers/application_controller.rb +1 -0
  65. data/stubs/inertia-common/app/controllers/auth/authenticated_session_controller.rb +11 -8
  66. data/stubs/inertia-common/app/controllers/auth/new_password_controller.rb +5 -3
  67. data/stubs/inertia-common/app/controllers/auth/password_reset_link_controller.rb +5 -3
  68. data/stubs/inertia-common/app/controllers/auth/registered_user_controller.rb +5 -3
  69. data/stubs/inertia-common/app/controllers/concerns/authenticate.rb +5 -20
  70. data/stubs/inertia-common/app/controllers/concerns/handle_inertia_requests.rb +1 -1
  71. data/stubs/inertia-common/app/controllers/concerns/redirect_if_authenticated.rb +19 -0
  72. data/stubs/inertia-common/app/controllers/concerns/set_current_auth.rb +9 -0
  73. data/stubs/inertia-common/app/controllers/concerns/verify_csrf_token.rb +4 -4
  74. data/stubs/inertia-common/app/controllers/dashboard_controller.rb +1 -1
  75. data/stubs/inertia-common/app/controllers/password_controller.rb +1 -1
  76. data/stubs/inertia-common/app/controllers/profile_controller.rb +7 -5
  77. data/stubs/inertia-common/app/controllers/welcome_controller.rb +2 -2
  78. data/stubs/inertia-common/bin/vite +6 -6
  79. data/stubs/inertia-common/test/integration/password_update_test.rb +28 -0
  80. data/stubs/inertia-common/test/integration/profile_test.rb +51 -0
  81. data/stubs/inertia-react-ts/app/javascript/Components/ApplicationLogo.tsx +13 -9
  82. data/stubs/inertia-react-ts/app/javascript/Components/Checkbox.tsx +15 -12
  83. data/stubs/inertia-react-ts/app/javascript/Components/DangerButton.tsx +20 -15
  84. data/stubs/inertia-react-ts/app/javascript/Components/Dropdown.tsx +119 -87
  85. data/stubs/inertia-react-ts/app/javascript/Components/InputError.tsx +14 -7
  86. data/stubs/inertia-react-ts/app/javascript/Components/InputLabel.tsx +18 -7
  87. data/stubs/inertia-react-ts/app/javascript/Components/Modal.tsx +60 -60
  88. data/stubs/inertia-react-ts/app/javascript/Components/NavLink.tsx +21 -16
  89. data/stubs/inertia-react-ts/app/javascript/Components/PrimaryButton.tsx +20 -15
  90. data/stubs/inertia-react-ts/app/javascript/Components/ResponsiveNavLink.tsx +19 -14
  91. data/stubs/inertia-react-ts/app/javascript/Components/SecondaryButton.tsx +22 -16
  92. data/stubs/inertia-react-ts/app/javascript/Components/TextInput.tsx +35 -24
  93. data/stubs/inertia-react-ts/app/javascript/Layouts/AuthenticatedLayout.tsx +157 -117
  94. data/stubs/inertia-react-ts/app/javascript/Layouts/GuestLayout.tsx +15 -15
  95. data/stubs/inertia-react-ts/app/javascript/Pages/Auth/ForgotPassword.tsx +52 -49
  96. data/stubs/inertia-react-ts/app/javascript/Pages/Auth/Login.tsx +90 -82
  97. data/stubs/inertia-react-ts/app/javascript/Pages/Auth/Register.tsx +118 -115
  98. data/stubs/inertia-react-ts/app/javascript/Pages/Auth/ResetPassword.tsx +63 -60
  99. data/stubs/inertia-react-ts/app/javascript/Pages/Dashboard.tsx +23 -17
  100. data/stubs/inertia-react-ts/app/javascript/Pages/Profile/Edit.tsx +31 -27
  101. data/stubs/inertia-react-ts/app/javascript/Pages/Profile/Partials/DeleteUserForm.tsx +109 -99
  102. data/stubs/inertia-react-ts/app/javascript/Pages/Profile/Partials/UpdatePasswordForm.tsx +121 -113
  103. data/stubs/inertia-react-ts/app/javascript/Pages/Profile/Partials/UpdateProfileInformationForm.tsx +76 -69
  104. data/stubs/inertia-react-ts/app/javascript/Pages/Welcome.tsx +87 -63
  105. data/stubs/inertia-react-ts/app/javascript/entrypoints/application.tsx +32 -25
  106. data/stubs/inertia-react-ts/app/views/layouts/application.html.erb +0 -4
  107. data/stubs/inertia-react-ts/config/tailwind.config.js +2 -2
  108. data/stubs/inertia-react-ts/vite.config.ts +2 -5
  109. data/stubs/inertia-vue-ts/app/javascript/Components/ApplicationLogo.vue +10 -6
  110. data/stubs/inertia-vue-ts/app/javascript/Components/Checkbox.vue +18 -18
  111. data/stubs/inertia-vue-ts/app/javascript/Components/DangerButton.vue +5 -5
  112. data/stubs/inertia-vue-ts/app/javascript/Components/Dropdown.vue +60 -57
  113. data/stubs/inertia-vue-ts/app/javascript/Components/DropdownLink.vue +9 -9
  114. data/stubs/inertia-vue-ts/app/javascript/Components/InputError.vue +7 -7
  115. data/stubs/inertia-vue-ts/app/javascript/Components/InputLabel.vue +6 -6
  116. data/stubs/inertia-vue-ts/app/javascript/Components/Modal.vue +84 -74
  117. data/stubs/inertia-vue-ts/app/javascript/Components/NavLink.vue +12 -12
  118. data/stubs/inertia-vue-ts/app/javascript/Components/PrimaryButton.vue +5 -5
  119. data/stubs/inertia-vue-ts/app/javascript/Components/ResponsiveNavLink.vue +12 -12
  120. data/stubs/inertia-vue-ts/app/javascript/Components/SecondaryButton.vue +13 -13
  121. data/stubs/inertia-vue-ts/app/javascript/Components/TextInput.vue +13 -13
  122. data/stubs/inertia-vue-ts/app/javascript/Layouts/AuthenticatedLayout.vue +168 -136
  123. data/stubs/inertia-vue-ts/app/javascript/Layouts/GuestLayout.vue +15 -13
  124. data/stubs/inertia-vue-ts/app/javascript/Pages/Auth/ForgotPassword.vue +56 -49
  125. data/stubs/inertia-vue-ts/app/javascript/Pages/Auth/Login.vue +78 -72
  126. data/stubs/inertia-vue-ts/app/javascript/Pages/Auth/Register.vue +101 -97
  127. data/stubs/inertia-vue-ts/app/javascript/Pages/Auth/ResetPassword.vue +71 -68
  128. data/stubs/inertia-vue-ts/app/javascript/Pages/Dashboard.vue +22 -14
  129. data/stubs/inertia-vue-ts/app/javascript/Pages/Profile/Edit.vue +34 -30
  130. data/stubs/inertia-vue-ts/app/javascript/Pages/Profile/Partials/DeleteUserForm.vue +87 -83
  131. data/stubs/inertia-vue-ts/app/javascript/Pages/Profile/Partials/UpdatePasswordForm.vue +105 -98
  132. data/stubs/inertia-vue-ts/app/javascript/Pages/Profile/Partials/UpdateProfileInformationForm.vue +69 -59
  133. data/stubs/inertia-vue-ts/app/javascript/Pages/Welcome.vue +74 -47
  134. data/stubs/inertia-vue-ts/app/views/layouts/application.html.erb +0 -4
  135. data/stubs/inertia-vue-ts/config/tailwind.config.js +2 -2
  136. data/stubs/inertia-vue-ts/vite.config.ts +2 -5
  137. metadata +19 -6
  138. data/stubs/hotwire/bin/vite +0 -27
  139. data/stubs/inertia-common/Procfile.dev +0 -3
  140. /data/stubs/{hotwire → default}/Procfile.dev +0 -0
  141. /data/stubs/hotwire/app/javascript/{alpinejs.js → alpinejs.stub} +0 -0
@@ -1,66 +1,90 @@
1
- import { dashboard_path, login_path, register_path } from '@/routes';
2
- import { PageProps } from '@/types';
3
- import { Head, Link } from '@inertiajs/react';
1
+ import { dashboard_path, login_path, register_path } from '@/routes'
2
+ import { PageProps } from '@/types'
3
+ import { Head, Link } from '@inertiajs/react'
4
4
 
5
- export default function Welcome({ auth, railsVersion, rubyVersion }: PageProps<{ railsVersion: string, rubyVersion: string }>) {
6
- return (
7
- <>
8
- <Head title="Welcome" />
9
- <div className="flex flex-col items-center justify-center bg-[#F0E7E9] bg-center bg-cover text-[#261B23] not-italic font-normal leading-tight min-h-screen text-center" style={{
10
- backgroundImage: 'url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjEwMjQiIHZpZXdCb3g9IjAgMCAxNDQwIDEwMjQiIHdpZHRoPSIxNDQwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Im0xNDQwIDUxMC4wMDA2NDh2LTUxMC4wMDA2NDhoLTE0NDB2Mzg0LjAwMDY0OGM0MTcuMzExOTM5IDEzMS4xNDIxNzkgODkxIDE3MS41MTMgMTQ0MCAxMjZ6IiBmaWxsPSIjZmZmIi8+PC9zdmc+)',
11
- fontFamily: 'Sans-Serif',
12
- fontSize: 'calc(0.9em + 0.5vw)',
13
- }}>
14
- <header className="absolute top-0 right-0 grid grid-cols-2 items-center gap-2 py-10 lg:grid-cols-3">
15
- <div className="-mx-3 flex flex-1 justify-end">
16
- {auth.user ? (
17
- <Link
18
- href={dashboard_path()}
19
- className="rounded-md px-3 py-2 text-black ring-1 ring-transparent transition hover:text-black/70 focus:outline-none focus-visible:ring-[#FF2D20] dark:text-white dark:hover:text-white/80 dark:focus-visible:ring-white"
20
- >
21
- Dashboard
22
- </Link>
23
- ) : (
24
- <>
25
- <Link
26
- href={login_path()}
27
- className="rounded-md px-3 py-2 text-black ring-1 ring-transparent transition hover:text-black/70 focus:outline-none focus-visible:ring-[#FF2D20] dark:text-white dark:hover:text-white/80 dark:focus-visible:ring-white"
28
- >
29
- Log in
30
- </Link>
31
- <Link
32
- href={register_path()}
33
- className="rounded-md px-3 py-2 text-black ring-1 ring-transparent transition hover:text-black/70 focus:outline-none focus-visible:ring-[#FF2D20] dark:text-white dark:hover:text-white/80 dark:focus-visible:ring-white"
34
- >
35
- Register
36
- </Link>
37
- </>
38
- )}
39
- </div>
40
- </header>
41
- <nav style={{
42
- fontSize: 0,
43
- height: '20vw',
44
- lineHeight: 0,
45
- maxHeight: '280px',
46
- maxWidth: '280px',
47
- minHeight: '86px',
48
- minWidth: '86px',
49
- width: '20vw',
50
- }}>
51
- <a className="bg-[#D30001] hover:bg-[#261B23] flex rounded-full" href="https://rubyonrails.org" target="_blank" style={{
52
- transition: 'background 0.25s cubic-bezier(0.33, 1, 0.68, 1)',
53
- filter: 'drop-shadow(0 20px 13px rgb(0 0 0 / 0.03)) drop-shadow(0 8px 5px rgb(0 0 0 / 0.08))',
54
- }}>
55
- <img className="h-auto max-w-full w-full cursor-pointer" alt="" src="data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjExMiIgdmlld0JveD0iMCAwIDExMiAxMTIiIHdpZHRoPSIxMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTEwMC4wODIzNTcgNDguOTk5NTQwM3Y0LjExMzUwMzRoLTcuMzAwMzM4OHYxLjg5ODU0aDMuNjg0MDcxN2MxLjk3MjUwOTEgMCA0LjA3MjUzN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0xOC41MTA3NjUzLjYzMjg0NjcuMDkwNDA2Ny0xLjQ5MTcxLjQ0MzUwNzMuMTMwNTU2NC4zODM5ODAzLjEyMDMyNTIuMzI4NTQ1OC4xMDk5MDc5LjI3NzIwMzcuMDk5MzA0OC4zMjg0OTE1LjEyODY2OS4yOTY0ODguMTMyNzExMi4xMzQxNDUxLjA2OTU4MzgtLjA5MDQwNjcgMS41MTQzMTE3Yy0uNDgyMTY4OS0uMTk1ODgxMS0uOTY0MzM3OC0uMzgxNzE3LTEuNDUzMjAzNS0uNTU3NTA3OHptLTguNTQzNDMwMS0yLjgyNTIwODQuNDUyMDMzMyAxLjM3ODcwMTdoLS4yMjYwMTY3Yy0uNDkxNTg2MiAwLS45ODMxNzI1LjAxMjcxMzQtMS40NzQ3NTg4LjA0NzY3NTRsLS40OTE1ODYyLjA0MjczMTMtLjQyOTQzMTctMS4zMzM0OTg0Yy43NDU4NTUtLjA5MDQwNjcgMS40NjkxMDg0LS4xMzU2MSAyLjE2OTc2MDEtLjEzNTYxeiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg==" />
56
- </a>
57
- </nav>
5
+ export default function Welcome({
6
+ auth,
7
+ railsVersion,
8
+ rubyVersion,
9
+ }: PageProps<{ railsVersion: string; rubyVersion: string }>) {
10
+ return (
11
+ <>
12
+ <Head title="Welcome" />
13
+ <div
14
+ className="flex flex-col items-center justify-center bg-[#F0E7E9] bg-center bg-cover text-[#261B23] not-italic font-normal leading-tight min-h-screen text-center"
15
+ style={{
16
+ backgroundImage:
17
+ 'url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjEwMjQiIHZpZXdCb3g9IjAgMCAxNDQwIDEwMjQiIHdpZHRoPSIxNDQwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Im0xNDQwIDUxMC4wMDA2NDh2LTUxMC4wMDA2NDhoLTE0NDB2Mzg0LjAwMDY0OGM0MTcuMzExOTM5IDEzMS4xNDIxNzkgODkxIDE3MS41MTMgMTQ0MCAxMjZ6IiBmaWxsPSIjZmZmIi8+PC9zdmc+)',
18
+ fontFamily: 'Sans-Serif',
19
+ fontSize: 'calc(0.9em + 0.5vw)',
20
+ }}
21
+ >
22
+ <header className="absolute top-0 right-0 grid grid-cols-2 items-center gap-2 py-10 lg:grid-cols-3">
23
+ <div className="-mx-3 flex flex-1 justify-end">
24
+ {auth.user ? (
25
+ <Link
26
+ href={dashboard_path()}
27
+ className="rounded-md px-3 py-2 text-black ring-1 ring-transparent transition hover:text-black/70 focus:outline-none focus-visible:ring-[#FF2D20] dark:text-white dark:hover:text-white/80 dark:focus-visible:ring-white"
28
+ >
29
+ Dashboard
30
+ </Link>
31
+ ) : (
32
+ <>
33
+ <Link
34
+ href={login_path()}
35
+ className="rounded-md px-3 py-2 text-black ring-1 ring-transparent transition hover:text-black/70 focus:outline-none focus-visible:ring-[#FF2D20] dark:text-white dark:hover:text-white/80 dark:focus-visible:ring-white"
36
+ >
37
+ Log in
38
+ </Link>
39
+ <Link
40
+ href={register_path()}
41
+ className="rounded-md px-3 py-2 text-black ring-1 ring-transparent transition hover:text-black/70 focus:outline-none focus-visible:ring-[#FF2D20] dark:text-white dark:hover:text-white/80 dark:focus-visible:ring-white"
42
+ >
43
+ Register
44
+ </Link>
45
+ </>
46
+ )}
47
+ </div>
48
+ </header>
49
+ <nav
50
+ style={{
51
+ fontSize: 0,
52
+ height: '20vw',
53
+ lineHeight: 0,
54
+ maxHeight: '280px',
55
+ maxWidth: '280px',
56
+ minHeight: '86px',
57
+ minWidth: '86px',
58
+ width: '20vw',
59
+ }}
60
+ >
61
+ <a
62
+ className="bg-[#D30001] hover:bg-[#261B23] flex rounded-full"
63
+ href="https://rubyonrails.org"
64
+ target="_blank"
65
+ style={{
66
+ transition: 'background 0.25s cubic-bezier(0.33, 1, 0.68, 1)',
67
+ filter:
68
+ 'drop-shadow(0 20px 13px rgb(0 0 0 / 0.03)) drop-shadow(0 8px 5px rgb(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EyNjU2OTQtMS4xOTMzNjgtLjIwOTc0MzUtMS43OTAwNTItLjI0OTUyMjRsLS40NDc1MTMtLjAyMTY5NzZ6bS0xOC41NTU5Njg2LTYuMjM4MDYwMSAxLjAxNzA3NSAxLjU1OTUxNWMtLjQ0MDczMjUuMjIwMzY2My0uODY4NzUxNi40NjYxNTk0LTEuMzAzMTI3NC43Mjc4NDQzbC0uNDM3MjAxLjI2NjYyOTEtMS4wMzk2NzY3LTEuNTgyMTE2N2MuNjEwMjQ1LS4zNjE2MjY3IDEuMTk3ODg4NC0uNjc4MDUgMS43NjI5MzAxLS45NzE4NzE3em0xOC41MTA3NjUzLjYzMjg0NjcuMDkwNDA2Ny0xLjQ5MTcxLjQ0MzUwNzMuMTMwNTU2NC4zODM5ODAzLjEyMDMyNTIuMzI4NTQ1OC4xMDk5MDc5LjI3NzIwMzcuMDk5MzA0OC4zMjg0OTE1LjEyODY2OS4yOTY0ODguMTMyNzExMi4xMzQxNDUxLjA2OTU4MzgtLjA5MDQwNjcgMS41MTQzMTE3Yy0uNDgyMTY4OS0uMTk1ODgxMS0uOTY0MzM3OC0uMzgxNzE3LTEuNDUzMjAzNS0uNTU3NTA3OHptLTguNTQzNDMwMS0yLjgyNTIwODQuNDUyMDMzMyAxLjM3ODcwMTdoLS4yMjYwMTY3Yy0uNDkxNTg2MiAwLS45ODMxNzI1LjAxMjcxMzQtMS40NzQ3NTg4LjA0NzY3NTRsLS40OTE1ODYyLjA0MjczMTMtLjQyOTQzMTctMS4zMzM0OTg0Yy43NDU4NTUtLjA5MDQwNjcgMS40NjkxMDg0LS4xMzU2MSAyLjE2OTc2MDEtLjEzNTYxeiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg=="
75
+ />
76
+ </a>
77
+ </nav>
58
78
 
59
- <ul className="bottom-0 left-0 list-none mx-8 mt-0 mb-8 right-0 absolute">
60
- <li><strong>Rails version:</strong> {railsVersion}</li>
61
- <li><strong>Ruby version:</strong> {rubyVersion}</li>
62
- </ul>
63
- </div>
64
- </>
65
- );
79
+ <ul className="bottom-0 left-0 list-none mx-8 mt-0 mb-8 right-0 absolute">
80
+ <li>
81
+ <strong>Rails version:</strong> {railsVersion}
82
+ </li>
83
+ <li>
84
+ <strong>Ruby version:</strong> {rubyVersion}
85
+ </li>
86
+ </ul>
87
+ </div>
88
+ </>
89
+ )
66
90
  }
@@ -1,34 +1,41 @@
1
1
  import './bootstrap'
2
2
  import '../../assets/builds/tailwind.css'
3
3
 
4
- import { createRoot } from 'react-dom/client';
5
- import { createInertiaApp } from '@inertiajs/react';
6
-
7
- async function resolvePageComponent<T>(path: string|string[], pages: Record<string, Promise<T> | (() => Promise<T>)>): Promise<T> {
8
- for (const p of (Array.isArray(path) ? path : [path])) {
9
- const page = pages[p]
10
-
11
- if (typeof page === 'undefined') {
12
- continue
13
- }
14
-
15
- return typeof page === 'function' ? page() : page
4
+ import { createRoot } from 'react-dom/client'
5
+ import { createInertiaApp } from '@inertiajs/react'
6
+
7
+ async function resolvePageComponent<T>(
8
+ path: string | string[],
9
+ pages: Record<string, Promise<T> | (() => Promise<T>)>,
10
+ ): Promise<T> {
11
+ for (const p of Array.isArray(path) ? path : [path]) {
12
+ const page = pages[p]
13
+
14
+ if (typeof page === 'undefined') {
15
+ continue
16
16
  }
17
17
 
18
- throw new Error(`Page not found: ${path}`)
18
+ return typeof page === 'function' ? page() : page
19
+ }
20
+
21
+ throw new Error(`Page not found: ${path}`)
19
22
  }
20
23
 
21
- const appName = import.meta.env.VITE_APP_NAME || 'Rails';
24
+ const appName = import.meta.env.VITE_APP_NAME || 'Rails'
22
25
 
23
26
  createInertiaApp({
24
- title: (title) => `${title} - ${appName}`,
25
- resolve: (name) => resolvePageComponent(`../Pages/${name}.tsx`, import.meta.glob('../Pages/**/*.tsx')),
26
- setup({ el, App, props }) {
27
- const root = createRoot(el);
28
-
29
- root.render(<App {...props} />);
30
- },
31
- progress: {
32
- color: '#4B5563',
33
- },
34
- });
27
+ title: (title) => `${title} - ${appName}`,
28
+ resolve: (name) =>
29
+ resolvePageComponent(
30
+ `../Pages/${name}.tsx`,
31
+ import.meta.glob('../Pages/**/*.tsx'),
32
+ ),
33
+ setup({ el, App, props }) {
34
+ const root = createRoot(el)
35
+
36
+ root.render(<App {...props} />)
37
+ },
38
+ progress: {
39
+ color: '#4B5563',
40
+ },
41
+ })
@@ -3,17 +3,13 @@
3
3
  <head>
4
4
  <meta charset="utf-8">
5
5
  <meta name="viewport" content="width=device-width,initial-scale=1">
6
-
7
6
  <title><%= content_for(:title) || "Rails" %></title>
8
-
9
7
  <%= csrf_meta_tags %>
10
8
  <%= csp_meta_tag %>
11
-
12
9
  <%= vite_client_tag %>
13
10
  <%= vite_react_refresh_tag %>
14
11
  <%= vite_typescript_tag 'application.tsx', defer: true %>
15
12
  </head>
16
-
17
13
  <body class="font-sans antialiased">
18
14
  <div class="min-h-screen bg-gray-100">
19
15
  <%= yield %>
@@ -1,5 +1,5 @@
1
- import defaultTheme from 'tailwindcss/defaultTheme';
2
- import forms from '@tailwindcss/forms';
1
+ import defaultTheme from 'tailwindcss/defaultTheme'
2
+ import forms from '@tailwindcss/forms'
3
3
 
4
4
  /** @type {import('tailwindcss').Config} */
5
5
  export default {
@@ -4,10 +4,7 @@ import react from '@vitejs/plugin-react'
4
4
 
5
5
  export default defineConfig({
6
6
  resolve: {
7
- dedupe: ['axios']
7
+ dedupe: ['axios'],
8
8
  },
9
- plugins: [
10
- Rails(),
11
- react(),
12
- ],
9
+ plugins: [Rails(), react()],
13
10
  })
@@ -1,8 +1,12 @@
1
1
  <template>
2
- <svg viewBox="0 -6 32 32" xmlns="http://www.w3.org/2000/svg">
3
- <g fill="none" fill-rule="evenodd">
4
- <path d="M0-6h32v32H0z"/>
5
- <path fill="#c00" fill-rule="nonzero" d="M.985 19.636s.422-4.163 3.375-9.087c2.954-4.924 7.99-8.65 12.083-9.017 8.144-.816 15.46 6.485 15.46 6.485s-.24.168-.494.38C23.42 2.49 18.54 5.274 17.005 6.02c-7.033 3.925-4.91 13.616-4.91 13.616H.987zM24.137 2.32c-.45-.182-.9-.35-1.364-.505l.056-.93c.885.254 1.237.423 1.363.493l-.056.943zM22.8 5.304c.45.028.915.084 1.393.183l-.056.872c-.464-.1-.928-.155-1.392-.17l.056-.885zM17.597.913c-.407 0-.815.015-1.223.058l-.268-.83c.465-.056.915-.084 1.35-.084l.282.858h-.14zm.676 5.178c.35-.154.76-.31 1.237-.45l.31.93c-.41.125-.817.294-1.225.49l-.323-.97zm-6.386-3.7c-.366.184-.718.395-1.083.62l-.647-.985c.38-.225.745-.42 1.097-.604l.633.97zm2.883 6.33c.252-.323.548-.646.87-.942l.634.957c-.31.323-.59.647-.83 1L14.77 8.72zm-2.04 4.53c.112-.506.24-1.027.422-1.547l1.012.802c-.14.548-.24 1.097-.295 1.645l-1.14-.9zM6.57 6.57c-.34.35-.662.73-.958 1.11L4.53 6.752c.323-.352.674-.704 1.04-1.055l1 .872zm-4.25 6.286c-.224.52-.52 1.21-.702 1.688L0 13.954c.14-.38.436-1.084.703-1.69l1.618.592zm10.2 3.967l1.518.548c.084.663.21 1.28.337 1.83l-1.688-.605c-.07-.422-.14-1.027-.168-1.772z"/>
6
- </g>
7
- </svg>
2
+ <svg viewBox="0 -6 32 32" xmlns="http://www.w3.org/2000/svg">
3
+ <g fill="none" fill-rule="evenodd">
4
+ <path d="M0-6h32v32H0z" />
5
+ <path
6
+ fill="#c00"
7
+ fill-rule="nonzero"
8
+ d="M.985 19.636s.422-4.163 3.375-9.087c2.954-4.924 7.99-8.65 12.083-9.017 8.144-.816 15.46 6.485 15.46 6.485s-.24.168-.494.38C23.42 2.49 18.54 5.274 17.005 6.02c-7.033 3.925-4.91 13.616-4.91 13.616H.987zM24.137 2.32c-.45-.182-.9-.35-1.364-.505l.056-.93c.885.254 1.237.423 1.363.493l-.056.943zM22.8 5.304c.45.028.915.084 1.393.183l-.056.872c-.464-.1-.928-.155-1.392-.17l.056-.885zM17.597.913c-.407 0-.815.015-1.223.058l-.268-.83c.465-.056.915-.084 1.35-.084l.282.858h-.14zm.676 5.178c.35-.154.76-.31 1.237-.45l.31.93c-.41.125-.817.294-1.225.49l-.323-.97zm-6.386-3.7c-.366.184-.718.395-1.083.62l-.647-.985c.38-.225.745-.42 1.097-.604l.633.97zm2.883 6.33c.252-.323.548-.646.87-.942l.634.957c-.31.323-.59.647-.83 1L14.77 8.72zm-2.04 4.53c.112-.506.24-1.027.422-1.547l1.012.802c-.14.548-.24 1.097-.295 1.645l-1.14-.9zM6.57 6.57c-.34.35-.662.73-.958 1.11L4.53 6.752c.323-.352.674-.704 1.04-1.055l1 .872zm-4.25 6.286c-.224.52-.52 1.21-.702 1.688L0 13.954c.14-.38.436-1.084.703-1.69l1.618.592zm10.2 3.967l1.518.548c.084.663.21 1.28.337 1.83l-1.688-.605c-.07-.422-.14-1.027-.168-1.772z"
9
+ />
10
+ </g>
11
+ </svg>
8
12
  </template>
@@ -1,29 +1,29 @@
1
1
  <script setup lang="ts">
2
- import { computed } from 'vue';
2
+ import { computed } from 'vue'
3
3
 
4
- const emit = defineEmits(['update:checked']);
4
+ const emit = defineEmits(['update:checked'])
5
5
 
6
6
  const props = defineProps<{
7
- checked: boolean;
8
- value?: any;
9
- }>();
7
+ checked: boolean
8
+ value?: any
9
+ }>()
10
10
 
11
11
  const proxyChecked = computed({
12
- get() {
13
- return props.checked;
14
- },
12
+ get() {
13
+ return props.checked
14
+ },
15
15
 
16
- set(val) {
17
- emit('update:checked', val);
18
- },
19
- });
16
+ set(val) {
17
+ emit('update:checked', val)
18
+ },
19
+ })
20
20
  </script>
21
21
 
22
22
  <template>
23
- <input
24
- type="checkbox"
25
- :value="value"
26
- v-model="proxyChecked"
27
- class="rounded dark:bg-gray-900 border-gray-300 dark:border-gray-700 text-indigo-600 shadow-sm focus:ring-indigo-500 dark:focus:ring-indigo-600 dark:focus:ring-offset-gray-800"
28
- />
23
+ <input
24
+ type="checkbox"
25
+ :value="value"
26
+ v-model="proxyChecked"
27
+ class="rounded dark:bg-gray-900 border-gray-300 dark:border-gray-700 text-indigo-600 shadow-sm focus:ring-indigo-500 dark:focus:ring-indigo-600 dark:focus:ring-offset-gray-800"
28
+ />
29
29
  </template>
@@ -1,7 +1,7 @@
1
1
  <template>
2
- <button
3
- class="inline-flex items-center px-4 py-2 bg-red-600 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-red-500 active:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 dark:focus:ring-offset-gray-800 transition ease-in-out duration-150"
4
- >
5
- <slot />
6
- </button>
2
+ <button
3
+ class="inline-flex items-center px-4 py-2 bg-red-600 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-red-500 active:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 dark:focus:ring-offset-gray-800 transition ease-in-out duration-150"
4
+ >
5
+ <slot />
6
+ </button>
7
7
  </template>
@@ -1,75 +1,78 @@
1
1
  <script setup lang="ts">
2
- import { computed, onMounted, onUnmounted, ref } from 'vue';
2
+ import { computed, onMounted, onUnmounted, ref } from 'vue'
3
3
 
4
4
  const props = withDefaults(
5
- defineProps<{
6
- align?: 'left' | 'right';
7
- width?: '48';
8
- contentClasses?: string;
9
- }>(),
10
- {
11
- align: 'right',
12
- width: '48',
13
- contentClasses: 'py-1 bg-white dark:bg-gray-700',
14
- }
15
- );
5
+ defineProps<{
6
+ align?: 'left' | 'right'
7
+ width?: '48'
8
+ contentClasses?: string
9
+ }>(),
10
+ {
11
+ align: 'right',
12
+ width: '48',
13
+ contentClasses: 'py-1 bg-white dark:bg-gray-700',
14
+ },
15
+ )
16
16
 
17
17
  const closeOnEscape = (e: KeyboardEvent) => {
18
- if (open.value && e.key === 'Escape') {
19
- open.value = false;
20
- }
21
- };
18
+ if (open.value && e.key === 'Escape') {
19
+ open.value = false
20
+ }
21
+ }
22
22
 
23
- onMounted(() => document.addEventListener('keydown', closeOnEscape));
24
- onUnmounted(() => document.removeEventListener('keydown', closeOnEscape));
23
+ onMounted(() => document.addEventListener('keydown', closeOnEscape))
24
+ onUnmounted(() => document.removeEventListener('keydown', closeOnEscape))
25
25
 
26
26
  const widthClass = computed(() => {
27
- return {
28
- 48: 'w-48',
29
- }[props.width.toString()];
30
- });
27
+ return {
28
+ 48: 'w-48',
29
+ }[props.width.toString()]
30
+ })
31
31
 
32
32
  const alignmentClasses = computed(() => {
33
- if (props.align === 'left') {
34
- return 'ltr:origin-top-left rtl:origin-top-right start-0';
35
- } else if (props.align === 'right') {
36
- return 'ltr:origin-top-right rtl:origin-top-left end-0';
37
- } else {
38
- return 'origin-top';
39
- }
40
- });
33
+ if (props.align === 'left') {
34
+ return 'ltr:origin-top-left rtl:origin-top-right start-0'
35
+ } else if (props.align === 'right') {
36
+ return 'ltr:origin-top-right rtl:origin-top-left end-0'
37
+ } else {
38
+ return 'origin-top'
39
+ }
40
+ })
41
41
 
42
- const open = ref(false);
42
+ const open = ref(false)
43
43
  </script>
44
44
 
45
45
  <template>
46
- <div class="relative">
47
- <div @click="open = !open">
48
- <slot name="trigger" />
49
- </div>
46
+ <div class="relative">
47
+ <div @click="open = !open">
48
+ <slot name="trigger" />
49
+ </div>
50
50
 
51
- <!-- Full Screen Dropdown Overlay -->
52
- <div v-show="open" class="fixed inset-0 z-40" @click="open = false"></div>
51
+ <!-- Full Screen Dropdown Overlay -->
52
+ <div v-show="open" class="fixed inset-0 z-40" @click="open = false"></div>
53
53
 
54
- <Transition
55
- enter-active-class="transition ease-out duration-200"
56
- enter-from-class="opacity-0 scale-95"
57
- enter-to-class="opacity-100 scale-100"
58
- leave-active-class="transition ease-in duration-75"
59
- leave-from-class="opacity-100 scale-100"
60
- leave-to-class="opacity-0 scale-95"
54
+ <Transition
55
+ enter-active-class="transition ease-out duration-200"
56
+ enter-from-class="opacity-0 scale-95"
57
+ enter-to-class="opacity-100 scale-100"
58
+ leave-active-class="transition ease-in duration-75"
59
+ leave-from-class="opacity-100 scale-100"
60
+ leave-to-class="opacity-0 scale-95"
61
+ >
62
+ <div
63
+ v-show="open"
64
+ class="absolute z-50 mt-2 rounded-md shadow-lg"
65
+ :class="[widthClass, alignmentClasses]"
66
+ style="display: none"
67
+ @click="open = false"
68
+ >
69
+ <div
70
+ class="rounded-md ring-1 ring-black ring-opacity-5"
71
+ :class="contentClasses"
61
72
  >
62
- <div
63
- v-show="open"
64
- class="absolute z-50 mt-2 rounded-md shadow-lg"
65
- :class="[widthClass, alignmentClasses]"
66
- style="display: none"
67
- @click="open = false"
68
- >
69
- <div class="rounded-md ring-1 ring-black ring-opacity-5" :class="contentClasses">
70
- <slot name="content" />
71
- </div>
72
- </div>
73
- </Transition>
74
- </div>
73
+ <slot name="content" />
74
+ </div>
75
+ </div>
76
+ </Transition>
77
+ </div>
75
78
  </template>
@@ -1,16 +1,16 @@
1
1
  <script setup lang="ts">
2
- import { Link } from '@inertiajs/vue3';
2
+ import { Link } from '@inertiajs/vue3'
3
3
 
4
4
  defineProps<{
5
- href: string;
6
- }>();
5
+ href: string
6
+ }>()
7
7
  </script>
8
8
 
9
9
  <template>
10
- <Link
11
- :href="href"
12
- class="block w-full px-4 py-2 text-start text-sm leading-5 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800 focus:outline-none focus:bg-gray-100 dark:focus:bg-gray-800 transition duration-150 ease-in-out"
13
- >
14
- <slot />
15
- </Link>
10
+ <Link
11
+ :href="href"
12
+ class="block w-full px-4 py-2 text-start text-sm leading-5 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800 focus:outline-none focus:bg-gray-100 dark:focus:bg-gray-800 transition duration-150 ease-in-out"
13
+ >
14
+ <slot />
15
+ </Link>
16
16
  </template>
@@ -1,13 +1,13 @@
1
1
  <script setup lang="ts">
2
2
  defineProps<{
3
- message?: string;
4
- }>();
3
+ message?: string
4
+ }>()
5
5
  </script>
6
6
 
7
7
  <template>
8
- <div v-show="message">
9
- <p class="text-sm text-red-600 dark:text-red-400">
10
- {{ message }}
11
- </p>
12
- </div>
8
+ <div v-show="message">
9
+ <p class="text-sm text-red-600 dark:text-red-400">
10
+ {{ message }}
11
+ </p>
12
+ </div>
13
13
  </template>
@@ -1,12 +1,12 @@
1
1
  <script setup lang="ts">
2
2
  defineProps<{
3
- value?: string;
4
- }>();
3
+ value?: string
4
+ }>()
5
5
  </script>
6
6
 
7
7
  <template>
8
- <label class="block font-medium text-sm text-gray-700 dark:text-gray-300">
9
- <span v-if="value">{{ value }}</span>
10
- <span v-else><slot /></span>
11
- </label>
8
+ <label class="block font-medium text-sm text-gray-700 dark:text-gray-300">
9
+ <span v-if="value">{{ value }}</span>
10
+ <span v-else><slot /></span>
11
+ </label>
12
12
  </template>