moduler 0.1.0 → 0.3.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.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/builds/moduler/tailwind.css +1359 -0
  3. data/app/assets/config/moduler/manifest.js +2 -0
  4. data/app/assets/javascripts/moduler/application.js +9 -0
  5. data/app/assets/javascripts/moduler/controllers/flash_controller.js +19 -0
  6. data/app/assets/stylesheets/moduler/tailwind.css +21 -0
  7. data/app/components/moduler/administration/page_component.html.erb +7 -0
  8. data/app/components/moduler/administration/page_component.rb +6 -0
  9. data/app/components/moduler/badge_component.html.erb +8 -0
  10. data/app/components/moduler/badge_component.rb +10 -0
  11. data/app/components/moduler/button_component.html.erb +7 -0
  12. data/app/components/moduler/button_component.rb +19 -0
  13. data/app/components/moduler/button_link_component.html.erb +5 -0
  14. data/app/components/moduler/button_link_component.rb +15 -0
  15. data/app/components/moduler/filter_component.html.erb +12 -0
  16. data/app/components/moduler/filter_component.rb +15 -0
  17. data/app/components/moduler/form/base_error_component.html.erb +1 -0
  18. data/app/components/moduler/form/base_error_component.rb +9 -0
  19. data/app/components/moduler/form/email_component.html.erb +14 -0
  20. data/app/components/moduler/form/email_component.rb +11 -0
  21. data/app/components/moduler/form/password_component.html.erb +14 -0
  22. data/app/components/moduler/form/password_component.rb +11 -0
  23. data/app/components/moduler/form/section_component.html.erb +5 -0
  24. data/app/components/moduler/form/section_component.rb +14 -0
  25. data/app/components/moduler/form/select_component.html.erb +14 -0
  26. data/app/components/moduler/form/select_component.rb +12 -0
  27. data/app/components/moduler/form/submit_component.html.erb +3 -0
  28. data/app/components/moduler/form/submit_component.rb +10 -0
  29. data/app/components/moduler/form/text_component.html.erb +14 -0
  30. data/app/components/moduler/form/text_component.rb +11 -0
  31. data/app/components/moduler/list_component.html.erb +15 -0
  32. data/app/components/moduler/list_component.rb +18 -0
  33. data/app/components/moduler/list_item_component.html.erb +23 -0
  34. data/app/components/moduler/list_item_component.rb +14 -0
  35. data/app/components/moduler/page_header_component.html.erb +16 -0
  36. data/app/components/moduler/page_header_component.rb +12 -0
  37. data/app/components/moduler/sidebar_action_component.html.erb +5 -0
  38. data/app/components/moduler/sidebar_action_component.rb +15 -0
  39. data/app/controllers/concerns/moduler/authentication.rb +62 -0
  40. data/app/controllers/moduler/administration/application_controller.rb +7 -0
  41. data/app/controllers/moduler/administration/home_controller.rb +9 -0
  42. data/app/controllers/moduler/administration/sessions_controller.rb +34 -0
  43. data/app/controllers/moduler/administration/users_controller.rb +56 -0
  44. data/app/controllers/moduler/application_controller.rb +18 -0
  45. data/app/controllers/moduler/home_controller.rb +5 -0
  46. data/app/controllers/moduler/profile/sessions/revocation_controller.rb +14 -0
  47. data/app/controllers/moduler/profile/sessions_controller.rb +21 -0
  48. data/app/controllers/moduler/profile_controller.rb +27 -0
  49. data/app/controllers/moduler/sessions_controller.rb +39 -0
  50. data/app/controllers/moduler/users_controller.rb +36 -0
  51. data/app/filters/application_filter.rb +41 -0
  52. data/app/filters/query_filter.rb +18 -0
  53. data/app/helpers/moduler/application_helper.rb +4 -0
  54. data/app/lib/moduler/form_builder.rb +23 -0
  55. data/app/models/moduler/current.rb +6 -0
  56. data/app/models/moduler/session.rb +17 -0
  57. data/app/models/moduler/user.rb +18 -0
  58. data/app/policies/moduler/administration/base_policy.rb +11 -0
  59. data/app/policies/moduler/administration/home_policy.rb +9 -0
  60. data/app/policies/moduler/administration/session_policy.rb +13 -0
  61. data/app/policies/moduler/administration/user_policy.rb +25 -0
  62. data/app/policies/moduler/application_policy.rb +38 -0
  63. data/app/views/kaminari/_gap.html.erb +1 -0
  64. data/app/views/kaminari/_next_page.html.erb +1 -0
  65. data/app/views/kaminari/_page.html.erb +3 -0
  66. data/app/views/kaminari/_paginator.html.erb +13 -0
  67. data/app/views/kaminari/_prev_page.html.erb +1 -0
  68. data/app/views/layouts/moduler/application.html.erb +16 -10
  69. data/app/views/moduler/administration/home/index.html.erb +6 -0
  70. data/app/views/moduler/administration/sessions/_session.html.erb +30 -0
  71. data/app/views/moduler/administration/sessions/index.html.erb +9 -0
  72. data/app/views/moduler/administration/users/_user.html.erb +13 -0
  73. data/app/views/moduler/administration/users/edit.html.erb +14 -0
  74. data/app/views/moduler/administration/users/index.html.erb +13 -0
  75. data/app/views/moduler/administration/users/new.html.erb +18 -0
  76. data/app/views/moduler/common/_flash.html.erb +16 -0
  77. data/app/views/moduler/common/_header.html.erb +18 -0
  78. data/app/views/moduler/common/_sidebar.html.erb +6 -0
  79. data/app/views/moduler/common/administration/_sidebar.html.erb +6 -0
  80. data/app/views/moduler/home/index.html.erb +0 -0
  81. data/app/views/moduler/profile/edit.html.erb +28 -0
  82. data/app/views/moduler/profile/sessions/_session.html.erb +52 -0
  83. data/app/views/moduler/profile/sessions/index.html.erb +26 -0
  84. data/app/views/moduler/sessions/new.html.erb +31 -0
  85. data/app/views/moduler/users/new.html.erb +26 -0
  86. data/config/importmap.rb +5 -0
  87. data/config/locales/moduler/administration/sessions/en.yml +24 -0
  88. data/config/locales/moduler/administration/users/en.yml +43 -0
  89. data/config/locales/moduler/common/en.yml +13 -0
  90. data/config/locales/moduler/components/en.yml +11 -0
  91. data/config/locales/moduler/en.yml +4 -0
  92. data/config/locales/moduler/profile/en.yml +26 -0
  93. data/config/locales/moduler/profile/sessions/en.yml +25 -0
  94. data/config/locales/moduler/sessions/en.yml +18 -0
  95. data/config/locales/moduler/users/en.yml +21 -0
  96. data/config/routes.rb +19 -0
  97. data/db/migrate/20260322152259_create_moduler_users.rb +12 -0
  98. data/db/migrate/20260322153744_create_moduler_sessions.rb +13 -0
  99. data/db/migrate/20261015171504_add_role_to_moduler_users.rb +5 -0
  100. data/db/migrate/20261020191709_enable_pg_trgm.rb +5 -0
  101. data/lib/moduler/configuration.rb +12 -0
  102. data/lib/moduler/engine.rb +20 -0
  103. data/lib/moduler/router.rb +10 -0
  104. data/lib/moduler/routing.rb +11 -0
  105. data/lib/moduler/version.rb +1 -1
  106. data/lib/moduler.rb +12 -1
  107. data/lib/tasks/moduler_tasks.rake +42 -4
  108. metadata +250 -2
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moduler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomasz Kowalewski
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2026-03-19 00:00:00.000000000 Z
10
+ date: 2026-10-25 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rails
@@ -29,6 +29,156 @@ dependencies:
29
29
  - - ">="
30
30
  - !ruby/object:Gem::Version
31
31
  version: 8.1.2
32
+ - !ruby/object:Gem::Dependency
33
+ name: importmap-rails
34
+ requirement: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - "~>"
37
+ - !ruby/object:Gem::Version
38
+ version: '2.2'
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: 2.2.3
42
+ type: :runtime
43
+ prerelease: false
44
+ version_requirements: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '2.2'
49
+ - - ">="
50
+ - !ruby/object:Gem::Version
51
+ version: 2.2.3
52
+ - !ruby/object:Gem::Dependency
53
+ name: stimulus-rails
54
+ requirement: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - "~>"
57
+ - !ruby/object:Gem::Version
58
+ version: '1.3'
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: 1.3.4
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.3'
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: 1.3.4
72
+ - !ruby/object:Gem::Dependency
73
+ name: turbo-rails
74
+ requirement: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - "~>"
77
+ - !ruby/object:Gem::Version
78
+ version: '2.0'
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: 2.0.23
82
+ type: :runtime
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '2.0'
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ version: 2.0.23
92
+ - !ruby/object:Gem::Dependency
93
+ name: tailwindcss-rails
94
+ requirement: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - "~>"
97
+ - !ruby/object:Gem::Version
98
+ version: '4.4'
99
+ type: :runtime
100
+ prerelease: false
101
+ version_requirements: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - "~>"
104
+ - !ruby/object:Gem::Version
105
+ version: '4.4'
106
+ - !ruby/object:Gem::Dependency
107
+ name: bcrypt
108
+ requirement: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - "~>"
111
+ - !ruby/object:Gem::Version
112
+ version: '3.1'
113
+ - - ">="
114
+ - !ruby/object:Gem::Version
115
+ version: 3.1.22
116
+ type: :runtime
117
+ prerelease: false
118
+ version_requirements: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - "~>"
121
+ - !ruby/object:Gem::Version
122
+ version: '3.1'
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: 3.1.22
126
+ - !ruby/object:Gem::Dependency
127
+ name: view_component
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: '4.15'
133
+ type: :runtime
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ version: '4.15'
140
+ - !ruby/object:Gem::Dependency
141
+ name: kaminari
142
+ requirement: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - "~>"
145
+ - !ruby/object:Gem::Version
146
+ version: '1.2'
147
+ type: :runtime
148
+ prerelease: false
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - "~>"
152
+ - !ruby/object:Gem::Version
153
+ version: '1.2'
154
+ - !ruby/object:Gem::Dependency
155
+ name: pg_search
156
+ requirement: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - ">="
159
+ - !ruby/object:Gem::Version
160
+ version: '2.4'
161
+ type: :runtime
162
+ prerelease: false
163
+ version_requirements: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - ">="
166
+ - !ruby/object:Gem::Version
167
+ version: '2.4'
168
+ - !ruby/object:Gem::Dependency
169
+ name: pundit
170
+ requirement: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - "~>"
173
+ - !ruby/object:Gem::Version
174
+ version: '2.5'
175
+ type: :runtime
176
+ prerelease: false
177
+ version_requirements: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - "~>"
180
+ - !ruby/object:Gem::Version
181
+ version: '2.5'
32
182
  email:
