[fix](trx-frontend-http): add /recorder SPA route and fix header wrap
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
@@ -1116,9 +1116,9 @@ small { color: var(--text-muted); }
|
|||||||
.top-bar-actions {
|
.top-bar-actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.6rem;
|
gap: 0.45rem 0.6rem;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
overflow: hidden;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
.header-bar-btn.header-audio-btn {
|
.header-bar-btn.header-audio-btn {
|
||||||
width: 2rem;
|
width: 2rem;
|
||||||
|
|||||||
@@ -89,6 +89,12 @@ pub(crate) async fn digital_modes_index(req: HttpRequest) -> impl Responder {
|
|||||||
static_asset_response(&req, "text/html; charset=utf-8", &c.gz, &c.etag)
|
static_asset_response(&req, "text/html; charset=utf-8", &c.gz, &c.etag)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[get("/recorder")]
|
||||||
|
pub(crate) async fn recorder_index(req: HttpRequest) -> impl Responder {
|
||||||
|
let c = gz_index_html();
|
||||||
|
static_asset_response(&req, "text/html; charset=utf-8", &c.gz, &c.etag)
|
||||||
|
}
|
||||||
|
|
||||||
#[get("/settings")]
|
#[get("/settings")]
|
||||||
pub(crate) async fn settings_index(req: HttpRequest) -> impl Responder {
|
pub(crate) async fn settings_index(req: HttpRequest) -> impl Responder {
|
||||||
let c = gz_index_html();
|
let c = gz_index_html();
|
||||||
|
|||||||
@@ -618,6 +618,7 @@ pub fn configure(cfg: &mut web::ServiceConfig) {
|
|||||||
.service(assets::index)
|
.service(assets::index)
|
||||||
.service(assets::map_index)
|
.service(assets::map_index)
|
||||||
.service(assets::digital_modes_index)
|
.service(assets::digital_modes_index)
|
||||||
|
.service(assets::recorder_index)
|
||||||
.service(assets::settings_index)
|
.service(assets::settings_index)
|
||||||
.service(assets::about_index)
|
.service(assets::about_index)
|
||||||
.service(assets::favicon)
|
.service(assets::favicon)
|
||||||
|
|||||||
Reference in New Issue
Block a user