glib-web 0.4.45 → 0.4.46

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. checksums.yaml +5 -5
  2. data/app/controllers/concerns/glib/auth/policy.rb +0 -0
  3. data/app/controllers/concerns/glib/json/new_dynamic_text.rb +0 -0
  4. data/app/controllers/concerns/glib/json/traversal.rb +0 -0
  5. data/app/controllers/concerns/glib/json/ui.rb +5 -3
  6. data/app/controllers/glib/home_controller.rb +0 -0
  7. data/app/helpers/glib/dynamic_images_helper.rb +0 -0
  8. data/app/helpers/glib/dynamic_texts_helper.rb +0 -0
  9. data/app/helpers/glib/forms_helper.rb +0 -0
  10. data/app/helpers/glib/json_ui/abstract_builder.rb +0 -0
  11. data/app/helpers/glib/json_ui/action_builder/dialogs.rb +0 -0
  12. data/app/helpers/glib/json_ui/action_builder/sheets.rb +0 -0
  13. data/app/helpers/glib/json_ui/action_builder/snackbars.rb +0 -0
  14. data/app/helpers/glib/json_ui/action_builder/windows.rb +0 -0
  15. data/app/helpers/glib/json_ui/action_builder.rb +0 -0
  16. data/app/helpers/glib/json_ui/generic_builders.rb +0 -0
  17. data/app/helpers/glib/json_ui/list_builders.rb +0 -0
  18. data/app/helpers/glib/json_ui/menu_builder.rb +0 -0
  19. data/app/helpers/glib/json_ui/page_helper.rb +0 -0
  20. data/app/helpers/glib/json_ui/response_helper.rb +0 -0
  21. data/app/helpers/glib/json_ui/split_builders.rb +0 -0
  22. data/app/helpers/glib/json_ui/styling_helper.rb +0 -0
  23. data/app/helpers/glib/json_ui/table_builders.rb +0 -0
  24. data/app/helpers/glib/json_ui/view_builder/banners.rb +0 -0
  25. data/app/helpers/glib/json_ui/view_builder/fields.rb +0 -0
  26. data/app/helpers/glib/json_ui/view_builder/panels.rb +1 -1
  27. data/app/helpers/glib/json_ui/view_builder.rb +0 -0
  28. data/app/models/glib/active_storage/attachment.rb +0 -0
  29. data/app/models/glib/active_storage/blob.rb +0 -0
  30. data/app/models/glib/dynamic_text_record.rb +0 -0
  31. data/app/models/glib/text.rb +0 -0
  32. data/app/policies/glib/application_policy.rb +0 -0
  33. data/app/views/app/views/json_ui/vue/renderer.html.erb +0 -0
  34. data/app/views/json_ui/garage/_nav_menu.json.jbuilder +0 -0
  35. data/app/views/json_ui/garage/actions/_dialogs.json.jbuilder +0 -0
  36. data/app/views/json_ui/garage/actions/_sheets.json.jbuilder +0 -0
  37. data/app/views/json_ui/garage/actions/_snackbars.json.jbuilder +0 -0
  38. data/app/views/json_ui/garage/actions/_windows.json.jbuilder +0 -0
  39. data/app/views/json_ui/garage/actions/index.json.jbuilder +0 -0
  40. data/app/views/json_ui/garage/forms/_alert_post_data.json.jbuilder +0 -0
  41. data/app/views/json_ui/garage/forms/basic.json.jbuilder +0 -0
  42. data/app/views/json_ui/garage/forms/basic_post.json.jbuilder +0 -0
  43. data/app/views/json_ui/garage/forms/checkboxes.json.jbuilder +0 -0
  44. data/app/views/json_ui/garage/forms/dynamic_group.json.jbuilder +0 -0
  45. data/app/views/json_ui/garage/forms/dynamic_select.json.jbuilder +0 -0
  46. data/app/views/json_ui/garage/forms/dynamic_select_data.json.jbuilder +0 -0
  47. data/app/views/json_ui/garage/forms/file_upload.json.jbuilder +0 -0
  48. data/app/views/json_ui/garage/forms/floating_submit.json.jbuilder +0 -0
  49. data/app/views/json_ui/garage/forms/generic_post.json.jbuilder +0 -0
  50. data/app/views/json_ui/garage/forms/get_request.json.jbuilder +0 -0
  51. data/app/views/json_ui/garage/forms/index.json.jbuilder +0 -0
  52. data/app/views/json_ui/garage/forms/pickers.json.jbuilder +0 -0
  53. data/app/views/json_ui/garage/forms/rich_text.json.jbuilder +0 -0
  54. data/app/views/json_ui/garage/forms/selects.json.jbuilder +0 -0
  55. data/app/views/json_ui/garage/forms/show_hide.json.jbuilder +0 -0
  56. data/app/views/json_ui/garage/forms/submission_flow.json.jbuilder +0 -0
  57. data/app/views/json_ui/garage/forms/submission_flow_post.json.jbuilder +0 -0
  58. data/app/views/json_ui/garage/forms/submission_indicator.json.jbuilder +0 -0
  59. data/app/views/json_ui/garage/forms/submission_indicator_post.json.jbuilder +0 -0
  60. data/app/views/json_ui/garage/forms/text_validation.json.jbuilder +0 -0
  61. data/app/views/json_ui/garage/home/blank.json.jbuilder +0 -0
  62. data/app/views/json_ui/garage/home/index.json.jbuilder +0 -0
  63. data/app/views/json_ui/garage/lists/_infinite_scroll_section.json.jbuilder +0 -0
  64. data/app/views/json_ui/garage/lists/edit_actions.json.jbuilder +0 -0
  65. data/app/views/json_ui/garage/lists/fab.json.jbuilder +0 -0
  66. data/app/views/json_ui/garage/lists/index.json.jbuilder +0 -0
  67. data/app/views/json_ui/garage/lists/infinite_scroll.json.jbuilder +0 -0
  68. data/app/views/json_ui/garage/lists/templating.json.jbuilder +0 -0
  69. data/app/views/json_ui/garage/pages/flat_centered.json.jbuilder +0 -0
  70. data/app/views/json_ui/garage/pages/full_width.json.jbuilder +0 -0
  71. data/app/views/json_ui/garage/pages/full_width_height.json.jbuilder +0 -0
  72. data/app/views/json_ui/garage/pages/index.json.jbuilder +0 -0
  73. data/app/views/json_ui/garage/pages/layout.json.jbuilder +0 -0
  74. data/app/views/json_ui/garage/pages/nav_buttons.json.jbuilder +0 -0
  75. data/app/views/json_ui/garage/pages/tab_bar.json.jbuilder +0 -0
  76. data/app/views/json_ui/garage/panels/card.json.jbuilder +0 -0
  77. data/app/views/json_ui/garage/panels/carousel.json.jbuilder +0 -0
  78. data/app/views/json_ui/garage/panels/custom.json.jbuilder +0 -0
  79. data/app/views/json_ui/garage/panels/flow.json.jbuilder +0 -0
  80. data/app/views/json_ui/garage/panels/horizontal.json.jbuilder +0 -0
  81. data/app/views/json_ui/garage/panels/index.json.jbuilder +0 -0
  82. data/app/views/json_ui/garage/panels/responsive.json.jbuilder +0 -0
  83. data/app/views/json_ui/garage/panels/split.json.jbuilder +0 -0
  84. data/app/views/json_ui/garage/panels/vertical.json.jbuilder +0 -0
  85. data/app/views/json_ui/garage/services/dynamic_text.json.jbuilder +0 -0
  86. data/app/views/json_ui/garage/services/image.json.jbuilder +0 -0
  87. data/app/views/json_ui/garage/services/index.json.jbuilder +0 -0
  88. data/app/views/json_ui/garage/tables/_autoload_section.json.jbuilder +0 -0
  89. data/app/views/json_ui/garage/tables/autoload_all.json.jbuilder +0 -0
  90. data/app/views/json_ui/garage/tables/export_import.json.jbuilder +0 -0
  91. data/app/views/json_ui/garage/tables/horizontal_scroll.json.jbuilder +0 -0
  92. data/app/views/json_ui/garage/tables/index.json.jbuilder +0 -0
  93. data/app/views/json_ui/garage/views/banners.json.jbuilder +0 -0
  94. data/app/views/json_ui/garage/views/calendar_data.json.jbuilder +0 -0
  95. data/app/views/json_ui/garage/views/carousels.json.jbuilder +0 -0
  96. data/app/views/json_ui/garage/views/charts.json.jbuilder +0 -0
  97. data/app/views/json_ui/garage/views/images.json.jbuilder +0 -0
  98. data/app/views/json_ui/garage/views/index.json.jbuilder +0 -0
  99. data/app/views/json_ui/garage/views/links.json.jbuilder +0 -0
  100. data/app/views/json_ui/garage/views/map_data.json.jbuilder +0 -0
  101. data/app/views/json_ui/garage/views/misc.json.jbuilder +0 -0
  102. data/app/views/json_ui/garage/views/texts.json.jbuilder +0 -0
  103. data/config/routes.rb +0 -0
  104. data/lib/generators/glib/install_generator.rb +0 -0
  105. data/lib/generators/templates/20191017062519_create_texts.rb +0 -0
  106. data/lib/generators/templates/20191024063257_add_scope_to_texts.rb +0 -0
  107. data/lib/generators/templates/20191112095018_add_lang_to_texts.rb +0 -0
  108. data/lib/generators/templates/20191126071051_create_active_storage_tables.active_storage.rb +0 -0
  109. data/lib/generators/templates/database.yml +0 -0
  110. data/lib/generators/templates/dynamic_text.rb +0 -0
  111. data/lib/glib/dynamic_text/config.rb +0 -0
  112. data/lib/glib/dynamic_text.rb +0 -0
  113. data/lib/glib/engine.rb +0 -0
  114. data/lib/glib/json_crawler/action_crawler.rb +0 -0
  115. data/lib/glib/json_crawler/action_crawlers/action_http.rb +0 -0
  116. data/lib/glib/json_crawler/action_crawlers/forms_submit.rb +0 -0
  117. data/lib/glib/json_crawler/action_crawlers/nav_initiate.rb +0 -0
  118. data/lib/glib/json_crawler/action_crawlers/windows_open.rb +0 -0
  119. data/lib/glib/json_crawler/http.rb +0 -0
  120. data/lib/glib/json_crawler/router.rb +0 -0
  121. data/lib/glib/json_crawler.rb +0 -0
  122. data/lib/glib/value.rb +0 -0
  123. data/lib/glib/version.rb +0 -0
  124. data/lib/glib-web.rb +0 -0
  125. data/lib/tasks/db.rake +0 -0
  126. metadata +2 -4
  127. data/app/validators/email_validator.rb +0 -7
  128. data/app/validators/url_validator.rb +0 -20
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 727dd053b29d3f7cd0240609838c9a4003cdf5273b070087eeeffc2245a3c57b
4
- data.tar.gz: b8c076c6d5f32bbc2a71d945c13ecf5b71e1d2eec23a3abea48aff16f797ba83
2
+ SHA1:
3
+ metadata.gz: d57c3b97dd9a007c3fadbab196e27612ac447cbd
4
+ data.tar.gz: b67aa135984df79309d297a8eac4299861830eae
5
5
  SHA512:
6
- metadata.gz: 6b40d4670a950a84bd3f9e65ac0b0783b9d50781e2b493d503b1c8fb2e0290ba1f439cd95b144d583cfb8ced20d1d89842dc7c8d12d1d2056a9429449d9960c0
7
- data.tar.gz: c6228d6a4f503b6f8d51c5015b8cc80cef258aacecd9cff99e09fc9f4d85dafb434c0930ad8f21c7475fbc67732319fcabfe2baa2dc552ea864a81da1593e844
6
+ metadata.gz: 38cd451b9ded3eb5f2a3aa193e1716287a6929c08c9813a7541d0c2adc0575268706c48fa63c806e778edc1933e01fb951786ee9073c0848752873d8af8e3353
7
+ data.tar.gz: 2db49faa2d25f02b7696861c4f5a3493c5bd3661696689954158b377d5df2105709d1c1d821addc024f6e59235c6255f7b227109f4e12f11c50ffa18b95b51bd
File without changes
File without changes
@@ -47,10 +47,12 @@ module Glib::Json::Ui
47
47
 
48
48
  def __json_ui_commit(options)
49
49
  if @__json_ui_rendering
50
- if (hash = json_transformation_start).is_a?(Hash)
51
- case params[:_render]
52
- when 'v1'
50
+ case params[:_render]
51
+ when 'v1'
52
+ if (hash = json_transformation_start).is_a?(Hash)
53
53
  __json_ui_vue(hash, options)
