glib-web 0.5.3 → 0.5.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (153) 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 +7 -0
  6. data/app/controllers/glib/home_controller.rb +1 -1
  7. data/app/helpers/glib/app_feature_support_helper.rb +16 -0
  8. data/app/helpers/glib/dynamic_images_helper.rb +0 -0
  9. data/app/helpers/glib/dynamic_texts_helper.rb +0 -0
  10. data/app/helpers/glib/forms_helper.rb +0 -0
  11. data/app/helpers/glib/json_ui/abstract_builder.rb +9 -3
  12. data/app/helpers/glib/json_ui/action_builder.rb +36 -6
  13. data/app/helpers/glib/json_ui/action_builder/dialogs.rb +0 -0
  14. data/app/helpers/glib/json_ui/action_builder/http.rb +0 -0
  15. data/app/helpers/glib/json_ui/action_builder/sheets.rb +0 -0
  16. data/app/helpers/glib/json_ui/action_builder/snackbars.rb +0 -0
  17. data/app/helpers/glib/json_ui/action_builder/windows.rb +1 -0
  18. data/app/helpers/glib/json_ui/generic_builders.rb +0 -0
  19. data/app/helpers/glib/json_ui/list_builders.rb +0 -0
  20. data/app/helpers/glib/json_ui/menu_builder.rb +0 -0
  21. data/app/helpers/glib/json_ui/page_helper.rb +13 -5
  22. data/app/helpers/glib/json_ui/response_helper.rb +1 -1
  23. data/app/helpers/glib/json_ui/split_builders.rb +0 -0
  24. data/app/helpers/glib/json_ui/styling_helper.rb +22 -0
  25. data/app/helpers/glib/json_ui/table_builders.rb +0 -0
  26. data/app/helpers/glib/json_ui/view_builder.rb +16 -16
  27. data/app/helpers/glib/json_ui/view_builder/banners.rb +0 -0
  28. data/app/helpers/glib/json_ui/view_builder/fields.rb +9 -1
  29. data/app/helpers/glib/json_ui/view_builder/panels.rb +2 -0
  30. data/app/helpers/glib/urls_helper.rb +7 -0
  31. data/app/models/glib/active_storage/attachment.rb +0 -0
  32. data/app/models/glib/active_storage/blob.rb +0 -0
  33. data/app/models/glib/dynamic_text_record.rb +0 -0
  34. data/app/models/glib/text.rb +0 -0
  35. data/app/policies/glib/application_policy.rb +27 -30
  36. data/app/validators/email_typo_validator.rb +0 -0
  37. data/app/validators/email_validator.rb +0 -0
  38. data/app/validators/url_validator.rb +0 -0
  39. data/app/views/app/views/json_ui/vue/renderer.html.erb +0 -0
  40. data/app/views/json_ui/garage/_nav_menu.json.jbuilder +0 -0
  41. data/app/views/json_ui/garage/actions/_dialogs.json.jbuilder +20 -14
  42. data/app/views/json_ui/garage/actions/_http.json.jbuilder +0 -0
  43. data/app/views/json_ui/garage/actions/_reload.json.jbuilder +0 -0
  44. data/app/views/json_ui/garage/actions/_sheets.json.jbuilder +0 -0
  45. data/app/views/json_ui/garage/actions/_snackbars.json.jbuilder +0 -0
  46. data/app/views/json_ui/garage/actions/_timeouts.json.jbuilder +0 -0
  47. data/app/views/json_ui/garage/actions/_windows.json.jbuilder +0 -0
  48. data/app/views/json_ui/garage/actions/dialogs_oauth_post.json.jbuilder +0 -0
  49. data/app/views/json_ui/garage/actions/index.json.jbuilder +2 -2
  50. data/app/views/json_ui/garage/forms/_alert_post_data.json.jbuilder +0 -0
  51. data/app/views/json_ui/garage/forms/basic.json.jbuilder +0 -0
  52. data/app/views/json_ui/garage/forms/basic_post.json.jbuilder +0 -0
  53. data/app/views/json_ui/garage/forms/checkboxes.json.jbuilder +0 -0
  54. data/app/views/json_ui/garage/forms/dynamic_group.json.jbuilder +9 -18
  55. data/app/views/json_ui/garage/forms/dynamic_select.json.jbuilder +0 -0
  56. data/app/views/json_ui/garage/forms/dynamic_select_data.json.jbuilder +0 -0
  57. data/app/views/json_ui/garage/forms/file_upload.json.jbuilder +0 -0
  58. data/app/views/json_ui/garage/forms/floating_submit.json.jbuilder +0 -0
  59. data/app/views/json_ui/garage/forms/generic_post.json.jbuilder +0 -0
  60. data/app/views/json_ui/garage/forms/get_request.json.jbuilder +0 -0
  61. data/app/views/json_ui/garage/forms/index.json.jbuilder +0 -0
  62. data/app/views/json_ui/garage/forms/pickers.json.jbuilder +6 -3
  63. data/app/views/json_ui/garage/forms/rich_text.json.jbuilder +0 -0
  64. data/app/views/json_ui/garage/forms/selects.json.jbuilder +0 -0
  65. data/app/views/json_ui/garage/forms/show_hide.json.jbuilder +20 -3
  66. data/app/views/json_ui/garage/forms/styled_boxes.json.jbuilder +4 -1
  67. data/app/views/json_ui/garage/forms/submission_flow.json.jbuilder +0 -0
  68. data/app/views/json_ui/garage/forms/submission_flow_post.json.jbuilder +0 -0
  69. data/app/views/json_ui/garage/forms/submission_indicator.json.jbuilder +0 -0
  70. data/app/views/json_ui/garage/forms/submission_indicator_post.json.jbuilder +0 -0
  71. data/app/views/json_ui/garage/forms/text_validation.json.jbuilder +1 -1
  72. data/app/views/json_ui/garage/home/blank.json.jbuilder +0 -0
  73. data/app/views/json_ui/garage/home/index.json.jbuilder +0 -0
  74. data/app/views/json_ui/garage/home/slow.json.jbuilder +0 -0
  75. data/app/views/json_ui/garage/lists/_infinite_scroll_section.json.jbuilder +15 -5
  76. data/app/views/json_ui/garage/lists/edit_actions.json.jbuilder +0 -0
  77. data/app/views/json_ui/garage/lists/fab.json.jbuilder +0 -0
  78. data/app/views/json_ui/garage/lists/index.json.jbuilder +0 -0
  79. data/app/views/json_ui/garage/lists/infinite_scroll.json.jbuilder +0 -0
  80. data/app/views/json_ui/garage/lists/templating.json.jbuilder +0 -0
  81. data/app/views/json_ui/garage/notifications/index.json.jbuilder +0 -43
  82. data/app/views/json_ui/garage/notifications/web_socket.json.jbuilder +19 -21
  83. data/app/views/json_ui/garage/pages/flat_centered.json.jbuilder +0 -0
  84. data/app/views/json_ui/garage/pages/full_width.json.jbuilder +0 -0
  85. data/app/views/json_ui/garage/pages/full_width_height.json.jbuilder +0 -0
  86. data/app/views/json_ui/garage/pages/index.json.jbuilder +11 -0
  87. data/app/views/json_ui/garage/pages/layout.json.jbuilder +12 -13
  88. data/app/views/json_ui/garage/pages/loading_indicator.json.jbuilder +0 -0
  89. data/app/views/json_ui/garage/pages/nav_buttons.json.jbuilder +28 -16
  90. data/app/views/json_ui/garage/pages/nested_scroll.json.jbuilder +40 -0
  91. data/app/views/json_ui/garage/pages/tab_bar.json.jbuilder +0 -0
  92. data/app/views/json_ui/garage/panels/_styled.json.jbuilder +0 -0
  93. data/app/views/json_ui/garage/panels/card.json.jbuilder +0 -0
  94. data/app/views/json_ui/garage/panels/carousel.json.jbuilder +24 -3
  95. data/app/views/json_ui/garage/panels/custom.json.jbuilder +0 -0
  96. data/app/views/json_ui/garage/panels/flow.json.jbuilder +0 -0
  97. data/app/views/json_ui/garage/panels/horizontal.json.jbuilder +0 -0
  98. data/app/views/json_ui/garage/panels/index.json.jbuilder +0 -0
  99. data/app/views/json_ui/garage/panels/outlined.json.jbuilder +0 -0
  100. data/app/views/json_ui/garage/panels/responsive.json.jbuilder +0 -0
  101. data/app/views/json_ui/garage/panels/split.json.jbuilder +0 -0
  102. data/app/views/json_ui/garage/panels/vertical.json.jbuilder +0 -0
  103. data/app/views/json_ui/garage/services/dynamic_text.json.jbuilder +0 -0
  104. data/app/views/json_ui/garage/services/image.json.jbuilder +0 -0
  105. data/app/views/json_ui/garage/services/index.json.jbuilder +0 -0
  106. data/app/views/json_ui/garage/tables/_autoload_section.json.jbuilder +0 -0
  107. data/app/views/json_ui/garage/tables/autoload_all.json.jbuilder +0 -0
  108. data/app/views/json_ui/garage/tables/autoload_as_needed.json.jbuilder +39 -0
  109. data/app/views/json_ui/garage/tables/export_import.json.jbuilder +0 -0
  110. data/app/views/json_ui/garage/tables/horizontal_scroll.json.jbuilder +0 -0
  111. data/app/views/json_ui/garage/tables/index.json.jbuilder +3 -0
  112. data/app/views/json_ui/garage/tables/layout.json.jbuilder +0 -0
  113. data/app/views/json_ui/garage/views/_chart_data.json.jbuilder +1 -1
  114. data/app/views/json_ui/garage/views/banners.json.jbuilder +0 -0
  115. data/app/views/json_ui/garage/views/calendar_data.json.jbuilder +23 -27
  116. data/app/views/json_ui/garage/views/charts.json.jbuilder +0 -0
  117. data/app/views/json_ui/garage/views/icons.json.jbuilder +22 -0
  118. data/app/views/json_ui/garage/views/images.json.jbuilder +4 -4
  119. data/app/views/json_ui/garage/views/index.json.jbuilder +3 -3
  120. data/app/views/json_ui/garage/views/links.json.jbuilder +0 -0
  121. data/app/views/json_ui/garage/views/map_data.json.jbuilder +0 -0
  122. data/app/views/json_ui/garage/views/misc.json.jbuilder +0 -0
  123. data/app/views/json_ui/garage/views/texts.json.jbuilder +0 -0
  124. data/config/routes.rb +0 -0
  125. data/lib/generators/glib/install_generator.rb +0 -0
  126. data/lib/generators/templates/20191017062519_create_texts.rb +0 -0
  127. data/lib/generators/templates/20191024063257_add_scope_to_texts.rb +0 -0
  128. data/lib/generators/templates/20191112095018_add_lang_to_texts.rb +0 -0
  129. data/lib/generators/templates/20191126071051_create_active_storage_tables.active_storage.rb +0 -0
  130. data/lib/generators/templates/database.yml +0 -0
  131. data/lib/generators/templates/dynamic_text.rb +0 -0
  132. data/lib/glib-web.rb +0 -0
  133. data/lib/glib/crypt.rb +1 -1
  134. data/lib/glib/crypt/utils.rb +0 -0
  135. data/lib/glib/dynamic_text.rb +1 -1
  136. data/lib/glib/dynamic_text/config.rb +0 -0
  137. data/lib/glib/engine.rb +0 -0
  138. data/lib/glib/json_crawler.rb +1 -0
  139. data/lib/glib/json_crawler/action_crawler.rb +0 -0
  140. data/lib/glib/json_crawler/action_crawlers/action_http.rb +0 -0
  141. data/lib/glib/json_crawler/action_crawlers/forms_submit.rb +1 -1
  142. data/lib/glib/json_crawler/action_crawlers/menu.rb +12 -0
  143. data/lib/glib/json_crawler/action_crawlers/nav_initiate.rb +1 -1
  144. data/lib/glib/json_crawler/action_crawlers/windows_open.rb +0 -0
  145. data/lib/glib/json_crawler/coverage.rb +0 -0
  146. data/lib/glib/json_crawler/http.rb +7 -4
  147. data/lib/glib/json_crawler/router.rb +2 -1
  148. data/lib/glib/test_helpers.rb +4 -4
  149. data/lib/glib/value.rb +0 -0
  150. data/lib/glib/version.rb +0 -0
  151. data/lib/tasks/db.rake +0 -0
  152. metadata +8 -3
  153. data/app/views/json_ui/garage/views/carousels.json.jbuilder +0 -37
