kaze 0.8.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/lib/kaze/commands/install_command.rb +3 -1
  3. data/lib/kaze/commands/installs_hotwire_stack.rb +2 -2
  4. data/lib/kaze/commands/installs_inertia_stacks.rb +7 -7
  5. data/lib/kaze/version.rb +1 -1
  6. data/stubs/default/app/forms/update_profile_information_form.rb +8 -0
  7. data/stubs/default/app/mailers/application_mailer.rb +1 -1
  8. data/stubs/default/app/mailers/user_mailer.rb +16 -1
  9. data/stubs/default/app/models/concerns/can_reset_password.rb +1 -1
  10. data/stubs/default/app/models/concerns/must_verify_email.rb +15 -0
  11. data/stubs/default/app/models/user.rb +1 -0
  12. data/stubs/default/app/views/user_mailer/reset_password.html.erb +2 -2
  13. data/stubs/default/app/views/user_mailer/verify_email.html.erb +33 -0
  14. data/stubs/default/config/routes.rb +4 -0
  15. data/stubs/default/db/migrate/20240101000000_create_users.rb +1 -0
  16. data/stubs/default/test/factories/users.rb +5 -0
  17. data/stubs/default/test/integration/auth/authentication_test.rb +4 -6
  18. data/stubs/default/test/integration/auth/email_verification_test.rb +40 -0
  19. data/stubs/default/test/integration/auth/password_reset_test.rb +3 -3
  20. data/stubs/default/test/integration/password_update_test.rb +2 -2
  21. data/stubs/default/test/integration/profile_test.rb +16 -4
  22. data/stubs/hotwire/app/components/modal_component.rb +5 -5
  23. data/stubs/hotwire/app/controllers/auth/authenticated_session_controller.rb +3 -2
  24. data/stubs/hotwire/app/controllers/auth/email_verification_notification_controller.rb +21 -0
  25. data/stubs/hotwire/app/controllers/auth/new_password_controller.rb +2 -2
  26. data/stubs/hotwire/app/controllers/auth/password_reset_link_controller.rb +1 -1
  27. data/stubs/hotwire/app/controllers/auth/registered_user_controller.rb +6 -2
  28. data/stubs/hotwire/app/controllers/auth/verified_email_controller.rb +23 -0
  29. data/stubs/hotwire/app/controllers/concerns/authenticate.rb +10 -0
  30. data/stubs/hotwire/app/controllers/concerns/validate_signature.rb +17 -0
  31. data/stubs/hotwire/app/controllers/password_controller.rb +3 -1
  32. data/stubs/hotwire/app/controllers/profile_controller.rb +5 -3
  33. data/stubs/hotwire/app/views/auth/verify_email.html.erb +23 -0
  34. data/stubs/hotwire/app/views/profile/partials/_delete_user_form.html.erb +1 -1
  35. data/stubs/hotwire/app/views/profile/partials/_update_profile_information_form.html.erb +18 -0
  36. data/stubs/inertia-common/app/controllers/auth/authenticated_session_controller.rb +3 -3
  37. data/stubs/inertia-common/app/controllers/auth/email_verification_notification_controller.rb +21 -0
  38. data/stubs/inertia-common/app/controllers/auth/new_password_controller.rb +2 -3
  39. data/stubs/inertia-common/app/controllers/auth/password_reset_link_controller.rb +3 -3
  40. data/stubs/inertia-common/app/controllers/auth/registered_user_controller.rb +6 -2
  41. data/stubs/inertia-common/app/controllers/auth/verified_email_controller.rb +23 -0
  42. data/stubs/inertia-common/app/controllers/concerns/authenticate.rb +10 -0
  43. data/stubs/inertia-common/app/controllers/concerns/validate_signature.rb +17 -0
  44. data/stubs/inertia-common/app/controllers/password_controller.rb +3 -1
  45. data/stubs/inertia-common/app/controllers/profile_controller.rb +7 -4
  46. data/stubs/inertia-common/test/integration/password_update_test.rb +2 -2
  47. data/stubs/inertia-common/test/integration/profile_test.rb +16 -4
  48. data/stubs/inertia-react-ts/app/javascript/Components/Checkbox.tsx +1 -4
  49. data/stubs/inertia-react-ts/app/javascript/Components/DangerButton.tsx +3 -5
  50. data/stubs/inertia-react-ts/app/javascript/Components/Dropdown.tsx +4 -25
  51. data/stubs/inertia-react-ts/app/javascript/Components/InputError.tsx +1 -4
  52. data/stubs/inertia-react-ts/app/javascript/Components/InputLabel.tsx +1 -4
  53. data/stubs/inertia-react-ts/app/javascript/Components/NavLink.tsx +3 -5
  54. data/stubs/inertia-react-ts/app/javascript/Components/PrimaryButton.tsx +3 -5
  55. data/stubs/inertia-react-ts/app/javascript/Components/SecondaryButton.tsx +3 -5
  56. data/stubs/inertia-react-ts/app/javascript/Components/TextInput.tsx +1 -7
  57. data/stubs/inertia-react-ts/app/javascript/Layouts/AuthenticatedLayout.tsx +14 -52
  58. data/stubs/inertia-react-ts/app/javascript/Pages/Auth/ForgotPassword.tsx +4 -7
  59. data/stubs/inertia-react-ts/app/javascript/Pages/Auth/Login.tsx +10 -24
  60. data/stubs/inertia-react-ts/app/javascript/Pages/Auth/Register.tsx +2 -5
  61. data/stubs/inertia-react-ts/app/javascript/Pages/Auth/ResetPassword.tsx +2 -5
  62. data/stubs/inertia-react-ts/app/javascript/Pages/Auth/VerifyEmail.tsx +47 -0
  63. data/stubs/inertia-react-ts/app/javascript/Pages/Dashboard.tsx +2 -8
  64. data/stubs/inertia-react-ts/app/javascript/Pages/Profile/Edit.tsx +10 -10
  65. data/stubs/inertia-react-ts/app/javascript/Pages/Profile/Partials/DeleteUserForm.tsx +10 -20
  66. data/stubs/inertia-react-ts/app/javascript/Pages/Profile/Partials/UpdatePasswordForm.tsx +10 -18
  67. data/stubs/inertia-react-ts/app/javascript/Pages/Profile/Partials/UpdateProfileInformationForm.tsx +35 -12
  68. data/stubs/inertia-react-ts/app/javascript/Pages/Welcome.tsx +1 -2
  69. data/stubs/inertia-react-ts/app/javascript/entrypoints/application.tsx +1 -5
  70. data/stubs/inertia-react-ts/app/javascript/entrypoints/bootstrap.ts +3 -3
  71. data/stubs/inertia-react-ts/app/javascript/types/global.d.ts +4 -4
  72. data/stubs/inertia-react-ts/app/javascript/types/index.d.ts +8 -8
  73. data/stubs/inertia-react-ts/config/tailwind.config.js +1 -6
  74. data/stubs/inertia-vue-ts/app/javascript/Components/ApplicationLogo.vue +3 -1
  75. data/stubs/inertia-vue-ts/app/javascript/Components/Dropdown.vue +1 -4
  76. data/stubs/inertia-vue-ts/app/javascript/Components/Modal.vue +3 -13
  77. data/stubs/inertia-vue-ts/app/javascript/Layouts/AuthenticatedLayout.vue +10 -45
  78. data/stubs/inertia-vue-ts/app/javascript/Layouts/GuestLayout.vue +2 -6
  79. data/stubs/inertia-vue-ts/app/javascript/Pages/Auth/ForgotPassword.vue +4 -11
  80. data/stubs/inertia-vue-ts/app/javascript/Pages/Auth/Login.vue +2 -10
  81. data/stubs/inertia-vue-ts/app/javascript/Pages/Auth/Register.vue +1 -5
  82. data/stubs/inertia-vue-ts/app/javascript/Pages/Auth/ResetPassword.vue +2 -22
  83. data/stubs/inertia-vue-ts/app/javascript/Pages/Auth/VerifyEmail.vue +50 -0
  84. data/stubs/inertia-vue-ts/app/javascript/Pages/Dashboard.vue +3 -11
  85. data/stubs/inertia-vue-ts/app/javascript/Pages/Profile/Edit.vue +2 -10
  86. data/stubs/inertia-vue-ts/app/javascript/Pages/Profile/Partials/DeleteUserForm.vue +5 -9
  87. data/stubs/inertia-vue-ts/app/javascript/Pages/Profile/Partials/UpdatePasswordForm.vue +2 -9
  88. data/stubs/inertia-vue-ts/app/javascript/Pages/Profile/Partials/UpdateProfileInformationForm.vue +26 -15
  89. data/stubs/inertia-vue-ts/app/javascript/Pages/Welcome.vue +2 -5
  90. data/stubs/inertia-vue-ts/app/javascript/entrypoints/application.ts +27 -23
  91. data/stubs/inertia-vue-ts/app/javascript/entrypoints/bootstrap.ts +3 -3
  92. data/stubs/inertia-vue-ts/app/javascript/types/global.d.ts +7 -7
  93. data/stubs/inertia-vue-ts/app/javascript/types/index.d.ts +8 -8
  94. data/stubs/inertia-vue-ts/config/tailwind.config.js +1 -6
  95. metadata +14 -2
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kaze
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cuong Giang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-16 00:00:00.000000000 Z
11
+ date: 2024-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -84,6 +84,7 @@ files:
84
84
  - stubs/default/app/mailers/user_mailer.rb
