Skip to content

Commit 07e8df5

Browse files
committed
perf: Break UI components into individual files and update references
1 parent ae66cf1 commit 07e8df5

9 files changed

Lines changed: 1846 additions & 1844 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ rustdoc-args = ["--document-private-items"]
2828
utoipa = { version = "5.5", features = ["actix_extras"] }
2929
utoipa-swagger-ui = { version = "9.0", features = ["actix-web", "vendored"] }
3030
actix-web = "4.13"
31+
actix-files = "0.6"
3132
reqwest = { version = "0.13", features = ["cookies", "json", "form"] }
3233
serde = { version = "1.0", features = ["derive"] }
3334
serde_json = "1.0"

rutorrent-ui/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This launches the RuTorrent frontend independently using NGINX.
2727

2828
### Template Reuse
2929

30-
The Docker Compose configuration is designed to download the latest `index.html` (from GitHub) located in [templates] directory.
30+
The Docker Compose configuration is designed to download the latest `index.html` (from GitHub) located in [assets] directory.
3131

3232
This ensures consistency between the embedded UI and the standalone deployment while avoiding duplication of frontend assets.
3333

@@ -55,5 +55,5 @@ This ensures consistency between the embedded UI and the standalone deployment w
5555
* Verify that the backend service is reachable from the NGINX container.
5656
* If deploying remotely, configure appropriate firewall and reverse proxy settings for secure access.
5757

58-
[upstream.conf]: https://github.com/thevickypedia/RuTorrent/blob/main/rutorrent-ui/nginx/upstream.conf?utm_source=chatgpt.com#L9
59-
[templates]: https://github.com/thevickypedia/RuTorrent/tree/main/src/templates?utm_source=chatgpt.com
58+
[upstream.conf]: https://github.com/thevickypedia/RuTorrent/blob/main/rutorrent-ui/nginx/upstream.conf#L9
59+
[assets]: https://github.com/thevickypedia/RuTorrent/tree/main/src/assets

rutorrent-ui/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ services:
1515
/bin/sh -c "
1616
if [ ! -f /usr/share/nginx/html/index.html ]; then
1717
wget -O /usr/share/nginx/html/index.html \
18-
https://raw.githubusercontent.com/thevickypedia/RuTorrent/main/src/templates/index.html;
18+
https://raw.githubusercontent.com/thevickypedia/RuTorrent/main/src/assets/index.html;
1919
fi &&
2020
nginx -g 'daemon off;'
2121
"

0 commit comments

Comments
 (0)