Skip to content

Commit 7be198f

Browse files
committed
fix: same dir includes
1 parent a9f0653 commit 7be198f

File tree

5 files changed

+6
-3
lines changed

5 files changed

+6
-3
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#######################
77
/target
88
/tmp
9+
/src/http-server/ui/*
10+
!/src/http-server/ui/.gitkeep
911

1012
# Compiled source #
1113
###################

src/file-explorer-ui/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dist:
1111

1212
fmt:
1313
@leptosfmt --version >/dev/null 2>&1 || (echo "Error: leptosfmt is required."; exit 1)
14-
leptosfmt ./src/**/*.rs
14+
@leptosfmt ./src/**/*.rs
1515

1616
release:
1717
trunk build --release --locked --config ./Trunk.toml

src/file-explorer-ui/Trunk.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[build]
22
# The index HTML file to drive the bundling process.
33
target = "./public/index.html"
4+
dist = "../http-server/ui"
45

56
[watch]
67
# Paths to watch. The `build.target`'s parent folder is watched by default.

src/http-server/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ categories = ["web-programming", "web-programming::http-server"]
99
keywords = ["configurable", "http", "server", "serve", "static"]
1010
license = "MIT OR Apache-2.0"
1111
readme = "../../README.md"
12-
include = ["../file-explorer-ui/dist", "./src"]
12+
include = ["./ui", "./src"]
1313

1414
[[bin]]
1515
name = "http-server"

src/http-server/src/handler/file_explorer/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use self::proto::BreadcrumbItem;
2222
use self::utils::{decode_uri, encode_uri, PERCENT_ENCODE_SET};
2323

2424
#[derive(Embed)]
25-
#[folder = "../file-explorer-ui/dist"]
25+
#[folder = "./ui"]
2626
struct FileExplorerAssets;
2727

2828
pub struct FileExplorer {

0 commit comments

Comments
 (0)