glib-web 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,93 +2,121 @@ json.title 'Panels'
2
2
 
3
3
  render "#{@path_prefix}/nav_menu", json: json
4
4
 
5
- json_body_with_scroll json do
6
- json.child! do
7
- json.view 'h1-v1'
8
- json.text 'Vertical Panel'
9
- end
10
- json.child! do
11
- json.view 'panels/vertical-v1'
12
- json.backgroundColor '#b3bac2'
13
- json.subviews do
14
- json.child! do
15
- json.view 'button-v1'
16
- json.text 'Button1'
17
- end
5
+ json_ui_page json do |page|
6
+ page.scroll childViews: ->(scroll) do
7
+ scroll.h1 text: 'Vertical Panel'
8
+ scroll.panels_vertical backgroundColor: '#b3bac2', childViews: ->(panel) do
9
+ panel.button text: 'Button1'
10
+ panel.button text: 'Button2', width: 200
11
+ panel.button text: 'Button3', width: 300
12
+ end
18
13
 
19
- json.child! do
20
- json.view 'button-v1'
21
- json.width 200
22
- json.text 'Button2'
23
- end
14
+ scroll.label text: "\n"
15
+ scroll.h1 text: 'Vertical Panel with equal filling'
16
+ scroll.panels_vertical backgroundColor: '#b3bac2', height: 300, distribution: 'fillEqually', childViews: ->(panel) do
17
+ panel.button text: 'Button1'
18
+ panel.button text: 'Button2'
19
+ panel.button text: 'Button3'
20
+ end
24
21
 
25
- json.child! do
26
- json.view 'button-v1'
27
- json.width 300
28
- json.text 'Button3'
29
- end
22
+ scroll.label text: "\n"
23
+ scroll.h1 text: 'Vertical Panel with equal spacing'
24
+ scroll.panels_vertical backgroundColor: '#b3bac2', height: 300, distribution: 'spaceEqually', childViews: ->(panel) do
25
+ panel.button text: 'Button1'
26
+ panel.button text: 'Button2'
27
+ panel.button text: 'Button3'
30
28
  end
31
- end
32
29
 
33
- json.child! do
34
- json.view 'label-v1'
35
- json.text "\n"
36
- end
37
- json.child! do
38
- json.view 'h1-v1'
39
- json.text 'Vertical Panel with equal filling'
40
30
  end
41
- json.child! do
42
- json.view 'panels/vertical-v1'
43
- json.backgroundColor '#b3bac2'
44
- json.distribution 'fillEqually'
45
- json.height 300
46
- json.subviews do
47
- json.child! do
48
- json.view 'button-v1'
49
- json.text 'Button1'
50
- end
31
+ end
51
32
 
52
- json.child! do
53
- json.view 'button-v1'
54
- json.text 'Button2'
55
- end
33
+ # json_body_with_scroll json do
34
+ # json.child! do
35
+ # json.view 'h1-v1'
36
+ # json.text 'Vertical Panel'
37
+ # end
38
+ # json.child! do
39
+ # json.view 'panels/vertical-v1'
40
+ # json.backgroundColor '#b3bac2'
41
+ # json.subviews do
42
+ # json.child! do
43
+ # json.view 'button-v1'
44
+ # json.text 'Button1'
45
+ # end
56
46
 
57
- json.child! do
58
- json.view 'button-v1'
59
- json.text 'Button3'
60
- end
61
- end
62
- end
47
+ # json.child! do
48
+ # json.view 'button-v1'
49
+ # json.width 200
50
+ # json.text 'Button2'
51
+ # end
63
52
 
64
- json.child! do
65
- json.view 'label-v1'
66
- json.text "\n"
67
- end
68
- json.child! do
69
- json.view 'h1-v1'
70
- json.text 'Vertical Panel with equal spacing'
71
- end
72
- json.child! do
73
- json.view 'panels/vertical-v1'
74
- json.backgroundColor '#b3bac2'
75
- json.distribution 'spaceEqually'
76
- json.height 300
77
- json.subviews do
78
- json.child! do
79
- json.view 'button-v1'
80
- json.text 'Button1'
81
- end
53
+ # json.child! do
54
+ # json.view 'button-v1'
55
+ # json.width 300
56
+ # json.text 'Button3'
57
+ # end
58
+ # end
59
+ # end
82
60
 
83
- json.child! do
84
- json.view 'button-v1'
85
- json.text 'Button2'
86
- end
61
+ # json.child! do
62
+ # json.view 'label-v1'
63
+ # json.text "\n"
64
+ # end
65
+ # json.child! do
66
+ # json.view 'h1-v1'
67
+ # json.text 'Vertical Panel with equal filling'
68
+ # end
69
+ # json.child! do
70
+ # json.view 'panels/vertical-v1'
71
+ # json.backgroundColor '#b3bac2'
72
+ # json.distribution 'fillEqually'
73
+ # json.height 300
74
+ # json.subviews do
75
+ # json.child! do
76
+ # json.view 'button-v1'
77
+ # json.text 'Button1'
78
+ # end
87
79
 
88
- json.child! do
89
- json.view 'button-v1'
90
- json.text 'Button3'
91
- end
92
- end
93
- end
94
- end
80
+ # json.child! do
81
+ # json.view 'button-v1'
82
+ # json.text 'Button2'
83
+ # end
84
+
85
+ # json.child! do
86
+ # json.view 'button-v1'
87
+ # json.text 'Button3'
88
+ # end
89
+ # end
90
+ # end
91
+
92
+ # json.child! do
93
+ # json.view 'label-v1'
94
+ # json.text "\n"
95
+ # end
96
+ # json.child! do
97
+ # json.view 'h1-v1'
98
+ # json.text 'Vertical Panel with equal spacing'
99
+ # end
100
+ # json.child! do
101
+ # json.view 'panels/vertical-v1'
102
+ # json.backgroundColor '#b3bac2'
103
+ # json.distribution 'spaceEqually'
104
+ # json.height 300
105
+ # json.subviews do
106
+ # json.child! do
107
+ # json.view 'button-v1'
108
+ # json.text 'Button1'
109
+ # end
110
+
111
+ # json.child! do
112
+ # json.view 'button-v1'
113
+ # json.text 'Button2'
114
+ # end
115
+
116
+ # json.child! do
117
+ # json.view 'button-v1'
118
+ # json.text 'Button3'
119
+ # end
120
+ # end
121
+ # end
122
+ # 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.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
@@ -44,6 +44,8 @@ files:
44
44
  - app/helpers/glib/json_ui/response_helper.rb
45
45
  - app/helpers/glib/json_ui/table_builders.rb
46
46
  - app/helpers/glib/json_ui/view_builder.rb
47
+ - app/helpers/glib/json_ui/view_builder/fields.rb
48
+ - app/helpers/glib/json_ui/view_builder/panels.rb
47
49
  - app/views/app/views/json_ui/vue/renderer.html.erb
48
50
  - app/views/json_ui/garage/_nav_menu.json.jbuilder
49
51
  - app/views/json_ui/garage/actions/index.json.jbuilder