glib-web 0.5.54 → 0.5.55

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/app/channels/glib/channel/is_typing_channel.rb +0 -0
  3. data/app/controllers/concerns/glib/json/libs.rb +5 -0
  4. data/app/controllers/concerns/glib/json/traversal.rb +0 -0
  5. data/app/controllers/glib/home_controller.rb +0 -0
  6. data/app/helpers/glib/json_ui/abstract_builder.rb +0 -0
  7. data/app/helpers/glib/json_ui/action_builder.rb +0 -0
  8. data/app/helpers/glib/json_ui/action_builder/lists.rb +8 -0
  9. data/app/helpers/glib/json_ui/list_builders.rb +1 -0
  10. data/app/helpers/glib/json_ui/page_helper.rb +0 -0
  11. data/app/helpers/glib/json_ui/response_helper.rb +0 -0
  12. data/app/helpers/glib/json_ui/view_builder.rb +0 -0
  13. data/app/helpers/glib/json_ui/view_builder/banners.rb +0 -0
  14. data/app/helpers/glib/json_ui/view_builder/fields.rb +0 -0
  15. data/app/helpers/glib/json_ui/view_builder/panels.rb +0 -0
  16. data/app/views/json_ui/garage/actions/_lists.json.jbuilder +12 -0
  17. data/app/views/json_ui/garage/actions/index.json.jbuilder +2 -0
  18. data/app/views/json_ui/garage/forms/_alert_post_data.json.jbuilder +0 -0
  19. data/app/views/json_ui/garage/forms/conditional_value.json.jbuilder +0 -0
  20. data/app/views/json_ui/garage/forms/index.json.jbuilder +0 -0
  21. data/app/views/json_ui/garage/forms/pickers.json.jbuilder +0 -0
  22. data/app/views/json_ui/garage/forms/selects.json.jbuilder +0 -0
  23. data/app/views/json_ui/garage/forms/show_hide.json.jbuilder +0 -0
  24. data/app/views/json_ui/garage/forms/styled_boxes.json.jbuilder +0 -0
  25. data/app/views/json_ui/garage/home/index.json.jbuilder +0 -0
  26. data/app/views/json_ui/garage/lists/_autoload_section.json.jbuilder +0 -0
  27. data/app/views/json_ui/garage/lists/edit_actions.json.jbuilder +0 -0
  28. data/app/views/json_ui/garage/lists/index.json.jbuilder +0 -0
  29. data/app/views/json_ui/garage/lists/reordering.json.jbuilder +0 -0
  30. data/app/views/json_ui/garage/notifications/action_cable.json.jbuilder +0 -0
  31. data/app/views/json_ui/garage/notifications/android_post.json.jbuilder +0 -0
  32. data/app/views/json_ui/garage/views/maps.json.jbuilder +0 -0
  33. data/lib/glib/json_crawler/router.rb +0 -0
  34. data/lib/glib/test_helpers.rb +0 -0
  35. metadata +5 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b12f4b3c8c68a3186c98a87a2b5a50bdc6720d04926b042c48c21116eae6062f
4
- data.tar.gz: 2e2423b34dc9ad34a0c8e38cbf7c5178eb71e861062dbe7dd4286f39e1a002d0
3
+ metadata.gz: 6ace32742af101135e30af9f461e49db725b3f3e0c4f759cc42b44f64c7852f4
4
+ data.tar.gz: ef9f3729d7f2e09bc2d0aa4dc87bc00652906579a2e1aaf09a38df4dc5bccbcb
5
5
  SHA512:
