Remove testing plugins

This commit is contained in:
Nick O'Leary
2025-06-26 15:08:46 +01:00
parent 7f147b97ca
commit 8d822f52ea

View File

@@ -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 () {