glib-web 0.5.45 → 0.5.51
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/channels/glib/channel/is_typing_channel.rb +28 -0
- data/app/controllers/concerns/glib/json/traversal.rb +5 -0
- data/app/controllers/glib/home_controller.rb +0 -0
- data/app/helpers/glib/json_ui/abstract_builder.rb +0 -0
- data/app/helpers/glib/json_ui/action_builder.rb +9 -0
- data/app/helpers/glib/json_ui/list_builders.rb +6 -1
- data/app/helpers/glib/json_ui/page_helper.rb +11 -3
- data/app/helpers/glib/json_ui/response_helper.rb +0 -0
- data/app/helpers/glib/json_ui/view_builder.rb +1 -0
- data/app/helpers/glib/json_ui/view_builder/fields.rb +4 -0
- data/app/helpers/glib/json_ui/view_builder/panels.rb +0 -0
- data/app/views/json_ui/garage/actions/index.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/_alert_post_data.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/conditional_value.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/dynamic_group.json.jbuilder +30 -47
- data/app/views/json_ui/garage/forms/dynamic_select.json.jbuilder +16 -19
- data/app/views/json_ui/garage/forms/file_upload.json.jbuilder +24 -57
- data/app/views/json_ui/garage/forms/floating_submit.json.jbuilder +11 -23
- data/app/views/json_ui/garage/forms/get_request.json.jbuilder +20 -21
- data/app/views/json_ui/garage/forms/index.json.jbuilder +83 -85
- data/app/views/json_ui/garage/forms/new_rich_text.json.jbuilder +28 -29
- data/app/views/json_ui/garage/forms/pickers.json.jbuilder +41 -43
- data/app/views/json_ui/garage/forms/selects.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/show_hide.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/styled_boxes.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/text_validation.json.jbuilder +4 -2
- data/app/views/json_ui/garage/home/index.json.jbuilder +0 -0
- data/app/views/json_ui/garage/lists/_autoload_section.json.jbuilder +0 -0
- data/app/views/json_ui/garage/lists/edit_actions.json.jbuilder +0 -0
- data/app/views/json_ui/garage/lists/index.json.jbuilder +0 -0
- data/app/views/json_ui/garage/lists/reordering.json.jbuilder +13 -3
- data/app/views/json_ui/garage/notifications/action_cable.json.jbuilder +97 -0
- data/app/views/json_ui/garage/notifications/android_post.json.jbuilder +0 -0
- data/app/views/json_ui/garage/notifications/index.json.jbuilder +5 -1
- data/app/views/json_ui/garage/views/maps.json.jbuilder +0 -0
- data/app/views/json_ui/garage/views/texts.json.jbuilder +40 -37
- data/lib/glib/json_crawler/router.rb +2 -0
- data/lib/glib/test_helpers.rb +16 -4
- metadata +24 -9
File without changes
|
@@ -25,8 +25,12 @@ page.list firstSection: ->(section) do
|
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
|
-
template.thumbnail title: 'WebSocket Real-time Update', onClick: ->(action) do
|
28
|
+
template.thumbnail title: 'Phoenix WebSocket Real-time Update', onClick: ->(action) do
|
29
29
|
action.windows_open url: json_ui_garage_url(path: 'notifications/web_socket')
|
30
30
|
end
|
31
|
+
|
32
|
+
template.thumbnail title: 'ActionCable Real-time Update', onClick: ->(action) do
|
33
|
+
action.windows_open url: json_ui_garage_url(path: 'notifications/action_cable')
|
34
|
+
end
|
31
35
|
end
|
32
36
|
end
|
File without changes
|
@@ -1,41 +1,44 @@
|
|
1
1
|
json.title 'Views'
|
2
2
|
|
3
|
-
json_ui_page json
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
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
|
+
scroll.h1 text: 'Heading 1'
|
8
|
+
|
9
|
+
scroll.spacer height: 10
|
10
|
+
scroll.h2 text: 'Heading 2'
|
11
|
+
|
12
|
+
scroll.spacer height: 10
|
13
|
+
scroll.h3 text: 'Heading 3'
|
14
|
+
|
15
|
+
scroll.spacer height: 10
|
16
|
+
scroll.h4 text: 'Heading 4'
|
17
|
+
|
18
|
+
scroll.spacer height: 10
|
19
|
+
scroll.label text: 'Label'
|
20
|
+
|
21
|
+
scroll.spacer height: 20
|
22
|
+
scroll.hr width: 'matchParent'
|
23
|
+
|
24
|
+
scroll.spacer height: 20
|
25
|
+
scroll.h2 text: 'Paragraph'
|
26
|
+
scroll.spacer height: 6
|
27
|
+
scroll.p text: 'Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC,'\
|
28
|
+
' making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words,'\
|
29
|
+
' consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source.'\
|
30
|
+
' Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC.'\
|
31
|
+
' This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..",'\
|
32
|
+
' comes from a line in section 1.10.32.' + "\n\n" +
|
33
|
+
'The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum"'\
|
34
|
+
' by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.'
|
35
|
+
|
36
|
+
scroll.spacer height: 20
|
37
|
+
scroll.h2 text: 'Chip'
|
38
|
+
scroll.spacer height: 6
|
39
|
+
scroll.chip styleClass: 'success', text: 'pending'
|
40
|
+
scroll.spacer height: 6
|
41
|
+
scroll.chip text: 'Skills', onClick: ->(action) do
|
42
|
+
action.dialogs_alert message: 'Perform action'
|
40
43
|
end
|
41
44
|
end
|
data/lib/glib/test_helpers.rb
CHANGED
@@ -13,7 +13,10 @@ module Glib
|
|
13
13
|
|
14
14
|
def __log_dir
|
15
15
|
if @__log_dir.nil?
|
16
|
-
@__log_dir = File.expand_path(
|
16
|
+
@__log_dir = File.expand_path(
|
17
|
+
"#{Rails.root}/test/controllers/#{self.class.to_s.underscore}_results",
|
18
|
+
File.dirname(__FILE__)
|
19
|
+
)
|
17
20
|
unless File.directory?(@__log_dir)
|
18
21
|
FileUtils.mkdir_p(@__log_dir)
|
19
22
|
end
|
@@ -26,15 +29,24 @@ module Glib
|
|
26
29
|
end
|
27
30
|
|
28
31
|
def __log(json)
|
29
|
-
File.open("#{File.join(__log_dir, __log_file)}", 'w') do |f|
|
32
|
+
file = File.open("#{File.join(__log_dir, __log_file)}", 'w') do |f|
|
30
33
|
f << JSON.pretty_generate(JSON.parse(json))
|
31
34
|
end
|
35
|
+
file.close
|
32
36
|
json
|
33
37
|
end
|
34
38
|
|
35
39
|
def __get_previous_result_from_git
|
36
|
-
|
37
|
-
|
40
|
+
if __git_is_available?
|
41
|
+
`git checkout -- "#{File.join(__log_dir, __log_file)}" > /dev/null 2>&1`
|
42
|
+
end
|
43
|
+
if File.exist?(
|
44
|
+
File.join(__log_dir, __log_file)
|
45
|
+
)
|
46
|
+
File.read(File.join(__log_dir, __log_file))
|
47
|
+
else
|
48
|
+
"\{\}"
|
49
|
+
end
|
38
50
|
end
|
39
51
|
end
|
40
52
|
end
|
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.
|
4
|
+
version: 0.5.51
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
@@ -17,9 +17,6 @@ dependencies:
|
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 5.2.3
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 6.1.0
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -27,9 +24,6 @@ dependencies:
|
|
27
24
|
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 5.2.3
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 6.1.0
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: pundit
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,12 +52,33 @@ dependencies:
|
|
58
52
|
- - "~>"
|
59
53
|
- !ruby/object:Gem::Version
|
60
54
|
version: '2.1'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: actioncable
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 6.0.1
|
62
|
+
- - "<"
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: 6.1.0
|
65
|
+
type: :runtime
|
66
|
+
prerelease: false
|
67
|
+
version_requirements: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: 6.0.1
|
72
|
+
- - "<"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 6.1.0
|
61
75
|
description:
|
62
76
|
email: ''
|
63
77
|
executables: []
|
64
78
|
extensions: []
|
65
79
|
extra_rdoc_files: []
|
66
80
|
files:
|
81
|
+
- app/channels/glib/channel/is_typing_channel.rb
|
67
82
|
- app/controllers/concerns/glib/analytics/funnel.rb
|
68
83
|
- app/controllers/concerns/glib/auth/policy.rb
|
69
84
|
- app/controllers/concerns/glib/json/dynamic_text.rb
|
@@ -157,6 +172,7 @@ files:
|
|
157
172
|
- app/views/json_ui/garage/lists/index.json.jbuilder
|
158
173
|
- app/views/json_ui/garage/lists/reordering.json.jbuilder
|
159
174
|
- app/views/json_ui/garage/lists/templating.json.jbuilder
|
175
|
+
- app/views/json_ui/garage/notifications/action_cable.json.jbuilder
|
160
176
|
- app/views/json_ui/garage/notifications/android_post.json.jbuilder
|
161
177
|
- app/views/json_ui/garage/notifications/index.json.jbuilder
|
162
178
|
- app/views/json_ui/garage/notifications/web_socket.json.jbuilder
|
@@ -253,8 +269,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
253
269
|
- !ruby/object:Gem::Version
|
254
270
|
version: '0'
|
255
271
|
requirements: []
|
256
|
-
|
257
|
-
rubygems_version: 2.7.6
|
272
|
+
rubygems_version: 3.1.4
|
258
273
|
signing_key:
|
259
274
|
specification_version: 4
|
260
275
|
summary: ''
|