merge newui branch

This commit is contained in:
Gani Georgiev
2026-04-18 16:50:39 +03:00
parent 58f605e90c
commit 4c44044c0c
804 changed files with 58660 additions and 56663 deletions
+25
View File
@@ -0,0 +1,25 @@
export function fieldsInfo() {
return t.div(
{ className: "api-fields-info" },
t.p(
null,
"Comma separated string of the fields to return in the JSON response (by default returns all fields). For example:",
),
app.components.codeBlock({
value:
`// return all root level fields and only\n// "relField.someField" from expand\n?fields=*,expand.relField.someField`,
}),
t.p(null, "Use ", t.code(null, "*"), " to target all keys from the specific depth level."),
t.p(null, "In addition, the following field modifiers are also supported:"),
t.ul(
null,
t.li(
null,
t.code(null, ":excerpt(maxLength, withEllipsis?)"),
t.br(),
"Returns a short plain text version of the field string value. Ex.: ",
t.code(null, "?fields=*,someTextField:excerpt(200,true)"),
),
),
);
}