Allow to edit files without expert mode
At the moment, the user can edit files directly in the admin tab "files" (depends on file extension).
https://github.com/ioBroker/ioBroker.admin/blob/fed2bb1f6c17ef0dc6e6152ea3cdfeb1b3aabb1f/src-rx/src/components/FileBrowser.jsx#L1029-L1039
But: This only works, if expert mode is enabled. It would be great, if those files can be edited without expert mode.
Better: The developer can add an option to "writeFile", that this file is indented to be edited.
An entry in the _data.json looks like this:
{
"settings.json": {
"acl": {
"owner": "system.user.admin",
"ownerGroup": "system.group.administrator",
"permissions": 1632
},
"stats": {
"size": 2188
},
"mimeType": "application/json",
"binary": false,
"modifiedAt": 1656494690332
}
}
Is there no "native" part (like for objects)?
Tested with v6.1.6
I'm against that ... In 90% of the cases people use file managers to manage it and adapters manage their stuff in the files. I see "edit of the file in online editor" still as expert function because I do not see any real use casse for "norm users" that would require this? Do you have use cases?
For example "Shelly Scripting". The iobroker could mirror all scripts from all devices. When you change a script, it can be published to the Shelly if changed (with new js-controller file events).
And this is a "non Expert topic"? ;-)
In my opinion the expert mode is like a "admin mode / root user": to perform actions without checks. Even as an expert, I don't enable that mode very often in admin.
This is just an idea to extend the file management with something like "expert: true" for objects.