@@ -1,19 +1,18 @@
1
1
  json.title 'Pages'
2
2
 
3
- json_ui_page json do |page|
4
- render "#{@path_prefix}/nav_menu", json: json, page: page
5
-
6
- page.header padding: glib_json_padding_body, backgroundColor: '#b3bac2', childViews: ->(header) do
7
- header.h1 text: 'Header'
8
- end
3
+ page = json_ui_page json
4
+ render "#{@path_prefix}/nav_menu", json: json, page: page
9
5
 
10
- page.footer padding: glib_json_padding_body, backgroundColor: '#b3bac2', childViews: ->(footer) do
11
- footer.h1 text: 'Footer'
12
- end
6
+ page.header padding: glib_json_padding_body, backgroundColor: '#b3bac2', childViews: ->(header) do
7
+ header.h1 text: 'Header'
8
+ end
9
+
10
+ page.footer padding: glib_json_padding_body, backgroundColor: '#b3bac2', childViews: ->(footer) do
11
+ footer.h1 text: 'Footer'
12
+ end
13
13
 
14
- page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
15
- (1..100).each do |index|
16
- scroll.label text: 'Content'
17
- end
14
+ page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
15
+ (1..100).each do |index|
16
+ scroll.label text: 'Content'
18
17
  end
19
18
  end
