File tree Expand file tree Collapse file tree 6 files changed +15
-281
lines changed
src/handler/file_explorer Expand file tree Collapse file tree 6 files changed +15
-281
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ default: release
55release : ui-build
66 make -C ./crates/http-server release
77
8+ run :
9+ make -C ./crates/http-server run
10+
811ui-build :
912 make -C ./crates/file-explorer-ui release
1013
Original file line number Diff line number Diff line change 66dev :
77 trunk serve --config ./Trunk.toml
88
9+ dist :
10+ trunk build --config ./Trunk.toml
11+
912fmt :
1013 @leptosfmt --version > /dev/null 2>&1 || (echo " Error: leptosfmt is required." ; exit 1)
1114 leptosfmt ./src/** /* .rs
Original file line number Diff line number Diff line change @@ -9,5 +9,5 @@ watch = ["./src"]
99ignore = []
1010
1111[[proxy ]]
12- backend = " http://127.0.0.1:3000 /api/v1"
12+ backend = " http://127.0.0.1:7878 /api/v1"
1313rewrite = " /api/v1"
Original file line number Diff line number Diff line change 55
66release :
77 cargo b --release
8+
9+ dist :
10+ make -C ../file-explorer-ui dist
11+
12+ run : dist
13+ cargo r -- start
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ use self::proto::BreadcrumbItem;
2222use self :: utils:: { decode_uri, encode_uri, PERCENT_ENCODE_SET } ;
2323
2424#[ derive( Embed ) ]
25- #[ folder = "../file-explorer-ui/public/ dist" ]
25+ #[ folder = "../file-explorer-ui/dist" ]
2626struct FileExplorerAssets ;
2727
2828pub struct FileExplorer {
@@ -208,7 +208,7 @@ impl FileExplorer {
208208 fn breadcrumbs_from_path ( root_dir : & Path , path : & Path ) -> Result < Vec < BreadcrumbItem > > {
209209 let root_dir_name = root_dir
210210 . components ( )
211- . last ( )
211+ . next_back ( )
212212 . unwrap ( )
213213 . as_os_str ( )
214214 . to_str ( )
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments