| Age | Commit message (Collapse) | Author |
|
This is to simplify development on third party where they can
clone and include the file directly without installing or running
anything to build the files.
|
|
|
|
While at it, fix the return type of Open and OpenNode on WuiVfsOptions
to be Promise.
|
|
The OpenNode define an handler that will be called when a node is
clicked from the WuiVfsList.
|
|
|
|
Previously, the WuiVfsOptions contains two handlers: ListNodes to
retrieve list of files and OnClickNode for triggering changes when
user click a path or item in the list.
This changes simplify it into single handler: Open, which accept
path and boolean is_dir.
|
|
This commit changes the WuiVfsOptions.istNodes and
WuiEditorOptions.OpenFile to WuiResponseInterface.
WuiResponseInterface define an interface that will be returned by function
or method with non-void type.
If the function/method success, the code should be set to 200 (equal to
HTTP OK), and the data will contains the expected data for that function.
If the function/method call failed, the code should be set to other value
beside 200 with a message describe why its failed.
|
|
* Use snake_case for field, variable, HTML ID, and CSS class names.
* Use camelCase for class, interface, type, function, or method names.
* An exported type or class. interface, type, method, or function name
MUST start with an upper-case letter.
* An exported class, type, interface, or function MUST be prefixed with
"Wui".
|
|
|
|
|
|
The is_dir parameter indicated that the node is a directory.
|
|
While at it, change the border to silver and use console.error for
logging an error message.
|
|
If the node is directory the background color is cornsilk, otherwise
the background color is white.
|
|
The OnClickNode event will be send when user click non-directory files.
|
|
|
|
The vfs.js implement the web user interface for virtual file system
explorer.
|