@@ -1,21 +1,33 @@
1
1
  json.title 'Pages'
2
2
 
3
- json_ui_page json do |page|
4
- render "#{@path_prefix}/nav_menu", json: json, page: page
5
-
6
- page.rightNavButtons do |menu|
7
- menu.button icon: 'search', onClick: ->(action) do
8
- action.dialogs_alert message: 'Perform some action'
9
- end
10
- menu.button icon: { name: 'star', badge: { text: '1', backgroundColor: '#ff0000' } }, onClick: ->(action) do
11
- action.dialogs_alert message: 'Perform some action'
12
- end
13
- menu.button icon: { name: 'map', badge: '2' }, onClick: ->(action) do
14
- action.dialogs_alert message: 'Perform some action'
15
- end
16
- end
3
+ page = json_ui_page json
4
+
5
+ render "#{@path_prefix}/nav_menu", json: json, page: page
17
6
 
18
- page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
19
- scroll.label text: 'See the right menu buttons on the nav bar'
7
+ page.navBar backgroundColor: '#a8c4e3', rightButtons: ->(menu) do
8
+ menu.button icon: 'search', onClick: ->(action) do
9
+ action.dialogs_alert message: 'Perform some action'
10
+ end
11
+ menu.button icon: { name: 'star', badge: { text: '1', backgroundColor: '#ff0000' } }, onClick: ->(action) do
12
+ action.dialogs_alert message: 'Perform some action'
13
+ end
14
+ menu.button icon: { name: 'map', badge: '2' }, onClick: ->(action) do
15
+ action.dialogs_alert message: 'Perform some action'
20
16
  end
21
17
  end
18
+
19
+ # page.rightNavButtons do |menu|
20
+ # menu.button icon: 'search', onClick: ->(action) do
21
+ # action.dialogs_alert message: 'Perform some action'
22
+ # end
23
+ # menu.button icon: { name: 'star', badge: { text: '1', backgroundColor: '#ff0000' } }, onClick: ->(action) do
24
+ # action.dialogs_alert message: 'Perform some action'
25
+ # end
26
+ # menu.button icon: { name: 'map', badge: '2' }, onClick: ->(action) do
27
+ # action.dialogs_alert message: 'Perform some action'
28
+ # end
29
+ # end
30
+
31
+ page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
32
+ scroll.label text: 'See the right menu buttons on the nav bar'
33
+ end
@@ -0,0 +1,40 @@
1
+ json.title 'Pages'
2
+
3
+ page = json_ui_page json
4
+ render "#{@path_prefix}/nav_menu", json: json, page: page
5
+
6
+ # page.template 'fullWidth'
7
+
8
+ page.header childViews: ->(header) do
9
+ header.panels_vertical width: 'matchParent', styleClass: 'card', padding: glib_json_padding_body, childViews: ->(vertical) do
10
+ vertical.h1 text: 'Header'
11
+ end
12
+ header.spacer height: 10
13
+ end
14
+
15
+ page.footer childViews: ->(footer) do
16
+ footer.spacer height: 10
17
+ footer.panels_vertical width: 'matchParent', styleClass: 'card', padding: glib_json_padding_body, childViews: ->(vertical) do
18
+ vertical.h1 text: 'Footer'
19
+ end
20
+ end
21
+
22
+ page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
23
+ scroll.label text: 'Inner Header'
24
+ scroll.label text: 'Inner Header'
25
+ scroll.label text: 'Inner Header'
26
+ scroll.spacer height: 20
27
+
28
+ scroll.panels_vertical width: 'matchParent', styleClass: 'card', backgroundColor: glib_color_panel_background, padding: glib_json_padding_body.merge(right: nil), childViews: ->(padder) do
29
+ padder.panels_scroll width: 'matchParent', height: 300, childViews: ->(inner_scroll) do
30
+ (1..100).each do |index|
31
+ inner_scroll.label text: 'Content'
32
+ end
33
+ end
34
+ end
35
+
36
+ scroll.spacer height: 20
37
+ scroll.label text: 'Inner Footer'
38
+ scroll.label text: 'Inner Footer'
39
+ scroll.label text: 'Inner Footer'
40
+ end
@@ -1,16 +1,37 @@
1
1
  json.title 'Panels'
