glib-web 3.14.1 → 3.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/app/channels/glib/channel/appearance_channel.rb +11 -10
  3. data/app/controllers/concerns/glib/json/new_dynamic_text.rb +0 -0
  4. data/app/helpers/glib/app_feature_support_helper.rb +0 -0
  5. data/app/helpers/glib/dynamic_texts_helper.rb +0 -0
  6. data/app/helpers/glib/json_ui/action_builder/sheets.rb +0 -0
  7. data/app/helpers/glib/json_ui/action_builder.rb +3 -0
  8. data/app/helpers/glib/json_ui/analytics_helper.rb +0 -0
  9. data/app/helpers/glib/json_ui/generic_builders.rb +0 -0
  10. data/app/helpers/glib/json_ui/page_helper.rb +12 -0
  11. data/app/helpers/glib/json_ui/table_builders.rb +0 -0
  12. data/app/helpers/glib/json_ui/view_builder/charts.rb +3 -0
  13. data/app/helpers/glib/json_ui/view_builder/fields.rb +2 -0
  14. data/app/models/glib/active_storage/attachment.rb +0 -0
  15. data/app/models/glib/active_storage/blob.rb +0 -0
  16. data/app/models/glib/dynamic_text_record.rb +0 -0
  17. data/app/models/glib/text.rb +0 -0
  18. data/app/validators/email_typo_validator.rb +0 -0
  19. data/app/validators/email_validator.rb +0 -0
  20. data/app/validators/url_validator.rb +0 -0
  21. data/app/views/json_ui/garage/actions/_sheets.json.jbuilder +0 -0
  22. data/app/views/json_ui/garage/actions/_timeouts.json.jbuilder +5 -1
  23. data/app/views/json_ui/garage/actions/dialogs_oauth_post.json.jbuilder +0 -0
  24. data/app/views/json_ui/garage/forms/dynamic_select_data.json.jbuilder +0 -0
  25. data/app/views/json_ui/garage/forms/file_upload.json.jbuilder +1 -0
  26. data/app/views/json_ui/garage/forms/generic_post.json.jbuilder +0 -0
  27. data/app/views/json_ui/garage/forms/submission_flow.json.jbuilder +0 -0
  28. data/app/views/json_ui/garage/forms/submission_flow_post.json.jbuilder +0 -0
  29. data/app/views/json_ui/garage/forms/submission_indicator.json.jbuilder +0 -0
  30. data/app/views/json_ui/garage/forms/submission_indicator_post.json.jbuilder +0 -0
  31. data/app/views/json_ui/garage/home/blank.json.jbuilder +0 -0
  32. data/app/views/json_ui/garage/home/slow.json.jbuilder +0 -0
  33. data/app/views/json_ui/garage/lists/autoload_all.json.jbuilder +0 -0
  34. data/app/views/json_ui/garage/lists/autoload_as_needed.json.jbuilder +0 -0
  35. data/app/views/json_ui/garage/lists/chat_ui.json.jbuilder +0 -0
  36. data/app/views/json_ui/garage/lists/fab.json.jbuilder +0 -0
  37. data/app/views/json_ui/garage/notifications/action_cable.json.jbuilder +14 -8
  38. data/app/views/json_ui/garage/notifications/web_socket.json.jbuilder +0 -0
  39. data/app/views/json_ui/garage/pages/custom_style_class.json.jbuilder +0 -0
  40. data/app/views/json_ui/garage/pages/full_width.json.jbuilder +0 -0
  41. data/app/views/json_ui/garage/pages/full_width_height.json.jbuilder +0 -0
  42. data/app/views/json_ui/garage/pages/index.json.jbuilder +0 -0
  43. data/app/views/json_ui/garage/pages/layout.json.jbuilder +0 -0
  44. data/app/views/json_ui/garage/pages/lifecycle_hooks.json.jbuilder +0 -0
  45. data/app/views/json_ui/garage/pages/loading_indicator.json.jbuilder +0 -0
  46. data/app/views/json_ui/garage/pages/nested_scroll.json.jbuilder +0 -0
  47. data/app/views/json_ui/garage/pages/redirect_onload.json.jbuilder +0 -0
  48. data/app/views/json_ui/garage/panels/_styled.json.jbuilder +0 -0
  49. data/app/views/json_ui/garage/panels/card.json.jbuilder +0 -0
  50. data/app/views/json_ui/garage/panels/custom.json.jbuilder +0 -0
  51. data/app/views/json_ui/garage/panels/outlined.json.jbuilder +0 -0
  52. data/app/views/json_ui/garage/services/dynamic_text.json.jbuilder +0 -0
  53. data/app/views/json_ui/garage/services/image.json.jbuilder +0 -0
  54. data/app/views/json_ui/garage/services/index.json.jbuilder +0 -0
  55. data/app/views/json_ui/garage/tables/_autoload_section.json.jbuilder +0 -0
  56. data/app/views/json_ui/garage/tables/autoload_all.json.jbuilder +0 -0
  57. data/app/views/json_ui/garage/tables/autoload_as_needed.json.jbuilder +0 -0
  58. data/app/views/json_ui/garage/tables/export_import.json.jbuilder +0 -0
  59. data/app/views/json_ui/garage/tables/index.json.jbuilder +0 -0
  60. data/app/views/json_ui/garage/views/calendar_data.json.jbuilder +0 -0
  61. data/app/views/json_ui/garage/views/charts.json.jbuilder +4 -4
  62. data/app/views/json_ui/garage/views/links.json.jbuilder +0 -0
  63. data/app/views/json_ui/garage/views/map_data.json.jbuilder +0 -0
  64. data/app/views/json_ui/garage/views/multimedia.json.jbuilder +0 -0
  65. data/app/views/layouts/json_ui/no_custom.html.erb +0 -0
  66. data/lib/generators/glib/install_generator.rb +0 -0
  67. data/lib/generators/templates/20191017062519_create_texts.rb +0 -0
  68. data/lib/generators/templates/20191024063257_add_scope_to_texts.rb +0 -0
  69. data/lib/generators/templates/20191112095018_add_lang_to_texts.rb +0 -0
  70. data/lib/generators/templates/20191126071051_create_active_storage_tables.active_storage.rb +0 -0
  71. data/lib/generators/templates/database.yml +0 -0
  72. data/lib/generators/templates/dynamic_text.rb +0 -0
  73. data/lib/glib/crypt/utils.rb +0 -0
  74. data/lib/glib/crypt.rb +0 -0
  75. data/lib/glib/dynamic_text/config.rb +0 -0
  76. data/lib/glib/dynamic_text.rb +0 -0
  77. data/lib/glib/engine.rb +0 -0
  78. data/lib/glib/json_crawler/action_crawler.rb +0 -0
  79. data/lib/glib/json_crawler/action_crawlers/action_http.rb +0 -0
  80. data/lib/glib/json_crawler/action_crawlers/dialogs_alert.rb +0 -0
  81. data/lib/glib/json_crawler/action_crawlers/menu.rb +0 -0
  82. data/lib/glib/json_crawler/action_crawlers/run_multiple.rb +0 -0
  83. data/lib/glib/json_crawler/action_crawlers/windows_open.rb +0 -0
  84. data/lib/glib/json_crawler/coverage.rb +0 -0
  85. data/lib/glib/json_crawler.rb +0 -0
  86. data/lib/glib/mailer_tester.rb +0 -0
  87. data/lib/glib/value.rb +0 -0
  88. data/lib/glib/version.rb +0 -0
  89. data/lib/glib-web.rb +0 -0
  90. metadata +2 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54a6c076090246a41731c8b0384a08caeb417e7f448432b9960b8d0a6749925a
