Move _log to markdown block;Try more random variants
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
7fa6866a1d
commit
c2357484e4
@ -3,7 +3,7 @@ const fastify = require('fastify')({ logger: true })
|
|||||||
|
|
||||||
// Declare a route
|
// Declare a route
|
||||||
fastify.get('/', async (request, reply) => {
|
fastify.get('/', async (request, reply) => {
|
||||||
return [
|
return { data: [
|
||||||
{
|
{
|
||||||
component: 'VI_IT_VIRTUALIZATION',
|
component: 'VI_IT_VIRTUALIZATION',
|
||||||
version: '2.4.0',
|
version: '2.4.0',
|
||||||
@ -14,7 +14,7 @@ fastify.get('/', async (request, reply) => {
|
|||||||
version: '1.3.0',
|
version: '1.3.0',
|
||||||
os: 'Ubuntu 18.04 LTS'
|
os: 'Ubuntu 18.04 LTS'
|
||||||
}
|
}
|
||||||
]
|
] }
|
||||||
})
|
})
|
||||||
|
|
||||||
// Run the server!
|
// Run the server!
|
||||||
|
@ -19,10 +19,7 @@ events:
|
|||||||
type: setState
|
type: setState
|
||||||
params:
|
params:
|
||||||
all_components:
|
all_components:
|
||||||
_request: all_components.data
|
_request: all_components
|
||||||
|
|
||||||
_log:
|
|
||||||
_request: retrieve_components
|
|
||||||
|
|
||||||
layout:
|
layout:
|
||||||
contentJustify: center
|
contentJustify: center
|
||||||
@ -81,10 +78,18 @@ areas:
|
|||||||
|
|
||||||
|
|
||||||
- id: rest_data
|
- id: rest_data
|
||||||
type: Box
|
type: Markdown
|
||||||
properties:
|
properties:
|
||||||
content:
|
content:
|
||||||
_state: all_components
|
_string.concat:
|
||||||
|
- |
|
||||||
|
```yaml
|
||||||
|
- _yaml.stringify:
|
||||||
|
- _log:
|
||||||
|
_request: all_components
|
||||||
|
- |
|
||||||
|
```
|
||||||
|
|
||||||
- id: bottomrow
|
- id: bottomrow
|
||||||
type: Box
|
type: Box
|
||||||
layout:
|
layout:
|
||||||
|
Reference in New Issue
Block a user