2
2
 
3
- image_url1 = 'http://ichef.bbci.co.uk/news/976/cpsprodpb/18106/production/_97266589_gettyimages-474547165.jpg'
3
+ image_url1 = 'https://ichef.bbci.co.uk/news/976/cpsprodpb/18106/production/_97266589_gettyimages-474547165.jpg'
4
4
  image_url2 = 'https://s.abcnews.com/images/International/Guam03-gty-jrl-170809_16x9_992.jpg'
5
5
 
6
6
  json_ui_page json do |page|
7
7
  render "#{@path_prefix}/nav_menu", json: json, page: page
8
-
8
+
9
9
  page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
10
- scroll.h1 text: 'Carousel panel'
10
+ scroll.label text: "\n"
11
+ scroll.h1 text: 'Carousel with labels'
12
+ scroll.panels_carousel width: 'matchParent', childViews: ->(carousel) do
13
+ carousel.label text: 'Item 1'
14
+ carousel.label text: 'Item 2'
15
+ end
16
+
17
+ scroll.label text: "\n"
18
+ scroll.h1 text: 'Carousel with images'
11
19
  scroll.panels_carousel width: 'matchParent', childViews: ->(carousel) do
12
20
  carousel.image url: image_url1, width: 'matchParent'
13
21
  carousel.image url: image_url2, width: 'matchParent'
14
22
  end
23
+
24
+ scroll.label text: "\n"
25
+ scroll.h1 text: 'Carousel with complex layout'
26
+ scroll.panels_carousel width: 'matchParent', childViews: ->(carousel) do
27
+ carousel.panels_vertical childViews: ->(panel) do
28
+ panel.h3 text: 'Item 1'
29
+ panel.image url: image_url1, width: 'matchParent'
30
+ end
31
+ carousel.panels_vertical childViews: ->(panel) do
32
+ panel.h3 text: 'Item 2'
33
+ panel.image url: image_url2, width: 'matchParent'
34
+ end
35
+ end
15
36
  end