54
+ else
55
+ raise "Invalid JSON UI payload: #{hash}"
54
56
  end
55
57
  end
56
58
  end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -11,7 +11,7 @@ class Glib::JsonUi::ViewBuilder
11
11
  # false
12
12
 
13
13
  # Not all model is ActiveRecord
14
- @model.class.send(:reflect_on_association, prop)&.macro == :has_many
14
+ @model.class.try(:reflect_on_association, prop)&.macro == :has_many
15
15
  end
16
16
 
17
17
  def field_name(prop, multiple)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
data/config/routes.rb CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
data/lib/glib/engine.rb CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
data/lib/glib/value.rb CHANGED
File without changes
data/lib/glib/version.rb CHANGED
File without changes
data/lib/glib-web.rb CHANGED
File without changes
data/lib/tasks/db.rake CHANGED
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glib-web
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.45
4
+ version: 0.4.46
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
@@ -101,8 +101,6 @@ files:
101
101
  - app/models/glib/dynamic_text_record.rb
102
102
  - app/models/glib/text.rb
103
103
  - app/policies/glib/application_policy.rb
104
- - app/validators/email_validator.rb
105
- - app/validators/url_validator.rb
106
104
  - app/views/app/views/json_ui/vue/renderer.html.erb
107
105
  - app/views/json_ui/garage/_nav_menu.json.jbuilder
