forest_admin_agent 1.0.0.pre.beta.73 → 1.0.0.pre.beta.74
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9aee10c337bad1d302c476f26b2eed886e9cf9cb4986b76a1c294aa512fda2d6
|
4
|
+
data.tar.gz: 276927c1894138999b709b329ca9fc0c00c05bec0312aae0d9f375734f84ce49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7de6d0f067b52944852326a2ffd25f457dbcdb89a7096fa95e7b03b5a3ceba689a3b87a58dcf9480824082c98b409b8b06c085d87132db002d9ec23db8e570e0
|
7
|
+
data.tar.gz: 16f955505689adbaebc0c92762b287cc559ee099e1db6a325f553bbfed89faaee0b8b2f526b769fa96e892fb78e624172cb6928658197bac8b8e8fb1209cbd75
|
@@ -65,23 +65,26 @@ module ForestAdminAgent
|
|
65
65
|
end
|
66
66
|
|
67
67
|
def self.build_layout_schema(field)
|
68
|
-
|
68
|
+
field = field.to_h
|
69
|
+
field.delete(:type)
|
70
|
+
|
71
|
+
if field[:component] == 'Row'
|
69
72
|
return {
|
70
|
-
**field
|
71
|
-
component: field
|
72
|
-
fields: field
|
73
|
+
**field,
|
74
|
+
component: field[:component].camelize(:lower),
|
75
|
+
fields: field[:fields].map { |f| build_layout_schema(f) }
|
73
76
|
}
|
74
|
-
elsif field
|
77
|
+
elsif field[:component] == 'Page'
|
75
78
|
return {
|
76
|
-
**field
|
77
|
-
component: field
|
78
|
-
elements: field
|
79
|
+
**field,
|
80
|
+
component: field[:component].camelize(:lower),
|
81
|
+
elements: field[:elements].map do |f|
|
79
82
|
build_layout_schema(f)
|
80
83
|
end
|
81
84
|
}
|
82
85
|
end
|
83
86
|
|
84
|
-
{ **field
|
87
|
+
{ **field, component: field[:component].camelize(:lower) }
|
85
88
|
end
|
86
89
|
|
87
90
|
def self.build_field_schema(datasource, field)
|