|
|
@ -12,7 +12,7 @@ function formatData (key, data) { |
|
|
|
var style = fontColor(data) |
|
|
|
var style = fontColor(data) |
|
|
|
var keyStyle = data.isProperty ? 'color:#847979' : '' |
|
|
|
var keyStyle = data.isProperty ? 'color:#847979' : '' |
|
|
|
if (data.type === 'string') { |
|
|
|
if (data.type === 'string') { |
|
|
|
data.self = '"' + data.self + '"' |
|
|
|
data.self = JSON.stringify(data.self) |
|
|
|
} |
|
|
|
} |
|
|
|
return yo`<label style=${keyStyle}>${key}: <label style=${style}>${data.self}</label><label style='font-style:italic'> ${data.isProperty ? '' : data.type}</label></label>` |
|
|
|
return yo`<label style=${keyStyle}>${key}: <label style=${style}>${data.self}</label><label style='font-style:italic'> ${data.isProperty ? '' : data.type}</label></label>` |
|
|
|
} |
|
|
|
} |
|
|
|