From c2357484e4f81006e1fbefaa329d465f811bc9ba Mon Sep 17 00:00:00 2001 From: djpbessems Date: Mon, 14 Feb 2022 13:56:37 +0100 Subject: [PATCH] Move _log to markdown block;Try more random variants --- Fastify/server.js | 4 ++-- Lowdefy/stage.yaml | 17 +++++++++++------ 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/Fastify/server.js b/Fastify/server.js index bfad7b7..f36e194 100644 --- a/Fastify/server.js +++ b/Fastify/server.js @@ -3,7 +3,7 @@ const fastify = require('fastify')({ logger: true }) // Declare a route fastify.get('/', async (request, reply) => { - return [ + return { data: [ { component: 'VI_IT_VIRTUALIZATION', version: '2.4.0', @@ -14,7 +14,7 @@ fastify.get('/', async (request, reply) => { version: '1.3.0', os: 'Ubuntu 18.04 LTS' } - ] + ] } }) // Run the server! diff --git a/Lowdefy/stage.yaml b/Lowdefy/stage.yaml index 77db928..c0d90af 100644 --- a/Lowdefy/stage.yaml +++ b/Lowdefy/stage.yaml @@ -19,10 +19,7 @@ events: type: setState params: all_components: - _request: all_components.data - -_log: - _request: retrieve_components + _request: all_components layout: contentJustify: center @@ -81,10 +78,18 @@ areas: - id: rest_data - type: Box + type: Markdown properties: content: - _state: all_components + _string.concat: + - | + ```yaml + - _yaml.stringify: + - _log: + _request: all_components + - | + ``` + - id: bottomrow type: Box layout: