Handle refreshes in the register UI and update page titles (#119)

This commit is contained in:
Will Galebach 2023-12-27 12:40:42 +00:00 committed by GitHub
parent 6d12014c8e
commit 44e464ba43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 24 additions and 6 deletions

View File

@ -1,11 +1,11 @@
{
"files": {
"main.css": "/static/css/main.115771e3.css",
"main.js": "/static/js/main.87f3f3b4.js",
"main.js": "/static/js/main.9d27844d.js",
"index.html": "/index.html"
},
"entrypoints": [
"static/css/main.115771e3.css",
"static/js/main.87f3f3b4.js"
"static/js/main.9d27844d.js"
]
}

File diff suppressed because one or more lines are too long

View File

@ -133,7 +133,25 @@ pub async fn register(
let react_app = warp::path::end()
.and(warp::get())
.map(move || warp::reply::html(include_str!("register-ui/build/index.html")));
.map(move || warp::reply::html(include_str!("register-ui/build/index.html")))
.or(warp::path("login")
.and(warp::get())
.map(move || warp::reply::html(include_str!("register-ui/build/index.html"))))
.or(warp::path("register-name")
.and(warp::get())
.map(move || warp::reply::html(include_str!("register-ui/build/index.html"))))
.or(warp::path("claim-invite")
.and(warp::get())
.map(move || warp::reply::html(include_str!("register-ui/build/index.html"))))
.or(warp::path("reset")
.and(warp::get())
.map(move || warp::reply::html(include_str!("register-ui/build/index.html"))))
.or(warp::path("import-keyfile")
.and(warp::get())
.map(move || warp::reply::html(include_str!("register-ui/build/index.html"))))
.or(warp::path("set-password")
.and(warp::get())
.map(move || warp::reply::html(include_str!("register-ui/build/index.html"))));
let api = warp::path("info")
.and(