kaze 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +42 -0
  4. data/bin/kaze +11 -0
  5. data/lib/kaze/commands/install_command.rb +63 -0
  6. data/lib/kaze/commands/install_inertia_stacks.rb +151 -0
  7. data/lib/kaze/commands.rb +2 -0
  8. data/lib/kaze/version.rb +3 -0
  9. data/lib/kaze.rb +9 -0
  10. data/stubs/default/Procfile.dev +3 -0
  11. data/stubs/default/app/assets/stylesheets/application.css +1 -0
  12. data/stubs/default/app/assets/stylesheets/application.tailwind.css +3 -0
  13. data/stubs/default/app/controllers/application_controller.rb +5 -0
  14. data/stubs/default/app/controllers/auth/authenticated_session_controller.rb +28 -0
  15. data/stubs/default/app/controllers/auth/new_password_controller.rb +18 -0
  16. data/stubs/default/app/controllers/auth/password_reset_link_controller.rb +17 -0
  17. data/stubs/default/app/controllers/auth/registered_user_controller.rb +19 -0
  18. data/stubs/default/app/controllers/concerns/authenticate.rb +34 -0
  19. data/stubs/default/app/controllers/concerns/handle_inertia_requests.rb +9 -0
  20. data/stubs/default/app/controllers/concerns/verify_csrf_token.rb +24 -0
  21. data/stubs/default/app/controllers/dashboard_controller.rb +5 -0
  22. data/stubs/default/app/controllers/password_controller.rb +11 -0
  23. data/stubs/default/app/controllers/profile_controller.rb +31 -0
  24. data/stubs/default/app/controllers/welcome_controller.rb +10 -0
  25. data/stubs/default/app/forms/application_form.rb +9 -0
  26. data/stubs/default/app/forms/auth/login_form.rb +18 -0
  27. data/stubs/default/app/forms/auth/new_password_form.rb +21 -0
  28. data/stubs/default/app/forms/auth/register_form.rb +7 -0
  29. data/stubs/default/app/forms/auth/send_password_reset_link_form.rb +22 -0
  30. data/stubs/default/app/forms/delete_user_form.rb +5 -0
  31. data/stubs/default/app/forms/update_password_form.rb +6 -0
  32. data/stubs/default/app/forms/update_profile_information_form.rb +6 -0
  33. data/stubs/default/app/mailers/application_mailer.rb +11 -0
  34. data/stubs/default/app/mailers/user_mailer.rb +8 -0
  35. data/stubs/default/app/models/application_record.rb +3 -0
  36. data/stubs/default/app/models/concerns/can_reset_password.rb +5 -0
  37. data/stubs/default/app/models/current.rb +3 -0
  38. data/stubs/default/app/models/user.rb +11 -0
  39. data/stubs/default/app/validators/current_password_validator.rb +5 -0
  40. data/stubs/default/app/validators/email_validator.rb +7 -0
  41. data/stubs/default/app/validators/lowercase_validator.rb +5 -0
  42. data/stubs/default/app/validators/uniqueness_validator.rb +24 -0
  43. data/stubs/default/app/views/layouts/mailer.html.erb +374 -0
  44. data/stubs/default/app/views/layouts/mailer.text.erb +11 -0
  45. data/stubs/default/app/views/user_mailer/reset_password.html.erb +39 -0
  46. data/stubs/default/bin/dev +16 -0
  47. data/stubs/default/bin/vite +27 -0
  48. data/stubs/default/config/routes.rb +27 -0
  49. data/stubs/default/config/vite.json +16 -0
  50. data/stubs/default/db/migrate/20240101000000_create_users.rb +14 -0
  51. data/stubs/default/db/migrate/20240101000001_create_delayed_jobs.rb +22 -0
  52. data/stubs/inertia-react-ts/app/javascript/Components/ApplicationLogo.tsx +12 -0
  53. data/stubs/inertia-react-ts/app/javascript/Components/Checkbox.tsx +14 -0
  54. data/stubs/inertia-react-ts/app/javascript/Components/DangerButton.tsx +17 -0
  55. data/stubs/inertia-react-ts/app/javascript/Components/Dropdown.tsx +99 -0
  56. data/stubs/inertia-react-ts/app/javascript/Components/InputError.tsx +9 -0
  57. data/stubs/inertia-react-ts/app/javascript/Components/InputLabel.tsx +9 -0
  58. data/stubs/inertia-react-ts/app/javascript/Components/Modal.tsx +68 -0
  59. data/stubs/inertia-react-ts/app/javascript/Components/NavLink.tsx +18 -0
  60. data/stubs/inertia-react-ts/app/javascript/Components/PrimaryButton.tsx +17 -0
  61. data/stubs/inertia-react-ts/app/javascript/Components/ResponsiveNavLink.tsx +16 -0
  62. data/stubs/inertia-react-ts/app/javascript/Components/SecondaryButton.tsx +18 -0
  63. data/stubs/inertia-react-ts/app/javascript/Components/TextInput.tsx +30 -0
  64. data/stubs/inertia-react-ts/app/javascript/Layouts/AuthenticatedLayout.tsx +131 -0
  65. data/stubs/inertia-react-ts/app/javascript/Layouts/GuestLayout.tsx +19 -0
  66. data/stubs/inertia-react-ts/app/javascript/Pages/Auth/ForgotPassword.tsx +52 -0
  67. data/stubs/inertia-react-ts/app/javascript/Pages/Auth/Login.tsx +98 -0
  68. data/stubs/inertia-react-ts/app/javascript/Pages/Auth/Register.tsx +118 -0
  69. data/stubs/inertia-react-ts/app/javascript/Pages/Auth/ResetPassword.tsx +74 -0
  70. data/stubs/inertia-react-ts/app/javascript/Pages/Dashboard.tsx +22 -0
  71. data/stubs/inertia-react-ts/app/javascript/Pages/Profile/Edit.tsx +33 -0
  72. data/stubs/inertia-react-ts/app/javascript/Pages/Profile/Partials/DeleteUserForm.tsx +100 -0
  73. data/stubs/inertia-react-ts/app/javascript/Pages/Profile/Partials/UpdatePasswordForm.tsx +114 -0
  74. data/stubs/inertia-react-ts/app/javascript/Pages/Profile/Partials/UpdateProfileInformationForm.tsx +84 -0
  75. data/stubs/inertia-react-ts/app/javascript/Pages/Welcome.tsx +66 -0
  76. data/stubs/inertia-react-ts/app/javascript/entrypoints/application.tsx +34 -0
  77. data/stubs/inertia-react-ts/app/javascript/entrypoints/bootstrap.ts +4 -0
  78. data/stubs/inertia-react-ts/app/javascript/types/global.d.ts +7 -0
  79. data/stubs/inertia-react-ts/app/javascript/types/index.d.ts +12 -0
  80. data/stubs/inertia-react-ts/app/javascript/types/vite-env.d.ts +1 -0
  81. data/stubs/inertia-react-ts/app/views/layouts/application.html.erb +26 -0
  82. data/stubs/inertia-react-ts/config/tailwind.config.js +22 -0
  83. data/stubs/inertia-react-ts/package.json +26 -0
  84. data/stubs/inertia-react-ts/tsconfig.json +19 -0
  85. data/stubs/inertia-react-ts/vite.config.ts +13 -0
  86. data/stubs/inertia-vue-ts/app/javascript/Components/ApplicationLogo.vue +8 -0
  87. data/stubs/inertia-vue-ts/app/javascript/Components/Checkbox.vue +29 -0
  88. data/stubs/inertia-vue-ts/app/javascript/Components/DangerButton.vue +7 -0
  89. data/stubs/inertia-vue-ts/app/javascript/Components/Dropdown.vue +75 -0
  90. data/stubs/inertia-vue-ts/app/javascript/Components/DropdownLink.vue +16 -0
  91. data/stubs/inertia-vue-ts/app/javascript/Components/InputError.vue +13 -0
  92. data/stubs/inertia-vue-ts/app/javascript/Components/InputLabel.vue +12 -0
  93. data/stubs/inertia-vue-ts/app/javascript/Components/Modal.vue +96 -0
  94. data/stubs/inertia-vue-ts/app/javascript/Components/NavLink.vue +21 -0
  95. data/stubs/inertia-vue-ts/app/javascript/Components/PrimaryButton.vue +7 -0
  96. data/stubs/inertia-vue-ts/app/javascript/Components/ResponsiveNavLink.vue +21 -0
  97. data/stubs/inertia-vue-ts/app/javascript/Components/SecondaryButton.vue +19 -0
  98. data/stubs/inertia-vue-ts/app/javascript/Components/TextInput.vue +23 -0
  99. data/stubs/inertia-vue-ts/app/javascript/Layouts/AuthenticatedLayout.vue +155 -0
  100. data/stubs/inertia-vue-ts/app/javascript/Layouts/GuestLayout.vue +20 -0
  101. data/stubs/inertia-vue-ts/app/javascript/Pages/Auth/ForgotPassword.vue +60 -0
  102. data/stubs/inertia-vue-ts/app/javascript/Pages/Auth/Login.vue +93 -0
  103. data/stubs/inertia-vue-ts/app/javascript/Pages/Auth/Register.vue +106 -0
  104. data/stubs/inertia-vue-ts/app/javascript/Pages/Auth/ResetPassword.vue +89 -0
  105. data/stubs/inertia-vue-ts/app/javascript/Pages/Dashboard.vue +22 -0
  106. data/stubs/inertia-vue-ts/app/javascript/Pages/Profile/Edit.vue +42 -0
  107. data/stubs/inertia-vue-ts/app/javascript/Pages/Profile/Partials/DeleteUserForm.vue +98 -0
  108. data/stubs/inertia-vue-ts/app/javascript/Pages/Profile/Partials/UpdatePasswordForm.vue +108 -0
  109. data/stubs/inertia-vue-ts/app/javascript/Pages/Profile/Partials/UpdateProfileInformationForm.vue +78 -0
  110. data/stubs/inertia-vue-ts/app/javascript/Pages/Welcome.vue +56 -0
  111. data/stubs/inertia-vue-ts/app/javascript/entrypoints/application.ts +34 -0
  112. data/stubs/inertia-vue-ts/app/javascript/entrypoints/bootstrap.ts +4 -0
  113. data/stubs/inertia-vue-ts/app/javascript/types/global.d.ts +13 -0
  114. data/stubs/inertia-vue-ts/app/javascript/types/index.d.ts +12 -0
  115. data/stubs/inertia-vue-ts/app/javascript/types/vite-env.d.ts +1 -0
  116. data/stubs/inertia-vue-ts/app/views/layouts/application.html.erb +25 -0
  117. data/stubs/inertia-vue-ts/config/tailwind.config.js +22 -0
  118. data/stubs/inertia-vue-ts/package.json +24 -0
  119. data/stubs/inertia-vue-ts/tsconfig.json +19 -0
  120. data/stubs/inertia-vue-ts/vite.config.ts +13 -0
  121. metadata +205 -0
