fae-rails 2.1.0 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -1
  3. data/app/assets/javascripts/fae/_deploy.js +198 -0
  4. data/app/assets/javascripts/fae/_modals.js +94 -0
  5. data/app/assets/javascripts/fae/application.js +2 -0
  6. data/app/assets/javascripts/fae/form/_ajax.js +4 -2
  7. data/app/assets/javascripts/fae/form/_filtering.js +34 -0
  8. data/app/assets/javascripts/fae/form/_form.js +1 -0
  9. data/app/assets/javascripts/fae/form/_form_manager.js +295 -0
  10. data/app/assets/javascripts/fae/form/_slugger.js.erb +2 -2
  11. data/app/assets/javascripts/fae/form/inputs/_select.js +5 -2
  12. data/app/assets/stylesheets/fae/base.scss +5 -2
  13. data/app/assets/stylesheets/fae/globals/imports/_variables.scss +1 -0
  14. data/app/assets/stylesheets/fae/globals/layout/_base.scss +7 -2
  15. data/app/assets/stylesheets/fae/globals/layout/_content-header.scss +8 -2
  16. data/app/assets/stylesheets/fae/globals/navigation/_header.scss +2 -2
  17. data/app/assets/stylesheets/fae/globals/navigation/_multi-col-subnav.scss +50 -0
  18. data/app/assets/stylesheets/fae/modules/_buttons.scss +11 -0
  19. data/app/assets/stylesheets/fae/modules/_deploy.scss +25 -0
  20. data/app/assets/stylesheets/fae/modules/_modal.scss +25 -0
  21. data/app/assets/stylesheets/fae/modules/_toggles.scss +39 -23
  22. data/app/assets/stylesheets/fae/modules/forms/_asset-actions.scss +1 -1
  23. data/app/assets/stylesheets/fae/modules/forms/_base.scss +1 -1
  24. data/app/assets/stylesheets/fae/modules/forms/_checkbox.scss +1 -1
  25. data/app/assets/stylesheets/fae/modules/forms/_date.scss +16 -0
  26. data/app/assets/stylesheets/fae/modules/forms/_form-manager.scss +82 -0
  27. data/app/assets/stylesheets/fae/modules/forms/_radio.scss +1 -1
  28. data/app/assets/stylesheets/fae/modules/forms/_select.scss +7 -6
  29. data/app/assets/stylesheets/fae/modules/forms/_simple-mde.scss +1 -1
  30. data/app/assets/stylesheets/fae/modules/forms/_textarea.scss +1 -1
  31. data/app/assets/stylesheets/fae/modules/tables/_filters.scss +4 -0
  32. data/app/assets/stylesheets/fae/pages/_login.scss +4 -0
  33. data/app/controllers/fae/application_controller.rb +7 -0
  34. data/app/controllers/fae/base_controller.rb +5 -1
  35. data/app/controllers/fae/deploy_controller.rb +24 -0
  36. data/app/controllers/fae/deploy_hooks_controller.rb +71 -0
  37. data/app/controllers/fae/form_managers_controller.rb +19 -0
  38. data/app/controllers/fae/options_controller.rb +1 -0
  39. data/app/controllers/fae/static_pages_controller.rb +6 -1
  40. data/app/controllers/fae/users_controller.rb +11 -1
  41. data/app/controllers/fae/utilities_controller.rb +18 -6
  42. data/app/helpers/fae/application_helper.rb +26 -1
  43. data/app/helpers/fae/form_helper.rb +26 -2
  44. data/app/helpers/fae/view_helper.rb +22 -9
  45. data/app/models/concerns/fae/base_model_concern.rb +9 -0
  46. data/app/models/fae/change.rb +19 -6
  47. data/app/models/fae/deploy_hook.rb +12 -0
  48. data/app/models/fae/form_manager.rb +24 -0
  49. data/app/models/fae/user.rb +2 -2
  50. data/app/services/fae/netlify_api.rb +197 -0
  51. data/app/views/devise/unlocks/new.html.slim +5 -9
  52. data/app/views/fae/application/_content_form.html.slim +16 -11
  53. data/app/views/fae/application/_file_uploader.html.slim +7 -2
  54. data/app/views/fae/application/_global_search_results.html.slim +1 -1
  55. data/app/views/fae/application/_header.slim +4 -1
  56. data/app/views/fae/application/_mobilenav.slim +3 -0
  57. data/app/views/fae/deploy/index.html.slim +40 -0
  58. data/app/views/fae/deploy_hooks/_form.html.slim +18 -0
  59. data/app/views/fae/deploy_hooks/_table.html.slim +28 -0
  60. data/app/views/fae/deploy_hooks/edit.html.slim +3 -0
  61. data/app/views/fae/deploy_hooks/new.html.slim +3 -0
  62. data/app/views/fae/images/_image_uploader.html.slim +12 -3
  63. data/app/views/fae/options/_form.html.slim +4 -1
  64. data/app/views/fae/pages/activity_log.html.slim +7 -3
  65. data/app/views/fae/pages/home.html.slim +3 -4
  66. data/app/views/fae/shared/_form_header.html.slim +16 -12
  67. data/app/views/fae/shared/_nested_table.html.slim +4 -2
  68. data/app/views/fae/shared/_recent_changes.html.slim +1 -1
  69. data/app/views/fae/shared/_shared_nested_table.html.slim +4 -1
  70. data/app/views/layouts/fae/application.html.slim +1 -0
  71. data/config/deploy.rb +3 -1
  72. data/config/initializers/devise.rb +6 -6
  73. data/config/locales/fae.en.yml +39 -3
  74. data/config/locales/fae.zh-CN.yml +2 -2
  75. data/config/routes.rb +9 -1
  76. data/db/migrate/20140809222030_add_user_table.rb +1 -1
  77. data/db/migrate/20190925153222_create_fae_form_managers.rb +11 -0
  78. data/db/migrate/20220118192729_create_fae_publish_hooks.rb +10 -0
  79. data/db/migrate/20220128133730_rename_publish_hooks.rb +5 -0
  80. data/db/migrate/20220202153607_add_position_to_deploy_hooks.rb +6 -0
  81. data/lib/fae/options.rb +4 -2
  82. data/lib/fae/version.rb +1 -1
  83. data/lib/generators/fae/base_generator.rb +11 -1
  84. data/lib/generators/fae/nested_scaffold_generator.rb +13 -0
  85. data/lib/generators/fae/templates/assets/fae.js +1 -1
  86. data/lib/generators/fae/templates/controllers/nested_scaffold_controller.rb +14 -0
  87. data/lib/generators/fae/templates/initializers/fae.rb +16 -1
  88. data/lib/generators/fae/templates/views/_form.html.slim +10 -1
  89. data/lib/generators/fae/templates/views/_form_index_nested.html.slim +15 -1
  90. data/lib/generators/fae/templates/views/_form_nested.html.slim +19 -2
  91. data/lib/generators/fae/templates/views/static_page_form.html.slim +13 -1
  92. metadata +28 -8
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fae-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - FINE
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-30 00:00:00.000000000 Z
11
+ date: 2022-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 4.6.2
131
+ version: 4.8.1
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 4.6.2
138
+ version: 4.8.1
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: jquery-ui-rails
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -224,16 +224,16 @@ dependencies:
224
224
  name: simple_form
