glib-web 0.6.16 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/concerns/glib/json/new_dynamic_text.rb +0 -0
  3. data/app/helpers/glib/app_feature_support_helper.rb +0 -0
  4. data/app/helpers/glib/dynamic_images_helper.rb +0 -0
  5. data/app/helpers/glib/dynamic_texts_helper.rb +0 -0
  6. data/app/helpers/glib/forms_helper.rb +0 -0
  7. data/app/helpers/glib/json_ui/action_builder/dialogs.rb +0 -0
  8. data/app/helpers/glib/json_ui/action_builder/http.rb +0 -0
  9. data/app/helpers/glib/json_ui/action_builder/panels.rb +0 -0
  10. data/app/helpers/glib/json_ui/action_builder/sheets.rb +0 -0
  11. data/app/helpers/glib/json_ui/action_builder/snackbars.rb +0 -0
  12. data/app/helpers/glib/json_ui/analytics_helper.rb +0 -0
  13. data/app/helpers/glib/json_ui/generic_builders.rb +0 -0
  14. data/app/helpers/glib/json_ui/page_helper.rb +6 -0
  15. data/app/helpers/glib/json_ui/table_builders.rb +0 -0
  16. data/app/helpers/glib/urls_helper.rb +0 -0
  17. data/app/models/glib/active_storage/attachment.rb +0 -0
  18. data/app/models/glib/active_storage/blob.rb +0 -0
  19. data/app/models/glib/dynamic_text_record.rb +0 -0
  20. data/app/models/glib/text.rb +0 -0
  21. data/app/validators/email_typo_validator.rb +0 -0
  22. data/app/validators/email_validator.rb +0 -0
  23. data/app/validators/url_validator.rb +0 -0
  24. data/app/views/json_ui/garage/actions/_dialogs.json.jbuilder +0 -0
  25. data/app/views/json_ui/garage/actions/_http.json.jbuilder +0 -0
  26. data/app/views/json_ui/garage/actions/_panels.json.jbuilder +0 -0
  27. data/app/views/json_ui/garage/actions/_reload.json.jbuilder +0 -0
  28. data/app/views/json_ui/garage/actions/_sheets.json.jbuilder +0 -0
  29. data/app/views/json_ui/garage/actions/_snackbars.json.jbuilder +0 -0
  30. data/app/views/json_ui/garage/actions/dialogs_oauth_post.json.jbuilder +0 -0
  31. data/app/views/json_ui/garage/forms/basic.json.jbuilder +0 -0
  32. data/app/views/json_ui/garage/forms/basic_post.json.jbuilder +0 -0
  33. data/app/views/json_ui/garage/forms/disable_dirty_prompt.json.jbuilder +27 -0
  34. data/app/views/json_ui/garage/forms/dynamic_group.json.jbuilder +0 -0
  35. data/app/views/json_ui/garage/forms/dynamic_select_data.json.jbuilder +0 -0
  36. data/app/views/json_ui/garage/forms/floating_submit.json.jbuilder +0 -0
  37. data/app/views/json_ui/garage/forms/generic_post.json.jbuilder +0 -0
  38. data/app/views/json_ui/garage/forms/get_request.json.jbuilder +0 -0
  39. data/app/views/json_ui/garage/forms/index.json.jbuilder +3 -0
  40. data/app/views/json_ui/garage/forms/submission_flow.json.jbuilder +0 -0
  41. data/app/views/json_ui/garage/forms/submission_flow_post.json.jbuilder +0 -0
  42. data/app/views/json_ui/garage/forms/submission_indicator.json.jbuilder +0 -0
  43. data/app/views/json_ui/garage/forms/submission_indicator_post.json.jbuilder +0 -0
  44. data/app/views/json_ui/garage/home/blank.json.jbuilder +0 -0
  45. data/app/views/json_ui/garage/home/slow.json.jbuilder +0 -0
  46. data/app/views/json_ui/garage/lists/_autoload_section.json.jbuilder +1 -1
  47. data/app/views/json_ui/garage/lists/autoload_all.json.jbuilder +0 -0
  48. data/app/views/json_ui/garage/lists/autoload_as_needed.json.jbuilder +0 -0
  49. data/app/views/json_ui/garage/lists/chat_ui.json.jbuilder +0 -0
  50. data/app/views/json_ui/garage/lists/fab.json.jbuilder +0 -0
  51. data/app/views/json_ui/garage/notifications/web_socket.json.jbuilder +0 -0
  52. data/app/views/json_ui/garage/pages/flat_centered.json.jbuilder +0 -0
  53. data/app/views/json_ui/garage/pages/full_width.json.jbuilder +0 -0
  54. data/app/views/json_ui/garage/pages/full_width_height.json.jbuilder +0 -0
  55. data/app/views/json_ui/garage/pages/index.json.jbuilder +0 -0
  56. data/app/views/json_ui/garage/pages/layout.json.jbuilder +0 -0
  57. data/app/views/json_ui/garage/pages/lifecycle_hooks.json.jbuilder +0 -0
  58. data/app/views/json_ui/garage/pages/loading_indicator.json.jbuilder +0 -0
  59. data/app/views/json_ui/garage/pages/nested_scroll.json.jbuilder +0 -0
  60. data/app/views/json_ui/garage/panels/_styled.json.jbuilder +0 -0
  61. data/app/views/json_ui/garage/panels/card.json.jbuilder +0 -0
  62. data/app/views/json_ui/garage/panels/custom.json.jbuilder +0 -0
  63. data/app/views/json_ui/garage/panels/horizontal.json.jbuilder +29 -0
  64. data/app/views/json_ui/garage/panels/outlined.json.jbuilder +0 -0
  65. data/app/views/json_ui/garage/panels/responsive.json.jbuilder +0 -0
  66. data/app/views/json_ui/garage/panels/vertical.json.jbuilder +0 -0
  67. data/app/views/json_ui/garage/services/dynamic_text.json.jbuilder +0 -0
  68. data/app/views/json_ui/garage/services/image.json.jbuilder +0 -0
  69. data/app/views/json_ui/garage/services/index.json.jbuilder +0 -0
  70. data/app/views/json_ui/garage/tables/_autoload_section.json.jbuilder +0 -0
  71. data/app/views/json_ui/garage/tables/autoload_all.json.jbuilder +0 -0
  72. data/app/views/json_ui/garage/tables/autoload_as_needed.json.jbuilder +0 -0
  73. data/app/views/json_ui/garage/tables/export_import.json.jbuilder +0 -0
  74. data/app/views/json_ui/garage/tables/index.json.jbuilder +0 -0
  75. data/app/views/json_ui/garage/views/calendar_data.json.jbuilder +0 -0
  76. data/app/views/json_ui/garage/views/links.json.jbuilder +0 -0
  77. data/app/views/json_ui/garage/views/map_cluster_data.json.jbuilder +0 -0
  78. data/app/views/json_ui/garage/views/map_data.json.jbuilder +0 -0
  79. data/app/views/json_ui/garage/views/multimedia.json.jbuilder +0 -0
  80. data/config/routes.rb +0 -0
  81. data/lib/generators/glib/install_generator.rb +0 -0
  82. data/lib/generators/templates/20191017062519_create_texts.rb +0 -0
  83. data/lib/generators/templates/20191024063257_add_scope_to_texts.rb +0 -0
  84. data/lib/generators/templates/20191112095018_add_lang_to_texts.rb +0 -0
  85. data/lib/generators/templates/20191126071051_create_active_storage_tables.active_storage.rb +0 -0
  86. data/lib/generators/templates/database.yml +0 -0
  87. data/lib/generators/templates/dynamic_text.rb +0 -0
  88. data/lib/glib/crypt/utils.rb +0 -0
  89. data/lib/glib/crypt.rb +0 -0
  90. data/lib/glib/dynamic_text/config.rb +0 -0
  91. data/lib/glib/dynamic_text.rb +0 -0
  92. data/lib/glib/engine.rb +0 -0
  93. data/lib/glib/json_crawler/action_crawler.rb +0 -0
  94. data/lib/glib/json_crawler/action_crawlers/action_http.rb +0 -0
  95. data/lib/glib/json_crawler/action_crawlers/forms_submit.rb +0 -0
  96. data/lib/glib/json_crawler/action_crawlers/menu.rb +0 -0
  97. data/lib/glib/json_crawler/action_crawlers/nav_initiate.rb +0 -0
  98. data/lib/glib/json_crawler/action_crawlers/run_multiple.rb +0 -0
  99. data/lib/glib/json_crawler/action_crawlers/windows_open.rb +0 -0
  100. data/lib/glib/json_crawler/coverage.rb +0 -0
  101. data/lib/glib/json_crawler.rb +0 -0
  102. data/lib/glib/mailer_tester.rb +0 -0
  103. data/lib/glib/value.rb +0 -0
  104. data/lib/glib/version.rb +0 -0
  105. data/lib/glib-web.rb +0 -0
  106. data/lib/tasks/db.rake +0 -0
  107. metadata +4 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bedc221c7a3ca4698e7544b004d173a2370d24f46c39c5e9843557196592d662