4
- data.tar.gz: e092d37e661267d4b076cc140fd8bce49aa3927b952e5b99a8aacd8427abe1f7
3
+ metadata.gz: 3d4698a3bbea4d4960e782ad29170fbb049247d745085663b37d8c2e72f05be6
4
+ data.tar.gz: 34958e58ee0067170f948af7fba0aebbd9406e35ac7e34f590f8ac6649b43478
5
5
  SHA512:
6
- metadata.gz: 0751103a45003c6456e929555f0213f673b39a489a6c39abab1e28c9005ae2515bf6517b84851ab8862d4aa244fdfbef171a949bdc771d2e2027c6a6a9f19c42
7
- data.tar.gz: 66da47d3891c763ae66e9a30b08c43f7a859046abca14089e9dd5af0591478cccd4c3101d8ba2bde61d3cf5cab373192dcaf339b46b83991d44a8396c462ec9f
6
+ metadata.gz: 74d23493798bec86ec387059376a1cc3e4696938f0eb9c3e9de88c9947c9685bcda9aa6f497a04088ce18d276e57ab62b4733151801f8959501aef8c5a52cc57
7
+ data.tar.gz: c0ece3eebef55739e9f5a8baa756594704851eebea6e91232370e9471cfa260f8c04b83fc6ac512957c7c5f4b12c3dbb79cdd3a24601b7e2cde7fdfd7b78205f
@@ -9,16 +9,17 @@ module Glib
9
9
  action = {
10
10
  action: 'labels/set',
11
11
  targetId: 'label-1',
12
- text: data['text']
13
- # onSet: {
14
- # action: 'timeouts/set',
15
- # interval: 1000,
16
- # onTimeout: {
17
- # action: 'labels/set',
18
- # targetId: 'label-1',
19
- # text: "Room ##{data['room'].upcase}"
20
- # }
21
- # }
12
+ text: data['text'],
13
+ onSet: {
14
+ action: 'timeouts/set',
15
+ interval: 3000,
16
+ timerId: 'label-1-set',
17
+ onTimeout: {
18
+ action: 'labels/set',
19
+ targetId: 'label-1',
20
+ text: "Room ##{data['room'].upcase}"
21
+ }
22
+ }
22
23
  }
