From d7a6a6f8037d63cc6dfdda699644b4d30f8d2fab Mon Sep 17 00:00:00 2001 From: proddy Date: Tue, 5 May 2026 21:55:13 +0200 Subject: [PATCH] formatting --- mock-api/restServer.ts | 38 +++++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/mock-api/restServer.ts b/mock-api/restServer.ts index f062fb3ff..fb9bed64a 100644 --- a/mock-api/restServer.ts +++ b/mock-api/restServer.ts @@ -301,10 +301,10 @@ function updateMask(entity: any, de: any, dd: any) { const old_custom_name = dd.nodes[dd_objIndex].cn; console.log( 'comparing names, old (' + - old_custom_name + - ') with new (' + - new_custom_name + - ')' + old_custom_name + + ') with new (' + + new_custom_name + + ')' ); if (old_custom_name !== new_custom_name) { changed = true; @@ -409,10 +409,14 @@ function upgradeImportantMessages(version: string) { // this is a version string like "3.9.0" // upgradeImportantMessageType_n = 2; // make it 2, for testing, meaning a major version upgrade upgradeImportantMessageType_n = 1; // make it 1, for testing, meaning a factory reset is required - } - console.log('upgradeImportantMessageType: version=' + version + ' type=' + upgradeImportantMessageType_n); + console.log( + 'upgradeImportantMessageType: version=' + + version + + ' type=' + + upgradeImportantMessageType_n + ); return { upgradeImportantMessageType: upgradeImportantMessageType_n }; } @@ -458,17 +462,17 @@ function get_versions() { console.log( 'getVersions: current=' + - THIS_VERSION + - ' stable=' + - LATEST_STABLE_VERSION + - ' (upgradeable=' + - (STABLE_VERSION_IS_UPGRADEABLE ? 'YES' : 'NO') + - ') dev=' + - LATEST_DEV_VERSION + - ' (upgradeable=' + - (DEV_VERSION_IS_UPGRADEABLE ? 'YES' : 'NO') + - ')' + - (MOCK_OFFLINE ? ' [offline]' : '') + THIS_VERSION + + ' stable=' + + LATEST_STABLE_VERSION + + ' (upgradeable=' + + (STABLE_VERSION_IS_UPGRADEABLE ? 'YES' : 'NO') + + ') dev=' + + LATEST_DEV_VERSION + + ' (upgradeable=' + + (DEV_VERSION_IS_UPGRADEABLE ? 'YES' : 'NO') + + ')' + + (MOCK_OFFLINE ? ' [offline]' : '') ); return data; }