225
225
  requirement: !ruby/object:Gem::Requirement
226
226
  requirements:
227
- - - "~>"
227
+ - - "<="
228
228
  - !ruby/object:Gem::Version
229
- version: 4.0.0
229
+ version: '5.1'
230
230
  type: :runtime
231
231
  prerelease: false
232
232
  version_requirements: !ruby/object:Gem::Requirement
233
233
  requirements:
234
- - - "~>"
234
+ - - "<="
235
235
  - !ruby/object:Gem::Version
236
- version: 4.0.0
236
+ version: '5.1'
237
237
  - !ruby/object:Gem::Dependency
238
238
  name: slim
239
239
  requirement: !ruby/object:Gem::Requirement
@@ -395,6 +395,7 @@ files:
395
395
  - app/assets/images/fae/icons/zoom.svg
396
396
  - app/assets/images/fae/tutorial_model_location.png
397
397
  - app/assets/images/fae/youtube_helper.jpg
398
+ - app/assets/javascripts/fae/_deploy.js
398
399
  - app/assets/javascripts/fae/_modals.js
399
400
  - app/assets/javascripts/fae/_tables.js
400
401
  - app/assets/javascripts/fae/admin.js.erb
@@ -404,6 +405,7 @@ files:
404
405
  - app/assets/javascripts/fae/form/_cancel.js
405
406
  - app/assets/javascripts/fae/form/_filtering.js
406
407
  - app/assets/javascripts/fae/form/_form.js
408
+ - app/assets/javascripts/fae/form/_form_manager.js
407
409
  - app/assets/javascripts/fae/form/_slugger.js.erb
408
410
  - app/assets/javascripts/fae/form/_validator.js
409
411
  - app/assets/javascripts/fae/form/fae_chosen.js
@@ -455,11 +457,13 @@ files:
455
457
  - app/assets/stylesheets/fae/globals/navigation/_footer.scss
456
458
  - app/assets/stylesheets/fae/globals/navigation/_header.scss
