trestle 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/bundle/trestle/bundle.css +0 -0
  3. data/app/assets/bundle/trestle/bundle.js +0 -0
  4. data/app/assets/javascripts/trestle/admin.js +1 -0
  5. data/app/assets/javascripts/trestle/i18n.js.erb +8 -0
  6. data/app/helpers/trestle/grid_helper.rb +44 -4
  7. data/app/helpers/trestle/i18n_helper.rb +8 -15
  8. data/app/helpers/trestle/table_helper.rb +7 -3
  9. data/app/helpers/trestle/title_helper.rb +11 -0
  10. data/app/helpers/trestle/toolbars_helper.rb +0 -11
  11. data/app/views/layouts/trestle/admin.html.erb +4 -4
  12. data/app/views/trestle/application/_dialog.html.erb +1 -1
  13. data/app/views/trestle/application/_header.html.erb +1 -3
  14. data/app/views/trestle/resource/edit.html.erb +2 -2
  15. data/app/views/trestle/resource/index.html.erb +1 -1
  16. data/app/views/trestle/resource/new.html.erb +1 -1
  17. data/app/views/trestle/resource/show.html.erb +2 -2
  18. data/app/views/trestle/shared/_sidebar.html.erb +1 -1
  19. data/config/locales/de.rb +18 -0
  20. data/config/locales/de.yml +101 -0
  21. data/frontend/js/components/tabs.js +2 -2
  22. data/lib/generators/trestle/resource/resource_generator.rb +15 -1
  23. data/lib/generators/trestle/resource/templates/admin.rb.erb +15 -8
  24. data/lib/trestle.rb +13 -0
  25. data/lib/trestle/adapters/active_record_adapter.rb +1 -1
  26. data/lib/trestle/admin.rb +5 -2
  27. data/lib/trestle/admin/builder.rb +5 -1
  28. data/lib/trestle/admin/controller.rb +8 -1
  29. data/lib/trestle/application_controller.rb +2 -0
  30. data/lib/trestle/configuration.rb +1 -1
  31. data/lib/trestle/controller/breadcrumbs.rb +1 -1
  32. data/lib/trestle/controller/title.rb +20 -0
  33. data/lib/trestle/controller/toolbars.rb +30 -0
  34. data/lib/trestle/form/automatic.rb +2 -2
  35. data/lib/trestle/form/field.rb +12 -2
  36. data/lib/trestle/form/fields/check_box_helpers.rb +1 -1
  37. data/lib/trestle/form/fields/collection_select.rb +1 -1
  38. data/lib/trestle/form/fields/date_select.rb +1 -1
  39. data/lib/trestle/form/fields/datetime_select.rb +1 -1
  40. data/lib/trestle/form/fields/select.rb +1 -1
  41. data/lib/trestle/form/fields/static_field.rb +5 -1
  42. data/lib/trestle/form/fields/tag_select.rb +1 -1
  43. data/lib/trestle/form/fields/time_select.rb +1 -1
  44. data/lib/trestle/form/fields/time_zone_select.rb +1 -1
  45. data/lib/trestle/navigation/item.rb +4 -0
  46. data/lib/trestle/resource.rb +1 -0
  47. data/lib/trestle/resource/controller.rb +9 -166
  48. data/lib/trestle/resource/controller/actions.rb +133 -0
  49. data/lib/trestle/resource/controller/data_methods.rb +52 -0
  50. data/lib/trestle/resource/controller/redirection.rb +23 -0
  51. data/lib/trestle/resource/controller/toolbar.rb +11 -0
  52. data/lib/trestle/resource/toolbar.rb +29 -0
  53. data/lib/trestle/table.rb +6 -0
  54. data/lib/trestle/version.rb +1 -1
  55. data/trestle.gemspec +1 -0
  56. data/yarn.lock +518 -496
  57. metadata +27 -2
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trestle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Pohlenz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-22 00:00:00.000000000 Z
11
+ date: 2020-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: 1.6.2
111
+ - !ruby/object:Gem::Dependency
112
+ name: ammeter
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 1.1.4
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 1.1.4
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: bundler
113
127
  requirement: !ruby/object:Gem::Requirement
@@ -261,6 +275,7 @@ files:
261
275
  - app/assets/bundle/trestle/flatpickr/zh.js
262
276
  - app/assets/javascripts/trestle/admin.js
263
277
  - app/assets/javascripts/trestle/custom.js
278
+ - app/assets/javascripts/trestle/i18n.js.erb
264
279
  - app/assets/stylesheets/trestle/_custom.css
265
280
  - app/assets/stylesheets/trestle/admin.css
266
281
  - app/assets/stylesheets/trestle/custom.css
@@ -286,6 +301,7 @@ files:
286
301
  - app/helpers/trestle/tab_helper.rb
287
302
  - app/helpers/trestle/table_helper.rb
288
303
  - app/helpers/trestle/timestamp_helper.rb
304
+ - app/helpers/trestle/title_helper.rb
289
305
  - app/helpers/trestle/toolbars_helper.rb
290
306
  - app/helpers/trestle/url_helper.rb
291
307
  - app/views/kaminari/trestle/_first_page.html.erb
@@ -319,6 +335,8 @@ files:
319
335
  - app/views/trestle/table/_table.html.erb
320
336
  - config/locales/cs.rb
321
337
  - config/locales/cs.yml
338
+ - config/locales/de.rb
339
+ - config/locales/de.yml
322
340
  - config/locales/en.rb
323
341
  - config/locales/en.yml
324
342
  - config/locales/es-MX.yml
@@ -460,6 +478,8 @@ files:
460
478
  - lib/trestle/controller/helpers.rb
461
479
  - lib/trestle/controller/layout.rb
462
480
  - lib/trestle/controller/location.rb
481
+ - lib/trestle/controller/title.rb
482
+ - lib/trestle/controller/toolbars.rb
463
483
  - lib/trestle/display.rb
464
484
  - lib/trestle/engine.rb
465
485
  - lib/trestle/evaluation_context.rb
@@ -516,6 +536,11 @@ files:
516
536
  - lib/trestle/resource/builder.rb
517
537
  - lib/trestle/resource/collection.rb
518
538
  - lib/trestle/resource/controller.rb
539
+ - lib/trestle/resource/controller/actions.rb
540
+ - lib/trestle/resource/controller/data_methods.rb
541
+ - lib/trestle/resource/controller/redirection.rb
542
+ - lib/trestle/resource/controller/toolbar.rb
543
+ - lib/trestle/resource/toolbar.rb
519
544
  - lib/trestle/scopes.rb
520
545
  - lib/trestle/scopes/block.rb
521
546
  - lib/trestle/scopes/scope.rb