From 8d822f52ea7f9c4f122455b1c0a5601f228dad5f Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Thu, 26 Jun 2025 15:08:46 +0100 Subject: [PATCH] Remove testing plugins --- .../@node-red/editor-client/src/js/red.js | 63 ------------------- 1 file changed, 63 deletions(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/red.js b/packages/node_modules/@node-red/editor-client/src/js/red.js index 68cd0c780..99cb8375b 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/red.js +++ b/packages/node_modules/@node-red/editor-client/src/js/red.js @@ -673,69 +673,6 @@ var RED = (function() { RED.sidebar.show(":first", true); - RED.plugins.registerPlugin('demo-suggestion-source', { - type: 'node-red-flow-suggestion-source', - getSuggestions: async function (context) { - console.log(context) - const suggestion = { - label: 'Change/Debug Combo', - nodes: [ - { id: 'suggestion-1', type: 'change', x: 0, y: 0, wires:[['suggestion-2']] }, - { id: 'suggestion-2', type: 'function', outputs: 3, x: 200, y: 0, wires:[['suggestion-3'],['suggestion-4'],['suggestion-6']] }, - { id: 'suggestion-3', _g: 'suggestion-group-1', type: 'debug', x: 375, y: -40 }, - { id: 'suggestion-4', _g: 'suggestion-group-1', type: 'debug', x: 375, y: 0 }, - { id: 'suggestion-5', _g: 'suggestion-group-1', type: 'debug', x: 410, y: 40 }, - { id: 'suggestion-6', type: 'junction', wires: [['suggestion-5']], x:325, y:40 } - ] - } - const suggestion2 = { - label: 'Another Change/Debug Combo', - nodes: [ - { id: 'suggestion-1', type: 'change', x: 100, y: 100, wires:[['suggestion-2']] }, - { id: 'suggestion-2', type: 'function', outputs: 3, x: 300, y: 100 }, - ] - } - const suggestion3 = { - nodes: [ - { type: 'mqtt in' } - ] - } - await new Promise(resolve => setTimeout(resolve, 1000)); // Simulate async operation - return [suggestion, suggestion2,suggestion3] - } - }) - - RED.plugins.registerPlugin('demo-mqtt-autocomplete-source', { - type: 'node-red-mqtt-topic-autocomplete-source', - getCompletions: async function (value, node) { - return [ - 'home/upstairs/temperature', - 'home/upstairs/humidity', - 'home/upstairs/pressure', - 'home/downstairs/temperature', - 'home/temperature', - 'home/humidity', - 'home/pressure' - ].map(t => t) - } - }) - - RED.plugins.registerPlugin('demo-mqtt-autocomplete-source-2', { - type: 'node-red-mqtt-topic-autocomplete-source', - getCompletions: async function (value, node) { - return [ - 'away/upstairs/temperature', - 'away/upstairs/humidity', - 'away/upstairs/pressure', - 'away/downstairs/temperature', - 'away/temperature', - 'away/humidity', - 'away/pressure' - ].map(t => t) - } - }) - - setTimeout(function() { loader.end(); checkTelemetry(function () {