lotus_admin 0.1.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 (91) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +63 -0
  4. data/Rakefile +20 -0
  5. data/app/assets/config/lotus_admin_manifest.js +2 -0
  6. data/app/assets/images/lotus_admin/profile-menu.png +0 -0
  7. data/app/assets/javascripts/lotus_admin/application.js +5 -0
  8. data/app/assets/stylesheets/lotus_admin/application.css.scss +9 -0
  9. data/app/assets/stylesheets/lotus_admin/components/_alerts.scss +5 -0
  10. data/app/assets/stylesheets/lotus_admin/components/_all.scss +4 -0
  11. data/app/assets/stylesheets/lotus_admin/components/_devise.scss +3 -0
  12. data/app/assets/stylesheets/lotus_admin/components/_forms.scss +7 -0
  13. data/app/assets/stylesheets/lotus_admin/components/_tables.scss +27 -0
  14. data/app/controllers/concerns/lotus_admin/devise_controllers.rb +7 -0
  15. data/app/controllers/concerns/lotus_admin/exposure.rb +27 -0
  16. data/app/controllers/concerns/lotus_admin/permitted_params.rb +18 -0
  17. data/app/controllers/lotus_admin/application_controller.rb +20 -0
  18. data/app/controllers/lotus_admin/authenticated_controller.rb +20 -0
  19. data/app/controllers/lotus_admin/confirmations_controller.rb +3 -0
  20. data/app/controllers/lotus_admin/dashboard_controller.rb +5 -0
  21. data/app/controllers/lotus_admin/passwords_controller.rb +3 -0
  22. data/app/controllers/lotus_admin/profiles_controller.rb +20 -0
  23. data/app/controllers/lotus_admin/sessions_controller.rb +3 -0
  24. data/app/controllers/lotus_admin/users_controller.rb +45 -0
  25. data/app/helpers/lotus_admin/application_helper.rb +18 -0
  26. data/app/helpers/lotus_admin/form_helpers.rb +25 -0
  27. data/app/helpers/lotus_admin/link_helpers.rb +27 -0
  28. data/app/helpers/lotus_admin/pagination_helpers.rb +7 -0
  29. data/app/helpers/lotus_admin/panel_helpers.rb +24 -0
  30. data/app/helpers/lotus_admin/sidebar_helpers.rb +25 -0
  31. data/app/jobs/lotus_admin/application_job.rb +4 -0
  32. data/app/mailers/lotus_admin/application_mailer.rb +6 -0
  33. data/app/mailers/lotus_admin/user_mailer.rb +10 -0
  34. data/app/models/lotus_admin/application_record.rb +5 -0
  35. data/app/models/lotus_admin/user.rb +17 -0
  36. data/app/views/administrators/_links.html.haml +20 -0
  37. data/app/views/administrators/confirmations/new.html.haml +13 -0
  38. data/app/views/administrators/passwords/edit.html.haml +15 -0
  39. data/app/views/administrators/passwords/new.html.haml +11 -0
  40. data/app/views/administrators/sessions/new.html.haml +11 -0
  41. data/app/views/kaminari/lotus_admin/_first_page.html.haml +2 -0
  42. data/app/views/kaminari/lotus_admin/_gap.html.haml +1 -0
  43. data/app/views/kaminari/lotus_admin/_last_page.html.haml +2 -0
  44. data/app/views/kaminari/lotus_admin/_next_page.html.haml +2 -0
  45. data/app/views/kaminari/lotus_admin/_page.html.haml +2 -0
  46. data/app/views/kaminari/lotus_admin/_paginator.html.haml +12 -0
  47. data/app/views/kaminari/lotus_admin/_prev_page.html.haml +2 -0
  48. data/app/views/layouts/lotus_admin/_devise_footer.html.haml +0 -0
  49. data/app/views/layouts/lotus_admin/_favicons.html.haml +0 -0
  50. data/app/views/layouts/lotus_admin/_footer.html.haml +2 -0
  51. data/app/views/layouts/lotus_admin/_footer_scripts.html.haml +2 -0
  52. data/app/views/layouts/lotus_admin/_header.html.haml +31 -0
  53. data/app/views/layouts/lotus_admin/_header_dropdown_items.html.haml +0 -0
  54. data/app/views/layouts/lotus_admin/_html_head.html.haml +9 -0
  55. data/app/views/layouts/lotus_admin/_javascripts.html.haml +1 -0
  56. data/app/views/layouts/lotus_admin/_sidebar.html.haml +22 -0
  57. data/app/views/layouts/lotus_admin/_sidebar_items.html.haml +9 -0
  58. data/app/views/layouts/lotus_admin/_stylesheets.html.haml +5 -0
  59. data/app/views/layouts/lotus_admin/application.html.haml +22 -0
  60. data/app/views/layouts/lotus_admin/devise.html.haml +19 -0
  61. data/app/views/layouts/lotus_admin/mailer.html.haml +10 -0
  62. data/app/views/layouts/lotus_admin/mailer.text.erb +4 -0
  63. data/app/views/lotus_admin/dashboard/show.html.haml +1 -0
  64. data/app/views/lotus_admin/profiles/edit.html.haml +26 -0
  65. data/app/views/lotus_admin/shared/_collection_pagination.html.haml +7 -0
  66. data/app/views/lotus_admin/user_mailer/invited.html.haml +8 -0
  67. data/app/views/lotus_admin/user_mailer/invited.text.erb +5 -0
  68. data/app/views/lotus_admin/users/_form.html.haml +10 -0
  69. data/app/views/lotus_admin/users/edit.html.haml +12 -0
  70. data/app/views/lotus_admin/users/index.html.haml +30 -0
  71. data/app/views/lotus_admin/users/new.html.haml +9 -0
  72. data/app/views/lotus_admin/users/show.html.haml +24 -0
  73. data/config/initializers/devise.rb +280 -0
  74. data/config/initializers/simple_form.rb +170 -0
  75. data/config/initializers/simple_form_bootstrap.rb +155 -0
  76. data/config/initializers/simple_form_material.rb +35 -0
  77. data/config/locales/dates.en.yml +11 -0
  78. data/config/locales/devise.en.yml +64 -0
  79. data/config/locales/mailers.en.yml +5 -0
  80. data/config/locales/page_titles.en.yml +30 -0
  81. data/config/locales/simple_form.en.yml +31 -0
  82. data/config/locales/users.en.yml +29 -0
  83. data/config/routes.rb +8 -0
  84. data/db/migrate/20180228124526_devise_create_lotus_admin_users.rb +46 -0
  85. data/db/migrate/20180228210938_add_timezone_to_users.rb +5 -0
  86. data/lib/lotus_admin.rb +17 -0
  87. data/lib/lotus_admin/engine.rb +19 -0
  88. data/lib/lotus_admin/version.rb +3 -0
  89. data/lib/tasks/lotus_admin_tasks.rake +6 -0
  90. data/lib/templates/erb/scaffold/_form.html.erb +14 -0
  91. metadata +371 -0
@@ -0,0 +1,19 @@
1
+ module LotusAdmin
2
+ class Engine < ::Rails::Engine
3
+ isolate_namespace LotusAdmin
4
+
5
+ config.generators do |g|
6
+ g.test_framework :rspec
7
+ g.fixture_replacement :factory_bot, dir: 'spec/factories'
8
+ end
9
+
10
+ initializer :append_migrations do |app|
11
+ # This prevents migrations from being loaded twice from the inside of the gem itself (dummy test app)
12
+ if app.root.to_s !~ /#{root}/
13
+ config.paths['db/migrate'].expanded.each do |migration_path|
14
+ app.config.paths['db/migrate'] << migration_path
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,3 @@
1
+ module LotusAdmin
2
+ VERSION = '0.1.0'
3
+ end
@@ -0,0 +1,6 @@
1
+ namespace :lotus_admin do
2
+ desc 'Seed with First Administrator'
3
+ task seed: :environment do
4
+ LotusAdmin::User.create!(first_name: 'Johnny', last_name: 'Appleseed', email: 'admin@example.com', password: 'password')
5
+ end
6
+ end
@@ -0,0 +1,14 @@
1
+ <%# frozen_string_literal: true %>
2
+ <%%= simple_form_for(@<%= singular_table_name %>) do |f| %>
3
+ <%%= f.error_notification %>
4
+
5
+ <div class="form-inputs">
6
+ <%- attributes.each do |attribute| -%>
7
+ <%%= f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %> %>
8
+ <%- end -%>
9
+ </div>
10
+
11
+ <div class="form-actions">
12
+ <%%= f.button :submit %>
13
+ </div>
14
+ <%% end %>
metadata ADDED
@@ -0,0 +1,371 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: lotus_admin
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Matt Millsaps-Brewer
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-03-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 5.1.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 5.1.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: devise
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '4.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '4.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: simple_form
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.4'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.4'
55
+ - !ruby/object:Gem::Dependency
56
+ name: haml
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '5.0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '5.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: sass-rails
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '5.0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '5.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: uglifier
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: 1.3.0
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: 1.3.0
97
+ - !ruby/object:Gem::Dependency
98
+ name: jquery-rails
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '4.3'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '4.3'
111
+ - !ruby/object:Gem::Dependency
112
+ name: bootstrap-sass
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 3.3.6
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 3.3.6
125
+ - !ruby/object:Gem::Dependency
126
+ name: font-awesome-rails
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '4.7'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '4.7'
139
+ - !ruby/object:Gem::Dependency
140
+ name: page_title_helper
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '2.1'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '2.1'
153
+ - !ruby/object:Gem::Dependency
154
+ name: kaminari
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '1.0'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '1.0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: pg
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: '0.21'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: '0.21'
181
+ - !ruby/object:Gem::Dependency
182
+ name: byebug
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '10.0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: '10.0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: rspec-rails
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - "~>"
200
+ - !ruby/object:Gem::Version
201
+ version: '3.7'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - "~>"
207
+ - !ruby/object:Gem::Version
208
+ version: '3.7'
209
+ - !ruby/object:Gem::Dependency
210
+ name: factory_bot_rails
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - "~>"
214
+ - !ruby/object:Gem::Version
215
+ version: '4.8'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - "~>"
221
+ - !ruby/object:Gem::Version
222
+ version: '4.8'
223
+ - !ruby/object:Gem::Dependency
224
+ name: shoulda-matchers
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - "~>"
228
+ - !ruby/object:Gem::Version
229
+ version: '3.1'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - "~>"
235
+ - !ruby/object:Gem::Version
236
+ version: '3.1'
237
+ - !ruby/object:Gem::Dependency
238
+ name: letter_opener
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - "~>"
242
+ - !ruby/object:Gem::Version
243
+ version: '1.6'
244
+ type: :development
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - "~>"
249
+ - !ruby/object:Gem::Version
250
+ version: '1.6'
251
+ description: Bootstrap 3 Material Design Simple Admin Interface.
252
+ email:
253
+ - matt@madebylotus.com
254
+ executables: []
255
+ extensions: []
256
+ extra_rdoc_files: []
257
+ files:
258
+ - MIT-LICENSE
259
+ - README.md
260
+ - Rakefile
261
+ - app/assets/config/lotus_admin_manifest.js
262
+ - app/assets/images/lotus_admin/profile-menu.png
263
+ - app/assets/javascripts/lotus_admin/application.js
264
+ - app/assets/stylesheets/lotus_admin/application.css.scss
265
+ - app/assets/stylesheets/lotus_admin/components/_alerts.scss
266
+ - app/assets/stylesheets/lotus_admin/components/_all.scss
267
+ - app/assets/stylesheets/lotus_admin/components/_devise.scss
268
+ - app/assets/stylesheets/lotus_admin/components/_forms.scss
269
+ - app/assets/stylesheets/lotus_admin/components/_tables.scss
270
+ - app/controllers/concerns/lotus_admin/devise_controllers.rb
271
+ - app/controllers/concerns/lotus_admin/exposure.rb
272
+ - app/controllers/concerns/lotus_admin/permitted_params.rb
273
+ - app/controllers/lotus_admin/application_controller.rb
274
+ - app/controllers/lotus_admin/authenticated_controller.rb
275
+ - app/controllers/lotus_admin/confirmations_controller.rb
276
+ - app/controllers/lotus_admin/dashboard_controller.rb
277
+ - app/controllers/lotus_admin/passwords_controller.rb
278
+ - app/controllers/lotus_admin/profiles_controller.rb
279
+ - app/controllers/lotus_admin/sessions_controller.rb
280
+ - app/controllers/lotus_admin/users_controller.rb
281
+ - app/helpers/lotus_admin/application_helper.rb
282
+ - app/helpers/lotus_admin/form_helpers.rb
283
+ - app/helpers/lotus_admin/link_helpers.rb
284
+ - app/helpers/lotus_admin/pagination_helpers.rb
285
+ - app/helpers/lotus_admin/panel_helpers.rb
286
+ - app/helpers/lotus_admin/sidebar_helpers.rb
287
+ - app/jobs/lotus_admin/application_job.rb
288
+ - app/mailers/lotus_admin/application_mailer.rb
289
+ - app/mailers/lotus_admin/user_mailer.rb
290
+ - app/models/lotus_admin/application_record.rb
291
+ - app/models/lotus_admin/user.rb
292
+ - app/views/administrators/_links.html.haml
293
+ - app/views/administrators/confirmations/new.html.haml
294
+ - app/views/administrators/passwords/edit.html.haml
295
+ - app/views/administrators/passwords/new.html.haml
296
+ - app/views/administrators/sessions/new.html.haml
297
+ - app/views/kaminari/lotus_admin/_first_page.html.haml
298
+ - app/views/kaminari/lotus_admin/_gap.html.haml
299
+ - app/views/kaminari/lotus_admin/_last_page.html.haml
300
+ - app/views/kaminari/lotus_admin/_next_page.html.haml
301
+ - app/views/kaminari/lotus_admin/_page.html.haml
302
+ - app/views/kaminari/lotus_admin/_paginator.html.haml
303
+ - app/views/kaminari/lotus_admin/_prev_page.html.haml
304
+ - app/views/layouts/lotus_admin/_devise_footer.html.haml
305
+ - app/views/layouts/lotus_admin/_favicons.html.haml
306
+ - app/views/layouts/lotus_admin/_footer.html.haml
307
+ - app/views/layouts/lotus_admin/_footer_scripts.html.haml
308
+ - app/views/layouts/lotus_admin/_header.html.haml
309
+ - app/views/layouts/lotus_admin/_header_dropdown_items.html.haml
310
+ - app/views/layouts/lotus_admin/_html_head.html.haml
311
+ - app/views/layouts/lotus_admin/_javascripts.html.haml
312
+ - app/views/layouts/lotus_admin/_sidebar.html.haml
313
+ - app/views/layouts/lotus_admin/_sidebar_items.html.haml
314
+ - app/views/layouts/lotus_admin/_stylesheets.html.haml
315
+ - app/views/layouts/lotus_admin/application.html.haml
316
+ - app/views/layouts/lotus_admin/devise.html.haml
317
+ - app/views/layouts/lotus_admin/mailer.html.haml
318
+ - app/views/layouts/lotus_admin/mailer.text.erb
319
+ - app/views/lotus_admin/dashboard/show.html.haml
320
+ - app/views/lotus_admin/profiles/edit.html.haml
321
+ - app/views/lotus_admin/shared/_collection_pagination.html.haml
322
+ - app/views/lotus_admin/user_mailer/invited.html.haml
323
+ - app/views/lotus_admin/user_mailer/invited.text.erb
324
+ - app/views/lotus_admin/users/_form.html.haml
325
+ - app/views/lotus_admin/users/edit.html.haml
326
+ - app/views/lotus_admin/users/index.html.haml
327
+ - app/views/lotus_admin/users/new.html.haml
328
+ - app/views/lotus_admin/users/show.html.haml
329
+ - config/initializers/devise.rb
330
+ - config/initializers/simple_form.rb
331
+ - config/initializers/simple_form_bootstrap.rb
332
+ - config/initializers/simple_form_material.rb
333
+ - config/locales/dates.en.yml
334
+ - config/locales/devise.en.yml
335
+ - config/locales/mailers.en.yml
336
+ - config/locales/page_titles.en.yml
337
+ - config/locales/simple_form.en.yml
338
+ - config/locales/users.en.yml
339
+ - config/routes.rb
340
+ - db/migrate/20180228124526_devise_create_lotus_admin_users.rb
341
+ - db/migrate/20180228210938_add_timezone_to_users.rb
342
+ - lib/lotus_admin.rb
343
+ - lib/lotus_admin/engine.rb
344
+ - lib/lotus_admin/version.rb
345
+ - lib/tasks/lotus_admin_tasks.rake
346
+ - lib/templates/erb/scaffold/_form.html.erb
347
+ homepage: http://www.madebylotus.com
348
+ licenses:
349
+ - MIT
350
+ metadata: {}
351
+ post_install_message:
352
+ rdoc_options: []
353
+ require_paths:
354
+ - lib
355
+ required_ruby_version: !ruby/object:Gem::Requirement
356
+ requirements:
357
+ - - ">="
358
+ - !ruby/object:Gem::Version
359
+ version: '0'
360
+ required_rubygems_version: !ruby/object:Gem::Requirement
361
+ requirements:
362
+ - - ">="
363
+ - !ruby/object:Gem::Version
364
+ version: '0'
365
+ requirements: []
366
+ rubyforge_project:
367
+ rubygems_version: 2.6.13
368
+ signing_key:
369
+ specification_version: 4
370
+ summary: Bootstrap 3 Material Design Simple Admin Interface.
371
+ test_files: []