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.
- checksums.yaml +4 -4
- data/app/helpers/glib/json_ui/abstract_builder.rb +7 -0
- data/app/helpers/glib/json_ui/json_ui_helper.rb +3 -3
- data/app/helpers/glib/json_ui/list_builders.rb +1 -1
- data/app/helpers/glib/json_ui/page_helper.rb +8 -5
- data/app/helpers/glib/json_ui/view_builder/fields.rb +63 -0
- data/app/helpers/glib/json_ui/view_builder/panels.rb +117 -0
- data/app/helpers/glib/json_ui/view_builder.rb +0 -107
- data/app/views/json_ui/garage/actions/index.json.jbuilder +0 -10
- data/app/views/json_ui/garage/home/index.json.jbuilder +74 -48
- data/app/views/json_ui/garage/panels/horizontal.json.jbuilder +164 -192
- data/app/views/json_ui/garage/panels/index.json.jbuilder +41 -24
- data/app/views/json_ui/garage/panels/split.json.jbuilder +99 -330
- data/app/views/json_ui/garage/panels/vertical.json.jbuilder +108 -80
- metadata +3 -1
@@ -2,93 +2,121 @@ json.title 'Panels'
|
|
2
2
|
|
3
3
|
render "#{@path_prefix}/nav_menu", json: json
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
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
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
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
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
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
|
-
|
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
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
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
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
end
|
47
|
+
# json.child! do
|
48
|
+
# json.view 'button-v1'
|
49
|
+
# json.width 200
|
50
|
+
# json.text 'Button2'
|
51
|
+
# end
|
63
52
|
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
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
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
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
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
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.
|
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
|