16
37
  end
@@ -0,0 +1,39 @@
1
+
2
+ page_index = params[:page].to_i
3
+ next_page = {
4
+ url: json_ui_garage_url(path: 'tables/autoload_all', page: page_index + 1, section_only: 'v1'),
5
+ autoload: 'asNeeded'
6
+ }
7
+
8
+ column_indexes = (1..3)
9
+ if params[:section_only].present?
10
+ json.nextPage next_page if page_index < 3
11
+ json_ui_page json do |page|
12
+ json.sections do
13
+ json.child! do
14
+ render 'json_ui/garage/tables/autoload_section', page: page, page_index: page_index, column_indexes: column_indexes
15
+ end
16
+ end
17
+ end
18
+ else
19
+ json.title 'Tables'
20
+
21
+ json_ui_page json do |page|
22
+ render "#{@path_prefix}/nav_menu", json: json, page: page
23
+
24
+ page.table nextPage: next_page, firstSection: ->(section) do
25
+ section.header cellViews: ->(header) do
26
+ column_indexes.each do |i|
27
+ header.label text: "Heading#{i}"
28
+ end
29
+ end
30
+
31
+ render "#{@path_prefix}/tables/autoload_section", page: page, page_index: page_index, column_indexes: column_indexes
32
+ end, onScrollToBottom: ->(action) do
33
+ action.snackbars_alert message: 'Scrolled to Bottom'
34
+ end, onScrollToTop: ->(action) do
35
+ action.snackbars_alert message: 'Scrolled to Top'
36
+ end
37
+ end
38
+
39
+ end
@@ -17,6 +17,9 @@ json_ui_page json do |page|
17
17
  template.thumbnail title: 'Autoload All', onClick: ->(action) do
18
18
  action.windows_open url: json_ui_garage_url(path: 'tables/autoload_all')
19
19
  end
20
+ template.thumbnail title: 'Autoload as Needed', onClick: ->(action) do
21
+ action.windows_open url: json_ui_garage_url(path: 'tables/autoload_as_needed')
22
+ end
20
23
  end
21
24
 
22
25
  end
@@ -14,4 +14,4 @@ if page_index < 3
14
14
  json.points (from.month.ago.to_date..to.month.ago.to_date).map { |d| { x: d, y: 100 + rand(40) } }
15
15
  end
16
16
  ]
17
- end
17
+ end
@@ -1,34 +1,30 @@
1
-
2
- json.events do
3
-
4
- json.child! do
5
- json.start '2018-12-14'
6
- json.end '2018-12-17'
7
- json.text 'Hackathon'
8
- json.onClick do
9
- json.action 'dialogs/alert-v1'
10
- json.message 'At Town Hall'
1
+ section = json_ui_section json
2
+ section.rows builder: ->(row) do
3
+ row.custom title: 'Hackathon',
4
+ extra: {
5
+ start: '2018-12-14',
6
+ end: '2018-12-17'
7
+ },
8
+ onClick: ->(action) do
9
+ action.dialogs_alert message: 'At Town Hall'
11
10
  end
12
- end
13
11
 
14
- json.child! do
15
- json.start '2018-12-30'
16
- json.end '2018-12-30'
17
- json.text 'Birthday'
18
- json.onClick do
19
- json.action 'dialogs/alert-v1'
20
- json.message 'At home'
12
+ row.custom title: 'Birthday',
13
+ extra: {
14
+ start: '2018-12-30',
15
+ end: '2018-12-30'
16
+ },
17
+ onClick: ->(action) do
18
+ action.dialogs_alert message: 'At home'
21
19
  end
22
- end
23
20
 
24
- json.child! do
25
- json.start '2018-12-31'
26
- json.end '2018-12-31'
27
- json.text 'Conference'
28
- json.onClick do
29
- json.action 'dialogs/alert-v1'
30
- json.message 'In Perth'
21
+ row.custom title: 'Conference',
22
+ extra: {
23
+ start: '2018-12-31',
24
+ end: '2019-01-02'
25
+ },
26
+ onClick: ->(action) do
27
+ action.dialogs_alert message: 'In Perth'
31
28
  end
