glib-web 0.12.2 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) 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_texts_helper.rb +0 -0
  5. data/app/helpers/glib/forms_helper.rb +0 -0
  6. data/app/helpers/glib/json_ui/action_builder/components.rb +9 -0
  7. data/app/helpers/glib/json_ui/action_builder/http.rb +5 -2
  8. data/app/helpers/glib/json_ui/action_builder/sheets.rb +0 -0
  9. data/app/helpers/glib/json_ui/action_builder/snackbars.rb +0 -0
  10. data/app/helpers/glib/json_ui/action_builder/tours.rb +3 -0
  11. data/app/helpers/glib/json_ui/analytics_helper.rb +0 -0
  12. data/app/helpers/glib/json_ui/generic_builders.rb +0 -0
  13. data/app/helpers/glib/json_ui/response_helper.rb +19 -2
  14. data/app/helpers/glib/json_ui/table_builders.rb +0 -0
  15. data/app/helpers/glib/json_ui/view_builder.rb +1 -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/_dialogs_show.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_post.json.jbuilder +0 -0
  32. data/app/views/json_ui/garage/forms/dynamic_group.json.jbuilder +0 -0
  33. data/app/views/json_ui/garage/forms/dynamic_select_data.json.jbuilder +0 -0
  34. data/app/views/json_ui/garage/forms/floating_submit.json.jbuilder +0 -0
  35. data/app/views/json_ui/garage/forms/generic_post.json.jbuilder +0 -0
  36. data/app/views/json_ui/garage/forms/submission_flow.json.jbuilder +0 -0
  37. data/app/views/json_ui/garage/forms/submission_flow_post.json.jbuilder +0 -0
  38. data/app/views/json_ui/garage/forms/submission_indicator.json.jbuilder +0 -0
  39. data/app/views/json_ui/garage/forms/submission_indicator_post.json.jbuilder +0 -0
  40. data/app/views/json_ui/garage/home/blank.json.jbuilder +0 -0
  41. data/app/views/json_ui/garage/home/slow.json.jbuilder +0 -0
  42. data/app/views/json_ui/garage/lists/autoload_all.json.jbuilder +0 -0
  43. data/app/views/json_ui/garage/lists/autoload_as_needed.json.jbuilder +0 -0
  44. data/app/views/json_ui/garage/lists/chat_ui.json.jbuilder +0 -0
  45. data/app/views/json_ui/garage/lists/fab.json.jbuilder +0 -0
  46. data/app/views/json_ui/garage/notifications/web_socket.json.jbuilder +0 -0
  47. data/app/views/json_ui/garage/pages/flat_centered.json.jbuilder +0 -0
  48. data/app/views/json_ui/garage/pages/full_width.json.jbuilder +0 -0
  49. data/app/views/json_ui/garage/pages/full_width_height.json.jbuilder +0 -0
  50. data/app/views/json_ui/garage/pages/index.json.jbuilder +0 -0
  51. data/app/views/json_ui/garage/pages/layout.json.jbuilder +0 -0
  52. data/app/views/json_ui/garage/pages/lifecycle_hooks.json.jbuilder +0 -0
  53. data/app/views/json_ui/garage/pages/loading_indicator.json.jbuilder +0 -0
  54. data/app/views/json_ui/garage/pages/nested_scroll.json.jbuilder +0 -0
  55. data/app/views/json_ui/garage/panels/_styled.json.jbuilder +0 -0
  56. data/app/views/json_ui/garage/panels/card.json.jbuilder +0 -0
  57. data/app/views/json_ui/garage/panels/custom.json.jbuilder +0 -0
  58. data/app/views/json_ui/garage/panels/outlined.json.jbuilder +0 -0
  59. data/app/views/json_ui/garage/services/dynamic_text.json.jbuilder +0 -0
  60. data/app/views/json_ui/garage/services/image.json.jbuilder +0 -0
  61. data/app/views/json_ui/garage/services/index.json.jbuilder +0 -0
  62. data/app/views/json_ui/garage/tables/_autoload_section.json.jbuilder +0 -0
  63. data/app/views/json_ui/garage/tables/autoload_all.json.jbuilder +0 -0
  64. data/app/views/json_ui/garage/tables/autoload_as_needed.json.jbuilder +0 -0
  65. data/app/views/json_ui/garage/tables/export_import.json.jbuilder +0 -0
  66. data/app/views/json_ui/garage/tables/index.json.jbuilder +0 -0
  67. data/app/views/json_ui/garage/views/calendar_data.json.jbuilder +0 -0
  68. data/app/views/json_ui/garage/views/links.json.jbuilder +0 -0
  69. data/app/views/json_ui/garage/views/map_cluster_data.json.jbuilder +0 -0
  70. data/app/views/json_ui/garage/views/map_data.json.jbuilder +0 -0
  71. data/app/views/json_ui/garage/views/multimedia.json.jbuilder +0 -0
  72. data/app/views/json_ui/garage/views/shareButton.json.jbuilder +20 -0
  73. data/config/routes.rb +0 -0
  74. data/lib/generators/glib/install_generator.rb +0 -0
  75. data/lib/generators/templates/20191017062519_create_texts.rb +0 -0
  76. data/lib/generators/templates/20191024063257_add_scope_to_texts.rb +0 -0
  77. data/lib/generators/templates/20191112095018_add_lang_to_texts.rb +0 -0
  78. data/lib/generators/templates/20191126071051_create_active_storage_tables.active_storage.rb +0 -0
  79. data/lib/generators/templates/database.yml +0 -0
  80. data/lib/generators/templates/dynamic_text.rb +0 -0
  81. data/lib/glib/crypt/utils.rb +0 -0
  82. data/lib/glib/crypt.rb +0 -0
  83. data/lib/glib/dynamic_text/config.rb +0 -0
  84. data/lib/glib/dynamic_text.rb +0 -0
  85. data/lib/glib/engine.rb +0 -0
  86. data/lib/glib/json_crawler/action_crawler.rb +0 -0
  87. data/lib/glib/json_crawler/action_crawlers/action_http.rb +0 -0
  88. data/lib/glib/json_crawler/action_crawlers/forms_submit.rb +0 -0
  89. data/lib/glib/json_crawler/action_crawlers/menu.rb +0 -0
  90. data/lib/glib/json_crawler/action_crawlers/nav_initiate.rb +0 -0
  91. data/lib/glib/json_crawler/action_crawlers/run_multiple.rb +0 -0
  92. data/lib/glib/json_crawler/action_crawlers/windows_open.rb +0 -0
  93. data/lib/glib/json_crawler/coverage.rb +0 -0
  94. data/lib/glib/json_crawler.rb +0 -0
  95. data/lib/glib/mailer_tester.rb +0 -0
  96. data/lib/glib/value.rb +0 -0
  97. data/lib/glib/version.rb +0 -0
  98. data/lib/glib-web.rb +0 -0
  99. data/lib/tasks/db.rake +0 -0
  100. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bab29dba5e648d50d03a57bac0904d97aaadfe5f0e5b1a9e01b123fbf6e2c787
