[core] map image type to string until we have a dedicated implementation
This commit is contained in:
@@ -72,6 +72,7 @@ global.propertyType = function propertyType(property) {
|
||||
case 'formatted':
|
||||
return 'Formatted';
|
||||
case 'string':
|
||||
case 'image': // TODO: replace once we implement image expressions
|
||||
return 'String';
|
||||
case 'enum':
|
||||
return 'String';
|
||||
@@ -93,6 +94,7 @@ global.propertyJavaType = function propertyType(property) {
|
||||
case 'formatted':
|
||||
return 'Formatted';
|
||||
case 'string':
|
||||
case 'image': // TODO: replace once we implement image expressions
|
||||
return 'String';
|
||||
case 'enum':
|
||||
return 'String';
|
||||
@@ -141,6 +143,7 @@ global.propertyNativeType = function (property) {
|
||||
return 'float';
|
||||
case 'formatted':
|
||||
case 'string':
|
||||
case 'image': // TODO: replace once we implement image expressions
|
||||
return 'std::string';
|
||||
case 'enum':
|
||||
if(property['light-property']){
|
||||
@@ -177,6 +180,7 @@ global.defaultExpressionJava = function(property) {
|
||||
case 'formatted':
|
||||
return 'format';
|
||||
case 'string':
|
||||
case 'image': // TODO: replace once we implement image expressions
|
||||
return "string";
|
||||
case 'enum':
|
||||
return "string";
|
||||
@@ -203,6 +207,7 @@ global.defaultValueJava = function(property) {
|
||||
case 'formatted':
|
||||
return 'new Formatted(new FormattedSection("default"))'
|
||||
case 'string':
|
||||
case 'image': // TODO: replace once we implement image expressions
|
||||
return '"' + property['default'] + '"';
|
||||
case 'enum':
|
||||
return snakeCaseUpper(property.name) + "_" + snakeCaseUpper(Object.keys(property.values)[0]);
|
||||
@@ -335,6 +340,7 @@ global.evaluatedType = function (property) {
|
||||
return 'float';
|
||||
case 'formatted':
|
||||
case 'string':
|
||||
case 'image': // TODO: replace once we implement image expressions
|
||||
return 'std::string';
|
||||
case 'enum':
|
||||
return (isLightProperty(property) ? 'Light' : '') + `${camelize(property.name)}Type`;
|
||||
|
||||
Reference in New Issue
Block a user