85
85
  - stubs/default/app/models/application_record.rb
86
86
  - stubs/default/app/models/concerns/can_reset_password.rb
87
+ - stubs/default/app/models/concerns/must_verify_email.rb
87
88
  - stubs/default/app/models/current.rb
88
89
  - stubs/default/app/models/session_guard.rb
89
90
  - stubs/default/app/models/user.rb
@@ -94,12 +95,14 @@ files:
94
95
  - stubs/default/app/views/layouts/mailer.html.erb
95
96
  - stubs/default/app/views/layouts/mailer.text.erb
96
97
  - stubs/default/app/views/user_mailer/reset_password.html.erb
98
+ - stubs/default/app/views/user_mailer/verify_email.html.erb
97
99
  - stubs/default/bin/dev
98
100
  - stubs/default/config/routes.rb
99
101
  - stubs/default/db/migrate/20240101000000_create_users.rb
100
102
  - stubs/default/db/migrate/20240101000001_create_delayed_jobs.rb
101
103
  - stubs/default/test/factories/users.rb
102
104
  - stubs/default/test/integration/auth/authentication_test.rb
105
+ - stubs/default/test/integration/auth/email_verification_test.rb
103
106
  - stubs/default/test/integration/auth/password_reset_test.rb
104
107
  - stubs/default/test/integration/auth/registration_test.rb