33
183
  - me@tkowalewski.pl
34
184
  executables: []
@@ -38,16 +188,114 @@ files:
38
188
  - MIT-LICENSE
39
189
  - README.md
40
190
  - Rakefile
191
+ - app/assets/builds/moduler/tailwind.css
192
+ - app/assets/config/moduler/manifest.js
193
+ - app/assets/javascripts/moduler/application.js
194
+ - app/assets/javascripts/moduler/controllers/flash_controller.js
41
195
  - app/assets/stylesheets/moduler/application.css
196
+ - app/assets/stylesheets/moduler/tailwind.css
197
+ - app/components/moduler/administration/page_component.html.erb
198
+ - app/components/moduler/administration/page_component.rb
199
+ - app/components/moduler/badge_component.html.erb
200
+ - app/components/moduler/badge_component.rb
201
+ - app/components/moduler/button_component.html.erb
202
+ - app/components/moduler/button_component.rb
203
+ - app/components/moduler/button_link_component.html.erb
204
+ - app/components/moduler/button_link_component.rb
205
+ - app/components/moduler/filter_component.html.erb
206
+ - app/components/moduler/filter_component.rb
207
+ - app/components/moduler/form/base_error_component.html.erb
208
+ - app/components/moduler/form/base_error_component.rb
209
+ - app/components/moduler/form/email_component.html.erb
210
+ - app/components/moduler/form/email_component.rb
211
+ - app/components/moduler/form/password_component.html.erb
212
+ - app/components/moduler/form/password_component.rb
213
+ - app/components/moduler/form/section_component.html.erb
214
+ - app/components/moduler/form/section_component.rb
215
+ - app/components/moduler/form/select_component.html.erb
216
+ - app/components/moduler/form/select_component.rb
217
+ - app/components/moduler/form/submit_component.html.erb
218
+ - app/components/moduler/form/submit_component.rb
219
+ - app/components/moduler/form/text_component.html.erb
220
+ - app/components/moduler/form/text_component.rb
221
+ - app/components/moduler/list_component.html.erb
222
+ - app/components/moduler/list_component.rb
223
+ - app/components/moduler/list_item_component.html.erb
224
+ - app/components/moduler/list_item_component.rb
225
+ - app/components/moduler/page_header_component.html.erb
226
+ - app/components/moduler/page_header_component.rb
227
+ - app/components/moduler/sidebar_action_component.html.erb
228
+ - app/components/moduler/sidebar_action_component.rb
229
+ - app/controllers/concerns/moduler/authentication.rb
230
+ - app/controllers/moduler/administration/application_controller.rb
231
+ - app/controllers/moduler/administration/home_controller.rb
232
+ - app/controllers/moduler/administration/sessions_controller.rb
233
+ - app/controllers/moduler/administration/users_controller.rb
42
234
  - app/controllers/moduler/application_controller.rb