23
24
 
24
25
  broadcast_to("appearance_#{data['room']}", action)
File without changes
File without changes
File without changes
@@ -110,6 +110,7 @@ module Glib
110
110
 
111
111
  module Timeouts
112
112
  class Set < Action
113
+ string :timerId
113
114
  int :interval # Milliseconds
114
115
  action :onTimeout
115
116
  bool :repeat
@@ -121,6 +122,8 @@ module Glib
121
122
 
122
123
  # FUTURE
123
124
  class Clear < Action
125
+ string :timerId, required: true
126
+ bool :repeat
124
127
  end
125
128
  end
126
129
 
File without changes
File without changes
@@ -106,6 +106,18 @@ module Glib
106
106
  end
107
107
  end
108
108
 
109
+ if (on_open = options[:onOpen])
110
+ json.onOpen do
111
+ on_open.call(@action_builder)
112
+ end
113
+ end
114
+
115
+ if (on_close = options[:onClose])
116
+ json.onClose do
117
+ on_close.call(@action_builder)
118
+ end
119
+ end
120
+
109
121
  json.channels options[:channels]
110
122
  end
111
123
  end
File without changes
@@ -41,6 +41,7 @@ class Glib::JsonUi::ViewBuilder
41
41
  string :suffix
42
42
  int :min
43
43
  int :max
44
+ string :legend
44
45
  # idea for the future
45
46
  # hash :nextPage
46
47
  end
@@ -54,6 +55,7 @@ class Glib::JsonUi::ViewBuilder
54
55
  string :suffix
55
56
  int :min
56
57
  int :max
58
+ string :legend
57
59
  end
58
60
 
59
61
  class Pie < View
@@ -63,6 +65,7 @@ class Glib::JsonUi::ViewBuilder
63
65
  string :suffix
64
66
  int :min
65
67
  int :max
68
+ string :legend
66
69
 
67
70
  end
68
71
 
@@ -271,6 +271,8 @@ class Glib::JsonUi::ViewBuilder
271
271
  string :subtitle
272
272
  string :uploadTitle
273
273
  string :uploadFailedText
274
+
275
+ required :accepts, :directUploadUrl
274
276
  end
275
277
 
276
278
  # TODO
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -11,10 +11,14 @@ section.rows builder: ->(template) do
11
11
  end
12
12
 
13
13
  template.thumbnail title: 'timeouts/set with repeat', onClick: ->(action) do
14
- action.timeouts_set interval: 1000, repeat: true, onTimeout: ->(subaction) do
14
+ action.timeouts_set timerId: 'timeout-1', interval: 1000, repeat: true, onTimeout: ->(subaction) do
15
15
  subaction.snackbars_alert message: 'Timeout elapsed every 1 second'
16
16
  end
17
17
  end
18
+
19
+ template.thumbnail title: 'timeouts/clear stop repeat', onClick: ->(action) do
20
+ action.timeouts_clear timerId: 'timeout-1', repeat: true
21
+ end
18
22
  end
19
23
 