105
108
  - stubs/default/test/integration/password_update_test.rb
@@ -122,12 +125,15 @@ files:
122
125
  - stubs/hotwire/app/components/text_input_component.rb
123
126
  - stubs/hotwire/app/controllers/application_controller.rb
124
127
  - stubs/hotwire/app/controllers/auth/authenticated_session_controller.rb
128
+ - stubs/hotwire/app/controllers/auth/email_verification_notification_controller.rb
125
129
  - stubs/hotwire/app/controllers/auth/new_password_controller.rb
126
130
  - stubs/hotwire/app/controllers/auth/password_reset_link_controller.rb
127
131
  - stubs/hotwire/app/controllers/auth/registered_user_controller.rb
132
+ - stubs/hotwire/app/controllers/auth/verified_email_controller.rb
128
133
  - stubs/hotwire/app/controllers/concerns/authenticate.rb
129
134
  - stubs/hotwire/app/controllers/concerns/redirect_if_authenticated.rb
130
135
  - stubs/hotwire/app/controllers/concerns/set_current_auth.rb
136
+ - stubs/hotwire/app/controllers/concerns/validate_signature.rb
131
137
  - stubs/hotwire/app/controllers/dashboard_controller.rb
132
138
  - stubs/hotwire/app/controllers/password_controller.rb