108
106
  - app/views/json_ui/garage/actions/_dialogs.json.jbuilder
@@ -219,7 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
219
217
  version: '0'
220
218
  requirements: []
221
219
  rubyforge_project:
222
- rubygems_version: 2.7.6
220
+ rubygems_version: 2.6.8
223
221
  signing_key:
224
222
  specification_version: 4
225
223
  summary: ''
@@ -1,7 +0,0 @@
1
- class EmailValidator < ActiveModel::EachValidator
2
- def validate_each(record, attribute, value)
3
- unless value =~ /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i
4
- record.errors.add(attribute, :invalid)
5
- end
6
- end
7
- end
@@ -1,20 +0,0 @@
1
- class UrlValidator < ActiveModel::EachValidator
2
- def validate_each(record, attribute, value)
3
- schemes = ['https', 'http']
4
-
5
- begin
6
- uri = URI.parse(value)
7
- host = uri && uri.host
8
- scheme = uri && uri.scheme
9
-
10
- valid_scheme = host && scheme && schemes.include?(scheme)
11
- valid_raw_url = scheme && value.match?(URI::regexp([scheme]))
12
-
13
- unless valid_raw_url && valid_scheme
14
- record.errors.add(attribute, :invalid)
15
- end
16
- rescue URI::InvalidURIError
17
- record.errors.add(attribute, :invalid)
18
- end
19
- end
20
- end