aboutsummaryrefslogtreecommitdiff
path: root/vfs/example.html
AgeCommit message (Collapse)Author
2021-09-05vfs: refactor example to use TypeScript loaded with type="module"Shulhan
2021-08-29vfs: add handler OpenNode to WuiVfsOptionsShulhan
The OpenNode define an handler that will be called when a node is clicked from the WuiVfsList.
2021-08-29vfs: simplify the handlers on WuiVfsOptionsShulhan
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.
2021-08-28all: use the WuiResponseInterface for non-void return typeShulhan
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.
2021-07-26vfs: implement virtual file system explorerShulhan
The vfs.js implement the web user interface for virtual file system explorer.