1
1
mirror of https://github.com/uqbar-dao/nectar.git synced 2024-12-24 09:06:10 +03:00

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

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": { "files": {
"main.css": "/static/css/main.115771e3.css", "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" "index.html": "/index.html"
}, },
"entrypoints": [ "entrypoints": [
"static/css/main.115771e3.css", "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() let react_app = warp::path::end()
.and(warp::get()) .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") let api = warp::path("info")
.and( .and(