node-red-contrib-uibuilder icon indicating copy to clipboard operation
node-red-contrib-uibuilder copied to clipboard

Saving/restoring index.html/index.js/index.css static content as part of flow?

Open alastaira opened this issue 2 weeks ago • 1 comments

Current Behavior

It is convenient to be able to archive/share/restore the state of a flow by using the Node-RED "export" function, and saving the current flow as a JSON file. However, since uibuilder's index.html/js/css are static files on the file system, the contents of these files is not included in the associated export. This makes it trickier to save/restore different versions of a flow, since the flow and front-end files must be restored separately and they can sometimes become out-of-sync with the rest of the flow.

Expected Behavior

It would be convenient to have a way of including the contents of the necessary files within the flow itself (perhaps they could be injected into uibuilder from a previous node in the flow?) so that they were kept together.

Steps To Reproduce

n/a

Example Node-RED flow

n/a

Environment

  • UIBUILDER version: 6.8.2
  • Node-RED version: 3.1.9
  • Node.js version: 20.13.1
  • Platform/OS: Windows 10
  • Browser: Firefox

How is Node-RED installed? (globally admin):

How/where is UIBUILDER installed (palette-manager)

Have you changed any of the uibuilder settings in your settings.js file? Nope.

alastaira avatar Jun 30 '24 11:06 alastaira