32
- end
33
29
 
34
30
  end
@@ -0,0 +1,22 @@
1
+ json.title 'Views'
2
+
3
+ page = json_ui_page json
4
+ render "#{@path_prefix}/nav_menu", json: json, page: page
5
+
6
+ page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
7
+ # TODO: Scrape all names from https://material.io/resources/icons
8
+ icon_names = [
9
+ 'info', 'info', 'info', 'info', 'info', 'info', 'info', 'info',
10
+ 'info', 'info', 'info', 'info', 'info', 'info', 'info', 'info',
11
+ 'info', 'info', 'info', 'info', 'info', 'info', 'info', 'info',
12
+ ]
13
+ icon_names.each do |icon_name|
14
+ scroll.panels_column lg: { cols: 2 }, childViews: ->(column) do
15
+ column.panels_horizontal align: 'middle', childViews: ->(horizontal) do
16
+ horizontal.icon spec: icon_name
17
+ horizontal.spacer width: 6
18
+ horizontal.label text: icon_name
19
+ end
20
+ end
21
+ end
22
+ end
@@ -11,10 +11,10 @@ page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
11
11
  scroll.spacer height: 6
12
12
  scroll.avatar url: glib_json_image_avatar_url
13
13
 
14
- scroll.spacer height: 20
15
- scroll.h2 text: 'Icon'
16
- scroll.spacer height: 6
17
- scroll.icon spec: 'info'
14
+ # scroll.spacer height: 20
15
+ # scroll.h2 text: 'Icon'
16
+ # scroll.spacer height: 6
17
+ # scroll.icon spec: 'info'
18
18
 
19
19
  scroll.spacer height: 20
20
20
  scroll.h2 text: 'Image with base64 data'
@@ -16,15 +16,15 @@ json_ui_page json do |page|
16
16
  template.thumbnail title: 'Images', onClick: ->(action) do
17
17
  action.windows_open url: json_ui_garage_url(path: 'views/images')
18
18
  end
19
- template.thumbnail title: 'Carousels', onClick: ->(action) do
20
- action.windows_open url: json_ui_garage_url(path: 'views/carousels')
21
- end
22
19
  template.thumbnail title: 'Charts', onClick: ->(action) do
23
20
  action.windows_open url: json_ui_garage_url(path: 'views/charts')
24
21
  end
25
22
  template.thumbnail title: 'Banners', onClick: ->(action) do
26
23
  action.windows_open url: json_ui_garage_url(path: 'views/banners')
27
24
  end
25
+ template.thumbnail title: 'Icons', onClick: ->(action) do
26
+ action.windows_open url: json_ui_garage_url(path: 'views/icons')
27
+ end
28
28
  template.thumbnail title: 'Misc', onClick: ->(action) do
29
29
  action.windows_open url: json_ui_garage_url(path: 'views/misc')
30
30
  end
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1 +1 @@
1
- require_relative './crypt/utils'
1
+ require_relative './crypt/utils'
File without changes
@@ -1 +1 @@
1
- require_relative './dynamic_text/config'
1
+ require_relative './dynamic_text/config'
File without changes
File without changes
@@ -7,3 +7,4 @@ require_relative './json_crawler/action_crawlers/nav_initiate'
7
7
  require_relative './json_crawler/action_crawlers/windows_open'
8
8
  require_relative './json_crawler/action_crawlers/action_http'
9
9
  require_relative './json_crawler/action_crawlers/forms_submit'
10
+ require_relative './json_crawler/action_crawlers/menu'
File without changes
@@ -31,7 +31,7 @@ module Glib
31
31
 
32
32
  include_params = case name
33
33
  when 'fields/check', 'fields/check-v1'
34
- child['checked']
34
+ child['checkValue'] == child['value']
35
35
  else
36
36
  true
37
37
  end