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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7ea3b32fee4311cabc939b7d63eab32160af8cf49d198e545d7e0788e0ab6b0d
4
- data.tar.gz: f140508641634224a36c4d2d16faab221c457457bb9f3c5d43a81217ff491758
3
+ metadata.gz: 80ae3a9683db62d27d22bf05176090b8af70a0782c4d2a0153cb50101fa5adff
4
+ data.tar.gz: 883174575ec4cbea3a71ff9c78115eefea6b69fee4a8f436788e276ebef7abc4
5
5
  SHA512:
6
- metadata.gz: d030ad0dd5d45d4a2cbb588643704b3584065406c10b3de2cf1b98738550bf45fcc69fb3856af44085e0032e2b5b283af1256fc0f8f969d6057aff735f2c3f73
7
- data.tar.gz: 175f050a7acca85506161613f19aa41933334e5a8a1bf001029d98c3a33ad02682cadfa3a6f650bb2dcf06c87ddce3828b0779d7b05e12eb616564da87407b9f
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[:custom]
117
- json.set!(:custom) { options[:custom].call(sview_builder) }
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
@@ -142,6 +142,8 @@ class Glib::JsonUi::ViewBuilder
142
142
 
143
143
  class RichText < Text
144
144
  array :images
145
+ hash :imageUploader
146
+ string :produce # html or markdown
145
147
  end
146
148
 
147
149
  class Country < AbstractField
@@ -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 '<p>Test {{image1}}</p>'
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 "eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBFQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--193dc0d939b9558fc4973fafbba91d989cbb04d4"
28
+ json.value 'eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBFQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--193dc0d939b9558fc4973fafbba91d989cbb04d4'
28
29
  # json.fileTitle "hita i hanom hg.jpg"
29
- json.fileUrl "https://imageserver-demo.herokuapp.com/image/itinerarybuilder-demo/o6CKzNt67PWnkPdUEnWMt7pr?h=100&w=100"
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['custom']&.[]('childViews')
11
+ crawl left_drawer['body']&.[]('childViews')
12
12
  end
13
13
 
14
14
  if (on_load = (args.fetch('onLoad', nil)))
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.18.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''