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"
[dependencies]
askama = "0.14.0"
axum = { version = "0.8.6", features = ["macros"] }
askama = "0.12.1"
axum = { version = "0.7.5", features = ["macros"] }
color-eyre = "0.6.3"
futures = "0.3.30"
reqwest = { version = "0.12.7", features = [

View file

@ -8,7 +8,7 @@ use axum::{
Router,
};
use color_eyre::{eyre::Context, Result};
use serde::Deserialize;
use serde::{Deserialize, Serialize};
use tracing::{error, info};
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 {
fn to_emoji(self) -> &'static str {
fn to_emoji(&self) -> &'static str {
match self {
Status::Pass => "",
Status::Error => "",