133
139
  - stubs/hotwire/app/controllers/profile_controller.rb
@@ -138,6 +144,7 @@ files:
138
144
  - stubs/hotwire/app/views/auth/login.html.erb
139
145
  - stubs/hotwire/app/views/auth/register.html.erb
140
146
  - stubs/hotwire/app/views/auth/reset_password.html.erb
147
+ - stubs/hotwire/app/views/auth/verify_email.html.erb
141
148
  - stubs/hotwire/app/views/dashboard/index.html.erb
142
149
  - stubs/hotwire/app/views/layouts/_navigation.html.erb
143
150
  - stubs/hotwire/app/views/layouts/application.html.erb
@@ -151,13 +158,16 @@ files:
151
158
  - stubs/hotwire/config/tailwind.config.js
152
159
  - stubs/inertia-common/app/controllers/application_controller.rb
153
160
  - stubs/inertia-common/app/controllers/auth/authenticated_session_controller.rb
161
+ - stubs/inertia-common/app/controllers/auth/email_verification_notification_controller.rb
154
162
  - stubs/inertia-common/app/controllers/auth/new_password_controller.rb
155
163
  - stubs/inertia-common/app/controllers/auth/password_reset_link_controller.rb
156
164
  - stubs/inertia-common/app/controllers/auth/registered_user_controller.rb
165
+ - stubs/inertia-common/app/controllers/auth/verified_email_controller.rb
157
166
  - stubs/inertia-common/app/controllers/concerns/authenticate.rb
158
167
  - stubs/inertia-common/app/controllers/concerns/handle_inertia_requests.rb
159
168
  - stubs/inertia-common/app/controllers/concerns/redirect_if_authenticated.rb
160
169
  - stubs/inertia-common/app/controllers/concerns/set_current_auth.rb
170
+ - stubs/inertia-common/app/controllers/concerns/validate_signature.rb
161
171
  - stubs/inertia-common/app/controllers/concerns/verify_csrf_token.rb
162
172
  - stubs/inertia-common/app/controllers/dashboard_controller.rb
163
173
  - stubs/inertia-common/app/controllers/password_controller.rb
@@ -185,6 +195,7 @@ files:
185
195
  - stubs/inertia-react-ts/app/javascript/Pages/Auth/Login.tsx
186
196
  - stubs/inertia-react-ts/app/javascript/Pages/Auth/Register.tsx
187
197
  - stubs/inertia-react-ts/app/javascript/Pages/Auth/ResetPassword.tsx
198
+ - stubs/inertia-react-ts/app/javascript/Pages/Auth/VerifyEmail.tsx
188
199
  - stubs/inertia-react-ts/app/javascript/Pages/Dashboard.tsx
189
200
  - stubs/inertia-react-ts/app/javascript/Pages/Profile/Edit.tsx
190
201
  - stubs/inertia-react-ts/app/javascript/Pages/Profile/Partials/DeleteUserForm.tsx
@@ -220,6 +231,7 @@ files:
220
231
  - stubs/inertia-vue-ts/app/javascript/Pages/Auth/Login.vue
221
232
  - stubs/inertia-vue-ts/app/javascript/Pages/Auth/Register.vue
222
233
  - stubs/inertia-vue-ts/app/javascript/Pages/Auth/ResetPassword.vue
234
+ - stubs/inertia-vue-ts/app/javascript/Pages/Auth/VerifyEmail.vue
223
235
  - stubs/inertia-vue-ts/app/javascript/Pages/Dashboard.vue
224
236
  - stubs/inertia-vue-ts/app/javascript/Pages/Profile/Edit.vue
225
237
  - stubs/inertia-vue-ts/app/javascript/Pages/Profile/Partials/DeleteUserForm.vue