metadata ADDED
@@ -0,0 +1,205 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: kaze
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ platform: ruby
6
+ authors:
7
+ - Cuong Giang
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2024-06-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: thor
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: zeitwerk
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.5'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.5'
41
+ - !ruby/object:Gem::Dependency
42
+ name: railties
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description:
56
+ email:
57
+ - thaicuong.giang@gmail.com
58
+ executables:
59
+ - kaze
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - MIT-LICENSE
64
+ - README.md
65
+ - bin/kaze
66
+ - lib/kaze.rb
67
+ - lib/kaze/commands.rb
68
+ - lib/kaze/commands/install_command.rb
69
+ - lib/kaze/commands/install_inertia_stacks.rb
70
+ - lib/kaze/version.rb
71
+ - stubs/default/Procfile.dev
72
+ - stubs/default/app/assets/stylesheets/application.css
73
+ - stubs/default/app/assets/stylesheets/application.tailwind.css
74
+ - stubs/default/app/controllers/application_controller.rb
75
+ - stubs/default/app/controllers/auth/authenticated_session_controller.rb
76
+ - stubs/default/app/controllers/auth/new_password_controller.rb
77
+ - stubs/default/app/controllers/auth/password_reset_link_controller.rb
78
+ - stubs/default/app/controllers/auth/registered_user_controller.rb
79
+ - stubs/default/app/controllers/concerns/authenticate.rb
80
+ - stubs/default/app/controllers/concerns/handle_inertia_requests.rb
81
+ - stubs/default/app/controllers/concerns/verify_csrf_token.rb
82
+ - stubs/default/app/controllers/dashboard_controller.rb
83
+ - stubs/default/app/controllers/password_controller.rb
84
+ - stubs/default/app/controllers/profile_controller.rb
85
+ - stubs/default/app/controllers/welcome_controller.rb
86
+ - stubs/default/app/forms/application_form.rb
87
+ - stubs/default/app/forms/auth/login_form.rb
88
+ - stubs/default/app/forms/auth/new_password_form.rb
89
+ - stubs/default/app/forms/auth/register_form.rb
90
+ - stubs/default/app/forms/auth/send_password_reset_link_form.rb
91
+ - stubs/default/app/forms/delete_user_form.rb
92
+ - stubs/default/app/forms/update_password_form.rb
93
+ - stubs/default/app/forms/update_profile_information_form.rb
94
+ - stubs/default/app/mailers/application_mailer.rb
95
+ - stubs/default/app/mailers/user_mailer.rb
96
+ - stubs/default/app/models/application_record.rb
97
+ - stubs/default/app/models/concerns/can_reset_password.rb
98
+ - stubs/default/app/models/current.rb
99
+ - stubs/default/app/models/user.rb
100
+ - stubs/default/app/validators/current_password_validator.rb
101
+ - stubs/default/app/validators/email_validator.rb
102
+ - stubs/default/app/validators/lowercase_validator.rb
103
+ - stubs/default/app/validators/uniqueness_validator.rb
104
+ - stubs/default/app/views/layouts/mailer.html.erb
105
+ - stubs/default/app/views/layouts/mailer.text.erb
106
+ - stubs/default/app/views/user_mailer/reset_password.html.erb
107
+ - stubs/default/bin/dev
108
+ - stubs/default/bin/vite
109
+ - stubs/default/config/routes.rb
110
+ - stubs/default/config/vite.json
111
+ - stubs/default/db/migrate/20240101000000_create_users.rb
112
+ - stubs/default/db/migrate/20240101000001_create_delayed_jobs.rb
113
+ - stubs/inertia-react-ts/app/javascript/Components/ApplicationLogo.tsx
114
+ - stubs/inertia-react-ts/app/javascript/Components/Checkbox.tsx
115
+ - stubs/inertia-react-ts/app/javascript/Components/DangerButton.tsx
116
+ - stubs/inertia-react-ts/app/javascript/Components/Dropdown.tsx
117
+ - stubs/inertia-react-ts/app/javascript/Components/InputError.tsx
118
+ - stubs/inertia-react-ts/app/javascript/Components/InputLabel.tsx
119
+ - stubs/inertia-react-ts/app/javascript/Components/Modal.tsx
120
+ - stubs/inertia-react-ts/app/javascript/Components/NavLink.tsx
121
+ - stubs/inertia-react-ts/app/javascript/Components/PrimaryButton.tsx
122
+ - stubs/inertia-react-ts/app/javascript/Components/ResponsiveNavLink.tsx
123
+ - stubs/inertia-react-ts/app/javascript/Components/SecondaryButton.tsx
124
+ - stubs/inertia-react-ts/app/javascript/Components/TextInput.tsx
125
+ - stubs/inertia-react-ts/app/javascript/Layouts/AuthenticatedLayout.tsx
126
+ - stubs/inertia-react-ts/app/javascript/Layouts/GuestLayout.tsx
127
+ - stubs/inertia-react-ts/app/javascript/Pages/Auth/ForgotPassword.tsx
128
+ - stubs/inertia-react-ts/app/javascript/Pages/Auth/Login.tsx
129
+ - stubs/inertia-react-ts/app/javascript/Pages/Auth/Register.tsx
130
+ - stubs/inertia-react-ts/app/javascript/Pages/Auth/ResetPassword.tsx
131
+ - stubs/inertia-react-ts/app/javascript/Pages/Dashboard.tsx
132
+ - stubs/inertia-react-ts/app/javascript/Pages/Profile/Edit.tsx
133
+ - stubs/inertia-react-ts/app/javascript/Pages/Profile/Partials/DeleteUserForm.tsx
134
+ - stubs/inertia-react-ts/app/javascript/Pages/Profile/Partials/UpdatePasswordForm.tsx
135
+ - stubs/inertia-react-ts/app/javascript/Pages/Profile/Partials/UpdateProfileInformationForm.tsx
136
+ - stubs/inertia-react-ts/app/javascript/Pages/Welcome.tsx
137
+ - stubs/inertia-react-ts/app/javascript/entrypoints/application.tsx
138
+ - stubs/inertia-react-ts/app/javascript/entrypoints/bootstrap.ts
139
+ - stubs/inertia-react-ts/app/javascript/types/global.d.ts
140
+ - stubs/inertia-react-ts/app/javascript/types/index.d.ts
141
+ - stubs/inertia-react-ts/app/javascript/types/vite-env.d.ts
142
+ - stubs/inertia-react-ts/app/views/layouts/application.html.erb
143
+ - stubs/inertia-react-ts/config/tailwind.config.js
144
+ - stubs/inertia-react-ts/package.json
145
+ - stubs/inertia-react-ts/tsconfig.json
146
+ - stubs/inertia-react-ts/vite.config.ts
147
+ - stubs/inertia-vue-ts/app/javascript/Components/ApplicationLogo.vue
148
+ - stubs/inertia-vue-ts/app/javascript/Components/Checkbox.vue
149
+ - stubs/inertia-vue-ts/app/javascript/Components/DangerButton.vue
150
+ - stubs/inertia-vue-ts/app/javascript/Components/Dropdown.vue
151
+ - stubs/inertia-vue-ts/app/javascript/Components/DropdownLink.vue
152
+ - stubs/inertia-vue-ts/app/javascript/Components/InputError.vue
153
+ - stubs/inertia-vue-ts/app/javascript/Components/InputLabel.vue
154
+ - stubs/inertia-vue-ts/app/javascript/Components/Modal.vue
155
+ - stubs/inertia-vue-ts/app/javascript/Components/NavLink.vue
156
+ - stubs/inertia-vue-ts/app/javascript/Components/PrimaryButton.vue
157
+ - stubs/inertia-vue-ts/app/javascript/Components/ResponsiveNavLink.vue
158
+ - stubs/inertia-vue-ts/app/javascript/Components/SecondaryButton.vue
159
+ - stubs/inertia-vue-ts/app/javascript/Components/TextInput.vue
160
+ - stubs/inertia-vue-ts/app/javascript/Layouts/AuthenticatedLayout.vue
161
+ - stubs/inertia-vue-ts/app/javascript/Layouts/GuestLayout.vue
162
+ - stubs/inertia-vue-ts/app/javascript/Pages/Auth/ForgotPassword.vue
163
+ - stubs/inertia-vue-ts/app/javascript/Pages/Auth/Login.vue
164
+ - stubs/inertia-vue-ts/app/javascript/Pages/Auth/Register.vue
165
+ - stubs/inertia-vue-ts/app/javascript/Pages/Auth/ResetPassword.vue
166
+ - stubs/inertia-vue-ts/app/javascript/Pages/Dashboard.vue
167
+ - stubs/inertia-vue-ts/app/javascript/Pages/Profile/Edit.vue
168
+ - stubs/inertia-vue-ts/app/javascript/Pages/Profile/Partials/DeleteUserForm.vue
169
+ - stubs/inertia-vue-ts/app/javascript/Pages/Profile/Partials/UpdatePasswordForm.vue
170
+ - stubs/inertia-vue-ts/app/javascript/Pages/Profile/Partials/UpdateProfileInformationForm.vue
171
+ - stubs/inertia-vue-ts/app/javascript/Pages/Welcome.vue
172
+ - stubs/inertia-vue-ts/app/javascript/entrypoints/application.ts
173
+ - stubs/inertia-vue-ts/app/javascript/entrypoints/bootstrap.ts
174
+ - stubs/inertia-vue-ts/app/javascript/types/global.d.ts
175
+ - stubs/inertia-vue-ts/app/javascript/types/index.d.ts
176
+ - stubs/inertia-vue-ts/app/javascript/types/vite-env.d.ts
177
+ - stubs/inertia-vue-ts/app/views/layouts/application.html.erb
178
+ - stubs/inertia-vue-ts/config/tailwind.config.js
179
+ - stubs/inertia-vue-ts/package.json
180
+ - stubs/inertia-vue-ts/tsconfig.json
181
+ - stubs/inertia-vue-ts/vite.config.ts
182
+ homepage: https://github.com/gtkvn/kaze
183
+ licenses:
184
+ - MIT
185
+ metadata: {}
186
+ post_install_message:
187
+ rdoc_options: []
188
+ require_paths:
189
+ - lib
190
+ required_ruby_version: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ required_rubygems_version: !ruby/object:Gem::Requirement
196
+ requirements:
197
+ - - ">="
198
+ - !ruby/object:Gem::Version
199
+ version: '0'
200
+ requirements: []
201
+ rubygems_version: 3.5.9
202
+ signing_key:
203
+ specification_version: 4
204
+ summary: Minimal Rails authentication scaffolding with Hotwire, Vue, or React + Tailwind.
205
+ test_files: []