trestle 0.8.5 → 0.8.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/trestle/admin.js +11 -10
  3. data/app/assets/javascripts/trestle/{_confirmation.js → components/_confirmation.js} +1 -1
  4. data/app/assets/javascripts/trestle/{_datepicker.js → components/_datepicker.js} +4 -4
  5. data/app/assets/javascripts/trestle/components/_dialog.js +107 -0
  6. data/app/assets/javascripts/trestle/{_errors.js → components/_errors.js} +2 -2
  7. data/app/assets/javascripts/trestle/components/_form.js +48 -0
  8. data/app/assets/javascripts/trestle/{_gallery.js → components/_gallery.js} +3 -3
  9. data/app/assets/javascripts/trestle/{_select.js → components/_select.js} +2 -2
  10. data/app/assets/javascripts/trestle/{_sidebar.js → components/_sidebar.js} +3 -1
  11. data/app/assets/javascripts/trestle/{_table.js → components/_table.js} +1 -1
  12. data/app/assets/javascripts/trestle/components/_tabs.js +24 -0
  13. data/app/assets/javascripts/trestle/components/_tooltips.js +3 -0
  14. data/app/assets/javascripts/trestle/core/_contexts.js +13 -0
  15. data/app/assets/javascripts/trestle/{_cookies.js → core/_cookies.js} +2 -1
  16. data/app/assets/javascripts/trestle/core/_events.js +39 -0
  17. data/app/assets/javascripts/trestle/core/_visit.js +10 -0
  18. data/app/assets/stylesheets/trestle/components/_buttons.scss +9 -0
  19. data/app/assets/stylesheets/trestle/components/_modal.scss +92 -0
  20. data/app/assets/stylesheets/trestle/components/_navigation.scss +47 -12
  21. data/app/assets/stylesheets/trestle/components/_sidebar.scss +1 -0
  22. data/app/assets/stylesheets/trestle/core/_defaults.scss +5 -1
  23. data/app/controllers/trestle/application_controller.rb +5 -1
  24. data/app/helpers/trestle/dialog_helper.rb +7 -0
  25. data/app/helpers/trestle/form_helper.rb +7 -0
  26. data/app/helpers/trestle/url_helper.rb +34 -6
  27. data/app/views/layouts/trestle/admin.html.erb +1 -1
  28. data/app/views/trestle/application/_dialog.html.erb +36 -0
  29. data/app/views/trestle/application/_tabs.html.erb +7 -1
  30. data/app/views/trestle/resource/edit.html.erb +5 -5
  31. data/app/views/trestle/resource/index.html.erb +2 -2
  32. data/app/views/trestle/resource/new.html.erb +2 -2
  33. data/app/views/trestle/resource/show.html.erb +5 -5
  34. data/bower.json +1 -1
  35. data/config/locales/en.yml +25 -21
  36. data/config/locales/fr.rb +18 -0
  37. data/config/locales/fr.yml +69 -0
  38. data/config/locales/nl.yml +14 -14
  39. data/config/locales/pl.rb +18 -0
  40. data/config/locales/pl.yml +70 -0
  41. data/config/locales/pt-BR.yml +22 -22
  42. data/lib/generators/trestle/resource/templates/admin.rb.erb +1 -1
  43. data/lib/trestle/admin.rb +14 -1
  44. data/lib/trestle/admin/builder.rb +10 -2
  45. data/lib/trestle/breadcrumb.rb +13 -0
  46. data/lib/trestle/configuration.rb +6 -1
  47. data/lib/trestle/form.rb +7 -3
  48. data/lib/trestle/form/automatic.rb +1 -1
  49. data/lib/trestle/reloader.rb +1 -1
  50. data/lib/trestle/resource.rb +20 -5
  51. data/lib/trestle/resource/builder.rb +15 -0
  52. data/lib/trestle/resource/controller.rb +19 -6
  53. data/lib/trestle/table.rb +4 -0
  54. data/lib/trestle/table/actions_column.rb +9 -7
  55. data/lib/trestle/table/column.rb +3 -2
  56. data/lib/trestle/table/row.rb +7 -1
  57. data/lib/trestle/version.rb +1 -1
  58. data/trestle.gemspec +3 -3
  59. data/vendor/assets/bower_components/trestle/select2/dist/js/select2.full.js +90 -69
  60. metadata +30 -19
  61. data/app/assets/javascripts/trestle/_form.js +0 -6
  62. data/app/assets/javascripts/trestle/_tabs.js +0 -13
  63. data/app/assets/javascripts/trestle/_tooltips.js +0 -3
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.8.5
4
+ version: 0.8.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Pohlenz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-27 00:00:00.000000000 Z
11
+ date: 2017-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -42,28 +42,28 @@ dependencies:
42
42
  name: sass-rails
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: 5.0.6
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: 5.0.6
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: autoprefixer-rails
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: 7.1.2
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: 7.1.2
69
69
  - !ruby/object:Gem::Dependency
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 1.0.1
75
+ version: 1.1.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 1.0.1
82
+ version: 1.1.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: bundler
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -181,18 +181,22 @@ files:
181
181
  - Rakefile
182
182
  - app/assets/images/trestle/textures/billie-holiday.png
183
183
  - app/assets/images/trestle/textures/bright-squares.png
184
- - app/assets/javascripts/trestle/_confirmation.js
185
- - app/assets/javascripts/trestle/_cookies.js
186
- - app/assets/javascripts/trestle/_datepicker.js
187
- - app/assets/javascripts/trestle/_errors.js
188
- - app/assets/javascripts/trestle/_form.js
189
- - app/assets/javascripts/trestle/_gallery.js
190
- - app/assets/javascripts/trestle/_select.js
191
- - app/assets/javascripts/trestle/_sidebar.js
192
- - app/assets/javascripts/trestle/_table.js
193
- - app/assets/javascripts/trestle/_tabs.js
194
- - app/assets/javascripts/trestle/_tooltips.js
195
184
  - app/assets/javascripts/trestle/admin.js
185
+ - app/assets/javascripts/trestle/components/_confirmation.js
186
+ - app/assets/javascripts/trestle/components/_datepicker.js
187
+ - app/assets/javascripts/trestle/components/_dialog.js
188
+ - app/assets/javascripts/trestle/components/_errors.js
189
+ - app/assets/javascripts/trestle/components/_form.js
190
+ - app/assets/javascripts/trestle/components/_gallery.js
191
+ - app/assets/javascripts/trestle/components/_select.js
192
+ - app/assets/javascripts/trestle/components/_sidebar.js
193
+ - app/assets/javascripts/trestle/components/_table.js
194
+ - app/assets/javascripts/trestle/components/_tabs.js
195
+ - app/assets/javascripts/trestle/components/_tooltips.js
196
+ - app/assets/javascripts/trestle/core/_contexts.js
197
+ - app/assets/javascripts/trestle/core/_cookies.js
198
+ - app/assets/javascripts/trestle/core/_events.js
199
+ - app/assets/javascripts/trestle/core/_visit.js
196
200
  - app/assets/javascripts/trestle/custom.js
197
201
  - app/assets/stylesheets/trestle/_custom.scss
198
202
  - app/assets/stylesheets/trestle/_support.scss
@@ -212,6 +216,7 @@ files:
212
216
  - app/assets/stylesheets/trestle/components/_header.scss
213
217
  - app/assets/stylesheets/trestle/components/_input-group.scss
214
218
  - app/assets/stylesheets/trestle/components/_media-grid.scss
219
+ - app/assets/stylesheets/trestle/components/_modal.scss
215
220
  - app/assets/stylesheets/trestle/components/_navigation.scss
216
221
  - app/assets/stylesheets/trestle/components/_pagination.scss
217
222
  - app/assets/stylesheets/trestle/components/_popover.scss
@@ -232,6 +237,7 @@ files:
232
237
  - app/controllers/trestle/dashboard_controller.rb
233
238
  - app/helpers/trestle/avatar_helper.rb
234
239
  - app/helpers/trestle/container_helper.rb
240
+ - app/helpers/trestle/dialog_helper.rb
235
241
  - app/helpers/trestle/display_helper.rb
236
242
  - app/helpers/trestle/form_helper.rb
237
243
  - app/helpers/trestle/format_helper.rb
@@ -256,6 +262,7 @@ files:
256
262
  - app/views/layouts/trestle/admin.html.erb
257
263
  - app/views/trestle/admin/index.html.erb
258
264
  - app/views/trestle/application/_alert.html.erb
265
+ - app/views/trestle/application/_dialog.html.erb
259
266
  - app/views/trestle/application/_flash.html.erb
260
267
  - app/views/trestle/application/_header.html.erb
261
268
  - app/views/trestle/application/_layout.html.erb
@@ -279,8 +286,12 @@ files:
279
286
  - bower.json
280
287
  - config/locales/en.rb
281
288
  - config/locales/en.yml
289
+ - config/locales/fr.rb
290
+ - config/locales/fr.yml
282
291
  - config/locales/nl.rb
283
292
  - config/locales/nl.yml
293
+ - config/locales/pl.rb
294
+ - config/locales/pl.yml
284
295
  - config/locales/pt-BR.rb
285
296
  - config/locales/pt-BR.yml
286
297
  - config/routes.rb
@@ -1,6 +0,0 @@
1
- // Prevent enter key from submitting the form
2
- $(document).on('keypress', '.app-main form :input:not(textarea):not([type=submit])', function(e) {
3
- if (e.keyCode == 13) {
4
- e.preventDefault();
5
- }
6
- });
@@ -1,13 +0,0 @@
1
- Trestle.ready(function() {
2
- $("a[data-toggle='tab']").on('shown.bs.tab', function(e) {
3
- var hash = $(this).attr("href");
4
-
5
- if (hash.substr(0, 1) == "#") {
6
- history.replaceState({ turbolinks: {} }, "", "#!" + hash.substr(1));
7
- }
8
- });
9
-
10
- if (location.hash.substr(0, 2) == "#!") {
11
- $("a[data-toggle='tab'][href='#" + location.hash.substr(2) + "']").tab("show");
12
- }
13
- });
@@ -1,3 +0,0 @@
1
- Trestle.ready(function() {
2
- $('[data-toggle="tooltip"]').tooltip();
3
- });