glib-web 0.4.56 → 0.4.57

Sign up to get free protection for your applications and to get access to all the features.
Files changed (130) 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/glib/home_controller.rb +0 -0
  6. data/app/helpers/glib/dynamic_images_helper.rb +0 -0
  7. data/app/helpers/glib/dynamic_texts_helper.rb +0 -0
  8. data/app/helpers/glib/forms_helper.rb +0 -0
  9. data/app/helpers/glib/json_ui/abstract_builder.rb +0 -0
  10. data/app/helpers/glib/json_ui/action_builder/dialogs.rb +0 -0
  11. data/app/helpers/glib/json_ui/action_builder/sheets.rb +0 -0
  12. data/app/helpers/glib/json_ui/action_builder/snackbars.rb +0 -0
  13. data/app/helpers/glib/json_ui/action_builder/windows.rb +0 -0
  14. data/app/helpers/glib/json_ui/action_builder.rb +0 -0
  15. data/app/helpers/glib/json_ui/generic_builders.rb +0 -0
  16. data/app/helpers/glib/json_ui/list_builders.rb +0 -0
  17. data/app/helpers/glib/json_ui/menu_builder.rb +0 -0
  18. data/app/helpers/glib/json_ui/page_helper.rb +0 -0
  19. data/app/helpers/glib/json_ui/response_helper.rb +0 -0
  20. data/app/helpers/glib/json_ui/split_builders.rb +0 -0
  21. data/app/helpers/glib/json_ui/styling_helper.rb +0 -0
  22. data/app/helpers/glib/json_ui/table_builders.rb +0 -0
  23. data/app/helpers/glib/json_ui/view_builder/banners.rb +0 -0
  24. data/app/helpers/glib/json_ui/view_builder/fields.rb +0 -0
  25. data/app/helpers/glib/json_ui/view_builder/panels.rb +0 -0
  26. data/app/helpers/glib/json_ui/view_builder.rb +6 -0
  27. data/app/models/glib/active_storage/attachment.rb +0 -0
  28. data/app/models/glib/active_storage/blob.rb +0 -0
  29. data/app/models/glib/dynamic_text_record.rb +0 -0
  30. data/app/models/glib/text.rb +0 -0
  31. data/app/policies/glib/application_policy.rb +0 -0
  32. data/app/validators/email_validator.rb +0 -0
  33. data/app/validators/url_validator.rb +0 -0
  34. data/app/views/app/views/json_ui/vue/renderer.html.erb +0 -0
  35. data/app/views/json_ui/garage/_nav_menu.json.jbuilder +0 -0
  36. data/app/views/json_ui/garage/actions/_dialogs.json.jbuilder +0 -0
  37. data/app/views/json_ui/garage/actions/_sheets.json.jbuilder +0 -0
  38. data/app/views/json_ui/garage/actions/_snackbars.json.jbuilder +0 -0
  39. data/app/views/json_ui/garage/actions/_windows.json.jbuilder +0 -0
  40. data/app/views/json_ui/garage/actions/index.json.jbuilder +0 -0
  41. data/app/views/json_ui/garage/forms/_alert_post_data.json.jbuilder +0 -0
  42. data/app/views/json_ui/garage/forms/basic.json.jbuilder +0 -0
  43. data/app/views/json_ui/garage/forms/basic_post.json.jbuilder +0 -0
  44. data/app/views/json_ui/garage/forms/checkboxes.json.jbuilder +0 -0
  45. data/app/views/json_ui/garage/forms/dynamic_group.json.jbuilder +0 -0
  46. data/app/views/json_ui/garage/forms/dynamic_select.json.jbuilder +0 -0
  47. data/app/views/json_ui/garage/forms/dynamic_select_data.json.jbuilder +0 -0
  48. data/app/views/json_ui/garage/forms/file_upload.json.jbuilder +0 -0
  49. data/app/views/json_ui/garage/forms/floating_submit.json.jbuilder +0 -0
  50. data/app/views/json_ui/garage/forms/generic_post.json.jbuilder +0 -0
  51. data/app/views/json_ui/garage/forms/get_request.json.jbuilder +0 -0
  52. data/app/views/json_ui/garage/forms/index.json.jbuilder +0 -0
  53. data/app/views/json_ui/garage/forms/pickers.json.jbuilder +0 -0
  54. data/app/views/json_ui/garage/forms/rich_text.json.jbuilder +0 -0
  55. data/app/views/json_ui/garage/forms/selects.json.jbuilder +0 -0
  56. data/app/views/json_ui/garage/forms/show_hide.json.jbuilder +0 -0
  57. data/app/views/json_ui/garage/forms/styled_boxes.json.jbuilder +0 -0
  58. data/app/views/json_ui/garage/forms/submission_flow.json.jbuilder +0 -0
  59. data/app/views/json_ui/garage/forms/submission_flow_post.json.jbuilder +0 -0
  60. data/app/views/json_ui/garage/forms/submission_indicator.json.jbuilder +0 -0
  61. data/app/views/json_ui/garage/forms/submission_indicator_post.json.jbuilder +0 -0
  62. data/app/views/json_ui/garage/forms/text_validation.json.jbuilder +0 -0
  63. data/app/views/json_ui/garage/home/blank.json.jbuilder +0 -0
  64. data/app/views/json_ui/garage/home/index.json.jbuilder +0 -0
  65. data/app/views/json_ui/garage/lists/_infinite_scroll_section.json.jbuilder +0 -0
  66. data/app/views/json_ui/garage/lists/edit_actions.json.jbuilder +0 -0
  67. data/app/views/json_ui/garage/lists/fab.json.jbuilder +0 -0
  68. data/app/views/json_ui/garage/lists/index.json.jbuilder +0 -0
  69. data/app/views/json_ui/garage/lists/infinite_scroll.json.jbuilder +0 -0
  70. data/app/views/json_ui/garage/lists/templating.json.jbuilder +0 -0
  71. data/app/views/json_ui/garage/pages/flat_centered.json.jbuilder +0 -0
  72. data/app/views/json_ui/garage/pages/full_width.json.jbuilder +0 -0
  73. data/app/views/json_ui/garage/pages/full_width_height.json.jbuilder +0 -0
  74. data/app/views/json_ui/garage/pages/index.json.jbuilder +0 -0
  75. data/app/views/json_ui/garage/pages/layout.json.jbuilder +0 -0
  76. data/app/views/json_ui/garage/pages/nav_buttons.json.jbuilder +0 -0
  77. data/app/views/json_ui/garage/pages/tab_bar.json.jbuilder +0 -0
  78. data/app/views/json_ui/garage/panels/card.json.jbuilder +0 -0
  79. data/app/views/json_ui/garage/panels/carousel.json.jbuilder +0 -0
  80. data/app/views/json_ui/garage/panels/custom.json.jbuilder +0 -0
  81. data/app/views/json_ui/garage/panels/flow.json.jbuilder +0 -0
  82. data/app/views/json_ui/garage/panels/horizontal.json.jbuilder +0 -0
  83. data/app/views/json_ui/garage/panels/index.json.jbuilder +0 -0
  84. data/app/views/json_ui/garage/panels/responsive.json.jbuilder +0 -0
  85. data/app/views/json_ui/garage/panels/split.json.jbuilder +0 -0
  86. data/app/views/json_ui/garage/panels/vertical.json.jbuilder +0 -0
  87. data/app/views/json_ui/garage/services/dynamic_text.json.jbuilder +0 -0
  88. data/app/views/json_ui/garage/services/image.json.jbuilder +0 -0
  89. data/app/views/json_ui/garage/services/index.json.jbuilder +0 -0
  90. data/app/views/json_ui/garage/tables/_autoload_section.json.jbuilder +0 -0
  91. data/app/views/json_ui/garage/tables/autoload_all.json.jbuilder +0 -0
  92. data/app/views/json_ui/garage/tables/export_import.json.jbuilder +0 -0
  93. data/app/views/json_ui/garage/tables/horizontal_scroll.json.jbuilder +0 -0
  94. data/app/views/json_ui/garage/tables/index.json.jbuilder +0 -0
  95. data/app/views/json_ui/garage/tables/layout.json.jbuilder +0 -0
  96. data/app/views/json_ui/garage/views/banners.json.jbuilder +0 -0
  97. data/app/views/json_ui/garage/views/calendar_data.json.jbuilder +0 -0
  98. data/app/views/json_ui/garage/views/carousels.json.jbuilder +0 -0
  99. data/app/views/json_ui/garage/views/charts.json.jbuilder +0 -0
  100. data/app/views/json_ui/garage/views/images.json.jbuilder +0 -0
  101. data/app/views/json_ui/garage/views/index.json.jbuilder +0 -0
  102. data/app/views/json_ui/garage/views/links.json.jbuilder +0 -0
  103. data/app/views/json_ui/garage/views/map_data.json.jbuilder +0 -0
  104. data/app/views/json_ui/garage/views/misc.json.jbuilder +6 -1
  105. data/app/views/json_ui/garage/views/texts.json.jbuilder +0 -0
  106. data/config/routes.rb +0 -0
  107. data/lib/generators/glib/install_generator.rb +0 -0
  108. data/lib/generators/templates/20191017062519_create_texts.rb +0 -0
  109. data/lib/generators/templates/20191024063257_add_scope_to_texts.rb +0 -0
  110. data/lib/generators/templates/20191112095018_add_lang_to_texts.rb +0 -0
  111. data/lib/generators/templates/20191126071051_create_active_storage_tables.active_storage.rb +0 -0
  112. data/lib/generators/templates/database.yml +0 -0
  113. data/lib/generators/templates/dynamic_text.rb +0 -0
  114. data/lib/glib/dynamic_text/config.rb +0 -0
  115. data/lib/glib/dynamic_text.rb +0 -0
  116. data/lib/glib/engine.rb +0 -0
  117. data/lib/glib/json_crawler/action_crawler.rb +0 -0
  118. data/lib/glib/json_crawler/action_crawlers/action_http.rb +0 -0
  119. data/lib/glib/json_crawler/action_crawlers/forms_submit.rb +0 -0
  120. data/lib/glib/json_crawler/action_crawlers/nav_initiate.rb +0 -0
  121. data/lib/glib/json_crawler/action_crawlers/windows_open.rb +0 -0
  122. data/lib/glib/json_crawler/coverage.rb +0 -0
  123. data/lib/glib/json_crawler/http.rb +0 -0
  124. data/lib/glib/json_crawler/router.rb +16 -1
  125. data/lib/glib/json_crawler.rb +0 -0
  126. data/lib/glib/value.rb +0 -0
  127. data/lib/glib/version.rb +0 -0
  128. data/lib/glib-web.rb +0 -0
  129. data/lib/tasks/db.rake +0 -0
  130. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 91d807eb158b9a9fb64bb7290c8b1184a70edfca
