diff --git a/client/uitauri/.gitignore b/client/uitauri/.gitignore new file mode 100644 index 000000000..ae428355b --- /dev/null +++ b/client/uitauri/.gitignore @@ -0,0 +1,3 @@ +frontend/node_modules/ +frontend/dist/ +src-tauri/target/ diff --git a/client/uitauri/README.md b/client/uitauri/README.md new file mode 100644 index 000000000..59c7d9d17 --- /dev/null +++ b/client/uitauri/README.md @@ -0,0 +1,26 @@ +# NetBird Tauri UI + +## Prerequisites + +- Rust (https://rustup.rs) +- Node.js 18+ +- Linux: `sudo apt install libwebkit2gtk-4.1-dev libgtk-3-dev libappindicator3-dev librsvg2-dev patchelf protobuf-compiler` + +## Build & Run + +```bash +# Frontend +cd frontend && npm install && npm run build && cd .. + +# Backend (debug) +cd src-tauri && cargo build + +# Run +RUST_LOG=info ./src-tauri/target/debug/netbird-ui + +# Release build +cd src-tauri && cargo build --release +./src-tauri/target/release/netbird-ui +``` + +The NetBird daemon must be running (`netbird service start`). diff --git a/client/uitauri/frontend/index.html b/client/uitauri/frontend/index.html new file mode 100644 index 000000000..57a8dcea7 --- /dev/null +++ b/client/uitauri/frontend/index.html @@ -0,0 +1,13 @@ + + +
+ + + ++ {message} +
++ Create a debug bundle to help troubleshoot issues with NetBird. +
+ +Bundle uploaded successfully!
+
+ {result.uploadedKey}
+
+ Upload failed: {result.uploadFailureReason}
+ ) : null} +
+ {result.localPath}
+
+ {msg}
+No peers found. Connect to a network to see peers.
++ Trigger an automatic client update managed by the NetBird daemon. +
+ +Click below to trigger a daemon-managed update.
+ + > + )} + + {state === 'triggering' && ( +Triggering update\u2026
+ )} + + {state === 'polling' && ( +Updating{dots}
+The daemon is installing the update. Please wait.
+Update Successful!
+The client has been updated. You may need to restart.
+Update Failed
+ {errorMsg &&{errorMsg}
} + +