4
- data.tar.gz: 70e02a74054949fe4aaf27fc34068330fd1a4054b336b49235b01dcad180db40
3
+ metadata.gz: b657d8ea974cc37a6a1fb3d434f56a7fb5c144f921864a4fb5018339e8e405a8
4
+ data.tar.gz: 56c9cb933c9c5a63c5e729a0af16908dd67675ffc2b2569d80d575209b9c2838
5
5
  SHA512:
6
- metadata.gz: 29259dcdbc183ee60c7c787a4ac0a72f7237fcedde68183480f0f6eb0e74d0cd02900976959597ea5f6e42541fb075efe7de57ea2101e9b8cca2b7c18de6e82e
7
- data.tar.gz: 17be690ac40a42483ef7e0998133e3e9b4e56e5a504f856149fc4b127a8f3e5a4e95076da2cf3a4908ae3e169e1b943ac0325d4fdec0c140f1d35b6a82426711
6
+ metadata.gz: cc460b11171944ef3b4d99473854ec8d943b6747a0f1dd6d3646d7f60bf796526000ad71c9e78cf06437186c3b1c85ffbc1e5c06a69b99d4d57a6c0d8451e6b3
7
+ data.tar.gz: 6ceea3b0acfbc081f910a9b52050ef7fbec8da70d53a727a517b183915de73d2a640a10816af5baa1520127df69f2991a87778ddd8a9a98b4fd0b620504c01d3
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
@@ -143,6 +143,12 @@ module Glib
143
143
  end
