glib-web 0.5.34 → 0.5.35
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/glib/json_ui/page_helper.rb +5 -5
- data/app/helpers/glib/json_ui/view_builder/fields.rb +1 -0
- data/app/views/json_ui/garage/forms/pickers.json.jbuilder +1 -0
- data/app/views/json_ui/garage/pages/nav_buttons.json.jbuilder +1 -1
- data/lib/glib/json_crawler/action_crawlers/windows_open.rb +1 -1
- data/lib/glib/json_crawler/router.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ab027b2e06860edd4c9b20cee7936d370ef8ba92ebd15379ae6dbd8c20395de
|
4
|
+
data.tar.gz: 3d55b83d631e5c01e915cb4be80515c47e82314d8eb8ad38eb29d3e8e42785c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 620795d7d88023f7f03a44991758a90a4fe7a3680ab09bbe4f37c3f6fc3cfdd24dba4bf09ba1ff134fdcf48325c51da8c142f8b72eb3cb35514717bb1c695c62
|
7
|
+
data.tar.gz: 51bd223aa3543323b3c2215a5a0258a25d3f52009e8e0c1b6b1865101e5180f3f43dff034016d974da39a45702e00e38cb34b4e10edce8afeed3f45c4e088e1e
|
@@ -90,11 +90,11 @@ module Glib
|
|
90
90
|
builder
|
91
91
|
end
|
92
92
|
|
93
|
-
def rightNavButtons
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
end
|
93
|
+
# def rightNavButtons
|
94
|
+
# json.rightNavButtons do
|
95
|
+
# yield @menu_builder
|
96
|
+
# end
|
97
|
+
# end
|
98
98
|
|
99
99
|
def template(template)
|
100
100
|
json.template template
|
@@ -35,6 +35,7 @@ json_ui_page json do |page|
|
|
35
35
|
form.h2 text: 'Map'
|
36
36
|
form.spacer height: 6
|
37
37
|
form.fields_location name: 'user[address]', width: 'matchParent', label: 'Type an address', value: 'Sydney Harbour Bridge',
|
38
|
+
autocompleteOptions: { componentRestrictions: { country: 'au' }, types: ['(cities)'] },
|
38
39
|
latitudeField: { view: 'fields/text', name: 'user[latitude]', label: 'Lat', value: -33.8523063, readOnly: true },
|
39
40
|
longitudeField: { view: 'fields/text', name: 'user[longitude]', label: 'Long', value: 151.21078710000006, readOnly: true },
|
40
41
|
zoomField: { view: 'fields/text', name: 'user[zoom]', label: 'Zoom' }
|
@@ -5,7 +5,7 @@ page = json_ui_page json
|
|
5
5
|
render "#{@path_prefix}/nav_menu", json: json, page: page
|
6
6
|
|
7
7
|
page.navBar backgroundColor: '#a8c4e3', color: '#ffffff', rightButtons: ->(menu) do
|
8
|
-
menu.button icon: 'search', onClick: ->(action) do
|
8
|
+
menu.button icon: 'search', text: 'Search', onClick: ->(action) do
|
9
9
|
action.dialogs_alert message: 'Perform some action'
|
10
10
|
end
|
11
11
|
menu.button icon: { name: 'star', badge: { text: '1', backgroundColor: '#ff0000' } }, onClick: ->(action) do
|
@@ -12,7 +12,7 @@ module Glib
|
|
12
12
|
crawl json['body']&.[]('childViews')
|
13
13
|
crawl json['footer']&.[]('childViews')
|
14
14
|
|
15
|
-
json['
|
15
|
+
json['rightButtons']&.each do |button|
|
16
16
|
if button['buttons'].present?
|
17
17
|
button['buttons'].each do |inner_button|
|
18
18
|
click inner_button
|