* Resolve dir argument of getLocalNodeFiles function
The getLocalNodeFiles is called 3 times. Each time it called, the callee needs to resolve the dir argument.
That was not done for several of calls, and local modules (specified in the "nodesDir" setting) were not returned to client because of that.
This fix will allow to make sure the dir is consistently resolved.
* Several changes in "localfilesystem_spec.js":
- Changed checkNodes to verify that every node's file property is resolved, i.e. containst absolute path, not relative.
- Added a unit-test "Finds nodes in settings.nodesDir (string,relative path)"
* Allow nodes to have translations not in core
Currently only languages in the core are checked when
the editor requests a translation. This means that if
a node includes more translations they are not checked.
This change removes the check against that short list,
but it only checks the first language from the browser
suported list
* remove whitespace
* fix bug where savesettings did not honor local settings variables
* don't create lib/flows on read; It's already created in localfilesystem.init and in saveLibraryEntry -
so removed call to promiseDir, and added a return of [] if accessing a folder which did not exist.
This is important because else when settings.readOnly is true, it still creates folders.
* Fix a CI failure where path passed to getLibraryEntry is empty;
treat this case as meaning it was wanting a folder, and return empty if the folder dioes not exist
* Add a test for getLibraryEntry( type, '/' ) as called by node-red
* change newsettings to camelCase newSettings
* add support for editor insecure redirect setting
set insecureRedirect: true to cause the editor app to redirect insecure connections
* document insecureRedirect
* use req.originalUrl instead of req.url
url has the path removed, whereas originalUrl preserves the path - ie /red
* ensure remove button is only enabled for local modules when refreshing palette editor
* ensure local field is propagated to the nodes when a new module is added to the registry