4
- data.tar.gz: 27188e3bedd04275160d5bf5b516acbb75710f7c
2
+ SHA256:
3
+ metadata.gz: b7b37cc14ec580aed3ef04114c4a600e4893fad2c14b5277fb36245853ac0282
4
+ data.tar.gz: 8cd4ff29175501bdcade69516ce2e9156bc9f7ef838c9908c36399b2e3119aa4
5
5
  SHA512:
6
- metadata.gz: a2d0de117b9f0920fb7469d9d12fde09d1e482733cdde9ea6b4bd9a78a36c7cf1682438a15ff81a1e9fe1ba4c99ad5fe472f0afeb946759b74f542f438859a01
7
- data.tar.gz: 27e9ce01d6e2e3c59c332ceb39b8f3c0734e8177a0bd7d2d93259730faf774d63d1ec12d8ea8121adc1c3a9c91be9d744a48e5742d90ee9132ee46f9c0493296
6
+ metadata.gz: 30c1d69c96a68bd88f38f23d7b5381f92cf529154fa5608690336f49c45bf2d916d016b0fb000d051dff8bfbe93c2709cf267f1dfdf97ab51f9fda660926e069
7
+ data.tar.gz: c443ee40bbbb173cf45ce996d419ee832de1059c855f3ad9c152bbb6d313519170c0f3f137236676197ef8be4327b51ab06455608fd4d9903e1cb867d0078e64
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
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -173,6 +173,12 @@ module Glib
173
173
 
