Compare commits

..

No commits in common. "6bff95d9bbf7b9bf5aae638a2ea4e9929ae1587e" and "b213eec65d2e1b38e1309d3a4cccedbb6d644dde" have entirely different histories.

3 changed files with 628 additions and 926 deletions

1541
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -4,8 +4,8 @@ version = "0.1.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
askama = "0.14.0" askama = "0.12.1"
axum = { version = "0.8.6", features = ["macros"] } axum = { version = "0.7.5", features = ["macros"] }
color-eyre = "0.6.3" color-eyre = "0.6.3"
futures = "0.3.30" futures = "0.3.30"
reqwest = { version = "0.12.7", features = [ reqwest = { version = "0.12.7", features = [

View file

@ -8,7 +8,7 @@ use axum::{
Router, Router,
}; };
use color_eyre::{eyre::Context, Result}; use color_eyre::{eyre::Context, Result};
use serde::Deserialize; use serde::{Deserialize, Serialize};
use tracing::{error, info}; use tracing::{error, info};
use crate::db::{BuildInfo, BuildMode, BuildStats, Db, Status}; use crate::db::{BuildInfo, BuildMode, BuildStats, Db, Status};
@ -325,8 +325,13 @@ async fn index_js() -> impl IntoResponse {
) )
} }
#[derive(Serialize, Deserialize)]
struct TriggerBuildBody {
nightly: String,
}
impl Status { impl Status {
fn to_emoji(self) -> &'static str { fn to_emoji(&self) -> &'static str {
match self { match self {
Status::Pass => "", Status::Pass => "",
Status::Error => "", Status::Error => "",