4
- data.tar.gz: 245ce0246212f41d87842659d68d83f2634282f9b803e09a278ef051cbfcc962
3
+ metadata.gz: 27788c64710f7017fc98dc0f2368668204a8cf9929dc9f168a3e37b32c329c96
4
+ data.tar.gz: 3cfbe8bf3d631006cb92614be8b8ee04386394bdb107b02c5e481b1a28416215
5
5
  SHA512:
6
- metadata.gz: 671310954e5011e2867d7d1c330c5b218c9af9c36617a81f9461eca1d3f32cc9436fdec208ca1d19b24e73f3eaf0216c0f4f6d5954fc8cc782abde757ae78194
7
- data.tar.gz: fdc79df0a84f2ecec8e599209dbefe87f1709e85d07dffb3fbca4cefdfcd571e6108aa76fc0410576f98a128eee92848458dae6bb53abe05b655b996b08761ec
6
+ metadata.gz: e8df903fd95b2ce26dcfb491c55f1f7c704d14e3ddf9fcf4f946f5d7752f9b723f20e57f6f52b3daf286d1f993479bf5e9a4c28d27ba2f17fc1dc7add4eb8e71
7
+ data.tar.gz: 88fbe9a0bb5a5d312b68d49fcb1975b7f7a413d7b65448392f68ddeaa372b9098e3772d2f7d0272c989cbbb05d2edd014d8accc325ca4c8bc77dff456725f472
File without changes
File without changes
File without changes
@@ -0,0 +1,9 @@
1
+ class Glib::JsonUi::ActionBuilder
2
+ module Components
3
+
4
+ class Update < Action
5
+ string :targetId
6
+ views :views
7
+ end
8
+ end
9
+ end
@@ -22,6 +22,9 @@ class Glib::JsonUi::ActionBuilder
22
22
  end
23
23
  end
24
24
 
25
+ class Get < AbstractHttp
26
+ end
27
+
25
28
  class Post < AbstractHttp
26
29
  end
27
30
 
@@ -31,8 +34,8 @@ class Glib::JsonUi::ActionBuilder
31
34
  end
32
35
 
33
36
  class Delete < AbstractHttp
34
- # string :url, cache: true
35
- # hash :formData
37
+ # string :url, cache: true
38
+ # hash :formData
36
39
  end
37
40
 
38
41
  end
File without changes
File without changes
@@ -2,7 +2,10 @@ class Glib::JsonUi::ActionBuilder
2
2
  module Tours
3
3
 
4
4
  class Start < Action
5
+ # https://kamranahmed.info/driver.js/
6
+ # Driver definition
5
7
  hash :options
8
+ # Step definition
6
9
  array :steps
7
10
  int :startFrom
8
11
  end
File without changes
File without changes
@@ -10,14 +10,31 @@ module Glib
10
10
  end
11
11
  end
12
12
 