457
459
  - app/assets/stylesheets/fae/globals/navigation/_mobilenav.scss
460
+ - app/assets/stylesheets/fae/globals/navigation/_multi-col-subnav.scss
458
461
  - app/assets/stylesheets/fae/globals/navigation/_search.scss
459
462
  - app/assets/stylesheets/fae/globals/navigation/_sidenav.scss
460
463
  - app/assets/stylesheets/fae/globals/navigation/_utility.scss
461
464
  - app/assets/stylesheets/fae/modules/_alerts.scss
462
465
  - app/assets/stylesheets/fae/modules/_buttons.scss
466
+ - app/assets/stylesheets/fae/modules/_deploy.scss
463
467
  - app/assets/stylesheets/fae/modules/_modal.scss
464
468
  - app/assets/stylesheets/fae/modules/_toggles.scss
465
469
  - app/assets/stylesheets/fae/modules/forms/_asset-actions.scss
@@ -467,6 +471,7 @@ files:
467
471
  - app/assets/stylesheets/fae/modules/forms/_checkbox.scss
468
472
  - app/assets/stylesheets/fae/modules/forms/_colorpicker.scss
469
473
  - app/assets/stylesheets/fae/modules/forms/_date.scss
474
+ - app/assets/stylesheets/fae/modules/forms/_form-manager.scss
470
475
  - app/assets/stylesheets/fae/modules/forms/_hints.scss
471
476
  - app/assets/stylesheets/fae/modules/forms/_label.scss
472
477
  - app/assets/stylesheets/fae/modules/forms/_radio.scss
@@ -498,7 +503,10 @@ files:
498
503
  - app/controllers/concerns/fae/cloneable.rb
499
504
  - app/controllers/fae/application_controller.rb
500
505
  - app/controllers/fae/base_controller.rb
506
+ - app/controllers/fae/deploy_controller.rb
507
+ - app/controllers/fae/deploy_hooks_controller.rb
501
508
  - app/controllers/fae/files_controller.rb
509
+ - app/controllers/fae/form_managers_controller.rb
502
510
  - app/controllers/fae/images_controller.rb
503
511
  - app/controllers/fae/nested_base_controller.rb
504
512
  - app/controllers/fae/options_controller.rb
@@ -534,7 +542,9 @@ files:
534
542
  - app/models/concerns/fae/user_concern.rb
535
543
  - app/models/fae/authorization.rb
536
544
  - app/models/fae/change.rb
545
+ - app/models/fae/deploy_hook.rb
537
546
  - app/models/fae/file.rb
547
+ - app/models/fae/form_manager.rb
538
548
  - app/models/fae/image.rb
539
549
  - app/models/fae/navigation.rb
540
550
  - app/models/fae/option.rb
@@ -543,6 +553,7 @@ files:
543
553
  - app/models/fae/text_area.rb
544
554
  - app/models/fae/text_field.rb
545
555
  - app/models/fae/user.rb
556
+ - app/services/fae/netlify_api.rb
546
557
  - app/uploaders/fae/file_uploader.rb
547
558
  - app/uploaders/fae/image_uploader.rb
548
559
  - app/validators/fae/cross_model_uniqueness_validator.rb
@@ -568,6 +579,11 @@ files:
568
579
  - app/views/fae/application/_mobilenav.slim
569
580
  - app/views/fae/application/_sidenav.slim
570
581
  - app/views/fae/application/_user_log.html.slim
582
+ - app/views/fae/deploy/index.html.slim
583
+ - app/views/fae/deploy_hooks/_form.html.slim
584
+ - app/views/fae/deploy_hooks/_table.html.slim
585
+ - app/views/fae/deploy_hooks/edit.html.slim
586
+ - app/views/fae/deploy_hooks/new.html.slim
571
587
  - app/views/fae/images/_image_uploader.html.slim
572
588
  - app/views/fae/options/_form.html.slim
573
589
  - app/views/fae/options/edit.html.slim
@@ -628,6 +644,10 @@ files:
628
644
  - db/migrate/20141021184311_create_fae_pages.rb
629
645
  - db/migrate/20141105214814_create_fae_text_fields.rb
630
646
  - db/migrate/20150930224821_create_fae_changes.rb
647
+ - db/migrate/20190925153222_create_fae_form_managers.rb
648
+ - db/migrate/20220118192729_create_fae_publish_hooks.rb
649
+ - db/migrate/20220128133730_rename_publish_hooks.rb
650
+ - db/migrate/20220202153607_add_position_to_deploy_hooks.rb
631
651
  - lib/fae-rails.rb
632
652
  - lib/fae/concerns/models/base.rb
633
653
  - lib/fae/engine.rb