| 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.
|
|
In case the directory is too long, the name can span multiline, break
automatically by browser and overlap with previous crumbs.
|
|
Pressing tab key should iterate through crumb in the path and in the
item in the list.
|
|
The filter function filter and display the list of node by its name.
|
|
In this changes we introduce eslint as our linter for TypeScript and
update our tsconfig to be more strict.
The ".eslintrc.yaml" and "tsconfig.json" is taken from golang/website
repository [1].
[1]: https://cs.opensource.google/go/x/website
|
|
I cannot remember how I reformat those files previously, probably without
any tools.
This changes reformat the TypeScript files using prettier and HTML files
using js-beautify.
|
|
See https://kilabit.info/journal/2022/gpl/ for more information.
|
|
The VFS path component now have class "wui_vfs_path" and the list
component have class "wui_vfs_list".
|
|
|
|
Since WuiVfsNode does not have any methods then and the constructor
only initialize the value to zero, we remove the type and use the
interface instead.
|
|
|
|
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.
|