13
+ def json_ui_response_with_view(json)
14
+ json.analytics do
15
+ json.disabled true
16
+ end
17
+
18
+ json.onResponse do
19
+ response = Response.new(json, self, true)
20
+ yield response.action_builder
21
+ end
22
+ end
23
+
13
24
  class Response
14
- attr_reader :action_builder
25
+ attr_reader :action_builder, :view_builder, :list_section_builder, :table_section_builder
15
26
 
16
- def initialize(json, context)
27
+ def initialize(json, context, with_view_builder = false)
17
28
  @json = json
18
29
  @context = context
19
30
 
20
31
  @action_builder = ActionBuilder.new(json, self, false)
32
+
33
+ if with_view_builder
34
+ @view_builder = ViewBuilder.new(json, self, true)
35
+ @list_section_builder = ListBuilders::Section.new(json, self, ListBuilders::Template.new(json, self))
36
+ @table_section_builder = TableBuilders::Section.new(json, self, TableBuilders::Template.new(json, self))
37
+ end
21
38
  end
22
39
  end
23
40
  end
File without changes
@@ -24,6 +24,7 @@ module Glib
24
24
  end
25
25
 
26
26
  class View < JsonUiElement
27
+ string :compId
27
28
  string :id
28
29
  length :width
29
30
  length :height
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
@@ -19,6 +19,8 @@ page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
19
19
  end
20
20
  end
21
21
 
22
+ f.spacer width: 10
23
+
22
24
  # For testing: https://developers.facebook.com/tools/debug/
23
25
  f.shareButton \
24
26
  network: 'facebook',
@@ -28,6 +30,8 @@ page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
28
30
  facebookQuote: 'This is a quote',
29
31
  text: 'Facebook'
30
32
 
33
+ f.spacer width: 10
34
+
31
35
  f.shareButton \
32
36
  network: 'linkedin',
33
37
  url: 'https://www.google.com',
@@ -35,6 +39,8 @@ page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
35
39
  description: 'This is a description',
36
40
  text: 'LinkedIn'
37
41
 
42
+ f.spacer width: 10
43
+
38
44
  f.shareButton \
39
45
  network: 'whatsapp',
40
46
  url: 'https://www.google.com',
@@ -42,6 +48,8 @@ page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
42
48
  description: 'This is a description',
43
49
  text: 'WhatsApp'
44
50
 
51
+ f.spacer width: 10
52
+
45
53
  f.shareButton \
46
54
  network: 'telegram',
47
55
  url: 'https://www.google.com',
@@ -59,18 +67,24 @@ page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
59
67
  title: 'This is a title',
60
68
  description: 'This is a description'
61
69
 
70
+ f.spacer width: 10
71
+
62
72
  f.shareButton \
63
73
  network: 'linkedin',
64
74
  url: 'https://www.google.com',
65
75
  title: 'This is a title',
66
76
  description: 'This is a description'
67
77
 
78
+ f.spacer width: 10
79
+
68
80
  f.shareButton \
69
81
  network: 'whatsapp',
70
82
  url: 'https://www.google.com',
71
83
  title: 'This is a title',
72
84
  description: 'This is a description'
73
85
 
86
+ f.spacer width: 10
87
+
74
88
  f.shareButton \
75
89
  network: 'telegram',
76
90
  url: 'https://www.google.com',
@@ -89,6 +103,8 @@ page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
89
103
  description: 'This is a description',
90
104
  text: 'Facebook'
91
105
 
106
+ v.spacer height: 10
107
+
92
108
  v.shareButton \
93
109
  network: 'linkedin',
94
110
  url: 'https://www.google.com',
@@ -96,6 +112,8 @@ page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
96
112
  description: 'This is a description',
97
113
  text: 'LinkedIn'
98
114
 
115
+ v.spacer height: 10
116
+
99
117
  v.shareButton \
100
118
  width: 'matchParent',
101
119
  network: 'whatsapp',
@@ -104,6 +122,8 @@ page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
104
122
  description: 'This is a description',
105
123
  text: 'WhatsApp'
106
124
 
125
+ v.spacer height: 10
126
+
107
127
  v.shareButton \
108
128
  width: 'matchParent',
109
129
  network: 'telegram',
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.12.2
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
@@ -92,6 +92,7 @@ files:
92
92
  - app/helpers/glib/json_ui/abstract_builder.rb
93
93
  - app/helpers/glib/json_ui/action_builder.rb
94
94
  - app/helpers/glib/json_ui/action_builder/commands.rb
95
+ - app/helpers/glib/json_ui/action_builder/components.rb
95
96
  - app/helpers/glib/json_ui/action_builder/dialogs.rb
96
97
  - app/helpers/glib/json_ui/action_builder/http.rb
97
98
  - app/helpers/glib/json_ui/action_builder/iap.rb
@@ -299,8 +300,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
299
300
  - !ruby/object:Gem::Version
300
301
  version: '0'
301
302
  requirements: []
302
- rubyforge_project:
303
- rubygems_version: 2.7.6
303
+ rubygems_version: 3.1.4
304
304
  signing_key:
305
305
  specification_version: 4
306
306
  summary: ''