174
174
  end
175
175
 
176
+ class Datetime < View
177
+ date_time :value
178
+ string :format
179
+ bool :tick
180
+ end
181
+
176
182
  end
177
183
  end
178
184
  end
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
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
@@ -14,12 +14,17 @@ json_ui_page json do |page|
14
14
  ul.label text: 'Label'
15
15
  end
16
16
 
17
+ scroll.spacer height: 20
18
+ scroll.h2 text: 'Time'
19
+ scroll.spacer height: 6
20
+ scroll.datetime value: 1.week.ago, format: 'YYYY-MM-DD'
21
+ scroll.datetime value: DateTime.current, format: 'hh:mm:ss', tick: true
22
+
17
23
  scroll.spacer height: 20
18
24
  scroll.h2 text: 'Map'
19
25
  scroll.spacer height: 6
20
26
  scroll.map width: 'matchParent', latitude: 13.4837, longitude: 144.7917, zoom: 11, height: 250, dataUrl: json_ui_garage_url(path: 'views/map_data')
21
27
 
22
- # TODO: Implement in vuejs
23
28
  scroll.spacer height: 20
24
29
  scroll.h2 text: 'Calendar'
25
30
  scroll.spacer height: 6
File without changes
data/config/routes.rb CHANGED
File without changes
File without changes
File without changes
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
@@ -1,6 +1,13 @@
1
1
  module Glib
2
2
  module JsonCrawler
3
3
  class Router
4
+ @@crawler_actions = Set.new
5
+ @@store_action = false
6
+
7
+ def self.crawler_actions
8
+ @@crawler_actions
9
+ end
10
+
4
11
  def self.log(action, url, response = nil)
5
12
  @@logger.puts ' ' * @@depth + [
6
13
  action,
@@ -9,10 +16,11 @@ module Glib
9
16
  ].compact.join(' :: ')
10
17
  end
11
18
 
12
- def self.set_up(logger)
19
+ def self.set_up(logger, store_action)
13
20
  @@depth = -1
14
21
  @@logger = logger
15
22
  @@visitor = Glib::Json::Traversal::Visitor.new
23
+ @@store_action = store_action
16
24
  end
17
25
 
18
26
  def self.step(http, args)
@@ -30,8 +38,12 @@ module Glib
30
38
  @@depth += 1
31
39
  child = case action
32
40
  when 'initiate_navigation'
41
+ @@crawler_actions.add([action, params['url']]) if @@store_action
33
42
  JsonCrawler::NavInitiate.new(http, params, action)
34
43
  when 'windows/open-v1', 'dialogs/open-v1', 'windows/reload-v1'
44
+ unless action == 'dialogs/open-v1'
45
+ @@crawler_actions.add([action, params['url']]) if @@store_action
46
+ end
35
47
  JsonCrawler::WindowsOpen.new(http, params, action)
36
48
  # when 'http/delete-v1'
37
49
  # JsonCrawler::ActionHttp.new(:delete, http, params, action)
@@ -42,6 +54,9 @@ module Glib
42
54
  raise 'Submit action needs to be inside a form' if forms.size < 1
43
55
  JsonCrawler::FormsSubmit.new(http, params, action, forms.last)
44
56
  else
57
+ unless ['http/delete-v1', 'dialogs/oauth-v1'].include?(action)
58
+ @@crawler_actions.add([action, params['url']]) if @@store_action
59
+ end
45
60
  self.log action, params['url']
46
61
  end
47
62
  @@depth -= 1
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.4.56
4
+ version: 0.4.57
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
@@ -222,7 +222,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
222
222
  version: '0'
223
223
  requirements: []
224
224
  rubyforge_project:
225
- rubygems_version: 2.6.8
225
+ rubygems_version: 2.7.6
226
226
  signing_key:
227
227
  specification_version: 4
228
228
  summary: ''