-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Background
Python Mawe has its own component to choose files. That was made to enable searching and other features not present in most systems' native file open/save dialogs.
For MaweJS, to get the first usable versions done, I made a bridge to call ElectronJS file dialogs to choose and save files.
Why?
In long run, the goal is that you can also edit files in cloud servers. For that purpose, we need to abstract filesystems so that no matter if the file is in local drive, google drive or dropbox, you can load, edit and save it.
That is the reason why ElectronJS backend is stupidly simple. It is mainly a "server-side" access to local filesystem and nothing more. Close everything is happening at the client side.
Furthermore, in long run, it is possible that I make MaweJS as a browser application. As you know, long time ago it was possible to give client code running in a browser permissions to access local file systems. But it is not possible anymore. So, in any case, we will need a custom made, client-side component to choose files.
Prework
There is an old implementation for choosing files in this directory:
https://github.com/mkoskim/mawejs/tree/4bcb47f8a9ea1164cdf5711badac83b356039213/src/gui/filebrowser