Compare commits

..

1 Commits

Author SHA1 Message Date
Serghei Mihai 28f48f4ed4 wscalls: preview unflattened payload (#66916)
gitea/wcs/pipeline/head This commit looks good Details
2024-04-15 10:24:49 +02:00
2 changed files with 5 additions and 4 deletions

View File

@ -1485,9 +1485,10 @@ class ApiDirectory(Directory):
else:
# check if it's empty string, a template with text around or just text
if not o or re.sub('^({[{|%]).+([%|}]})$', '', o):
# and put double quotes
o = '"%s"' % o
html += htmltext('<span class="payload-preview--value">%s</span>' % o)
# and add double quotes
html += htmltext('<span class="payload-preview--value">"%s"</span>' % o)
else:
html += htmltext('<span class="payload-preview--template-value">%s</span>' % o)
# last element doesn't need separator
if not last_element:
html += htmltext('<span class="payload-preview--item-separator">,</span>')

View File

@ -3249,7 +3249,7 @@ div.dataview.compact-dataview {
font-family: monospace;
line-height: 150%;
}
&--value {
&--template-value {
background: #ffc;
}
&--obj {