examples/media-stats-ui: fix Transform source key; add file_name column
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I4c741e4b36708f2078fed8154d7341de6a6a6964
This commit is contained in:
parent
81d1695e11
commit
e1351e8881
1 changed files with 7 additions and 7 deletions
|
|
@ -64,6 +64,10 @@
|
||||||
"filterable": true,
|
"filterable": true,
|
||||||
"page_size": 10,
|
"page_size": 10,
|
||||||
"columns": [
|
"columns": [
|
||||||
|
{
|
||||||
|
"key": "file_name",
|
||||||
|
"header": "Filename"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"key": "title",
|
"key": "title",
|
||||||
"header": "Title"
|
"header": "Title"
|
||||||
|
|
@ -120,13 +124,9 @@
|
||||||
"path": "/api/v1/media"
|
"path": "/api/v1/media"
|
||||||
},
|
},
|
||||||
"type-breakdown": {
|
"type-breakdown": {
|
||||||
"type": "static",
|
"type": "transform",
|
||||||
"value": [
|
"source": "stats",
|
||||||
{ "type": "Audio", "count": 0 },
|
"expression": "stats.media_by_type"
|
||||||
{ "type": "Video", "count": 0 },
|
|
||||||
{ "type": "Image", "count": 0 },
|
|
||||||
{ "type": "Document", "count": 0 }
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue