Use _request data directly as rowData
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Danny Bessems 2022-02-14 13:40:44 +01:00
parent 51a4f68ce1
commit dcdb6d5fb9
2 changed files with 25 additions and 13 deletions

View File

@ -3,7 +3,18 @@ const fastify = require('fastify')({ logger: true })
// Declare a route
fastify.get('/', async (request, reply) => {
return { hello: 'world' }
return { data: [
{
component: 'VI_IT_VIRTUALIZATION',
version: '2.4.0',
os: 'vSphere 7.0U3a'
},
{
component: 'VI_IT_SRV_LIN_UBUNTU',
version: '1.3.0',
os: 'Ubuntu 18.04 LTS'
}
] }
})
// Run the server!

View File

@ -45,18 +45,19 @@ areas:
height: 500
properties:
rowData:
- component: VI_IT_VIRTUALIZATION
version: 2.4.0
os: vSphere 7.0U3a
- component: VI_IT_SRV_LIN_UBUNTU
version: 1.3.0
os: Ubuntu 18.04 LTS
- component: VI_IT_SRV_WIN
version: 3.9.1
os: Windows Server 2019 Enterprise
- component: VI_IT_CLT_WIN
version: 3.6.0
os: Windows 10 IoT Enterprise
_request: all_components.data
# - component: VI_IT_VIRTUALIZATION
# version: 2.4.0
# os: vSphere 7.0U3a
# - component: VI_IT_SRV_LIN_UBUNTU
# version: 1.3.0
# os: Ubuntu 18.04 LTS
# - component: VI_IT_SRV_WIN
# version: 3.9.1
# os: Windows Server 2019 Enterprise
# - component: VI_IT_CLT_WIN
# version: 3.6.0
# os: Windows 10 IoT Enterprise
defaultColDef:
sortable: false
resizable: false