235
+ - app/controllers/moduler/home_controller.rb
236
+ - app/controllers/moduler/profile/sessions/revocation_controller.rb
237
+ - app/controllers/moduler/profile/sessions_controller.rb
238
+ - app/controllers/moduler/profile_controller.rb
239
+ - app/controllers/moduler/sessions_controller.rb
240
+ - app/controllers/moduler/users_controller.rb
241
+ - app/filters/application_filter.rb
242
+ - app/filters/query_filter.rb
43
243
  - app/helpers/moduler/application_helper.rb
44
244
  - app/jobs/moduler/application_job.rb
245
+ - app/lib/moduler/form_builder.rb
45
246
  - app/mailers/moduler/application_mailer.rb
46
247
  - app/models/moduler/application_record.rb
248
+ - app/models/moduler/current.rb
249
+ - app/models/moduler/session.rb
250
+ - app/models/moduler/user.rb
251
+ - app/policies/moduler/administration/base_policy.rb
252
+ - app/policies/moduler/administration/home_policy.rb
253
+ - app/policies/moduler/administration/session_policy.rb
254
+ - app/policies/moduler/administration/user_policy.rb
255
+ - app/policies/moduler/application_policy.rb
256
+ - app/views/kaminari/_gap.html.erb
257
+ - app/views/kaminari/_next_page.html.erb
258
+ - app/views/kaminari/_page.html.erb
259
+ - app/views/kaminari/_paginator.html.erb
260
+ - app/views/kaminari/_prev_page.html.erb
47
261
  - app/views/layouts/moduler/application.html.erb
262
+ - app/views/moduler/administration/home/index.html.erb
263
+ - app/views/moduler/administration/sessions/_session.html.erb
264
+ - app/views/moduler/administration/sessions/index.html.erb
265
+ - app/views/moduler/administration/users/_user.html.erb
266
+ - app/views/moduler/administration/users/edit.html.erb
267
+ - app/views/moduler/administration/users/index.html.erb
268
+ - app/views/moduler/administration/users/new.html.erb
269
+ - app/views/moduler/common/_flash.html.erb
270
+ - app/views/moduler/common/_header.html.erb
271
+ - app/views/moduler/common/_sidebar.html.erb
272
+ - app/views/moduler/common/administration/_sidebar.html.erb
273
+ - app/views/moduler/home/index.html.erb
274
+ - app/views/moduler/profile/edit.html.erb
275
+ - app/views/moduler/profile/sessions/_session.html.erb
276
+ - app/views/moduler/profile/sessions/index.html.erb
277
+ - app/views/moduler/sessions/new.html.erb
278
+ - app/views/moduler/users/new.html.erb
279
+ - config/importmap.rb
280
+ - config/locales/moduler/administration/sessions/en.yml
281
+ - config/locales/moduler/administration/users/en.yml
282
+ - config/locales/moduler/common/en.yml
283
+ - config/locales/moduler/components/en.yml
284
+ - config/locales/moduler/en.yml
285
+ - config/locales/moduler/profile/en.yml
286
+ - config/locales/moduler/profile/sessions/en.yml
287
+ - config/locales/moduler/sessions/en.yml
288
+ - config/locales/moduler/users/en.yml
48
289
  - config/routes.rb
290
+ - db/migrate/20260322152259_create_moduler_users.rb
291
+ - db/migrate/20260322153744_create_moduler_sessions.rb
292
+ - db/migrate/20261015171504_add_role_to_moduler_users.rb
293
+ - db/migrate/20261020191709_enable_pg_trgm.rb
49
294
  - lib/moduler.rb
295
+ - lib/moduler/configuration.rb
50
296
  - lib/moduler/engine.rb
297
+ - lib/moduler/router.rb
298
+ - lib/moduler/routing.rb
51
299
  - lib/moduler/version.rb
52
300
  - lib/tasks/moduler_tasks.rake
53
301
  homepage: https://github.com/tkowalewski/moduler