6
- metadata.gz: 1e54bfdd8bf13af51abbc7b81067acfdf2efda44cbc6c277b361e6de797898e8f597f34de810da521cfe589e7832970a23f1a7f5adcd8e5946609245f43914bc
7
- data.tar.gz: 1fc0990f8ac4287cb011b7e818b3c470a4974aed979d8211277cb61557cece79c860e7c2ac98258cd42855ce1699cd82dc981021f3ae1362f12cb446a163aed3
6
+ metadata.gz: d30d0af0d967adf9f6da8bdaeed911bd8beb8657c6b0e3bfd49f3d87c6a5050aa080cde758b3b4a3fc03d4164ebbb2ae335f72ae27eeb569be743b7e13073b1a
7
+ data.tar.gz: e4e7ad6eebb9efd288881788be3bba82d6c8adc126981d7e1ea30f479950cfa954d9c4e84f709850efccab19878c50538b9a4bc6d10b3850fc2aa0b63526a00e
File without changes
@@ -69,6 +69,11 @@ module Glib::Json::Libs
69
69
  end
70
70
  end
71
71
 
72
+ def glib_json_redirect_to(url)
73
+ render json: {
74
+ onResponse: { action: 'dialogs/close', onClose: { action: 'windows/open', url: url } }
75
+ }
76
+ end
72
77
 
73
78
  module ClassMethods
74
79
 
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,8 @@
1
+ class Glib::JsonUi::ActionBuilder
2
+ module Lists
3
+ class ScrollToBottom < Action
4
+ action :onScroll
5
+ bool :animate
6
+ end
7
+ end
8
+ end
@@ -12,6 +12,7 @@ module Glib
12
12
  menu :editButtons
13
13
  menu :chips
14
14
  singleton_array :styleClass, :styleClasses
15
+ color :backgroundColor
15
16
 
16
17
  # def editButtons(block)
17
18
  # json.editButtons do
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,12 @@
1
+
2
+ section.header padding: glib_json_padding_list, childViews: ->(header) do
3
+ header.h3 text: 'Lists'
4
+ end
5
+
6
+ section.rows builder: ->(template) do
7
+ template.thumbnail title: 'lists/scrollToBottom', onClick: ->(action) do
8
+ action.lists_scrollToBottom animate: true, onScroll: ->(subaction) do
9
+ subaction.dialogs_alert message: 'Bottom reached'
10
+ end
11
+ end
12
+ end
@@ -6,6 +6,8 @@ render "#{@path_prefix}/nav_menu", json: json, page: page, top_nav: true
6
6
  page.list sections: [
7
7
  ->(section) do
8
8
  render "#{@path_prefix}/actions/reload", section: section
9
+ end, ->(section) do
10
+ render "#{@path_prefix}/actions/lists", section: section
9
11
  end, ->(section) do
10
12
  render "#{@path_prefix}/actions/dialogs", section: section
11
13
  end, ->(section) do
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
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.5.54
4
+ version: 0.5.55
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
@@ -92,6 +92,7 @@ files:
92
92
  - app/helpers/glib/json_ui/action_builder.rb
93
93
  - app/helpers/glib/json_ui/action_builder/dialogs.rb
94
94
  - app/helpers/glib/json_ui/action_builder/http.rb
95
+ - app/helpers/glib/json_ui/action_builder/lists.rb
95
96
  - app/helpers/glib/json_ui/action_builder/sheets.rb
96
97
  - app/helpers/glib/json_ui/action_builder/snackbars.rb
97
98
  - app/helpers/glib/json_ui/action_builder/windows.rb
@@ -123,6 +124,7 @@ files:
123
124
  - app/views/json_ui/garage/_nav_menu.json.jbuilder
124
125
  - app/views/json_ui/garage/actions/_dialogs.json.jbuilder
125
126
  - app/views/json_ui/garage/actions/_http.json.jbuilder
127
+ - app/views/json_ui/garage/actions/_lists.json.jbuilder
126
128
  - app/views/json_ui/garage/actions/_reload.json.jbuilder
127
129
  - app/views/json_ui/garage/actions/_sheets.json.jbuilder
128
130
  - app/views/json_ui/garage/actions/_snackbars.json.jbuilder
@@ -263,7 +265,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
263
265
  - !ruby/object:Gem::Version
264
266
  version: '0'
265
267
  requirements: []
266
- rubygems_version: 3.1.4
268
+ rubyforge_project:
269
+ rubygems_version: 2.7.6
267
270
  signing_key:
268
271
  specification_version: 4
269
272
  summary: ''