20
24
  # section.rows builder: ->(template) do
@@ -39,6 +39,7 @@ page.form options.merge(childViews: ->(form) do
39
39
  form.spacer height: 16
40
40
  form.fields_multipleUpload \
41
41
  name: 'user[multi][]',
42
+ accepts: rules,
42
43
  directUploadUrl: rails_direct_uploads_url,
43
44
  title: 'Select file or drag and drop here',
44
45
  subtitle: 'JPG, PNG or PDF, file size no more than 10MB',
File without changes
File without changes
File without changes
File without changes
@@ -18,8 +18,14 @@ if room.present?
18
18
  options: { targetId: 'list-1', room: room }
19
19
  }
20
20
  ],
21
- onError: ->(action) do
21
+ onOpen: ->(action) do
22
+ action.labels_set targetId: 'label-1', text: "Room ##{room.upcase}"
23
+ end,
24
+ onClose: ->(action) do
22
25
  action.labels_set targetId: 'label-1', text: "Room ##{room.upcase} (OFF)"
26
+ end,
27
+ onError: ->(action) do
28
+ action.labels_set targetId: 'label-1', text: "Room ##{room.upcase} (ERROR)"
23
29
  end
24
30
  end
25
31
 
@@ -30,7 +36,7 @@ page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
30
36
  form.fields_hidden name: 'chat[room]', value: room
31
37
  form.fields_hidden name: 'chat[user]', value: user
32
38
 
33
- form.p id: 'label-1', text: "Room ##{room.upcase}"
39
+ form.p id: 'label-1', text: 'Loading...'
34
40
 
35
41
  form.panels_list width: 'matchParent', height: 'matchParent', id: 'list-1', sections: [
36
42
  ->(section) do
@@ -47,13 +53,13 @@ page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
47
53
  event: 'status',
48
54
  channel: 'Glib::Channel::AppearanceChannel',
49
55
  payload: { text: "#{user} is typing", room: room }
50
- end,
51
- onTypeEnd: ->(action) do
52
- action.cables_push \
53
- event: 'status',
54
- channel: 'Glib::Channel::AppearanceChannel',
55
- payload: { text: "Room ##{room.upcase}", room: room }
56
56
  end
57
+ # onTypeEnd: ->(action) do
58
+ # action.cables_push \
59
+ # event: 'status',
60
+ # channel: 'Glib::Channel::AppearanceChannel',
61
+ # payload: { text: "Room ##{room.upcase}", room: room }
62
+ # end
57
63
  end
58
64
  end
59
65
  ]
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -43,7 +43,7 @@ else
43
43
  json.points points.map { |k, v| { x: k, y: v } }
44
44
  end
45
45
  ],
46
- colors: ['#79AC78', '#3085C3']
46
+ colors: ['#79AC78', '#3085C3'], legend: 'bottom'
47
47
 
48
48
  # scroll.spacer height: 20
49
49
  # scroll.h1 text: 'Line chart using remote data'
@@ -79,7 +79,7 @@ else
79
79
  json.points points
80
80
  end
81
81
  ],
82
- colors: ['#b00', '#666', '#E55604']
82
+ colors: ['#b00', '#666', '#E55604'], legend: 'left'
83
83
 
84
84
  scroll.h2 text: 'Column chart (Stacked)'
85
85
  scroll.charts_column stacked: true, dataGroups: [
@@ -110,7 +110,7 @@ else
110
110
  }
111
111
  json.points points
112
112
  end
113
- ]
113
+ ], legend: 'bottom'
114
114
 
115
115
  scroll.h2 text: 'Pie chart'
116
116
  scroll.charts_pie dataSeries: [
@@ -122,7 +122,7 @@ else
122
122
  json.title 'Banana'
123
123
  json.value 25
124
124
  end
125
- ]
125
+ ], legend: 'bottom'
126
126
 
127
127
  scroll.h2 text: 'Area chart'
128
128
  scroll.charts_area dataSeries: [
File without changes
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
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: 3.14.1
4
+ version: 3.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
@@ -326,8 +326,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
326
326
  - !ruby/object:Gem::Version
327
327
  version: '0'
328
328
  requirements: []
329
- rubyforge_project:
330
- rubygems_version: 2.7.6
329
+ rubygems_version: 3.4.6
331
330
  signing_key:
332
331
  specification_version: 4
333
332
  summary: ''