glib-web 0.18.0 → 1.0.0
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/action_builder/dialogs.rb +6 -0
- data/app/helpers/glib/json_ui/page_helper.rb +2 -2
- data/app/helpers/glib/json_ui/view_builder/fields.rb +2 -0
- data/app/views/json_ui/garage/forms/rich_text.json.jbuilder +4 -3
- data/lib/glib/json_crawler/action_crawlers/nav_initiate.rb +1 -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: 80ae3a9683db62d27d22bf05176090b8af70a0782c4d2a0153cb50101fa5adff
|
4
|
+
data.tar.gz: 883174575ec4cbea3a71ff9c78115eefea6b69fee4a8f436788e276ebef7abc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f1e13ac700cea79e5e3d2935fb63ecd4779a3b1cb88be841afc29f055dfa60461146ef2f6f54c96e15483dcc92a3b08bf0bf5a44b9dbfca7634ec38513499bd
|
7
|
+
data.tar.gz: 4355e0719ae9f94d59157012d5750b352e81ede14dc5240d22b613dde3e742f91e296c83c6d4f19bb664253a778c4278794f70c9b1bcbfd68e9f221e9725dec7
|
@@ -29,6 +29,12 @@ class Glib::JsonUi::ActionBuilder
|
|
29
29
|
string :fullscreen # mobile, always
|
30
30
|
length :width
|
31
31
|
|
32
|
+
# def initialize(json, page)
|
33
|
+
# @json = json
|
34
|
+
# page.current_form = nil
|
35
|
+
# @page = page
|
36
|
+
# end
|
37
|
+
|
32
38
|
# Future plan
|
33
39
|
# panels_builder :content, :body, :footer
|
34
40
|
end
|
@@ -113,8 +113,8 @@ module Glib
|
|
113
113
|
json.set! name, value
|
114
114
|
end
|
115
115
|
end
|
116
|
-
if options[:
|
117
|
-
json.set!(:
|
116
|
+
if options[:body]
|
117
|
+
json.set!(:body) { options[:body].call(sview_builder) }
|
118
118
|
end
|
119
119
|
options[:content]&.call drawer_content_builder
|
120
120
|
end
|
@@ -20,13 +20,14 @@ page.form url: json_ui_garage_url(path: 'forms/basic_post'), method: 'post', pad
|
|
20
20
|
json.width 'matchParent'
|
21
21
|
json.label 'Content'
|
22
22
|
json.name 'user[bio]'
|
23
|
-
json.value
|
23
|
+
json.value "<p>Test <img src='{{image1}}'</p>"
|
24
|
+
json.produce 'html'
|
24
25
|
|
25
26
|
json.images do
|
26
27
|
json.child! do
|
27
|
-
json.value
|
28
|
+
json.value 'eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBFQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--193dc0d939b9558fc4973fafbba91d989cbb04d4'
|
28
29
|
# json.fileTitle "hita i hanom hg.jpg"
|
29
|
-
json.fileUrl
|
30
|
+
json.fileUrl 'https://imageserver-demo.herokuapp.com/image/itinerarybuilder-demo/o6CKzNt67PWnkPdUEnWMt7pr?h=100&w=100'
|
30
31
|
end
|
31
32
|
end
|
32
33
|
|
@@ -8,7 +8,7 @@ module Glib
|
|
8
8
|
if (json = (@http.get args['url'], action, args.except('url'))) && (left_drawer = json['leftDrawer'])
|
9
9
|
crawl left_drawer['header']&.[]('childViews')
|
10
10
|
crawl left_drawer['rows']
|
11
|
-
crawl left_drawer['
|
11
|
+
crawl left_drawer['body']&.[]('childViews')
|
12
12
|
end
|
13
13
|
|
14
14
|
if (on_load = (args.fetch('onLoad', nil)))
|