144
144
  end
145
145
 
146
+ def left(options = {})
147
+ json.left do
148
+ vertical_content(options)
149
+ end
150
+ end
151
+
146
152
  def body(options = {})
147
153
  json.body do
148
154
  vertical_content(options)
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
@@ -0,0 +1,27 @@
1
+ json.title 'Forms'
2
+ json.disableDirtyPrompt true
3
+
4
+ data = params[:user] || {}
5
+
6
+ page = json_ui_page json
7
+ render "#{@path_prefix}/nav_menu", json: json, page: page
8
+
9
+ page.form \
10
+ local: true,
11
+ url: json_ui_garage_url(path: 'forms/local_request'),
12
+ method: 'post',
13
+ padding: glib_json_padding_body,
14
+ childViews: ->(form) do
15
+ form.spacer height: 14
16
+ form.label text: 'This page will not show a dirty prompt even when the form field content has changed'
17
+ form.spacer height: 14
18
+ form.h3 text: "Hello #{ data[:name] }"
19
+ form.spacer height: 4
20
+ form.fields_text name: 'user[name]', width: 'matchParent', label: 'Name'
21
+
22
+ form.panels_split width: 'matchParent', content: ->(split) do
23
+ split.right childViews: ->(right) do
24
+ right.fields_submit text: 'Submit'
25
+ end
26
+ end
27
+ end
@@ -25,6 +25,9 @@ page.list sections: [
25
25
  template.thumbnail title: 'Synchronous Request', onClick: ->(action) do
26
26
  action.windows_open url: json_ui_garage_url(path: 'forms/local_request')
27
27
  end
28
+ template.thumbnail title: 'Disable dirty prompt', onClick: ->(action) do
29
+ action.windows_open url: json_ui_garage_url(path: 'forms/disable_dirty_prompt')
30
+ end
28
31
 
29
32
  end
30
33
  end, ->(section) do
File without changes
File without changes
@@ -16,7 +16,7 @@ sleep 1
16
16
 
17
17
  section = page.list_section_builder
18
18
  section.rows builder: ->(row) do
19
- batch_count = 1000
19
+ batch_count = 30
20
20
  batch_count.times do |i|
21
21
  index = page_index * batch_count + i
22
22
  if local_assigns[:reorder]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -27,6 +27,35 @@ json_ui_page json do |page|
27
27
  panel.button text: '3'
28
28
  end
29
29
 
30
+ scroll.label text: "\n"
31
+ scroll.h1 text: 'Overlaps (negative spacing)'
32
+ scroll.markdown text: 'Uses Material Design spacings: https://vuetifyjs.com/en/styles/spacing/#how-it-works'
33
+ scroll.panels_horizontal width: 'matchParent', distribution: 'overlap-1', childViews: ->(panel) do
34
+ panel.button text: '1'
35
+ panel.button text: '2'
36
+ panel.button text: '3'
37
+ end
38
+ scroll.panels_horizontal width: 'matchParent', distribution: 'overlap-2', childViews: ->(panel) do
39
+ panel.button text: '1'
40
+ panel.button text: '2'
41
+ panel.button text: '3'
42
+ end
43
+ scroll.panels_horizontal width: 'matchParent', distribution: 'overlap-3', childViews: ->(panel) do
44
+ panel.button text: '1'
45
+ panel.button text: '2'
46
+ panel.button text: '3'
47
+ end
48
+ scroll.panels_horizontal width: 'matchParent', distribution: 'overlap-4', childViews: ->(panel) do
49
+ panel.button text: '1'
50
+ panel.button text: '2'
51
+ panel.button text: '3'
52
+ end
53
+ scroll.panels_horizontal width: 'matchParent', distribution: 'overlap-5', childViews: ->(panel) do
54
+ panel.button text: '1'
55
+ panel.button text: '2'
56
+ panel.button text: '3'
57
+ end
58
+
30
59
  scroll.label text: "\n"
31
60
  scroll.h1 text: 'Vertical panel combo'
32
61
  scroll.panels_horizontal distribution: 'spaceEqually', childViews: ->(panel) do
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
data/lib/glib/crypt.rb CHANGED
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
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.6.16
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
@@ -143,6 +143,7 @@ files:
143
143
  - app/views/json_ui/garage/forms/basic_post.json.jbuilder
144
144
  - app/views/json_ui/garage/forms/checkboxes.json.jbuilder
145
145
  - app/views/json_ui/garage/forms/conditional_value.json.jbuilder
146
+ - app/views/json_ui/garage/forms/disable_dirty_prompt.json.jbuilder
146
147
  - app/views/json_ui/garage/forms/dynamic_group.json.jbuilder
147
148
  - app/views/json_ui/garage/forms/dynamic_select.json.jbuilder
148
149
  - app/views/json_ui/garage/forms/dynamic_select_data.json.jbuilder
@@ -289,7 +290,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
289
290
  - !ruby/object:Gem::Version
290
291
  version: '0'
291
292
  requirements: []
292
- rubygems_version: 3.1.4
293
+ rubyforge_project:
294
+ rubygems_version: 2.7.6
293
295
  signing_key:
294
296
  specification_version: 4
295
297
  summary: ''