glib-web 0.5.53 → 0.5.54
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 +0 -0
- data/app/controllers/concerns/glib/json/traversal.rb +0 -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 +0 -0
- data/app/helpers/glib/json_ui/action_builder/windows.rb +5 -0
- data/app/helpers/glib/json_ui/list_builders.rb +0 -0
- data/app/helpers/glib/json_ui/page_helper.rb +0 -0
- data/app/helpers/glib/json_ui/response_helper.rb +0 -0
- data/app/helpers/glib/json_ui/view_builder.rb +0 -0
- data/app/helpers/glib/json_ui/view_builder/banners.rb +0 -0
- data/app/helpers/glib/json_ui/view_builder/fields.rb +6 -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/index.json.jbuilder +1 -2
- data/app/views/json_ui/garage/forms/pickers.json.jbuilder +64 -8
- 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/submission_flow.json.jbuilder +4 -4
- data/app/views/json_ui/garage/forms/submission_flow_post.json.jbuilder +6 -4
- data/app/views/json_ui/garage/home/index.json.jbuilder +14 -10
- 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 +0 -0
- data/app/views/json_ui/garage/notifications/action_cable.json.jbuilder +2 -2
- data/app/views/json_ui/garage/notifications/android_post.json.jbuilder +0 -0
- data/app/views/json_ui/garage/views/maps.json.jbuilder +0 -0
- data/lib/glib/json_crawler/router.rb +0 -0
- data/lib/glib/test_helpers.rb +0 -0
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b12f4b3c8c68a3186c98a87a2b5a50bdc6720d04926b042c48c21116eae6062f
|
4
|
+
data.tar.gz: 2e2423b34dc9ad34a0c8e38cbf7c5178eb71e861062dbe7dd4286f39e1a002d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e54bfdd8bf13af51abbc7b81067acfdf2efda44cbc6c277b361e6de797898e8f597f34de810da521cfe589e7832970a23f1a7f5adcd8e5946609245f43914bc
|
7
|
+
data.tar.gz: 1fc0990f8ac4287cb011b7e818b3c470a4974aed979d8211277cb61557cece79c860e7c2ac98258cd42855ce1699cd82dc981021f3ae1362f12cb446a163aed3
|
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
|
@@ -16,7 +16,7 @@ page.list sections: [
|
|
16
16
|
template.thumbnail title: "Submission Flow (timestamp: #{DateTime.current.to_i})", onClick: ->(action) do
|
17
17
|
action.windows_open url: json_ui_garage_url(path: 'forms/submission_flow')
|
18
18
|
end
|
19
|
-
template.thumbnail title:
|
19
|
+
template.thumbnail title: 'Submission Indicator', onClick: ->(action) do
|
20
20
|
action.windows_open url: json_ui_garage_url(path: 'forms/submission_indicator')
|
21
21
|
end
|
22
22
|
template.thumbnail title: 'GET Request', onClick: ->(action) do
|
@@ -59,7 +59,6 @@ page.list sections: [
|
|
59
59
|
template.thumbnail title: 'Floating Submit', onClick: ->(action) do
|
60
60
|
action.windows_open url: json_ui_garage_url(path: 'forms/floating_submit')
|
61
61
|
end
|
62
|
-
|
63
62
|
end
|
64
63
|
end, ->(section) do
|
65
64
|
section.header padding: glib_json_padding_list, childViews: ->(header) do
|
@@ -3,7 +3,12 @@ json.title 'Forms'
|
|
3
3
|
page = json_ui_page json
|
4
4
|
render "#{@path_prefix}/nav_menu", json: json, page: page
|
5
5
|
|
6
|
-
page.form
|
6
|
+
page.form \
|
7
|
+
url: json_ui_garage_url(path: 'forms/generic_post'),
|
8
|
+
method: 'post',
|
9
|
+
padding: glib_json_padding_body,
|
10
|
+
childViews: ->(form) do
|
11
|
+
|
7
12
|
form.h2 text: 'Radio Group'
|
8
13
|
form.spacer height: 6
|
9
14
|
form.h4 text: 'Gender'
|
@@ -15,15 +20,40 @@ page.form url: json_ui_garage_url(path: 'forms/generic_post'), method: 'post', p
|
|
15
20
|
|
16
21
|
form.spacer height: 20
|
17
22
|
form.h2 text: 'Single Checkbox'
|
18
|
-
form.fields_check
|
19
|
-
|
20
|
-
|
23
|
+
form.fields_check \
|
24
|
+
name: 'user[age_range]',
|
25
|
+
value: '16+',
|
26
|
+
checkValue: '16+',
|
27
|
+
uncheckValue: '0-16',
|
28
|
+
label: 'I am over 16 (has default value)'
|
29
|
+
form.fields_check \
|
30
|
+
name: 'user[employer]',
|
31
|
+
checkValue: 1,
|
32
|
+
label: 'I am an employer (no default value)'
|
33
|
+
form.fields_check \
|
34
|
+
name: 'user[enabled]',
|
35
|
+
checkValue: true,
|
36
|
+
label: 'Enable',
|
37
|
+
styleClass: 'switch',
|
38
|
+
value: 'true'
|
21
39
|
|
22
40
|
form.spacer height: 20
|
23
41
|
form.h2 text: 'Date/Time'
|
24
42
|
form.spacer height: 6
|
25
|
-
form.fields_date
|
26
|
-
|
43
|
+
form.fields_date \
|
44
|
+
name: 'user[date]',
|
45
|
+
width: 'matchParent',
|
46
|
+
label: 'Date',
|
47
|
+
min: '2010-01-01',
|
48
|
+
max: '2012-01-01',
|
49
|
+
value: '2010-02-01'
|
50
|
+
form.fields_datetime \
|
51
|
+
name: 'user[date_time]',
|
52
|
+
width: 'matchParent',
|
53
|
+
label: 'Date Time',
|
54
|
+
min: '2018-06-09T00:00',
|
55
|
+
max: '2018-06-17T00:00',
|
56
|
+
value: '2018-06-15T19:30'
|
27
57
|
|
28
58
|
form.spacer height: 20
|
29
59
|
form.h2 text: 'Country'
|
@@ -34,13 +64,39 @@ page.form url: json_ui_garage_url(path: 'forms/generic_post'), method: 'post', p
|
|
34
64
|
form.spacer height: 20
|
35
65
|
form.h2 text: 'Map'
|
36
66
|
form.spacer height: 6
|
37
|
-
form.fields_location
|
67
|
+
form.fields_location \
|
68
|
+
name: 'user[address]',
|
69
|
+
width: 'matchParent',
|
70
|
+
label: 'Type an address',
|
71
|
+
value: 'Sydney Harbour Bridge',
|
38
72
|
autocompleteOptions: { componentRestrictions: { country: 'au' }, types: ['(cities)'] },
|
39
73
|
latitudeField: { view: 'fields/text', name: 'user[latitude]', label: 'Lat', value: -33.8523063, readOnly: true },
|
40
74
|
longitudeField: { view: 'fields/text', name: 'user[longitude]', label: 'Long', value: 151.21078710000006, readOnly: true },
|
41
75
|
zoomField: { view: 'fields/text', name: 'user[zoom]', label: 'Zoom' }
|
42
76
|
|
43
77
|
form.spacer height: 20
|
44
|
-
form.
|
78
|
+
form.h2 text: 'Rating'
|
79
|
+
form.spacer height: 6
|
80
|
+
form.fields_rating \
|
81
|
+
name: 'user[rating_summary1]',
|
82
|
+
value: 1,
|
83
|
+
color: 'primary'
|
84
|
+
form.fields_rating \
|
85
|
+
name: 'user[rating_summary2]',
|
86
|
+
value: 1.5,
|
87
|
+
halfIncrements: true,
|
88
|
+
color: 'secondary'
|
89
|
+
form.fields_rating \
|
90
|
+
name: 'user[rating_summary3]',
|
91
|
+
value: 2,
|
92
|
+
color: 'ternary',
|
93
|
+
size: 35
|
94
|
+
form.fields_rating \
|
95
|
+
name: 'user[rating_summary4]',
|
96
|
+
value: 3,
|
97
|
+
readOnly: true,
|
98
|
+
size: 40
|
45
99
|
|
100
|
+
form.spacer height: 20
|
101
|
+
form.fields_submit text: 'Submit'
|
46
102
|
end
|
File without changes
|
File without changes
|
File without changes
|
@@ -7,10 +7,10 @@ json_ui_page json do |page|
|
|
7
7
|
form.fields_radioGroup name: 'user[flow]', childViews: ->(group) do
|
8
8
|
group.h3 text: 'Flow'
|
9
9
|
group.spacer height: 6
|
10
|
-
group.fields_radio value: '
|
11
|
-
group.fields_radio value: '
|
12
|
-
group.fields_radio value: 'close_alert', label: 'close+alert - useful for non-model form (e.g. contact us)
|
13
|
-
group.fields_radio value: 'alert_close', label: 'alert+close - useful for non-model form (e.g. contact us)
|
10
|
+
group.fields_radio value: 'open', label: 'open - useful for form create'
|
11
|
+
group.fields_radio value: 'close_with_reload', label: 'closeWithReload - useful for form update'
|
12
|
+
group.fields_radio value: 'close_alert', label: 'close+alert - useful for non-model form (e.g. contact us)'
|
13
|
+
group.fields_radio value: 'alert_close', label: 'alert+close - useful for non-model form (e.g. contact us)'
|
14
14
|
end
|
15
15
|
form.button text: 'Submit', onClick: ->(action) { action.forms_submit }
|
16
16
|
end
|
@@ -5,10 +5,12 @@ json_ui_response json do |action|
|
|
5
5
|
action.dialogs_alert message: 'Please enter all required information'
|
6
6
|
else
|
7
7
|
case flow
|
8
|
-
when '
|
9
|
-
action.windows_close onClose: ->(action) do
|
10
|
-
|
11
|
-
end
|
8
|
+
when 'close_with_reload'
|
9
|
+
# action.windows_close onClose: ->(action) do
|
10
|
+
# action.windows_reload
|
11
|
+
# end
|
12
|
+
|
13
|
+
action.windows_closeWithReload fallbackUrl: json_ui_garage_url(path: 'forms/index')
|
12
14
|
when 'close_alert'
|
13
15
|
action.windows_close onClose: ->(action) do
|
14
16
|
action.dialogs_alert message: 'Thanks for the submission!'
|
@@ -2,30 +2,34 @@ json.title 'Menu'
|
|
2
2
|
|
3
3
|
json_ui_page json do |page|
|
4
4
|
render "#{@path_prefix}/nav_menu", json: json, page: page, top_nav: true
|
5
|
-
|
5
|
+
|
6
6
|
page.list firstSection: ->(section) do
|
7
7
|
section.rows builder: ->(template) do
|
8
|
-
template.thumbnail title: 'Pages', onClick: ->(action) do
|
8
|
+
template.thumbnail title: 'Pages', onClick: ->(action) do
|
9
9
|
action.windows_open url: json_ui_garage_url(path: 'pages/index')
|
10
10
|
end
|
11
|
-
template.thumbnail title: '
|
11
|
+
template.thumbnail title: 'Panels', onClick: ->(action) do
|
12
|
+
action.windows_open url: json_ui_garage_url(path: 'panels/index')
|
13
|
+
end
|
14
|
+
template.thumbnail title: 'Lists', onClick: ->(action) do
|
12
15
|
action.windows_open url: json_ui_garage_url(path: 'lists/index')
|
13
16
|
end
|
14
|
-
template.thumbnail title: 'Forms', onClick: ->(action) do
|
17
|
+
template.thumbnail title: 'Forms', onClick: ->(action) do
|
15
18
|
action.windows_open url: json_ui_garage_url(path: 'forms/index')
|
16
19
|
end
|
17
|
-
template.thumbnail title: '
|
18
|
-
action.windows_open url: json_ui_garage_url(path: 'panels/index')
|
19
|
-
end
|
20
|
-
template.thumbnail title: 'Views', onClick: ->(action) do
|
20
|
+
template.thumbnail title: 'Views', onClick: ->(action) do
|
21
21
|
action.windows_open url: json_ui_garage_url(path: 'views/index')
|
22
22
|
end
|
23
|
-
template.thumbnail title: 'Actions', onClick: ->(action) do
|
23
|
+
template.thumbnail title: 'Actions', onClick: ->(action) do
|
24
24
|
action.windows_open url: json_ui_garage_url(path: 'actions/index')
|
25
25
|
end
|
26
|
-
template.thumbnail title: 'Tables (Web Only)', onClick: ->(action) do
|
26
|
+
template.thumbnail title: 'Tables (Web Only)', onClick: ->(action) do
|
27
27
|
action.windows_open url: json_ui_garage_url(path: 'tables/index')
|
28
28
|
end
|
29
|
+
# Disabled to prevent errors in crawler tests due to external dependencies
|
30
|
+
# template.thumbnail title: 'Services', onClick: ->(action) do
|
31
|
+
# action.windows_open url: json_ui_garage_url(path: 'services/index')
|
32
|
+
# end
|
29
33
|
end
|
30
34
|
|
31
35
|
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -43,7 +43,7 @@ page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
|
|
43
43
|
scroll.panels_split width: 'matchParent', content: ->(content) do
|
44
44
|
content.left childViews: ->(left) do
|
45
45
|
left.fields_textarea \
|
46
|
-
width:
|
46
|
+
width: 440,
|
47
47
|
label: "Messages from #{first_user.full_name}",
|
48
48
|
onTypeStart: lambda { |action|
|
49
49
|
action.cables_push \
|
@@ -69,7 +69,7 @@ page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
|
|
69
69
|
end
|
70
70
|
content.right childViews: ->(right) do
|
71
71
|
right.fields_textarea \
|
72
|
-
width:
|
72
|
+
width: 440,
|
73
73
|
label: "Messages from #{second_user.full_name}",
|
74
74
|
onTypeStart: lambda { |action|
|
75
75
|
action.cables_push \
|
File without changes
|
File without changes
|
File without changes
|
data/lib/glib/test_helpers.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: 0.5.
|
4
|
+
version: 0.5.54
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
@@ -263,8 +263,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
263
263
|
- !ruby/object:Gem::Version
|
264
264
|
version: '0'
|
265
265
|
requirements: []
|
266
|
-
|
267
|
-
rubygems_version: 2.7.6
|
266
|
+
rubygems_version: 3.1.4
|
268
267
|
signing_key:
|
269
268
|
specification_version: 4
|
270
269
|
summary: ''
|